/*
 * Maya Evenementen + Agenda - Frontend formulier styling
 * Gescoped onder .maya-ea-registration zodat andere formulieren niet worden beïnvloed
 */

/* Fase 7C-C.4.3: fallback design tokens. Centrale tokens via
   Maya_EA_Settings::get_theme_css() overschrijven deze :root-waarden. */
:root {
    /* Fallbackwaarden = PHP-defaults (Maya_EA_Theme-resolutie via
       get_theme_css() overschrijft deze op component-scope). */
    --maya-ea-surface: #ffffff;
    --maya-ea-navy: #1d2d44;
    --maya-ea-navy-light: #2c3e5c;
    --maya-ea-cream: #f9f6f0;
    --maya-ea-cream-light: #faf8f4;
    --maya-ea-gold: #c9a055;
    --maya-ea-gold-hover: #b18b43;
    --maya-ea-gold-light: #f5e9d7;
    --maya-ea-beige: #e8e1d5;
    --maya-ea-beige-dark: #d4c9b9;
    --maya-ea-text: #1d2d44;
    --maya-ea-text-muted: #6b7280;
    --maya-ea-error: #c53030;
    --maya-ea-error-bg: #fff5f5;
    --maya-ea-success: #2f855a;
    --maya-ea-success-bg: #f0fff4;
}

.maya-ea-registration {

    max-width: 760px;
    margin: 0 auto;
    padding: 2.5rem;
    background: var(--maya-ea-surface);
    border: 1px solid var(--maya-ea-beige);
    border-radius: 24px;
    color: var(--maya-ea-text);
    box-shadow: 0 10px 40px color-mix(in srgb, var(--maya-ea-navy) 6%, transparent);
    font-family: inherit;
    box-sizing: border-box;
}

.maya-ea-registration *,
.maya-ea-registration *::before,
.maya-ea-registration *::after {
    box-sizing: border-box;
}

/* Title */
.maya-ea-form-title {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 0 0 .35rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--maya-ea-navy);
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.maya-ea-form-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    background: var(--maya-ea-navy);
    color: var(--maya-ea-gold);
    border-radius: 50%;
}

.maya-ea-form-title-icon svg {
    width: 22px;
    height: 22px;
}

.maya-ea-form-intro {
    margin: 0 0 1.5rem;
    color: var(--maya-ea-text-muted);
    font-size: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Event card */
.maya-ea-event-card {
    background: var(--maya-ea-navy);
    color: var(--maya-ea-cream);
    border: 1px solid var(--maya-ea-navy-light);
    border-radius: 18px;
    padding: 1.75rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--maya-ea-navy) 18%, transparent);
}

