/* ==========================================================
   VIAMET SURVEY — BASE STYLESHEET
   Versie: 1.3.0 (14/07/2026)
   
   Bevat: design system, layout, alle vraagtype-componenten,
          navigatie, footer en mobiele stijlen.
   
   Gebruik: voeg <link rel="stylesheet" href="../css/base.css">
            toe aan elke survey-pagina.
   ========================================================== */


/* ----------------------------------------------------------
   1. DESIGN SYSTEM (pas hier kleuren & typografie aan)
   ---------------------------------------------------------- */
:root {
    /* Primaire kleuren */
    --primary-color: #5d4370;        /* Tekstkleur, randen, accenten */
    --primary-bgcolor: #5d4370;      /* Achtergrond knoppen en geselecteerde keuzes */
    --slider-color: #C4006D;         /* Donkerder roze — 5.8:1 contrast op wit (WCAG AA ✅) */
    --primary-hover: #4a3559;
    --accent-color: #a1b028;
    --success-light: rgba(161, 176, 40, 0.08);

    /* Achtergronden */
    --bg-page: #FAF9F5;
    --bg-card: #ffffff;
    
    /* Gray scale (systematisch) */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-600: #64748b;
    --gray-900: #0f172a;
    
    /* Tekst (via grays) */
    --text-main: var(--gray-900);
    --text-muted: var(--gray-600);
    
    /* Borders */
    --border-light: var(--gray-200);
    --tile-border-width: 2px;    /* Randdikte van tegel-achtige antwoordknoppen (nps-label, mc-label, custom-radio) */
    
    /* Error/Warning kleuren */
    --error-color: #dc2626;
    --error-light: rgba(220, 38, 38, 0.1);

    /* NPS kleuren */
    --nps-red: #E24355;
    --nps-orange: #F1772E;
    --nps-green: #97BD3B;

    /* Overig */
    --error-bg: rgba(226, 67, 85, 0.05);
    --solid-hover: #f4f2f6;
    
    /* Typografie schaal */
    --text-xs: 0.75rem;      /* 12px - captions, footnotes */
    --text-sm: 0.875rem;     /* 14px - labels, hints */
    --text-base: 1rem;       /* 16px - body, buttons */
    --text-lg: 1.125rem;     /* 18px - headings */
    --text-xl: 1.5rem;       /* 24px - page titles */
    --text-2xl: 1.875rem;    /* 30px - hero titles */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Skip navigation voor toetsenbord gebruikers */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-bgcolor);
    color: #ffffff;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    z-index: 9999;
    border-radius: 0 0 8px 0;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.5;
    padding-bottom: 40px;
}

/* ----------------------------------------------------------
   2. VERBETERDE FOCUS STATES VOOR TOEGANKELIJKHEID
   ---------------------------------------------------------- */
   
/* Algemene focus state — alleen voor knoppen, links en interactieve elementen */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Links en buttons */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

/* Radio en checkbox labels */
input[type="radio"]:focus-visible + label,
input[type="checkbox"]:focus-visible + label {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Textarea en text inputs */
textarea:focus-visible,
input[type="text"]:focus-visible,
input[type="email"]:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Screen reader only tekst (visueel verborgen maar toegankelijk) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Screen reader only tekst die zichtbaar wordt bij focus */
.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
}


/* ----------------------------------------------------------
   2. TOP BAR & HEADER
   ---------------------------------------------------------- */
.top-bar {
    background-color: #ffffff;
    width: 100%;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    margin-bottom: 30px;
    position: sticky;
    top: 0;
    z-index: 50;
}
/* Gebruik .top-bar--static op pagina's met een matrix/stellingen-tabel.
   De sticky tabelheader conflicteert anders met de sticky top-bar. */
.top-bar--static { position: static; }

.header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 48px;
}

/* Tekst-logo (fallback als er geen afbeelding is) */
.logo { font-size: 28px; font-weight: 300; color: var(--text-main); letter-spacing: -1px; }
.logo span { color: var(--accent-color); font-weight: 600; }

/* Afbeelding-logo */
.logo-container { display: flex; align-items: center; max-width: 60%; }
.client-logo { max-height: 48px; max-width: 100%; width: auto; object-fit: contain; display: block; }

.header-title { font-size: 1.1rem; font-weight: 600; color: var(--text-muted); }

/* Wrapper voor titel + taalswitcher samen aan de rechterkant.
   Zo blijft logo-links / rest-rechts behouden, ook met een 3e element. */
.header-right { display: flex; align-items: center; gap: 14px; min-width: 0; }
.header-right .header-title {
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Compacte taalswitcher: eigen dropdown-component (geen native <select>,
   want die kan geen vlaggetjes tonen in de opengeklapte lijst). */
.lang-switcher { position: relative; flex-shrink: 0; }

.lang-switcher-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-muted);
    background-color: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    padding: 5px 8px 5px 6px;
    line-height: 1.3;
    cursor: pointer;
}
.lang-switcher-trigger:hover { border-color: var(--primary-color); color: var(--primary-color); }
.lang-switcher-trigger:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }
.lang-switcher-trigger .lang-chevron { transition: transform 0.15s ease; flex-shrink: 0; }
.lang-switcher-trigger[aria-expanded="true"] .lang-chevron { transform: rotate(180deg); }

/* Vlaggetje: eigen kadertje zodat ook lichte vlaggen (PL, FR-wit) een rand hebben */
.lang-flag {
    display: inline-flex;
    width: 18px;
    height: 12px;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.15);
    flex-shrink: 0;
}
.lang-flag svg { display: block; width: 100%; height: 100%; }

.lang-switcher-list {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 170px;
    max-width: calc(100vw - 40px);
    background: #ffffff;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
    padding: 4px;
    margin: 0;
    list-style: none;
    z-index: 60;
}
.lang-switcher-list[hidden] { display: none; }
.lang-switcher-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
}
.lang-switcher-list li:hover,
.lang-switcher-list li:focus { background-color: var(--solid-hover); outline: none; }
.lang-switcher-list li[aria-selected="true"] { font-weight: 700; color: var(--primary-color); }
.lang-switcher-list li[aria-selected="true"]::after {
    content: '';
    margin-left: auto;
    width: 6px;
    height: 10px;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* Fallback zonder JavaScript: simpele lijst met links */
.lang-switcher-noscript {
    position: absolute; top: calc(100% + 6px); right: 0;
    min-width: 160px; background: #ffffff; border: 1px solid var(--gray-300);
    border-radius: 8px; padding: 6px; margin: 0; list-style: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.14); z-index: 60;
}
.lang-switcher-noscript li { padding: 4px 8px; }
.lang-switcher-noscript a { color: var(--text-main); text-decoration: none; font-size: var(--text-sm); }
.lang-switcher-noscript a:hover { color: var(--primary-color); text-decoration: underline; }


