/* ==========================================================================
   Greenberry — Benchmark-quiz (bovenop styles.css)
   ========================================================================== */

/* [hidden] moet display-regels van componenten winnen (bijv. .quiz-nav flex) */
[hidden] { display: none !important; }

/* Hele quiz op de header-grijs; losse blokken wit/paars voor genoeg contrast. */
body { background: var(--grijs); }

/* Na navigatie verplaatsen we focus naar de kop (voor screenreaders); toon daar
   geen selectie-/focuskader bij. */
.stap [tabindex="-1"]:focus { outline: none; }

/* ---------- Kop + voortgang ---------- */
.quiz-omslag { background: var(--grijs); }

.voortgang {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--grijs);
  padding: 0.9rem 0 1.1rem;
}
.voortgang-balk {
  height: 0.4rem;
  background: rgba(50, 50, 60, 0.15);
  border-radius: var(--radius);
  overflow: hidden;
}
.voortgang-vulling {
  display: block;
  height: 100%;
  width: 0;
  background: var(--blauw);
  border-radius: var(--radius);
  transition: width 0.4s ease;
}
.voortgang-label { font-size: 0.82rem; color: var(--zwart); margin-top: 0.5rem; }

/* ---------- Eyebrow-tag (lokaal; landingspagina heeft geen .tag meer) ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  height: 2rem;
  padding: 0 0.9rem;
  border: 1px solid var(--blauw);
  border-radius: var(--radius);
  color: var(--blauw);
  background: transparent;
  font-size: 0.85rem;
  margin-bottom: 1.4rem;
}

/* ---------- Shell ---------- */
.quiz-shell { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3.5rem, 8vw, 6rem); min-height: 50vh; }
.stap, .quiz-nav { max-width: 820px; margin-inline: auto; }

/* ---------- Intro ---------- */
.quiz-titel {
  font-size: clamp(2.2rem, 1rem + 4vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--blauw);
  margin-bottom: 1.4rem;
}
.quiz-lead { font-size: clamp(1rem, 0.95rem + 0.4vw, 1.25rem); font-weight: 400; line-height: 1.55; max-width: 60ch; margin-bottom: 1.4rem; }
.quiz-lead em { font-style: italic; }
.schaal-uitleg {
  background: var(--tint);
  border-radius: 1.2rem;
  padding: 1rem 1.3rem;
  font-size: 0.95rem;
  font-weight: 400;
  margin: 1.8rem 0 2.4rem;
}
.schaal-uitleg strong { font-weight: 500; }

/* ---------- Vraag ---------- */
.stap-teller { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; color: var(--zwart); margin-bottom: 1rem; }
.optioneel { border: 1px solid var(--grijs); border-radius: var(--radius); padding: 0.1rem 0.6rem; font-size: 0.72rem; color: var(--blauw); }
.verplicht { border: 1px solid var(--zwart); border-radius: var(--radius); padding: 0.1rem 0.6rem; font-size: 0.72rem; color: var(--zwart); }
.vraag-titel {
  font-size: clamp(1.6rem, 1rem + 2.2vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--blauw);
  margin-bottom: 1rem;
}
.vraag-tekst { font-size: clamp(1rem, 0.95rem + 0.4vw, 1.25rem); font-weight: 400; line-height: 1.5; margin-bottom: 0.7rem; max-width: 60ch; }
.vraag-uitleg { font-size: 0.95rem; font-weight: 400; color: #43434d; line-height: 1.5; margin-bottom: 1.8rem; max-width: 60ch; }
.vraag-subtitel { font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem); font-weight: 500; margin-bottom: 0.4rem; }

/* ---------- Schaal 1–5 ---------- */
.schaal { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1rem; }
.schaal-knoppen { display: flex; gap: 0.5rem; }
.schaal-uiteinden { display: flex; justify-content: space-between; gap: 1rem; }
.schaal-optie {
  flex: 1;
  min-height: 3.6rem;
  border: none;
  background: var(--wit);
  border-radius: 1rem;
  color: var(--zwart);
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.schaal-optie:hover { border-color: var(--blauw); color: var(--blauw); }
.schaal-optie.is-gekozen { background: var(--blauw); border-color: var(--blauw); color: var(--wit); transform: translateY(-2px); }
.schaal-optie:focus-visible { outline: 2px solid var(--zwart); outline-offset: 3px; }
.schaal-uiteinde { font-size: 0.85rem; color: #43434d; max-width: 48%; }
.schaal-uiteinde--rechts { text-align: right; }

.ai-item { padding-bottom: 1.8rem; margin-bottom: 1.8rem; border-bottom: 1px solid var(--grijs); }
.ai-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

/* ---------- Velden (profiel + e-mail) ---------- */
.veld { margin-bottom: 1.4rem; }
.veld label { display: block; font-size: 0.95rem; font-weight: 500; margin-bottom: 0.5rem; }
.veld input, .veld select, .veld textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--zwart);
  background: var(--wit);
  border: 1.5px solid var(--grijs);
  border-radius: 1rem;
  padding: 0.85rem 1.1rem;
}
.veld textarea { resize: vertical; }
.veld input:focus, .veld select:focus, .veld textarea:focus { outline: none; border-color: var(--blauw); }
.veld-fout { color: var(--rood-tekst); font-size: 0.9rem; margin-top: -0.6rem; }
.schaal-fout { margin-top: 0.4rem; }