.maya-ea-event-title {
    margin: 0 0 .35rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--maya-theme-on-primary, #fff);
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

.maya-ea-event-type {
    margin: 0 0 1rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--maya-ea-gold);
    text-transform: uppercase;
    letter-spacing: .06em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.maya-ea-event-row {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin: 0 0 .55rem;
    font-size: .95rem;
    color: color-mix(in srgb, var(--maya-theme-on-primary, #f7f2eb) 88%, transparent);
    line-height: 1.5;
    word-wrap: break-word;
}

.maya-ea-event-row:last-child {
    margin-bottom: 0;
}

.maya-ea-event-icon {
    display: inline-flex;
    align-items: center;
    flex: 0 0 20px;
    margin-top: .05rem;
    color: var(--maya-ea-gold);
}

.maya-ea-event-icon svg {
    width: 20px;
    height: 20px;
}

.maya-ea-event-text {
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.maya-ea-event-note {
    margin: 1.25rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid color-mix(in srgb, var(--maya-theme-on-primary, #f7f2eb) 12%, transparent);
    font-size: .9rem;
    color: color-mix(in srgb, var(--maya-theme-on-primary, #f7f2eb) 75%, transparent);
    font-style: italic;
}

/* Form layout */
.maya-ea-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1.75rem;
}

.maya-ea-field {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    min-width: 0;
}

.maya-ea-field--full {
    grid-column: 1 / -1;
}

.maya-ea-field label {
    font-size: .92rem;
    font-weight: 600;
    color: var(--maya-ea-text);
}

.maya-ea-field .maya-ea-required {
    color: var(--maya-ea-gold);
    margin-left: .15rem;
}

.maya-ea-field .maya-ea-optional {
    color: var(--maya-ea-text-muted);
    font-weight: 400;
    font-size: .85rem;
    margin-left: .25rem;
}

/* Inputs with icons */
.maya-ea-input-wrap {
    position: relative;
}

.maya-ea-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    color: var(--maya-ea-gold);
    pointer-events: none;
}

.maya-ea-input-icon svg,
.maya-ea-select-icon svg {
    width: 18px;
    height: 18px;
}

.maya-ea-field--textarea .maya-ea-input-icon {
    top: .95rem;
    transform: none;
}

.maya-ea-form input[type="text"],
.maya-ea-form input[type="email"],
.maya-ea-form input[type="tel"],
.maya-ea-form input[type="number"],
.maya-ea-form input[type="date"],
.maya-ea-form textarea,
.maya-ea-form select {
    width: 100%;
    min-height: 52px;
    padding: .95rem 1rem .95rem 2.8rem;
    background: var(--maya-ea-cream-light);
    border: 1px solid var(--maya-ea-beige);
    border-radius: 10px;
    color: var(--maya-ea-text);
    font-size: 1rem;
    line-height: 1.4;
    transition: border-color .2s, box-shadow .2s, background .2s;
    font-family: inherit;
}

.maya-ea-form input::placeholder,
.maya-ea-form textarea::placeholder {
    color: var(--maya-ea-text-muted);
}

.maya-ea-form input:focus,
.maya-ea-form textarea:focus,
.maya-ea-form select:focus {
    background: var(--maya-ea-surface);
    border-color: var(--maya-ea-gold);
    outline: 0;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--maya-ea-gold) 14%, transparent);
}

.maya-ea-form textarea {
    resize: vertical;
    min-height: 110px;
}

.maya-ea-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a055' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 18px 18px;
    padding-right: 2.5rem;
    cursor: pointer;
}

.maya-ea-form input[type="number"] {
    appearance: textfield;
}

.maya-ea-form input[type="number"]::-webkit-outer-spin-button,
.maya-ea-form input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* CTA */
.maya-ea-button {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: 100%;
    min-height: 52px;
    padding: 1rem 1.5rem;
    background: var(--maya-ea-gold);
    color: var(--maya-ea-navy);
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    transition: background .2s, transform .1s, box-shadow .2s;
    text-decoration: none;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--maya-ea-gold) 25%, transparent);
}

/* C.4.8A-FIX5A: primaire formulier-submits gebruiken rustige
   tekstlabels — het decoratieve vliegtuig-icoon (::before) is
   verwijderd uit alle .maya-ea-button contexten. */

.maya-ea-button:hover {
    background: var(--maya-ea-gold-hover);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--maya-ea-gold) 32%, transparent);
}

.maya-ea-button:focus-visible {
    outline: 2px solid var(--maya-ea-navy);
    outline-offset: 2px;
}

.maya-ea-button:active {
    transform: translateY(1px);
}

/* Privacy */
.maya-ea-privacy {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin: 1rem 0 0;
    font-size: .85rem;
    color: var(--maya-ea-text-muted);
    text-align: center;
}

.maya-ea-privacy-icon {
    display: inline-flex;
    align-items: center;
    color: var(--maya-ea-gold);
}

.maya-ea-privacy-icon svg {
    width: 16px;
    height: 16px;
}

/* ───────────────────────────────────────────────────────────────────────────
   Tablet / Bricks overflow fix
   ───────────────────────────────────────────────────────────────────────────
   De daadwerkelijke clipping op iPad/tablet kwam van Bricks divs met
   min-height: 600px; overflow: hidden; (maya-homepage-builder duo_kal/pod).
   Bricks _cssCustom gebruikt #brxe-<id> !important, dus we forceren deze
   regel met de hoogst mogelijke class-level specificity via :not(#_).
   Scope: alleen Bricks ancestors die een .maya-ea-registration bevatten.
   ─────────────────────────────────────────────────────────────────────────── */