/* ----------------------------------------------------------
   3. VOORTGANGSBALK
   ---------------------------------------------------------- */
.progress-wrapper { max-width: 1200px; margin: 0 auto 20px; padding: 0 40px; }
.progress-text { display: block; text-align: right; font-size: 0.85rem; color: var(--text-muted); font-weight: 600; margin-bottom: 6px; }
.progress-track { width: 100%; background-color: var(--border-light); height: 6px; border-radius: 3px; }
.progress-bar { height: 100%; background-color: var(--slider-color); border-radius: 3px; transition: width 0.4s ease; }


/* ----------------------------------------------------------
   4. CARD LAYOUT
   ---------------------------------------------------------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.main-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 50px ;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.01);
}


/* ----------------------------------------------------------
   5. VRAAGBLOKKEN (gedeeld door alle losse vraagtype-pagina's)
   ---------------------------------------------------------- */
.question-block {
    margin-bottom: 40px;
    padding-top: 12px;
    padding-bottom: 12px;
    border-top: 1px solid var(--border-light);
    transition: background-color 0.3s ease;
}

/* Fieldset als question-block (voor toegankelijkheid) */
/* fieldset reset — browser voegt standaard border toe, overschrijf dit */
fieldset.question-block {
    border: none;
    border-top: 1px solid var(--border-light);
    padding: 24px 0 12px 0;
    margin: 12px 0 0px 0;
    min-width: 0;
}


.question-block.block-error {
    background-color: var(--error-bg);
    padding: 24px;
    margin-left: -24px;
    margin-right: -24px;
    margin-bottom: 16px;
    border-top: none;
    border-radius: 8px;
    /* Geen border — achtergrond is de indicator */
}

fieldset.question-block.block-error {
    background-color: var(--error-bg);
    padding: 24px;
    margin-left: -24px;
    margin-right: -24px;
    margin-bottom: 16px;
    border: none;
    border-radius: 8px;
}

/* Eerste vraag op de pagina krijgt geen border-top via firstQuestion class (gezet door XSLT) */
fieldset.question-block.firstQuestion,
.question-block.firstQuestion {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

/* Samenvoegen: geen scheidingslijn boven de vraag */
fieldset.question-block.no-separator,
.question-block.no-separator {
    border-top: none;
    margin-top: 0px;
    padding-top: 10px;
}

/* Anders/namelijk: geen border-radius onderaan bij geselecteerde laatste optie
   (alleen in de gestapelde 1-koloms lijst — in de 2-koloms grid krijgt het
   namelijk-veld gewoon een eigen losse, volledig afgeronde box, zie verderop) */
.mc-list input:checked + .mc-label--has-namelijk {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.question-heading { font-size: 1.05rem; font-weight: 600; color: var(--text-main); margin-bottom: 8px; line-height: 1.4; display: block; }
.question-subtext { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 24px; font-style: italic; }


/* ----------------------------------------------------------
   6. COMPONENT: MATRIX / STELLINGEN
   ---------------------------------------------------------- */
.question-subtitle { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 4px; font-weight: 500; }
.question-subtitle span { color: var(--text-main); font-weight: 600; opacity: 0.8; }
.mobile-sticky-header { display: none; }

.matrix-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.matrix-table th {
    text-align: center; font-size: 0.85rem; font-weight: 600; color: var(--text-muted);
    padding: 12px 4px; vertical-align: bottom; line-height: 1.25;
    position: sticky; top: 0; background-color: var(--bg-card); z-index: 10;
    box-shadow: inset 0 -2px 0 0 var(--border-light);
}
.matrix-table th:first-child { text-align: left; width: 55%; color: var(--text-main); font-size: 1.1rem; }
.matrix-table th.col-nvt, .matrix-table td.col-nvt { border-left: 2px dashed var(--border-light); }
.matrix-table td:not(:first-child) { padding: 0; }

/* 3-koloms matrix: geen border op laatste kolom */
.matrix-table-3col th:last-child, 
.matrix-table-3col td:last-child { border-left: none !important; }
.matrix-table-3col tbody tr:has(input:checked) td:last-child { border-left: none !important; }

/* 5-koloms matrix (team-samenwerking): geen border op laatste kolom */
.matrix-table-5col th:last-child, 
.matrix-table-5col td:last-child { border-left: none !important; }
.matrix-table-5col tbody tr:has(input:checked) td:last-child { border-left: none !important; }

.matrix-table td { padding: 12px 4px; border-bottom: 1px solid var(--border-light); vertical-align: middle; transition: background-color 0.3s ease; }
.matrix-table td:first-child { font-weight: 500; color: var(--text-main); font-size: 1.05rem; padding-right: 16px; }
.matrix-table tr:last-child td { border-bottom: none; }
.matrix-table tbody tr:hover td,
.matrix-table tbody tr:has(input:focus-visible) td { background-color: rgba(93, 67, 112, 0.04); }
.matrix-table tbody tr:has(input:checked) td { background-color: var(--success-light); }
.matrix-table tbody tr:has(input:checked) td:last-child { background-color: var(--success-light); }
.matrix-table tbody tr:has(input:checked) td.col-nvt:last-child { border-left: 2px dashed var(--border-light); }
.matrix-table tbody tr.row-error td { background-color: rgba(225, 29, 72, 0.06); }

.radio-cell { text-align: center; cursor: pointer; display: flex; justify-content: center; align-items: center; height: 100%; width: 100%; padding: 12px 4px; }
.radio-cell input[type="radio"] { position: absolute; opacity: 0; }
.custom-radio { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: var(--tile-border-width) solid #cbd5e1; border-radius: 50%; transition: all 0.2s ease; background: #ffffff; }
.radio-cell:hover .custom-radio { border-color: var(--primary-color); }
.radio-cell input[type="radio"]:checked + .custom-radio { border-color: var(--primary-color); }
.radio-cell input[type="radio"]:checked + .custom-radio::after { content: ""; width: 10px; height: 10px; background-color: var(--primary-bgcolor); border-radius: 50%; }
.radio-cell input:focus-visible + .custom-radio { box-shadow: 0 0 0 3px rgba(93, 67, 112, 0.3); outline: none; border-color: var(--primary-color); }


/* ----------------------------------------------------------
   7. COMPONENT: TOOLTIP (uitlegwoord in stellingen)
   ---------------------------------------------------------- */
.tooltip-container { position: relative; display: inline-block; border-bottom: 2px dotted var(--text-main); cursor: help; font-weight: 600; }
.tooltip-container .tooltip-text {
    visibility: hidden; width: 340px; background-color: #52525b; color: #ffffff;
    text-align: center; border-radius: 6px; padding: 12px 16px;
    font-size: 0.85rem; font-weight: 400; line-height: 1.5;
    position: absolute; z-index: 100; bottom: calc(100% + 10px); left: 50%;
    transform: translateX(-50%); opacity: 0;
    transition: opacity 0.2s ease, bottom 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15); pointer-events: none;
}
.tooltip-container .tooltip-text::after {
    content: ""; 
    position: absolute; 
    top: 100%; 
    left: 50%; 
    margin-left: -8px;
    width: 0;
    height: 0;
    border-width: 8px; 
    border-style: solid;
    border-color: #52525b transparent transparent transparent;
    /* Safari fix */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}
.tooltip-container:hover .tooltip-text,
.tooltip-container:active .tooltip-text { visibility: visible; opacity: 1; bottom: calc(100% + 14px); }


/* ----------------------------------------------------------
   8. COMPONENT: OPEN TEKSTVAK
   ---------------------------------------------------------- */
.open-question-container { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--border-light); }
.open-question-label { display: block; font-size: 1.05rem; font-weight: 600; color: var(--text-main); margin-bottom: 12px; }
textarea {
    width: 75%; padding: 16px; border: 1px solid #cbd5e1; border-radius: 8px;
    font-family: inherit; font-size: 1rem; min-height: 100px;
    background-color: #f8fafc; resize: none; overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease; margin-top: 4px;
}
textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(93, 67, 112, 0.2); background-color: var(--bg-card); }


