/*
 * Enquête in v2-stijl (bijpassend bij landing.html). Laadt na survey.css en v2.css
 * en past alleen de vormgeving aan; de opbouw komt uit survey.js.
 */

/* ---------- kopregel met voortgang in vakjes ---------- */
.v2-progress { display: flex; align-items: center; gap: 14px; justify-self: center; width: 100%; max-width: 520px; }
.v2 .progress { --n: 10; position: relative; height: 6px; background: var(--line-strong); overflow: hidden; }
.v2 #progress-bar { background: var(--terracotta); }
/* Naden tussen de vakjes: één per vraag. */
.v2 .progress::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 calc(100% / var(--n) - 3px), var(--bg) calc(100% / var(--n) - 3px) calc(100% / var(--n)));
}
.v2 .progress-label { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; color: var(--ink); min-width: 3.2em; }

/* ---------- podium ---------- */
.v2 main.stage, .v2 main.stage.is-intro { max-width: 1280px; padding: 0 var(--gap) var(--gap); }
.v2 .screen { animation: v2-in 0.6s var(--ease) both; }

/* ---------- intro: beeld + tekst als twee tegels ---------- */
.v2 .intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--gap); padding-top: 0; align-items: stretch; }
.v2 .hero {
  order: 0; margin: 0; box-shadow: none; aspect-ratio: auto;
  min-height: clamp(340px, calc(100svh - 150px), 760px); background: #15110d;
}
.v2 .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
/* Avondbeeld schuift als een rechte wipe over het dagbeeld. */
.v2 .hero-night { opacity: 1; clip-path: inset(0 0 0 100%); transition: clip-path 1.1s var(--ease); }
:root[data-mode='avond'] .v2 .hero-night { clip-path: inset(0 0 0 0); }
/* Zelfde warme toon op het avondbeeld als op de landingspagina. */
.v2 .hero-night { filter: sepia(0.14) saturate(1.15) contrast(1.08) brightness(0.92); }