body .brxe-section:has(.maya-ea-registration):not(#_),
body .brxe-container:has(.maya-ea-registration):not(#_),
body .brxe-div:has(.maya-ea-registration):not(#_),
body .brxe-block:has(.maya-ea-registration):not(#_) {
    min-height: unset !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Messages */
.maya-ea-form-errors,
.maya-ea-success,
.maya-ea-notice {
    grid-column: 1 / -1;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin: 0 0 1.5rem;
    font-size: .95rem;
    line-height: 1.5;
}

.maya-ea-form-errors {
    background: var(--maya-ea-error-bg);
    color: var(--maya-ea-error);
    border: 1px solid #fed7d7;
}

.maya-ea-form-errors ul {
    margin: 0;
    padding-left: 1.25rem;
}

.maya-ea-success {
    background: var(--maya-ea-success-bg);
    color: var(--maya-ea-success);
    border: 1px solid color-mix(in srgb, var(--maya-ea-success) 30%, var(--maya-ea-success-bg));
}

.maya-ea-notice {
    background: var(--maya-ea-cream);
    color: var(--maya-ea-text);
    border: 1px solid var(--maya-ea-beige);
    padding: 1rem 1.25rem;
}

/* Responsive */
@media (max-width: 600px) {
    .maya-ea-registration {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .maya-ea-form-title {
        font-size: 1.65rem;
    }

    .maya-ea-form-title-icon {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
    }

    .maya-ea-form-title-icon svg {
        width: 20px;
        height: 20px;
    }

    .maya-ea-event-card {
        padding: 1.35rem;
    }

    .maya-ea-form input,
    .maya-ea-form select,
    .maya-ea-form textarea {
        padding-left: 2.5rem;
    }

    .maya-ea-input-icon svg,
    .maya-ea-select-icon svg {
        width: 16px;
        height: 16px;
    }
}

/* ───────────────────────────────────────────────────────────────────────────
   Fase 7C-C.4.1 — Contact/Product/Dienst radio groups + form intro/trust
   ─────────────────────────────────────────────────────────────────────────── */

.maya-ea-form-intro {
    margin: -0.5rem 0 1.5rem;
    color: var(--maya-ea-text-muted);
    font-size: 1rem;
    line-height: 1.55;
}

.maya-ea-privacy {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin: 1rem 0 0;
    font-size: .85rem;
    color: var(--maya-ea-text-muted);
    text-align: center;
    line-height: 1.5;
}

.maya-ea-fieldset {
    grid-column: 1 / -1;
    border: none;
    padding: 0;
    margin: 0;
    min-width: 0;
}

.maya-ea-fieldset__legend,
.maya-ea-field .maya-ea-fieldset__legend {
    font-size: .92rem;
    font-weight: 600;
    color: var(--maya-ea-text);
    margin-bottom: .55rem;
    padding: 0;
    width: 100%;
}

.maya-ea-select-placeholder {
    font-size: .9rem;
    color: var(--maya-ea-text-muted);
    margin-bottom: .5rem;
}

.maya-ea-radios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .6rem;
}

.maya-ea-radio-label,
.maya-ea-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .75rem 1rem;
    background: var(--maya-ea-cream-light);
    border: 1px solid var(--maya-ea-beige);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    font-size: .95rem;
    color: var(--maya-ea-text);
}

.maya-ea-radio-label:hover,
.maya-ea-checkbox-label:hover {
    background: var(--maya-ea-surface);
    border-color: var(--maya-ea-gold);
}

.maya-ea-radio-label input[type="radio"],
.maya-ea-checkbox-label input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: .15rem;
    accent-color: var(--maya-ea-gold);
}

.maya-ea-radios .maya-ea-radio-label {
    align-items: center;
}

.maya-ea-radios .maya-ea-radio-label input[type="radio"] {
    margin-top: 0;
}

.maya-ea-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .6rem;
}

.maya-ea-checkboxes .maya-ea-checkbox-label {
    margin: 0;
}

@media (max-width: 400px) {
    .maya-ea-registration {
        padding: 1.25rem 1rem;
        border-radius: 16px;
    }

    .maya-ea-form-title {
        font-size: 1.45rem;
        gap: .5rem;
    }

    .maya-ea-form-intro {
        font-size: .95rem;
    }

    .maya-ea-form {
        gap: 1rem;
    }

    .maya-ea-button {
        padding: .9rem 1rem;
    }

    .maya-ea-privacy {
        flex-wrap: wrap;
    }
}

/* Optional interesse organisation / location */
.maya-ea-interesse-suggestion {
    grid-column: 1 / -1;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--maya-ea-cream);
    border: 1px dashed var(--maya-ea-beige-dark);
    border-radius: 16px;
    min-width: 0;
}

.maya-ea-suggestion-title {
    margin: 0 0 .5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--maya-ea-navy);
}

.maya-ea-suggestion-title .maya-ea-optional,
.maya-ea-interesse-suggestion .maya-ea-optional {
    color: var(--maya-ea-text-muted);
    font-weight: 400;
}

.maya-ea-suggestion-intro {
    margin: 0 0 1.25rem;
    font-size: .9rem;
    color: var(--maya-ea-text-muted);
    line-height: 1.5;
}

.maya-ea-suggestion-fields {
    display: flex;
    gap: 1.25rem;
}

.maya-ea-suggestion-fields .maya-ea-field {
    flex: 1 1 0;
    min-width: 0;
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .maya-ea-suggestion-fields {
        flex-direction: column;
        gap: 1rem;
    }

    .maya-ea-suggestion-fields .maya-ea-field {
        flex: 0 0 auto;
    }
}

/* Interesse intro with lead + sub */
.maya-ea-form-intro--interesse {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin-bottom: 1.25rem;
}

.maya-ea-intro-lead {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--maya-ea-navy);
    line-height: 1.3;
}

.maya-ea-intro-sub {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    color: var(--maya-ea-text-muted);
    line-height: 1.5;
}

@media (max-width: 480px) {
    .maya-ea-intro-lead {
        font-size: 1.15rem;
    }

    .maya-ea-intro-sub {
        font-size: .95rem;
    }
}