/* ----------------------------------------------------------
   9. COMPONENT: NPS & NLS (0–10 schaal)
   ---------------------------------------------------------- */
.nps-container { width: 100%; margin-top: 15px; }
.nps-group { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.nps-group input[type="radio"] { position: absolute; opacity: 0; }
.nps-label {
    flex: 1 1 0; min-width: 44px; min-height: 56px;
    display: flex; justify-content: center; align-items: center; text-align: center; padding: 4px;
    border: var(--tile-border-width) solid var(--border-light); border-radius: 8px;
    font-size: 1.1rem; font-weight: 600; color: var(--text-main);
    cursor: pointer; transition: all 0.2s ease; background: #ffffff; user-select: none;
}
.nps-label:hover { border-color: var(--primary-color); background-color: var(--solid-hover); }
.nps-group input[type="radio"]:checked + .nps-label { background-color: var(--primary-bgcolor); border-color: var(--primary-color); color: #ffffff; box-shadow: 0 4px 10px rgba(93,67,112,0.3); transform: translateY(-2px); }
.nps-group input[type="radio"]:focus-visible + .nps-label { box-shadow: 0 0 0 4px rgba(93,67,112,0.3); outline: none; border-color: var(--primary-color); }
.range-wrapper + .nps-legend { margin-top: 10px; }

.nps-legend { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

/* NPS gekleurd (detractor / passive / promoter) */
.nps-colored .nps-group input.detractor:hover + .nps-label,
.nps-colored .nps-group input.detractor:checked + .nps-label { background-color: var(--nps-red); border-color: var(--nps-red); color: #ffffff; }
.nps-colored .nps-group input.passive:hover + .nps-label,
.nps-colored .nps-group input.passive:checked + .nps-label { background-color: var(--nps-orange); border-color: var(--nps-orange); color: #ffffff; }
.nps-colored .nps-group input.promoter:hover + .nps-label,
.nps-colored .nps-group input.promoter:checked + .nps-label { background-color: var(--nps-green); border-color: var(--nps-green); color: #ffffff; }


/* ----------------------------------------------------------
   10. COMPONENT: CES (Standaard & Gekleurd)
   ---------------------------------------------------------- */
.ces-group { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ces-group input[type="radio"] { position: absolute; opacity: 0; }
.ces-label {
    flex: 1 1 0; min-width: 120px; min-height: 56px; padding: 10px;
    display: flex; justify-content: center; align-items: center; text-align: center;
    border: 2px solid var(--border-light); border-radius: 8px;
    font-size: 0.95rem; font-weight: 600; color: var(--text-main);
    cursor: pointer; transition: all 0.2s ease; background: #ffffff;
    user-select: none; line-height: 1.3;
}
.ces-label:hover { border-color: var(--primary-color); background-color: var(--solid-hover); }
.ces-group input[type="radio"]:checked + .ces-label { background-color: var(--primary-bgcolor); border-color: var(--primary-color); color: #ffffff; box-shadow: 0 4px 10px rgba(93,67,112,0.3); transform: translateY(-2px); }
.ces-group input[type="radio"]:focus-visible + .ces-label { box-shadow: 0 0 0 4px rgba(93,67,112,0.3); outline: none; border-color: var(--primary-color); }

/* CES gekleurd */
.ces-colored .ces-group input.ces-green:hover + .ces-label,
.ces-colored .ces-group input.ces-green:checked + .ces-label { background-color: var(--nps-green); border-color: var(--nps-green); color: #ffffff; }
.ces-colored .ces-group input.ces-orange:hover + .ces-label,
.ces-colored .ces-group input.ces-orange:checked + .ces-label { background-color: var(--nps-orange); border-color: var(--nps-orange); color: #ffffff; }
.ces-colored .ces-group input.ces-red:hover + .ces-label,
.ces-colored .ces-group input.ces-red:checked + .ces-label { background-color: var(--nps-red); border-color: var(--nps-red); color: #ffffff; }
.ces-colored .ces-group input.ces-green:focus-visible + .ces-label { box-shadow: 0 0 0 4px rgba(151,189,59,0.3); outline: none; border-color: var(--nps-green); }
.ces-colored .ces-group input.ces-orange:focus-visible + .ces-label { box-shadow: 0 0 0 4px rgba(239,144,42,0.3); outline: none; border-color: var(--nps-orange); }
.ces-colored .ces-group input.ces-red:focus-visible + .ces-label { box-shadow: 0 0 0 4px rgba(226,67,85,0.3); outline: none; border-color: var(--nps-red); }


/* ----------------------------------------------------------
   11. COMPONENT: MEERKEUZE — Stijl A: Kaders (NPS/CES pagina)
   ---------------------------------------------------------- */
.mc-group { display: flex; flex-direction: column; gap: 10px; }
.mc-group .mc-item, .mc-list .mc-item { position: relative; }
.mc-group input[type="radio"],
.mc-group input[type="checkbox"] { position: absolute; top: 0; left: 0; opacity: 0; width: 1px; height: 1px; overflow: hidden; pointer-events: none; }

.mc-group .mc-label {
    display: flex; align-items: flex-start; gap: 16px; padding: 12px 20px;
    border: var(--tile-border-width) solid var(--border-light); border-radius: 8px;
    font-size: 1.05rem; font-weight: 500; color: var(--text-main);
    cursor: pointer; transition: all 0.2s ease; background: #ffffff; line-height: 1.4;
}
.mc-group input:hover + .mc-label { border-color: var(--primary-color); background-color: var(--solid-hover); }
.mc-group input:checked + .mc-label { border-color: var(--primary-color); background-color: var(--primary-bgcolor); color: #ffffff; box-shadow: 0 4px 8px rgba(93,67,112,0.2); transform: translateY(-1px); }
.mc-group input:focus-visible + .mc-label { box-shadow: 0 0 0 4px rgba(93,67,112,0.3); outline: none; border-color: var(--primary-color); }

/* TegelRij gedraagt zich qua selectie-schaduw/lift als de nps-knoppen (alleen
   TegelRij, niet TegelsTweeKolommen — die deelt .mc-group maar niet .mc-row) */
.mc-row input:checked + .mc-label { box-shadow: 0 4px 10px rgba(93,67,112,0.3); transform: translateY(-2px); }

/* 2-koloms grid op desktop */
@media (min-width: 851px) { .mc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } }

/* Tegels op 1 rij, gelijke breedte, wrapt naar volgende rij als het niet past */
@media (min-width: 851px) {
    .mc-row { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; }
    .mc-row .mc-item { flex: 1 1 0; min-width: 150px; }
}


/* ----------------------------------------------------------
   12. COMPONENT: MEERKEUZE — Stijl B: Schone lijst (Slider pagina)
   ---------------------------------------------------------- */
.mc-list { display: flex; flex-direction: column; gap: 4px; }
.mc-list input[type="radio"],
.mc-list input[type="checkbox"] { position: absolute; top: 0; left: 0; opacity: 0; width: 1px; height: 1px; overflow: hidden; pointer-events: none; }

.mc-list .mc-label {
    display: flex; align-items: flex-start; gap: 16px; padding: 8px 12px;
    border-radius: 8px; font-size: 1.05rem; font-weight: 400; color: var(--text-main);
    cursor: pointer; transition: all 0.2s ease;
    border: 1px solid transparent;
}
.mc-list input:hover + .mc-label { background-color: var(--solid-hover); }
.mc-list input:checked + .mc-label { background-color: var(--success-light); font-weight: 500; }

/* TegelRij: geen bolletje/vakje (vaak geen ruimte op 1 rij) — tekst gecentreerd */
.mc-label--geen-icoon {
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Gedeeld: het rondje/vinkje-icoontje */
.mc-radio-circle, .mc-checkbox-square {
    flex-shrink: 0; width: 22px; height: 22px;
    border: 2px solid #cbd5e1; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    transition: all 0.2s ease; background: #ffffff; margin-top: 2px;
}
.mc-checkbox-square { border-radius: 4px; }

.mc-list .mc-label:hover .mc-radio-circle,
.mc-group .mc-label:hover .mc-radio-circle,
.mc-list .mc-label:hover .mc-checkbox-square,
.mc-group .mc-label:hover .mc-checkbox-square { border-color: var(--primary-color); }
.mc-list input:checked + .mc-label .mc-radio-circle,
.mc-list input:checked + .mc-label .mc-checkbox-square { border-color: var(--primary-color); background-color: var(--primary-bgcolor); }
.mc-group input:checked + .mc-label .mc-radio-circle,
.mc-group input:checked + .mc-label .mc-checkbox-square { border-color: #ffffff; background-color: #ffffff; }

/* Bolletje (radio) */
.mc-list input[type="radio"]:checked + .mc-label .mc-radio-circle::after,
.mc-group input[type="radio"]:checked + .mc-label .mc-radio-circle::after { content: ""; width: 8px; height: 8px; background-color: var(--primary-bgcolor); border-radius: 50%; }

/* mc-list: geselecteerde rij volledig paars (zoals mc-group) */
.mc-list input:checked + .mc-label {
    background-color: var(--primary-bgcolor);
    border-color: var(--primary-color);
    color: #ffffff;
    font-weight: 500;
}
.mc-list input[type="radio"]:checked + .mc-label .mc-radio-circle {
    border-color: #ffffff;
    background-color: var(--primary-bgcolor);
}
.mc-list input[type="radio"]:checked + .mc-label .mc-radio-circle::after {
    background-color: #ffffff;
    width: 8px;
    height: 8px;
}

/* Verplicht-fout op tekstvelden */
.field-input.field-required-error {
    border-color: #dc2626 !important;
}

/* Anders label: onderhoeken vierkant als het invoerveld zichtbaar is */
#verbeter9:checked + .mc-label {
    border-radius: 8px 8px 0 0 !important;
    border-color: var(--primary-color) !important;
    margin-bottom: 0 !important;
}

/* Anders-invoerveld: uitklappen bij selectie */
.anders-input-wrapper {
    display: none;
    margin-top: -4px; /* sluit de mc-list gap */
    margin-bottom: 4px;
    padding: 12px 16px 14px 50px;
    background-color: var(--bg-page);
    border: 1px solid var(--primary-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
}
.anders-input-wrapper.is-visible {
    display: block; /* flex column via parent mc-list */
    animation: fadeSlideIn 0.2s ease;
}
/* In tegel-lay-outs (2-koloms grid, 1-rij tegels): geen naadloze aansluiting op
   de laatste knop (die staat niet altijd op dezelfde plek/breedte) — gewoon een
   eigen losse, volledig afgeronde box met een klein gaatje ertussen */
.mc-grid + div .anders-input-wrapper,
.mc-row + div .anders-input-wrapper {
    margin-top: 12px;
    border-top-style: solid;
    border-top-width: 1px;
    border-radius: 8px;
}
.anders-label-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: block;
}
.anders-input {
    width: 100%;
    max-width: 420px;
    padding: 9px 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.anders-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(93, 67, 112, 0.2);
    background-color: var(--bg-card);
}
input.anders-input:focus-visible {
    outline: none;
}

/* Vinkje (checkbox) */
.mc-list input[type="checkbox"]:checked + .mc-label .mc-checkbox-square {
    border-color: #ffffff;
    background-color: var(--primary-bgcolor);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 75%; 
    background-position: center; 
    background-repeat: no-repeat;
}
.mc-group input[type="checkbox"]:checked + .mc-label .mc-checkbox-square {
    border-color: #ffffff;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d4370' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 75%; 
    background-position: center; 
    background-repeat: no-repeat;
}


/* ----------------------------------------------------------
   13. COMPONENT: SLIDER (vrije schaal)
   ---------------------------------------------------------- */
.slider-header { display: flex; justify-content: space-between; font-size: 1.05rem; font-weight: 600; color: var(--text-main); margin-bottom: 24px; }
.slider-header span:last-child { text-align: right; }
.range-wrapper { position: relative; padding: 15px 0 35px 0; margin: 0 10px; }

input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; position: relative; z-index: 2; }
input[type=range]:focus { outline: none; }
input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 8px; cursor: pointer; background: var(--border-light); border-radius: 4px; }
input[type=range]::-moz-range-track { width: 100%; height: 8px; cursor: pointer; background: var(--border-light); border-radius: 4px; }
input[type=range]::-webkit-slider-thumb { height: 28px; width: 28px; border-radius: 50%; background: #ffffff; border: 3px solid var(--slider-color); cursor: pointer; -webkit-appearance: none; margin-top: -10px; box-shadow: 0 2px 5px rgba(0,0,0,0.15); transition: transform 0.1s ease, box-shadow 0.1s ease; }
input[type=range]::-moz-range-thumb { height: 28px; width: 28px; border-radius: 50%; background: #ffffff; border: 3px solid var(--slider-color); cursor: pointer; margin-top: -10px; box-shadow: 0 2px 5px rgba(0,0,0,0.15); transition: transform 0.1s ease, box-shadow 0.1s ease; }
input[type=range]:hover::-webkit-slider-thumb { transform: scale(1.1); box-shadow: 0 4px 8px rgba(228,16,141,0.2); }
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(228,16,141,0.3); }

.slider-ticks { display: flex; justify-content: space-between; position: absolute; width: 100%; left: 0; bottom: 0; font-size: 0.85rem; color: var(--text-main); font-weight: 500; z-index: 1; pointer-events: none; }
.slider-ticks span { width: 30px; text-align: center; display: inline-block; position: relative; }
.slider-ticks span::before { content: ''; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); width: 2px; height: 6px; background-color: var(--border-light); }
.slider-ticks span.tick-neutral { width: auto; min-width: 60px; font-weight: 700; color: var(--slider-color); }

.slider-tooltip { position: absolute; top: -27px; transform: translateX(-50%); background: var(--slider-color); color: #ffffff; padding: 4px 10px; border-radius: 6px; font-size: 0.85rem; font-weight: 600; pointer-events: none; transition: left 0.1s ease; white-space: nowrap; z-index: 3; box-shadow: 0 2px 5px rgba(228,16,141,0.3); }
.slider-tooltip::after { content: ''; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%); border-width: 5px 5px 0; border-style: solid; border-color: var(--slider-color) transparent transparent transparent; }

/* Extra ruimte voor slider vragen */
.question-block:has(.range-wrapper) .question-heading {
    margin-bottom: 48px;
}


/* ----------------------------------------------------------
   14. NAVIGATIE & FOUTMELDING
   ---------------------------------------------------------- */
.form-actions { display: flex; align-items: center; margin-top: 40px; padding-top: 0; border-top: none; }
.error-message { display: none; color: var(--error-color); font-size: 0.95rem; font-weight: 600; margin-right: auto; }
.btn-group { display: flex; gap: 16px; margin-left: auto; }
.btn { padding: 12px 28px; border-radius: 6px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.btn-secondary { background: #ffffff; color: var(--text-main); border: 1px solid #cbd5e1; }
.btn-secondary:hover { border-color: var(--text-muted); background: #f1f5f9; }
.btn-primary { background: var(--primary-bgcolor); color: white; border: 1px solid var(--primary-bgcolor); }
.btn-primary:hover { filter: brightness(0.85); transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,0.2); }


/* ----------------------------------------------------------
   15. FOOTER
   ---------------------------------------------------------- */
.site-footer {
    max-width: 1200px; margin: 40px auto 10px; padding: 24px 40px;
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid var(--border-light);
    font-size: 0.8rem; color: var(--text-muted);
}
.footer-left p { margin-bottom: 4px; }
.footer-left a { color: #0369a1; text-decoration: none; } /* #0369a1 = 5.1:1 contrast op wit — WCAG AA ✅ */
.footer-left a:hover { text-decoration: underline; }
.footer-logo { display: flex; align-items: center; }
.footer-logo img { height: 32px; width: auto; object-fit: contain; display: block; }
@media (max-width: 850px) { .footer-logo img { height: 26px; } }


/* ----------------------------------------------------------
   Losse bullits_nv — altijd mobiele matrix stijl
   ---------------------------------------------------------- */
.matrix-table--enkel,
.matrix-table--enkel tbody,
.matrix-table--enkel tr,
.matrix-table--enkel td { display: block; width: 100%; }
.matrix-table--enkel thead { display: none; }
.matrix-table--enkel tr { border-bottom: none; padding: 0; }
.matrix-table--enkel td { border-bottom: none; padding: 0; text-align: left; }
.matrix-table--enkel-vraag { margin-bottom: 8px; font-weight: 600; font-size: 1.05rem; }
.matrix-table--enkel .radio-cell { display: flex; align-items: center; justify-content: flex-start; gap: 12px; padding: 6px 10px; margin-bottom: 4px; border-radius: 8px; border: 1px solid transparent; }
.matrix-table--enkel .radio-cell::after { content: attr(data-label); font-size: 0.95rem; color: var(--text-main); font-weight: 500; }
.matrix-table--enkel .radio-cell:has(input:checked) { border-color: var(--primary-color); background-color: rgba(93, 67, 112, 0.04); }
.matrix-table--enkel .radio-cell.col-nvt { margin-top: 8px; padding-top: 12px; border-top: 1px dashed rgba(0,0,0,0.1); border-radius: 0 0 8px 8px; border-left: none; }

/* ----------------------------------------------------------
   INGEKADERD BLOK (vraagKader)
   ---------------------------------------------------------- */
.kader-block {
    background: var(--gray-100);
    border-radius: 12px;
    padding: 24px;
    margin-top: 12px;
}
.kader-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 4px;
}
.kader-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    margin-top: 2px;
}
.kader-titel {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
    display: block;
}
.kader-toelichting {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 2px;
    margin-bottom: 16px;
    line-height: 1.5;
}
.kader-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.kader-item--full { grid-column: 1 / -1; }
.kader-item--half { grid-column: auto; }
.kader-item .field-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
}
.kader-item .field-input { margin-top: 0; }
.kader-item textarea { width: 100%; }
.kader-item.block-error .field-label { color: var(--error-color); }
.kader-item.block-error .field-input,
.kader-item.block-error textarea { border-color: var(--error-color); background: var(--error-light); }

/* Verberg kader-block als alle items verborgen zijn (na trigger) */
.kader-block:not(:has(.kader-item:not([style*="none"]))) { display: none; }

/* ----------------------------------------------------------
   QEDIT: antwoordenoverzicht
   ---------------------------------------------------------- */
table.mpctabel { width: 100%; border-collapse: collapse; margin: 16px 0; }
.mpcedit { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border-light); }
.mpcedit td { padding: 8px 0; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.mpcanswer { font-weight: 500; color: var(--text-main); flex: 1; }
.mpcedit .faEditLink { color: var(--text-muted); margin-left: 8px; }
.mpcedit .faEditLink:hover { color: var(--primary-color); }

/* Opslaan knop rechts in form-actions op bewerkpagina's */
.form-actions--edit .btn-primary { margin-left: auto; }

/* ----------------------------------------------------------
   16. MOBIELE WEERGAVE (≤850px)
   ---------------------------------------------------------- */
@media (max-width: 850px) {

    .header {
        flex-direction: column; align-items: flex-start;
        gap: 8px; padding: 16px 20px;
    }
    .header-title { font-size: 0.95rem; line-height: 1.3; }
    .logo-container { max-width: 100%; margin-bottom: 8px; }
    .client-logo { max-height: 36px; }
    .header-right { width: 100%; }

    .progress-wrapper { padding: 0 20px; }
    .container { padding: 0; }
    .main-card { padding: 30px 24px; border-radius: 0; box-shadow: none; border-top: 1px solid var(--border-light); }

    textarea { width: 100%; }

    /* Matrix: stellingen mobiel — opties als horizontale rijen (bolletje + label) */
    .mobile-sticky-header {
        display: block; position: sticky; top: 0; background-color: var(--bg-card);
        z-index: 20; padding: 16px 20px 12px 20px;
        margin-top: -8px; margin-left: -20px; margin-right: -20px; margin-bottom: 16px;
        font-size: 1.15rem; font-weight: 700; color: var(--text-main);
        border-bottom: 2px solid var(--border-light);
        box-shadow: 0 4px 10px -4px rgba(0,0,0,0.05);
    }
    .matrix-table, .matrix-table tbody, .matrix-table tr, .matrix-table td { display: block; width: 100%; }
    .matrix-table thead { display: none; }
    .matrix-table tr { margin-bottom: 24px; border-bottom: 2px solid var(--border-light); padding: 8px 12px 4px; transition: background-color 0.3s ease; }
    .matrix-table tr:has(input:checked) { background-color: var(--success-light); border-bottom-color: transparent; }
    .matrix-table tr:last-child { margin-bottom: 0; }
    .matrix-table td { border-bottom: none; padding: 0; text-align: left; background-color: transparent !important; }
    .matrix-table td:first-child { margin-bottom: 2px; padding-bottom: 4px; font-weight: 600; font-size: 1.05rem; width: 100%; }
    .matrix-table th:last-child, .matrix-table td:last-child { border-left: none; }
    .matrix-table tbody tr.row-error { background-color: rgba(225, 29, 72, 0.06); border-bottom-color: rgba(225, 29, 72, 0.2); }
    .radio-cell { display: flex; align-items: center; justify-content: flex-start; gap: 12px; padding: 6px 10px; margin-bottom: 4px; border-radius: 8px; border: 1px solid transparent; }
    .radio-cell::after { content: attr(data-label); font-size: 0.95rem; color: var(--text-main); font-weight: 500; }
    .radio-cell:has(input:checked) { border-color: var(--primary-color); background-color: rgba(93, 67, 112, 0.04); }
    .radio-cell:last-child { margin-top: 8px; padding-top: 12px; border-top: 1px dashed rgba(0,0,0,0.1); border-radius: 0 0 8px 8px; }

    /* Tooltip mobiel fix */
    .tooltip-container .tooltip-text { width: 260px; left: 0; transform: translateX(-10%); }
    .tooltip-container .tooltip-text::after { left: 20%; }

    /* NPS: compact zonder wrap */
    .nps-group { flex-wrap: nowrap; gap: 2px; }
    .nps-label { min-width: 0; flex: 1 1 0; height: 48px; font-size: 0.9rem; padding: 0; border-width: 1px; }

    /* CES: verticaal stapelen */
    .ces-group { flex-direction: column; }
    .ces-label { min-width: 100%; height: auto; padding: 12px; }

    /* Slider */
    .slider-header { flex-direction: column; gap: 8px; font-size: 1rem; }
    .slider-header span:last-child { text-align: left; }
    .slider-ticks { font-size: 0.75rem; }

    /* Navigatie */
    .form-actions { flex-direction: column; align-items: stretch; gap: 16px; padding-top: 10px; padding-left: 20px; padding-right: 20px; }
    .error-message { margin-right: 0; text-align: center; }
    .btn-group { width: 100%; justify-content: space-between; margin-left: 0; }

    /* Ingekaderd blok: altijd één kolom op mobiel */
    .kader-grid { grid-template-columns: 1fr; }
    .kader-item--half { grid-column: 1 / -1; }

    /* radioplat/CES: op mobiel gestapeld (1 kolom), zoals het schermontwerp toont
       smileys (0-10) blijft op één lijn, alleen --tekst variant stapelt */
    .nps-container--tekst .nps-group {
        flex-direction: column;
        gap: 8px;
    }
    .nps-container--tekst .nps-label {
        height: auto;
        min-height: 44px;
        font-size: 0.95rem;
    }

    /* Footer */
    .site-footer { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; }
    .footer-logo img { height: 26px; }
    .footer-logo img { height: 26px; }
}


/* ----------------------------------------------------------
   17. WELKOMSTPAGINA COMPONENTEN
   ---------------------------------------------------------- */
.welcome-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.welcome-text {
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 800px;
}

.privacy-box {
    background-color: var(--bg-page);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 24px 32px;
    margin-bottom: 40px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.privacy-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    color: var(--primary-color);
    margin-top: 2px;
}

.privacy-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.privacy-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Welkomstpagina: knoppen uit elkaar, met scheidingslijn */
.form-actions--welcome {
    justify-content: space-between;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
    margin-top: 20px;
}

/* Welkomstpagina: secundaire knop transparant/subtieler */
.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}
.btn-ghost:hover {
    border-color: var(--text-muted);
    background: var(--bg-page);
    color: var(--text-main);
}

@media (max-width: 850px) {
    .welcome-title { font-size: 1.5rem; }
    .privacy-box { padding: 20px; flex-direction: column; gap: 12px; }
    .privacy-icon { margin-top: 0; }
    .form-actions--welcome { flex-direction: column-reverse; align-items: stretch; gap: 16px; }
    .form-actions--welcome .btn { width: 100%; text-align: center; }
}


/* ----------------------------------------------------------
   18. ANONIMITEIT PAGINA — FORMULIERVELDEN & CONDITIONELE BLOKKEN
   ---------------------------------------------------------- */

/* Tekstvelden */
.field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.field-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field-input--getal { width: 120px; text-align: right; }
.field-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(93, 67, 112, 0.15);
}
.field-input.field-error {
    border-color: var(--error-color);
}
.field-input:valid:not(:placeholder-shown) {
    border-color: #97BD3B;
}

.field-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.field-hint.hint-error {
    color: var(--error-color);
}

/* Rij van twee velden naast elkaar */
.fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Conditioneel blok — verborgen totdat radio gekozen is */
.conditional-block {
    display: none;
    margin-top: 28px;
    padding: 24px 28px;
    border-radius: 10px;
    border: 1.5px solid var(--border-light);
    background: var(--bg-page);
    gap: 20px;
    flex-direction: column;
    animation: fadeSlideIn 0.25s ease;
}
.conditional-block.is-visible {
    display: flex;
}

/* Anoniem-blok */
.conditional-block--anoniem {
    border-color: #d1d5db;
    background: #f3f4f6;
}

/* Niet-anoniem blok */
.conditional-block--nietanoniem {
    border-color: #d1d5db;
    background: #f3f4f6;
}

.conditional-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.conditional-title svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}
.conditional-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Anoniem: slotbadge onderaan */
.anon-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #3B6D11;
    background: rgba(151, 189, 59, 0.12);
    border: 1px solid rgba(151, 189, 59, 0.3);
    border-radius: 6px;
    padding: 10px 14px;
    margin-top: 4px;
}
.anon-notice svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 850px) {
    .fields-row { grid-template-columns: 1fr; gap: 12px; }
    .conditional-block { padding: 18px 16px; }
}


/* ----------------------------------------------------------
   19. BEDANKPAGINA COMPONENTEN
   ---------------------------------------------------------- */

/* Bedankpagina: container vult beschikbare hoogte zodat footer onderaan blijft */
body.page-bedankt .container {
    min-height: calc(100vh - 160px);
}

/* Succes-heading met groen vinkje */
.success-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.success-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    background-color: rgba(16, 185, 129, 0.12);
    border-radius: 50%;
    color: #10b981;
    flex-shrink: 0;
}

/* Intro-tekst */
.bedankt-text {
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 800px;
}

/* Info-box (hergebruikt patroon van privacy-box op welkomstpagina) */
.info-box {
    background-color: var(--bg-page);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 24px 32px;
    margin-bottom: 36px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    color: var(--primary-color);
    margin-top: 2px;
}

.info-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.info-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Handtekening / afzender */
.signature-block {
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 40px;
    line-height: 1.6;
}

.signature-name {
    font-weight: 600;
    margin-top: 20px;
}

.signature-title {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Afsluitknop: rechts uitgelijnd, met scheidingslijn */
.form-actions--bedankt:not(:has(input, button, a)) {
    display: none;
}
.form-actions--bedankt {
    justify-content: flex-end;
    padding-top: 28px;
    border-top: 1px solid var(--border-light);
    margin-top: 8px;
}

@media (max-width: 850px) {
    .success-heading { font-size: 1.4rem; gap: 12px; }
    .success-icon-wrapper { width: 36px; height: 36px; min-width: 36px; }
    .info-box { padding: 20px; flex-direction: column; gap: 12px; }
    .info-icon { margin-top: 0; }
    .form-actions--bedankt:not(:has(input, button, a)) {
    display: none;
}
.form-actions--bedankt { justify-content: stretch; }
    .form-actions--bedankt .btn { width: 100%; text-align: center; }
}


/* ----------------------------------------------------------
   AFMELDEN PAGINA
   ---------------------------------------------------------- */

/* Page title en intro */
.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.page-intro {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 32px;
    line-height: 1.7;
}

/* Unsubscribe opties container */
.unsubscribe-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

/* Individuele optie */
.unsubscribe-option {
    position: relative;
    display: block;
    cursor: pointer;
}

.unsubscribe-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: #ffffff;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.unsubscribe-option:hover .option-content {
    border-color: var(--primary-color);
    background-color: var(--solid-hover);
}

.unsubscribe-option input:checked + .option-content {
    border-color: var(--primary-color);
    background-color: var(--primary-bgcolor);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(93, 67, 112, 0.2);
}

.option-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--text-muted);
    margin-top: 2px;
}

.unsubscribe-option input:checked + .option-content .option-icon {
    color: #ffffff;
}

.option-text {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-main);
}

.unsubscribe-option input:checked + .option-content .option-text {
    color: #ffffff;
}

/* Button container */
.button-container {
    display: flex;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Bevestiging scherm */
.confirmation-box {
    text-align: left;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.confirmation-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    min-height: 64px;
    background-color: rgba(161, 176, 40, 0.12);
    border-radius: 50%;
    color: var(--accent-color);
    margin-bottom: 24px;
    flex-shrink: 0;
    align-self: flex-start;
}

.confirmation-icon svg {
    width: 48px;
    height: 48px;
}

.confirmation-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 24px;
}

.confirmation-text {
    max-width: 600px;
    margin: 0;
}

.confirmation-text p {
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 16px;
}

.confirmation-text p:last-child {
    margin-bottom: 0;
}

/* Mobile responsive */
@media (max-width: 850px) {
    .page-title {
        font-size: 1.5rem;
    }
    
    .page-intro {
        font-size: 1rem;
    }
    
    .option-content {
        padding: 16px 18px;
    }
    
    .option-text {
        font-size: 1rem;
    }
    
    .confirmation-title {
        font-size: 1.3rem;
    }
    
    .confirmation-text p {
        font-size: 1rem;
    }
}


/* ----------------------------------------------------------
   LOGIN PAGINA
   ---------------------------------------------------------- */

/* Login body - centered layout zonder header/footer overlap */
body.page-login {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 0;
}

.login-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    padding: 48px;
    max-width: 480px;
    width: 100%;
    text-align: center;
}

