/**
 * Horeca Group Choices - Frontend Styles
 * Markt28 Brand Styling
 * 
 * Kleuren:
 * - Goud accent: #F1C070
 * - Zwart: #231F20
 * - Donker olijf: #282716
 * - Grijs: #808285
 * - Lichtgrijs: #D1D3D4
 * 
 * Fonts:
 * - Titels: Unica One
 * - Body: Roboto
 */

/* Google Fonts import */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Unica+One&display=swap');

/* CSS Custom Properties - Markt28 Huisstijl */
:root {
    --hgc-gold: #F1C070;
    --hgc-gold-dark: #d9a855;
    --hgc-gold-light: #f8dca8;
    --hgc-black: #231F20;
    --hgc-olive: #282716;
    --hgc-gray: #808285;
    --hgc-gray-light: #D1D3D4;
    --hgc-white: #ffffff;
    --hgc-cream: #faf8f5;
    --hgc-font-title: 'Unica One', cursive;
    --hgc-font-body: 'Roboto', sans-serif;
}

/* Form Wrapper */
.hgc-form-wrapper {
    max-width: 620px;
    margin: 0 auto;
    padding: 40px 35px;
    background: var(--hgc-white);
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(35, 31, 32, 0.08);
    font-family: var(--hgc-font-body);
    border-top: 4px solid var(--hgc-gold);
}

.hgc-form-title {
    margin: 0 0 30px 0;
    padding: 0 0 20px 0;
    font-family: var(--hgc-font-title);
    font-size: 32px;
    font-weight: 400;
    color: var(--hgc-black);
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid var(--hgc-gold);
    text-align: center;
}

/* Form Elements */
.hgc-form-row {
    margin-bottom: 22px;
}

.hgc-label {
    display: block;
    margin-bottom: 10px;
    font-family: var(--hgc-font-body);
    font-size: 14px;
    font-weight: 700;
    color: var(--hgc-black);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hgc-required {
    color: var(--hgc-gold-dark);
    font-weight: 700;
}

.hgc-input,
.hgc-select,
.hgc-textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--hgc-font-body);
    font-size: 15px;
    line-height: 1.5;
    color: var(--hgc-black);
    background-color: var(--hgc-cream);
    border: 2px solid var(--hgc-gray-light);
    border-radius: 0;
    transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.hgc-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23231F20' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    padding-right: 40px;
    cursor: pointer;
}

.hgc-input:focus,
.hgc-select:focus,
.hgc-textarea:focus {
    outline: none;
    border-color: var(--hgc-gold);
    background-color: var(--hgc-white);
    box-shadow: 0 0 0 3px rgba(241, 192, 112, 0.25);
}

.hgc-input::placeholder,
.hgc-textarea::placeholder {
    color: var(--hgc-gray);
    font-style: italic;
}

.hgc-textarea {
    resize: vertical;
    min-height: 110px;
}

/* Section Styling */
.hgc-form-section {
    margin: 35px 0;
    padding: 25px;
    background: var(--hgc-cream);
    border-radius: 0;
    border: none;
    border-left: 4px solid var(--hgc-gold);
}

.hgc-section-title {
    margin: 0 0 22px 0;
    font-family: var(--hgc-font-title);
    font-size: 20px;
    font-weight: 400;
    color: var(--hgc-olive);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Submit Button - Markt28 Style */
.hgc-form-submit {
    margin-top: 35px;
    text-align: center;
}

.hgc-submit-button {
    display: inline-block;
    width: 100%;
    padding: 16px 35px;
    font-family: var(--hgc-font-title);
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--hgc-black);
    background-color: var(--hgc-gold);
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.15s ease, box-shadow 0.3s ease;
}

.hgc-submit-button:hover {
    background-color: var(--hgc-gold-dark);
    box-shadow: 0 4px 15px rgba(241, 192, 112, 0.4);
}

.hgc-submit-button:active {
    transform: scale(0.98);
}

.hgc-submit-button:disabled {
    background-color: var(--hgc-gray-light);
    color: var(--hgc-gray);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.hgc-submit-button.hgc-loading {
    position: relative;
    color: transparent;
}

.hgc-submit-button.hgc-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border: 3px solid transparent;
    border-top-color: var(--hgc-black);
    border-radius: 50%;
    animation: hgc-spin 0.8s linear infinite;
}

@keyframes hgc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Messages */
.hgc-form-message {
    margin-top: 25px;
    padding: 18px 25px;
    border-radius: 0;
    font-family: var(--hgc-font-body);
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
}

.hgc-form-message.hgc-success {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
    color: var(--hgc-olive);
}

.hgc-form-message.hgc-error {
    background-color: #ffebee;
    border-left: 4px solid #c62828;
    color: #c62828;
}

/* Error State */
.hgc-input.hgc-field-error,
.hgc-select.hgc-field-error {
    border-color: #c62828;
    background-color: #fff8f8;
}

.hgc-error-message {
    display: none;
    margin-top: 6px;
    font-size: 13px;
    color: #c62828;
    font-weight: 500;
}