/* ───────────────────────────────────────────────────────────────────────────
   Contactformulieren (Fase 7B)
   Gescoped binnen .maya-ea-registration; geen globale overrides.
   ─────────────────────────────────────────────────────────────────────────── */

.maya-ea-checkboxes {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: .5rem 0;
}

.maya-ea-checkbox-label {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-weight: 400;
    cursor: pointer;
    color: var(--maya-ea-text);
}

.maya-ea-checkbox-label input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--maya-ea-gold);
    cursor: pointer;
}

.maya-ea-form fieldset {
    border: none;
    padding: 0;
    margin: 0;
    min-width: 0;
}

.maya-ea-form legend {
    font-size: .92rem;
    font-weight: 600;
    color: var(--maya-ea-text);
    margin-bottom: .45rem;
}

.maya-ea-field .maya-ea-price {
    color: var(--maya-ea-text-muted);
    font-size: .9rem;
    font-weight: 400;
    margin-left: .35rem;
}

/* Fase 7C-C.4.5 — product selectiekaarten, samenvatting en totaal */

.maya-ea-product-total {
    grid-column: 1 / -1;
    margin: 1rem 0;
    padding: 1.25rem;
    background: var(--maya-ea-cream-light);
    border: 1px solid var(--maya-ea-beige);
    border-radius: 12px;
}

.maya-ea-product-total--empty .maya-ea-product-total__lines,
.maya-ea-product-total--empty .maya-ea-product-total__sum,
.maya-ea-product-total__empty {
    display: none;
}

.maya-ea-product-total--empty .maya-ea-product-total__empty {
    display: block;
    margin: .5rem 0 0;
    color: var(--maya-ea-text-muted);
    font-size: .95rem;
}

.maya-ea-product-total__title {
    margin: 0 0 .5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--maya-ea-navy);
}

.maya-ea-product-total__lines {
    list-style: none;
    margin: 0 0 .75rem;
    padding: 0;
}

.maya-ea-product-total__line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .4rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--maya-ea-text) 4%, transparent);
    font-size: .95rem;
}

.maya-ea-product-total__line:last-child {
    border-bottom: none;
}

.maya-ea-product-total__line-label {
    color: var(--maya-ea-text);
    line-height: 1.4;
}

.maya-ea-product-total__line-price {
    color: var(--maya-ea-navy);
    font-weight: 600;
    white-space: nowrap;
}

.maya-ea-product-total__sum {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: .75rem;
    border-top: 2px solid var(--maya-ea-gold);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--maya-ea-navy);
}

.maya-ea-product-total__sum-label {
    font-weight: 600;
}

.maya-ea-product-total__amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--maya-ea-gold);
    white-space: nowrap;
}

.maya-ea-product-total__note {
    margin: .75rem 0 0;
    font-size: .8rem;
    color: var(--maya-ea-text-muted);
    line-height: 1.4;
}

.maya-ea-product-options {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

/* C.4.7A.2: de WRAPPER is de visuele kaart; quantity en statusbadge
   zitten erin. De bovenste label-zone is de klikbare selectie. */
.maya-ea-product-option {
    display: flex;
    flex-direction: column;
    padding: 0;
    border: 1px solid var(--maya-ea-beige);
    border-radius: 12px;
    background: var(--maya-ea-cream-light);
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.maya-ea-product-option:hover {
    border-color: var(--maya-ea-gold-light);
}

.maya-ea-product-option--selected {
    border-color: var(--maya-ea-gold);
    background: color-mix(in srgb, var(--maya-ea-gold) 4%, var(--maya-ea-surface));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--maya-ea-gold) 12%, transparent);
}

/* Statusbadge: rustige pill bovenaan, niet naast de prijs. */
.maya-ea-product-option__status {
    display: none;
    align-self: flex-start;
    margin: .7rem 1.1rem 0;
    padding: .18rem .6rem;
    border-radius: 999px;
    border: 1px solid var(--maya-ea-gold-light);
    background: color-mix(in srgb, var(--maya-ea-gold) 14%, transparent);
    color: var(--maya-ea-navy);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1.4;
}

.maya-ea-product-option--selected .maya-ea-product-option__status {
    display: inline-flex;
}

.maya-ea-product-option__card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.maya-ea-product-option--selected .maya-ea-product-option__card {
    padding-top: .75rem;
}

/* C.4.7A.1: compacte productafbeelding links (optioneel). */
.maya-ea-product-option__media {
    flex: 0 0 auto;
    width: 4rem;
    height: 4rem;
    border-radius: 10px;
    overflow: hidden;
    background: var(--maya-ea-surface);
    border: 1px solid var(--maya-ea-beige);
}

.maya-ea-product-option__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.maya-ea-product-option__card:hover {
    background: color-mix(in srgb, var(--maya-ea-surface) 60%, transparent);
    border-radius: 12px;
}