.v2 .intro-text {
  background: var(--surface); padding: clamp(24px, 3.4vw, 52px);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.v2 .intro-text::before { display: none; }
.v2 .intro h1 {
  font-size: clamp(32px, 4.4vw, 66px); font-weight: 900; font-stretch: 115%;
  line-height: 0.92; letter-spacing: -0.03em; margin-bottom: 22px;
}
.v2 .intro .pill { background: var(--surface-2); color: var(--ink-2); font-weight: 650; font-size: 12px; letter-spacing: 0.04em; }
.v2 .intro p.lead { color: var(--ink-2); font-size: 17px; }
.v2 .intro p.small { color: var(--ink-3); margin-bottom: 28px; }
.v2 #start { width: 100%; height: 60px; justify-content: space-between; padding: 0 24px; font-size: 14px; }
.v2 #start::after { content: '→'; font-size: 18px; transition: transform 0.35s var(--ease); }
.v2 #start:hover::after { transform: translateX(6px); }

/* ---------- vraag: nummertegel + vraagtegel ---------- */
.v2 .q-grid {
  display: grid; grid-template-columns: minmax(170px, 0.3fr) minmax(0, 1fr); gap: var(--gap);
  min-height: calc(100svh - 150px);
}
.v2 .q-side {
  background: var(--terracotta); color: var(--cream);
  display: flex; flex-direction: column; padding: clamp(20px, 2.4vw, 36px); overflow: hidden;
}
.v2 .q-side .q-section { color: rgba(244, 237, 222, 0.85); margin: 0; font-size: 11px; letter-spacing: 0.22em; }
.v2 .q-big {
  margin-top: auto; font-size: clamp(76px, 10vw, 176px); font-weight: 900; font-stretch: 125%;
  line-height: 0.8; letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
}
.v2 .q-of { font-size: 11px; font-weight: 750; letter-spacing: 0.22em; text-transform: uppercase; margin-top: 12px; opacity: 0.8; }

.v2 .q-main { background: var(--surface); padding: clamp(22px, 3.6vw, 56px); display: flex; flex-direction: column; min-width: 0; }
.v2 .q-title { font-size: clamp(24px, 2.8vw, 40px); font-weight: 850; letter-spacing: -0.025em; line-height: 1.06; max-width: 26ch; }
.v2 .q-hint { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin: 10px 0 24px; }
.v2 .options { max-width: 760px; gap: 6px; }

.v2 .option {
  border: 0; background: var(--surface-2); min-height: 58px; padding: 12px 18px;
  font-weight: 550; transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.v2 .option:hover { background: color-mix(in srgb, var(--ink) 7%, var(--surface-2)); transform: translateX(4px); }
.v2 .option[aria-checked='true'] { background: var(--terracotta); color: #fff; box-shadow: none; }
.v2 .option .mark { border-color: var(--line-strong); background: transparent; }
.v2 .option[aria-checked='true'] .mark { border-color: #fff; background: #fff; }
.v2 .option[aria-checked='true'] .mark::after { background: var(--terracotta); }
.v2 .option.multi[aria-checked='true'] .mark::after { background: none; border-color: var(--terracotta); }
.v2 .option[aria-checked='true']::after { border-color: rgba(255, 255, 255, 0.9); }
.v2 .option .key { border-color: color-mix(in srgb, currentColor 25%, transparent); color: inherit; opacity: 0.7; }

.v2 .other-input, .v2 textarea.open {
  background: var(--surface-2); border: 0; border-bottom: 2px solid var(--terracotta); padding: 14px 16px;
}
.v2 .other-input:focus, .v2 textarea.open:focus { box-shadow: none; background: color-mix(in srgb, var(--ink) 5%, var(--surface-2)); }
.v2 textarea.open { max-width: 760px; min-height: 160px; }
.v2 .char-count { max-width: 760px; }

.v2 .nav { margin-top: auto; padding-top: 28px; max-width: 760px; }
.v2 .nav .btn-primary { height: 54px; padding: 0 28px; }
.v2 .btn-ghost { color: var(--ink-2); }

/* ---------- bedankt ---------- */
.v2 .done { padding-top: 0; text-align: left; }
.v2 .done-tekst {
  background: var(--terracotta); color: var(--cream);
  min-height: calc(100svh - 150px); padding: clamp(28px, 5vw, 80px);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.v2 .done .check { margin: 0 0 28px; width: 72px; height: 72px; background: var(--cream); color: var(--terracotta); }
.v2 .done h1 { font-size: clamp(44px, 8vw, 128px); font-weight: 900; font-stretch: 118%; line-height: 0.88; letter-spacing: -0.035em; margin-bottom: 18px; }
.v2 .done p { color: rgba(244, 237, 222, 0.9); margin: 0; font-size: 18px; max-width: 30em; }

/* ---------- voet ---------- */
.v2 footer.foot { font-size: 12px; padding: 14px 16px 18px; color: var(--ink-3); }

/* ---------- telefoon / smal ---------- */
@media (max-width: 899px) {
  .v2 .intro { grid-template-columns: 1fr; }
  .v2 .hero { min-height: 0; aspect-ratio: 16 / 10; }
  .v2 .q-grid { grid-template-columns: 1fr; min-height: 0; }
  /* Nummertegel wordt een smalle strook boven de vraag. */
  .v2 .q-side { flex-direction: row; align-items: center; gap: 14px; padding: 12px 16px; }
  .v2 .q-big { margin: 0 0 0 auto; font-size: 38px; order: 2; }
  .v2 .q-of { margin: 0; order: 1; margin-left: auto; }
  .v2 .q-of + .q-big, .v2 .q-big + .q-of { margin-left: 0; }
  .v2 .q-main { padding: 22px 18px 20px; min-height: calc(100svh - 150px); }
  .v2 .done-tekst { min-height: calc(100svh - 120px); }
}
@media (max-width: 640px) {
  /* Het vraagnummer staat al in de terracotta strook; bovenin is geen ruimte. */
  .v2-progress { display: none; }
  .v2 .v2-top { grid-template-columns: 1fr auto; }
  .v2 .intro-text { padding: 24px 20px; }
  .v2 .intro h1 { font-size: 34px; }
  .v2 .intro p.lead { font-size: 16px; }
  .v2 .option:hover { transform: none; }
}