/* Viamet logo */
.login-logo {
    margin-bottom: 32px;
}

.viamet-logo {
    max-width: 240px;
    height: auto;
}

/* Titel en subtitel */
.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.3;
}

.login-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Formulier */
.login-form {
    margin-bottom: 24px;
}

.form-field {
    margin-bottom: 16px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Code input veld */
.code-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: inherit;
    color: var(--text-main);
    background: var(--bg-page);
    border: 2px solid var(--border-light);
    border-radius: 8px;
    transition: all 0.2s ease;
    text-align: center;
    letter-spacing: 1px;
}

.code-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.code-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(93, 67, 112, 0.1);
    background: #ffffff;
}

.code-input.input-error {
    border-color: var(--error-color);
    background: var(--error-light);
}

/* Shake animatie voor error */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
    20%, 40%, 60%, 80% { transform: translateX(8px); }
}

.code-input.shake {
    animation: shake 0.5s ease;
}

/* Error box */
.error-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--error-light);
    border: 1px solid var(--error-color);
    border-radius: 8px;
    margin-bottom: 16px;
    text-align: left;
}

.error-icon {
    flex-shrink: 0;
    color: var(--error-color);
}

.error-box span {
    flex: 1;
    font-size: 0.95rem;
    color: var(--error-color);
    font-weight: 500;
}