.maya-ea-product-option:focus-within {
    border-color: var(--maya-ea-gold);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--maya-ea-gold) 12%, transparent);
}

.maya-ea-product-option__main {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: .85rem;
    min-width: 0;
}

.maya-ea-product-option__main input[type="radio"],
.maya-ea-product-option__main input[type="checkbox"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
}

/* C.4.7A.2: de ronde check-badge naast de prijs is verwijderd.
   Selectie = GESELECTEERD-statusbadge + gouden rand + warme tint. */

.maya-ea-product-option__text {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
}

.maya-ea-product-option__name {
    font-weight: 600;
    color: var(--maya-ea-navy);
    word-break: break-word;
    line-height: 1.3;
}

.maya-ea-product-option__description {
    font-size: .85rem;
    color: var(--maya-ea-text-muted);
    line-height: 1.3;
}

.maya-ea-product-option__price {
    color: var(--maya-ea-gold);
    font-weight: 700;
    font-size: 1.05rem;
    white-space: nowrap;
    text-align: right;
}

/* C.4.7A.2: quantity zit in de productkaart, alleen bij selectie. */
.maya-ea-product-option__quantity {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    padding: .8rem 1.1rem 1rem;
    border-top: 1px solid color-mix(in srgb, var(--maya-ea-text) 5%, transparent);
}

.maya-ea-product-option__quantity[hidden] {
    display: none !important;
}

.maya-ea-product-option--selected .maya-ea-product-option__quantity {
    display: flex;
}

.maya-ea-product-option__quantity-label {
    font-size: .85rem;
    color: var(--maya-ea-text-muted);
}

.maya-ea-product-option__quantity-controls {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}

.maya-ea-quantity-btn {
    width: 2.2rem;
    height: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--maya-ea-beige);
    background: var(--maya-ea-surface);
    border-radius: 8px;
    color: var(--maya-ea-navy);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: background-color .15s ease, border-color .15s ease;
}

.maya-ea-quantity-btn:hover {
    background: var(--maya-ea-cream);
    border-color: var(--maya-ea-gold-light);
}

.maya-ea-quantity-btn:focus-visible {
    outline: 2px solid var(--maya-ea-gold);
    outline-offset: 2px;
}

.maya-ea-quantity-input {
    width: 3.2rem;
    height: 2.2rem;
    text-align: center;
    border: 1px solid var(--maya-ea-beige);
    border-radius: 8px;
    background: var(--maya-ea-surface);
    color: var(--maya-ea-navy);
    font-weight: 600;
    font-size: 1rem;
    -moz-appearance: textfield;
}

.maya-ea-quantity-input:focus {
    border-color: var(--maya-ea-gold);
    outline: 0;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--maya-ea-gold) 12%, transparent);
}

.maya-ea-quantity-input::-webkit-outer-spin-button,
.maya-ea-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

@media (max-width: 480px) {
    .maya-ea-product-option__card {
        flex-wrap: wrap;
        gap: .6rem .75rem;
        align-items: flex-start;
    }

    .maya-ea-product-option__media {
        width: 3rem;
        height: 3rem;
    }

    .maya-ea-product-option__main {
        flex: 1 1 calc(100% - 4.5rem);
    }

    .maya-ea-product-option__price {
        text-align: left;
        flex-basis: 100%;
        padding-left: 0;
    }

    .maya-ea-product-option__card:has(.maya-ea-product-option__media) .maya-ea-product-option__price {
        padding-left: 3.75rem;
    }

    .maya-ea-product-option__quantity {
        justify-content: flex-start;
    }

    .maya-ea-product-total__sum {
        flex-direction: column;
        align-items: flex-start;
        gap: .25rem;
    }

    .maya-ea-product-total__amount {
        font-size: 1.5rem;
    }
}

/* Fase 7C-C.4.6 — Gegevens per persoon + korting */
/* Fase 7C-C.4.7A — premium polish: één lichte surface, geen doos-in-doos */

/* C.4.7A.2B: "Voor wie?" bestaat alleen als een persoonlijk product
   geselecteerd is — sectie én containers starten/verdwijnen via [hidden]. */
.maya-ea-form-section[hidden],
.maya-ea-person-profiles[hidden] {
    display: none !important;
}

.maya-ea-person-profiles {
    grid-column: 1 / -1;
    margin: 0;
    padding: 1.35rem;
    background: var(--maya-ea-cream-light);
    border: 1px solid var(--maya-ea-beige);
    border-radius: 12px;
}

.maya-ea-person-profiles__title {
    margin: 0 0 .5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--maya-ea-navy);
}

.maya-ea-person-profiles__intro,
.maya-ea-person-profiles__empty {
    margin: 0 0 1rem;
    color: var(--maya-ea-text-muted);
    font-size: .95rem;
    line-height: 1.4;
}