/* Nieuwsbrief-opt-in + privacy-uitleg bij de e-mailstap */
.opt-in { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.95rem; line-height: 1.45; cursor: pointer; margin-bottom: 1rem; }
.opt-in input { width: 1.2rem; height: 1.2rem; margin-top: 0.15rem; flex-shrink: 0; accent-color: var(--blauw); cursor: pointer; }
.veld-uitleg { font-size: 0.85rem; color: var(--zwart); line-height: 1.5; }
.veld-uitleg a { color: var(--blauw); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Navigatie ---------- */
.quiz-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.6rem; }
.knop:disabled { opacity: 0.4; cursor: not-allowed; }
.knop:disabled:hover { background: var(--blauw); color: var(--wit); }

/* Outline-knoppen wit maken zodat ze contrasteren op de grijze achtergrond;
   rand blijft donker zodat de knopgrens zelf ook zichtbaar is (WCAG 1.4.11). */
.quiz-shell .knop.outline { background: var(--wit); border-color: var(--zwart); }
.quiz-shell .knop.outline:hover { background: var(--tint); border-color: var(--zwart); }

/* ---------- Resultaat ---------- */
.score-groot { display: flex; align-items: baseline; gap: 0.6rem; margin: 0.5rem 0 0.6rem; }
.score-cijfer { font-size: clamp(3.5rem, 2rem + 6vw, 6rem); font-weight: 400; letter-spacing: -0.04em; color: var(--blauw); line-height: 1; font-variant-numeric: tabular-nums; }
.score-max { font-size: 1.4rem; color: #75747E; }

.grafiek-intro { font-size: 0.95rem; font-weight: 400; color: #5b5b66; max-width: 60ch; margin: 0 0 1.2rem; }
.resultaat-paneel { background: var(--wit); border-radius: 1.8rem; padding: clamp(1.4rem, 3vw, 2.2rem); margin: 1.8rem 0 0.5rem; }

/* Chips staan hier op het witte .resultaat-paneel i.p.v. de getinte
   achtergrond van de index-pagina, dus wit-op-wit zou onzichtbaar zijn. */
#resFilters .chip { background: var(--grijs); }
#resFilters .chip:hover { background: var(--zwart); color: var(--wit); }
#resFilters .chip.actief { background: var(--blauw); color: var(--wit); }
.resultaat-grafiek { position: relative; width: 100%; height: 460px; margin: 1.2rem 0 0.5rem; }

.resultaat-kaarten { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 2.4rem 0; }
.res-kaart { background: var(--wit); border-radius: 1.5rem; padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.3rem; }
.res-label { font-size: 0.8rem; color: #75747E; }
.res-kaart strong { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
.res-sub { font-size: 0.85rem; color: #5b5b66; }

.res-blok { border-top: 1px solid rgba(50, 50, 60, 0.16); padding-top: 2rem; margin-top: 2rem; }

/* Download-blok op het resultaat: wit voor contrast op de grijze achtergrond. */
.download-strook { background: var(--wit); margin-top: 2rem; }
.res-kop { font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); font-weight: 400; letter-spacing: -0.02em; color: var(--blauw); margin-bottom: 0.8rem; }
.res-blok p { font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); font-weight: 400; line-height: 1.6; max-width: 66ch; }
.res-blok p strong { font-weight: 500; color: var(--zwart); }

.deel-knoppen { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.4rem; }
.deel-knoppen .knop { height: 3rem; }
.deel-bevestiging { color: var(--blauw); font-size: 0.9rem; margin-top: 0.9rem; }

.res-cta { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; margin-top: 2.6rem; }

/* Footer-tekst leesbaar op grijs. */
footer.site p { color: #43434d; }

@media (max-width: 640px) {
  .resultaat-grafiek { height: 440px; }
  .schaal-optie { min-height: 3.2rem; font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .voortgang-vulling, .schaal-optie { transition: none; }
}