/* Login button */
.btn-login {
    width: 100%;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    background: #F1772E;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(241, 119, 46, 0.3);
}

.btn-login:hover {
    background: #e07d1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(241, 119, 46, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

/* Help tekst */
.login-help {
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.login-help p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Login footer */
.login-footer {
    padding: 24px 20px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.login-footer p {
    margin-bottom: 8px;
}

.login-footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Mobile responsive */
@media (max-width: 850px) {
    .login-card {
        padding: 32px 24px;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .login-subtitle {
        font-size: 0.95rem;
    }
    
    .viamet-logo {
        max-width: 200px;
    }
    
    .code-input {
        font-size: 1rem;
        padding: 14px 16px;
    }
    
    .btn-login {
        font-size: 1rem;
        padding: 14px 28px;
    }
}

/* ----------------------------------------------------------
   ONDERZOEK GESLOTEN PAGINA
   ---------------------------------------------------------- */

/* Hergebruik de bedankt.html styling voor consistentie */

/* Extra signature regel voor "Demo Company" */
.signature-company {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 2px;
}


/* ----------------------------------------------------------
   IFRAME MODE - Popup/Widget Weergave
   ---------------------------------------------------------- */

/* Body in iframe mode */
body.iframe-mode {
    background: #ffffff;
    padding: 0;
    min-height: auto;
}

/* Compact header voor iframe */
.iframe-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
}

.iframe-logo {
    flex: 1;
}

.viamet-logo-small {
    height: 24px;
    width: auto;
}

.iframe-close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iframe-close:hover {
    color: var(--text-main);
}

/* Container voor iframe content */
.iframe-container {
    padding: 0;
    max-width: 100%;
}

.iframe-card {
    padding: 24px 20px;
    background: #ffffff;
}

/* Footer in iframe */
.iframe-footer {
    text-align: center;
    padding: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
}

/* Buttons in iframe */
.btn-iframe {
    width: 100%;
    margin-top: 16px;
}

.iframe-actions {
    margin-top: 24px;
}

.iframe-actions .error-message {
    display: none;
    margin-bottom: 12px;
    text-align: center;
}


/* ----------------------------------------------------------
   EMOJI FEEDBACK VRAAG
   ---------------------------------------------------------- */

.emoji-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 24px;
    text-align: center;
}

.question-block-emoji {
    margin-bottom: 24px;
    padding: 20px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

/* Roze achtergrond zoals screenshot 4 */
.question-block-emoji.has-selection {
    background-color: rgba(241, 119, 46, 0.08);
}

.emoji-question {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 20px;
    text-align: center;
}

/* Emoji knoppen */
.emoji-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.emoji-group input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.emoji-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
}

.emoji-option:hover {
    transform: scale(1.15);
}

.emoji-face {
    font-size: 48px;
    line-height: 1;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.2s ease;
}

/* Geselecteerde emoji */
.emoji-group input[type="radio"]:checked + .emoji-option .emoji-face {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Selected label (zoals screenshot 4: "Geweldig") */
.emoji-selected-label {
    display: none;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    padding: 8px 16px;
    background: var(--gray-100);
    border-radius: 20px;
    margin: 16px auto 0;
    width: fit-content;
}

/* Follow-up sectie */
.follow-up-section {
    margin-top: 24px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.follow-up-highlight {
    padding: 20px;
    background: rgba(241, 119, 46, 0.08);
    border-radius: 8px;
    margin-bottom: 16px;
}

.follow-up-question {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 16px;
    text-align: center;
}

/* Categorie buttons */
.category-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.category-btn {
    padding: 12px 16px;
    background: #ffffff;
    border: 2px solid var(--border-light);
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.category-btn:hover {
    border-color: var(--primary-color);
    background: var(--solid-hover);
}

.category-btn.active {
    background: var(--primary-bgcolor);
    border-color: var(--primary-color);
    color: #ffffff;
}

/* Link naar volledige vragenlijst */
.questions-link {
    text-align: center;
    margin-top: 16px;
}

.questions-link a {
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

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

/* Mobile adjustments voor emoji */
@media (max-width: 480px) {
    .emoji-group {
        gap: 8px;
    }
    
    .emoji-option {
        width: 48px;
        height: 48px;
    }
    
    .emoji-face {
        font-size: 40px;
    }
    
    .category-buttons {
        grid-template-columns: 1fr;
    }
}


/* ----------------------------------------------------------
   CONTACT FORMULIER (IFRAME)
   ---------------------------------------------------------- */

.contact-intro {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 24px;
    text-align: center;
}

.form-field-iframe {
    margin-bottom: 16px;
}

.field-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 6px;
}

.field-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-main);
    background: var(--bg-page);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.field-input--getal { width: 120px; text-align: right; }
.field-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(93, 67, 112, 0.1);
}

/* Split buttons (Terug + Voltooien) */
.iframe-actions-split {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-iframe-half {
    flex: 1;
    margin-top: 0;
}


/* ----------------------------------------------------------
   TOEGANKELIJKHEID — SYSTEEMVOORKEUREN
   ---------------------------------------------------------- */

/* Reduced Motion: zet animaties uit voor mensen met
   vestibulaire stoornissen of bewegingsgevoeligheid      */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration:        0.01ms !important;
        animation-iteration-count: 1      !important;
        transition-duration:       0.01ms !important;
        scroll-behavior:           auto   !important;
    }
}

/* High Contrast: verhoog contrast voor Windows HCM
   en gebruikers met een hoog-contrast voorkeur          */
@media (prefers-contrast: high) {
    :root {
        --text-main:    #000000;
        --text-muted:   #000000;
        --border-light: #000000;
        --bg-page:      #ffffff;
        --bg-card:      #ffffff;
        --primary-color:#000000;
        --primary-hover:#000000;
    }

    /* Outline altijd zichtbaar, ook zonder focus-visible */
    a,
    button,
    input,
    textarea,
    select,
    label {
        outline: 2px solid #000000;
        outline-offset: 2px;
    }

    /* Knoppen: zwarte rand, zwarte tekst */
    .btn-primary,
    .btn-secondary {
        border: 2px solid #000000 !important;
        color:  #000000          !important;
        background: #ffffff      !important;
    }

    /* NPS / CES / MC labels: zwarte rand */
    .nps-label,
    .ces-label,
    .mc-label {
        border: 2px solid #000000 !important;
    }

    /* Geselecteerde staat altijd zwart-wit */
    .nps-group input:checked + .nps-label,
    .ces-group input:checked + .ces-label,
    .mc-group input:checked + .mc-label,
    .mc-list input:checked  + .mc-label {
        background: #000000 !important;
        color:       #ffffff !important;
        border-color:#000000 !important;
    }

    /* Footer links zwart */
    .footer-left a { color: #000000 !important; text-decoration: underline !important; }
}