.maya-ea-person-profiles__empty {
    margin-bottom: 0;
}

/* Productgroep: geen eigen kaart meer — typografie + hairline */
.maya-ea-person-profile-group {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

/* C.4.7A.2A: productgroepen scheiden duidelijker dan personen binnen een
   groep — meer witruimte + een iets stevigere (maar nog rustige) divider. */
.maya-ea-person-profile-group + .maya-ea-person-profile-group {
    margin-top: 3rem;
    padding-top: 2.25rem;
    border-top: 2px solid color-mix(in srgb, var(--maya-ea-gold) 22%, transparent);
}

/* C.4.7A.1/A.2A: productgroepkop — naam + aantal + compacte mini-thumbnail. */
.maya-ea-person-profile-group__head {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: 1.15rem;
}

.maya-ea-person-profile-group__thumb {
    flex: 0 0 auto;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--maya-ea-beige);
    background: var(--maya-ea-surface);
}

.maya-ea-person-profile-group__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.maya-ea-person-profile-group__titles {
    min-width: 0;
}

.maya-ea-person-profile-group__heading {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--maya-ea-navy);
    padding-bottom: 0;
    border-bottom: none;
    line-height: 1.3;
}

.maya-ea-person-profile-group__meta {
    margin: .15rem 0 0;
    font-size: .85rem;
    font-weight: 400;
    color: var(--maya-ea-text-muted);
}

.maya-ea-person-profile-group__count {
    font-weight: 400;
    font-size: .85rem;
    color: var(--maya-ea-text-muted);
    margin-left: .35rem;
}

/* C.4.7A.1: "Voor: …" persoonsnamen onder de productregel. */
.maya-ea-product-total__line {
    flex-wrap: wrap;
}

.maya-ea-product-total__line-names {
    flex: 0 0 100%;
    font-size: .85rem;
    color: var(--maya-ea-text-muted);
    line-height: 1.4;
}

/* Persoonsblok: geen kaart — eyebrow + velden + hairline tussen personen */
.maya-ea-person-profile {
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    display: grid;
    gap: .85rem;
}

.maya-ea-person-profile + .maya-ea-person-profile {
    margin-top: 1.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid color-mix(in srgb, var(--maya-ea-text) 6%, transparent);
}

.maya-ea-person-profile__heading {
    /* C.4.8A-FIX5: rustiger label — geen geforceerde uppercase. */
    margin: 0 0 .15rem;
    font-size: .88rem;
    font-weight: 700;
    color: var(--maya-ea-text-muted);
    letter-spacing: .01em;
}

.maya-ea-person-profile__field {
    margin: 0;
}

.maya-ea-person-profile__label {
    display: block;
    margin: 0 0 .35rem;
    font-size: .88rem;
    font-weight: 600;
    color: var(--maya-ea-navy);
}

/* Zelfde designsysteem-familie als de hoofdvelden: crème surface,
   beige border, 10px radius, gouden focus. */
.maya-ea-person-profile__input {
    width: 100%;
    min-height: 50px;
    padding: .8rem .95rem;
    border: 1px solid var(--maya-ea-beige);
    border-radius: 10px;
    background: var(--maya-ea-cream-light);
    color: var(--maya-ea-text);
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.4;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.maya-ea-person-profile__input::placeholder {
    color: var(--maya-ea-text-muted);
}

.maya-ea-person-profile__input:focus {
    background: var(--maya-ea-surface);
    border-color: var(--maya-ea-gold);
    outline: 0;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--maya-ea-gold) 14%, transparent);
}

.maya-ea-person-profile__input[type="date"] {
    color-scheme: light;
}

.maya-ea-product-total__line-detail {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    align-items: flex-end;
    text-align: right;
}

.maya-ea-product-total__line-base {
    font-size: .85rem;
    color: var(--maya-ea-text-muted);
    text-decoration: line-through;
}

.maya-ea-product-total__line-discount {
    font-size: .85rem;
    color: var(--maya-ea-success);
    font-weight: 600;
}

@media (min-width: 640px) {
    .maya-ea-person-profile {
        grid-template-columns: 1fr 1fr;
        gap: 1rem .85rem;
    }

    .maya-ea-person-profile__heading,
    .maya-ea-person-profile__self,
    .maya-ea-person-profile__requester,
    .maya-ea-person-profile__switch {
        grid-column: 1 / -1;
    }

    .maya-ea-person-profile__field--birth_date {
        grid-column: 1 / -1;
        max-width: 19rem;
    }
}

@media (max-width: 480px) {
    .maya-ea-person-profiles {
        padding: 1.1rem;
    }

    .maya-ea-product-total__line-detail {
        align-items: flex-start;
        text-align: left;
        width: 100%;
    }
}

