/*
===========
LID WORDEN PAGE
===========
*/

/* Pagina variabelen */
.lid-worden-page {
    --form-bg: var(--hero-bg-color);
    --input-bg: var(--white);
}

/* Breadcrumb */
.lid-worden-breadcrumb-section {
    padding-top: var(--breadcrumb-padding-top);
}

.breadcrumb {
    font-family: var(--font-family);
    font-size: var(--breadcrumb-size);
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb a {
    text-decoration: none;
    color: var(--text-dark);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .current {
    font-weight: 700;
    color: var(--heading-color);
}

/* Container */
.lid-worden-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Hero */
.lid-worden-hero {
    padding: 3rem 0 2rem;
    text-align: center;
}

.lid-worden-hero h1 {
    font-size: var(--h1-size-desktop);
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.lid-worden-hero p {
    font-size: var(--p-size);
    color: var(--text-dark);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.lid-worden-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: var(--p-size);
    font-weight: 500;
    color: var(--text-dark);
}

.stars {
    font-size: 24px;
    color: #f5a623;
    letter-spacing: 2px;
}

.star-half {
    opacity: 0.4;
}

/*
===========
FORMULIER
===========
*/
.lid-worden-form-section {
    padding: 2rem 0 6rem;
}

.form-card {
    background-color: var(--form-bg);
    border-radius: var(--border-radius);
    padding: 3rem;
}

.form-card h2 {
    font-size: var(--h3-size-desktop);
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 2rem;
}

/* Honeypot - verborgen voor echte gebruikers */
.form-field-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* Formulier feedback berichten */
.form-message {
    padding: 1.2rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-size: var(--p-size);
    font-weight: 600;
    margin-bottom: 2rem;
}

.form-message--success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.form-message--error {
    background-color: #fce4ec;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* Form rij: 2 kolommen */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Input velden */
.form-field input,
.form-field textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: none;
    border-radius: 8px;
    background-color: var(--input-bg);
    font-family: var(--font-family);
    font-size: var(--p-small);
    color: var(--heading-color);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--text-dark);
    font-weight: 400;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

.form-field.full-width {
    margin-bottom: 1.5rem;
}

.form-field.full-width textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: none;
    border-radius: 8px;
    background-color: var(--input-bg);
    font-family: var(--font-family);
    font-size: var(--p-small);
    color: var(--heading-color);
    resize: vertical;
}

/* Abonnement keuze */
.form-abonnement {
    margin: 1.5rem 0;
}

.abonnement-titel {
    font-size: var(--p-small);
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

/* Custom radio buttons */
.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: var(--p-small);
    color: var(--heading-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--primary-color);
    flex-shrink: 0;
    position: relative;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: var(--white);
    border-radius: 50%;
}

/* Checkboxes */
.form-checkboxes {
    margin: 1.5rem 0;
}

.checkbox-group {
    margin-bottom: 1.2rem;
}

.checkbox-label-text.verplicht {
    display: block;
    font-size: var(--p-xs);
    font-style: italic;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: var(--p-small);
    color: var(--heading-color);
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--primary-color);
    flex-shrink: 0;
    position: relative;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: var(--white);
    border-radius: 50%;
}

.checkbox-label a {
    color: var(--heading-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 700;
}

.checkbox-label a:hover {
    color: var(--primary-color);
}

/* Captcha & Submit */
.form-submit-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.captcha-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: var(--p-small);
    color: var(--text-dark);
}

.captcha-input {
    width: 60px;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    background-color: var(--input-bg);
    text-align: center;
    font-family: var(--font-family);
    font-size: var(--p-small);
    color: var(--heading-color);
}

.captcha-input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

.form-submit-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-pill);
    padding: 1rem 2.5rem;
    font-weight: 700;
    font-size: var(--p-size);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-family);
}

.form-submit-btn:hover {
    background-color: var(--primary-color-hover);
    transform: scale(1.05);
}

/*
===========
PROEFLES SECTION
===========
*/
.proefles-section {
    padding: 4rem 0 6rem;
}

.proefles-hero {
    text-align: center;
    margin-bottom: 2rem;
}

.proefles-hero h2 {
    font-size: var(--h2-size-desktop);
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.proefles-hero p {
    font-size: var(--p-size);
    color: var(--text-dark);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 1rem;
    font-weight: 500;
}

/*
===========
LIVE VALIDATIE
===========
*/
.form-field input.field-valid,
.form-field textarea.field-valid {
    outline: 2px solid #2e7d32;
    outline-offset: -2px;
}

.form-field input.field-invalid,
.form-field textarea.field-invalid {
    outline: 2px solid #c62828;
    outline-offset: -2px;
}

.field-error {
    display: block;
    font-size: 13px;
    color: #c62828;
    margin-top: 4px;
    font-weight: 500;
}

.form-field input.field-autofilled {
    background-color: #e8f5e9;
}

/* Responsive */
@media (max-width: 768px) {
    .lid-worden-breadcrumb-section {
        padding-top: var(--breadcrumb-padding-top-mobile);
    }

    .lid-worden-hero h1 {
        font-size: var(--h1-size-mobile);
    }

    .lid-worden-container {
        padding: var(--container-padding-mobile);
    }

    .form-card {
        padding: 2rem 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-submit-row {
        flex-direction: column;
        align-items: stretch;
    }

    .form-submit-btn {
        width: 100%;
        text-align: center;
    }

    .captcha-group {
        justify-content: center;
    }

    .proefles-hero h2 {
        font-size: var(--h2-size-mobile);
    }
}