.hgc-form-row.hgc-has-error .hgc-error-message {
    display: block;
}

/* Success State - Hide Form */
.hgc-form.hgc-form-success {
    display: none;
}

.hgc-form-wrapper.hgc-submitted .hgc-form-message {
    display: block !important;
}

/* Decorative elements */
.hgc-form-wrapper::before {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: var(--hgc-gold);
    margin: 0 auto 25px auto;
}

/* Intro Text */
.hgc-intro-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--hgc-gray);
    margin-bottom: 25px;
    text-align: center;
}

/* Form Row Group (side by side) */
.hgc-form-row-group {
    display: flex;
    gap: 20px;
    margin-bottom: 22px;
}

.hgc-form-row-half {
    flex: 1;
    margin-bottom: 0;
}

/* Optional label */
.hgc-optional {
    font-weight: 400;
    color: var(--hgc-gray);
    font-size: 12px;
}

/* Field hint */
.hgc-field-hint {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--hgc-gray);
    font-style: italic;
}

/* Group Info Box */
.hgc-group-info {
    background: var(--hgc-cream);
    border-left: 4px solid var(--hgc-gold);
    padding: 20px;
    margin-bottom: 30px;
}

.hgc-group-name {
    font-size: 18px;
    color: var(--hgc-black);
    margin-bottom: 8px;
}

.hgc-group-date,
.hgc-group-count {
    font-size: 14px;
    color: var(--hgc-gray);
    margin-top: 5px;
}

/* Share Section */
.hgc-share-section {
    margin-top: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f6f2 0%, var(--hgc-cream) 100%);
    border: 2px solid var(--hgc-gold);
    text-align: center;
}

.hgc-share-title {
    font-family: var(--hgc-font-title);
    font-size: 26px;
    color: var(--hgc-black);
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hgc-share-intro {
    font-size: 15px;
    color: var(--hgc-olive);
    margin-bottom: 20px;
}

.hgc-share-link-box {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.hgc-share-url {
    flex: 1;
    padding: 14px 16px;
    font-family: var(--hgc-font-body);
    font-size: 14px;
    color: var(--hgc-black);
    background: var(--hgc-white);
    border: 2px solid var(--hgc-gray-light);
    border-radius: 0;
}

.hgc-copy-button {
    padding: 14px 20px;
    font-family: var(--hgc-font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--hgc-black);
    background: var(--hgc-gold);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.hgc-copy-button:hover {
    background: var(--hgc-gold-dark);
}

/* Share Buttons */
.hgc-share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.hgc-share-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    font-family: var(--hgc-font-body);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hgc-share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hgc-share-button svg {
    flex-shrink: 0;
}

.hgc-share-whatsapp {
    background: #25D366;
    color: #ffffff;
}

.hgc-share-whatsapp:hover {
    background: #20bd5a;
    color: #ffffff;
}

.hgc-share-email {
    background: var(--hgc-black);
    color: #ffffff;
}

.hgc-share-email:hover {
    background: var(--hgc-olive);
    color: #ffffff;
}

/* Share Tip */
.hgc-share-tip {
    font-size: 14px;
    color: var(--hgc-olive);
    background: var(--hgc-white);
    padding: 12px 20px;
    border-left: 3px solid var(--hgc-gold);
    text-align: left;
    margin-top: 20px;
}

/* Submissions Overview */
.hgc-submissions-overview {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid var(--hgc-gray-light);
}

.hgc-overview-title {
    font-family: var(--hgc-font-title);
    font-size: 18px;
    color: var(--hgc-black);
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hgc-submissions-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hgc-submission-item {
    background: var(--hgc-cream);
    padding: 8px 15px;
    font-size: 14px;
    color: var(--hgc-olive);
}

.hgc-submission-name {
    font-weight: 500;
}

/* Responsive */
@media (max-width: 600px) {
    .hgc-form-wrapper {
        padding: 30px 20px;
        margin: 0 15px;
        border-top-width: 3px;
    }

    .hgc-form-title {
        font-size: 26px;
        letter-spacing: 1.5px;
    }

    .hgc-input,
    .hgc-select,
    .hgc-textarea {
        padding: 12px 14px;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .hgc-submit-button {
        padding: 14px 25px;
        font-size: 16px;
        letter-spacing: 1.5px;
    }

    .hgc-form-section {
        padding: 20px 18px;
        margin: 25px -5px;
    }

    .hgc-section-title {
        font-size: 18px;
    }

    .hgc-label {
        font-size: 13px;
    }

    .hgc-form-row-group {
        flex-direction: column;
        gap: 0;
    }

    .hgc-form-row-half {
        margin-bottom: 22px;
    }

    .hgc-share-link-box {
        flex-direction: column;
    }

    .hgc-share-buttons {
        flex-direction: column;
    }

    .hgc-share-button {
        justify-content: center;
    }

    .hgc-share-section {
        padding: 25px 20px;
    }

    .hgc-share-title {
        font-size: 22px;
    }
}