/* Fase 7C-C.4.7: Simple Product Builder - sectie-indeling */
.maya-ea-form-section {
    grid-column: 1 / -1;
    margin: 0;
}

.maya-ea-form-section__title {
    margin: 2rem 0 1rem;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--maya-ea-navy);
    letter-spacing: .01em;
    line-height: 1.3;
}

.maya-ea-form-section:first-of-type .maya-ea-form-section__title {
    margin-top: 0;
}

.maya-ea-form-section__fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.maya-ea-form-section__fields .maya-ea-person-profiles {
    margin: 0;
}

/* Het samenvattingsblok draagt zelf de sectie-rol. */
.maya-ea-product-total.maya-ea-form-section--summary {
    margin-top: 1.75rem;
}

.maya-ea-product-total.maya-ea-form-section--summary .maya-ea-product-total__title {
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: .01em;
}

/* "Dit ben ik zelf" — premium selecteerbare kaart; native checkbox blijft
   de accessibility state maar is visueel verborgen (C.4.7A.1). */
.maya-ea-person-profile__self {
    position: relative;
    display: flex;
    align-items: center;
    gap: .7rem;
    margin: 0;
    padding: .7rem .85rem;
    border: 1px solid var(--maya-ea-beige);
    border-radius: 10px;
    background: var(--maya-ea-surface);
    font-size: .92rem;
    color: var(--maya-ea-navy);
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
    -webkit-tap-highlight-color: transparent;
}

.maya-ea-person-profile__self[hidden] {
    display: none;
}

.maya-ea-person-profile__self:hover {
    border-color: var(--maya-ea-gold-light);
    background: color-mix(in srgb, var(--maya-ea-gold) 4%, var(--maya-ea-surface));
}

.maya-ea-person-profile__self--selected,
.maya-ea-person-profile__self:has(.maya-ea-person-profile__self-input:checked) {
    border-color: var(--maya-ea-gold);
    background: color-mix(in srgb, var(--maya-ea-gold) 8%, transparent);
}

.maya-ea-person-profile__self:focus-within {
    border-color: var(--maya-ea-gold);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--maya-ea-gold) 14%, transparent);
}

/* Native checkbox: toegankelijk verborgen, blijft keyboard/focus-capabel. */
.maya-ea-person-profile__self-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
}

/* Subtiele check-indicator: geen vierkant vinkvak. */
.maya-ea-person-profile__self-check {
    flex: 0 0 auto;
    width: 1.35rem;
    height: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid var(--maya-ea-beige);
    background: var(--maya-ea-cream-light);
    color: transparent;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.maya-ea-person-profile__self-check::after {
    content: '✓';
    font-size: .8rem;
    font-weight: 700;
    line-height: 1;
}

.maya-ea-person-profile__self--selected .maya-ea-person-profile__self-check,
.maya-ea-person-profile__self:has(.maya-ea-person-profile__self-input:checked) .maya-ea-person-profile__self-check {
    border-color: var(--maya-ea-gold);
    background: var(--maya-ea-gold);
    color: var(--maya-ea-navy);
}

.maya-ea-person-profile__self-text {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    line-height: 1.35;
    min-width: 0;
}

.maya-ea-person-profile__self-title {
    font-weight: 600;
}

.maya-ea-person-profile__self-desc {
    font-weight: 400;
    font-size: .85rem;
    color: var(--maya-ea-text-muted);
}

.maya-ea-person-profile__self-desc--on {
    color: var(--maya-ea-navy);
}

/* C.4.7A.2A: requester-naam is presentatie (geen invoerveld-look).
   Naam komt uit Jouw gegevens; alleen ontbrekende velden worden gevraagd. */
.maya-ea-person-profile__requester {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .1rem 0 .15rem;
    border: none;
    background: transparent;
}

.maya-ea-person-profile__requester-name {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--maya-ea-navy);
    line-height: 1.3;
}

.maya-ea-person-profile__requester-name--empty {
    font-weight: 400;
    font-size: .95rem;
    color: var(--maya-ea-text-muted);
}

/* Rustige schakelacties: "Deze is voor iemand anders" / "Deze is voor …" */
.maya-ea-person-profile__switch {
    justify-self: start;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    font-size: .88rem;
    color: var(--maya-ea-navy);
    text-decoration: underline;
    text-decoration-color: var(--maya-ea-gold);
    text-underline-offset: 3px;
    cursor: pointer;
}

.maya-ea-person-profile__switch:hover {
    color: var(--maya-ea-gold);
}

.maya-ea-person-profile__switch:focus-visible {
    outline: 2px solid var(--maya-ea-gold);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Overgenomen velden: duidelijk "af" maar niet disabled. */
.maya-ea-person-profile__input--self {
    background: var(--maya-ea-surface);
    border-color: var(--maya-ea-beige);
    color: var(--maya-ea-text-muted);
}

/* Quantity control: verfijnde gelijke hoogtes + ruimere touch targets */
.maya-ea-quantity-btn {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 10px;
    font-size: 1.15rem;
}

.maya-ea-quantity-input {
    width: 3.4rem;
    height: 2.4rem;
    border-radius: 10px;
    background: var(--maya-ea-cream-light);
}

@media (max-width: 640px) {
    .maya-ea-quantity-btn {
        width: 2.75rem;
        height: 2.75rem;
    }

    .maya-ea-quantity-input {
        height: 2.75rem;
        width: 3.6rem;
    }
}


/* =================================================================
 * C.4.8 —  Vraag stellen actieblok
 * Rustige secundaire actie; opent op dezelfde plek (geen modal,
 * geen nieuwe pagina). Het hoofdformulier blijft onaangeroerd.
 * ================================================================= */

.maya-ea-question-action {
    /* C.4.8A-FIX4: ruimere overgang naar de volgende aanvraagsectie. */
    margin-top: .75rem;
    margin-bottom: 1.5rem;
}

.maya-ea-question-action__teaser {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    padding: .65rem 0;
    border-top: 1px dashed var(--maya-ea-beige-dark);
}

.maya-ea-question-action__teaser-title {
    margin: 0;
    font-size: .98rem;
    font-weight: 600;
    color: var(--maya-ea-navy);
}

.maya-ea-question-action__open {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem 1rem;
    border: 1px solid var(--maya-ea-gold);
    border-radius: 999px;
    background: transparent;
    color: var(--maya-ea-navy);
    font: inherit;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    min-height: 44px;
    transition: background .15s ease, color .15s ease;
}

.maya-ea-question-action__open:hover {
    /* C.4.8A-FIX4: token-afgeleide tint i.p.v. hardcoded goud. */
    background: color-mix(in srgb, var(--maya-ea-gold) 12%, transparent);
    color: var(--maya-ea-navy);
}

.maya-ea-question-action__open:focus-visible {
    outline: 2px solid var(--maya-ea-gold);
    outline-offset: 2px;
}

.maya-ea-question-action__panel {
    margin-top: .25rem;
    padding: 1rem 0 1.25rem;
    border-top: 1px solid var(--maya-ea-beige);
}

.maya-ea-question-action__open-title {
    margin: 0 0 .35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--maya-ea-navy);
    letter-spacing: .01em;
}

.maya-ea-question-action__intro {
    margin: 0 0 .9rem;
    color: var(--maya-ea-text-muted);
    font-size: .95rem;
}

.maya-ea-question-action__label {
    display: block;
    margin-bottom: .35rem;
    font-weight: 600;
    font-size: .95rem;
    color: var(--maya-ea-navy);
}

.maya-ea-question-action__textarea {
    width: 100%;
    min-height: 7rem;
    padding: .7rem .85rem;
    border: 1px solid var(--maya-ea-beige-dark);
    border-radius: 12px;
    background: var(--maya-ea-cream-light);
    font: inherit;
    color: var(--maya-ea-text);
    resize: vertical;
}

.maya-ea-question-action__textarea:focus {
    border-color: var(--maya-ea-gold);
    outline: 2px solid color-mix(in srgb, var(--maya-ea-gold) 25%, transparent);
    outline-offset: 0;
    background: var(--maya-ea-surface);
}

.maya-ea-question-action__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem 1rem;
    margin-top: .85rem;
}

.maya-ea-question-action__submit {
    min-height: 44px;
}

.maya-ea-question-action__close {
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    font-size: .9rem;
    color: var(--maya-ea-navy);
    text-decoration: underline;
    text-decoration-color: var(--maya-ea-gold);
    text-underline-offset: 3px;
    cursor: pointer;
    min-height: 44px;
}

.maya-ea-question-action__close:hover {
    color: var(--maya-ea-gold);
}

.maya-ea-question-action__success {
    padding: .9rem 1rem;
    border: 1px solid color-mix(in srgb, var(--maya-ea-success) 35%, transparent);
    border-radius: 12px;
    background: var(--maya-ea-success-bg);
    /* C.4.8A-FIX4: extra ademruimte richting de volgende sectie. */
    margin-bottom: .5rem;
}

.maya-ea-question-action__success-title {
    margin: 0 0 .25rem;
    font-weight: 700;
    color: var(--maya-ea-success);
}

.maya-ea-question-action__success-text {
    margin: 0;
    color: var(--maya-ea-text);
    font-size: .95rem;
}

.maya-ea-question-action[hidden],
.maya-ea-question-action__teaser[hidden],
.maya-ea-question-action__panel[hidden] {
    display: none !important;
}

@media (max-width: 640px) {
    .maya-ea-question-action__teaser {
        flex-direction: column;
        align-items: stretch;
    }

    .maya-ea-question-action__open {
        justify-content: center;
    }
}
