/* =====================================================================
   Proland | Fotografen kwalificatie
   Proland Brand Book 2025 rev.: Ubuntu Bold (koppen, -4%), Inter (tekst),
   merkkleur #255EAD, surface #E5ECF9, zwart #020617, wit.
   ===================================================================== */

@font-face { font-family: "Ubuntu"; font-weight: 700; font-display: swap; src: url("../assets/fonts/ubuntu-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --brand: #255EAD;
  --brand-hover: #1F4F93;
  --surface: #E5ECF9;
  --tint: #F4F7FC;
  --black: #020617;
  --text: #1E293B;
  --muted: #64748B;
  --faint: #8A97AB;
  --line: #E2E8F0;
  --line-2: #CBD5E1;
  --rail: #E9EEF6;
  --white: #FFFFFF;
  --danger: #DC2626;
  --ok: #16A34A;
  --ok-soft: #E8F6EE;
  --head: "Ubuntu", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 10px;
  --r-lg: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: 160ms;
  --ring: 0 0 0 3px rgba(37, 94, 173, .2);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-family: var(--body); font-size: 16px; line-height: 1.5; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--head); font-weight: 700; color: var(--black); letter-spacing: -.04em; line-height: 1.12; }
a { color: var(--brand); }
img, svg { display: block; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.shell { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .shell { padding: 0 40px; } }

/* ---------- topbar ---------- */
.topbar { padding-top: 22px; padding-bottom: 18px; }
.topbar__logo { height: 24px; width: auto; }
@media (min-width: 768px) { .topbar { padding-top: 30px; padding-bottom: 30px; } .topbar__logo { height: 27px; } }

/* ---------- frame ----------
   Het fotopaneel is sticky en krijgt zijn hoogte van het venster, niet van het formulier.
   Zo verschuift de introductie nooit als er een vervolgvraag verschijnt. */
.main { flex: 1; padding-bottom: 32px; }
.media { display: none; }
@media (min-width: 980px) {
  :root { --panel-h: clamp(600px, calc(100vh - 180px), 760px); }
  .main { padding-bottom: 64px; }
  .frame { display: grid; grid-template-columns: 420px minmax(0, 1fr); align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 30px 60px -40px rgba(2, 6, 23, .22); }
  .media { position: sticky; top: 24px; display: flex; align-items: flex-end; height: var(--panel-h); overflow: hidden; border-radius: 16px; background: #1c2230; color: #fff; isolation: isolate; }
  .media__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; z-index: -2; transform: scale(1.02); }
  .media::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(2, 6, 23, .84) 0%, rgba(2, 6, 23, .6) 22%, rgba(2, 6, 23, .14) 40%, rgba(2, 6, 23, 0) 54%); }
  .media__content { position: relative; padding: 36px; }
  .media__eyebrow { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
  .media__title { margin-top: 10px; font-family: var(--head); font-weight: 700; font-size: 38px; line-height: 1.08; letter-spacing: -.04em; text-wrap: balance; }
  .media__facts { margin-top: 16px; font-size: 14px; color: rgba(255, 255, 255, .82); }
  .media__facts span { margin: 0 8px; opacity: .6; }
}

/* ---------- formulierkant ---------- */
.formside { display: flex; flex-direction: column; min-width: 0; }
@media (min-width: 980px) { .formside { min-height: var(--panel-h); padding: 36px 48px 32px 56px; } }
.wizard { display: flex; flex-direction: column; flex: 1; }

/* voortgang */
.progress__row { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; min-height: 22px; }
.progress__label { display: flex; align-items: baseline; gap: 10px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.progress__name { color: var(--black); font-weight: 500; }
.progress__pct, .progress__toast { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.progress__toast { position: absolute; right: 0; top: 0; display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 500; animation: toast 260ms var(--ease); }
.progress__toast .ico { width: 16px; height: 16px; stroke-width: 2.4; }
@keyframes toast { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.progress__bar { position: relative; height: 4px; margin-top: 12px; border-radius: 4px; background: var(--rail); overflow: hidden; }
.progress__bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 4px; background: var(--brand); transition: width 500ms var(--ease); }

/* ---------- schermen ---------- */
.screen { flex: 1; padding-top: 32px; animation: in 260ms var(--ease); }
.screen.is-back { animation-name: inBack; }
@keyframes in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@keyframes inBack { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.screen__title { font-size: 28px; outline: none; }
.screen__sub { margin-top: 6px; font-size: 15px; color: var(--muted); }
@media (min-width: 600px) { .screen { padding-top: 44px; } .screen__title { font-size: 34px; } }

.q { border: 0; padding: 0; margin: 28px 0 0; min-width: 0; }
.q--gap { margin-top: 32px; }
.q--tight { margin-top: 20px; }
.q--follow { margin-top: 24px; animation: in 260ms var(--ease); }
.q__label { display: block; padding: 0; margin-bottom: 12px; font-size: 15px; font-weight: 500; color: var(--black); }
.fields { display: grid; gap: 12px; margin-top: 28px; }
.error { display: none; margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--danger); }
.error:not(:empty) { display: block; }
.suggest { margin-top: 8px; font-size: 13px; color: var(--muted); }
.linkbtn { padding: 0; border: 0; background: none; color: var(--brand); font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:hover { color: var(--brand-hover); }

/* ---------- invoervelden (zoals de Proland makelaarspagina) ---------- */
.field__box { display: flex; align-items: center; gap: 14px; min-height: 66px; padding: 10px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); cursor: text; transition: border-color var(--t), box-shadow var(--t); }
.field__box > .ico { color: var(--brand); }
.field__box:hover { border-color: var(--line-2); }
.field__box:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.field__inner { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.field__label { font-size: 12px; font-weight: 500; color: var(--text); }
.field__opt { margin-left: 4px; font-weight: 400; color: var(--faint); }
.field__input { width: 100%; margin: 0; padding: 2px 0 0; border: 0; background: transparent; outline: none; font: inherit; font-size: 16px; color: var(--black); }
.field__input::placeholder { color: var(--faint); }
textarea.field__input { min-height: 76px; resize: none; padding-top: 4px; }
.field__box--area { align-items: flex-start; padding-top: 12px; }
.field.is-invalid .field__box { border-color: var(--danger); }

/* ---------- keuzes ---------- */
.opts { display: grid; gap: 10px; }
.opts--2 { grid-template-columns: 1fr 1fr; }
.opts--stack { grid-template-columns: 1fr; }
.opt, .tile, .pill, .seg__opt, .week__cell { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.opt input, .tile input, .pill input, .seg__opt input, .week__cell input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.opt > span { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 12px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); font-size: 15px; font-weight: 500; color: var(--black); transition: border-color var(--t), background var(--t), color var(--t), box-shadow var(--t); }
.opt--left > span, .opt--check > span { justify-content: flex-start; text-align: left; }
.opt:hover > span { border-color: var(--line-2); }
.opt input:focus-visible + span { border-color: var(--brand); box-shadow: var(--ring); }
.opt input:checked + span { border-color: var(--brand); background: var(--tint); color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.box { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border: 1.5px solid var(--line-2); border-radius: 6px; background: var(--white); color: transparent; transition: all var(--t); }
.box .ico { width: 14px; height: 14px; stroke-width: 2.6; }
.opt input:checked + span .box { background: var(--brand); border-color: var(--brand); color: #fff; }
.q.is-invalid .opt > span, .q.is-invalid .tile > span { border-color: #F2B8B8; }

/* tegels */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 24px; }
@media (min-width: 600px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile > span { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; height: 100%; min-height: 100px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--black); transition: border-color var(--t), background var(--t), color var(--t), box-shadow var(--t), transform var(--t); }
.tile > span .ico { width: 24px; height: 24px; color: var(--muted); transition: color var(--t); }
.tile:hover > span { border-color: var(--line-2); }
.tile:active > span { transform: scale(.98); }
.tile input:focus-visible + span { border-color: var(--brand); box-shadow: var(--ring); }
.tile input:checked + span { border-color: var(--brand); background: var(--tint); color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.tile input:checked + span .ico { color: var(--brand); }
.q > .tiles { margin-top: 0; }

/* segmented (starten) */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: var(--tint); border: 1px solid var(--line); }
.seg__opt span { display: flex; align-items: center; justify-content: center; height: 42px; padding: 0 8px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: all var(--t); }
.seg__opt:hover span { color: var(--black); }
.seg__opt input:focus-visible + span { box-shadow: var(--ring); }
.seg__opt input:checked + span { background: var(--white); color: var(--black); box-shadow: 0 1px 3px rgba(2, 6, 23, .1), 0 0 0 1px var(--line); }
.q.is-invalid .seg { border-color: #F2B8B8; }

/* pills (toestemming) */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill span { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--black); background: var(--white); transition: all var(--t); }
.pill span .ico { width: 0; height: 16px; stroke-width: 2.6; opacity: 0; transition: width var(--t), opacity var(--t); }
.pill:hover span { border-color: var(--line-2); }
.pill input:focus-visible + span { box-shadow: var(--ring); }
.pill input:checked + span { border-color: var(--brand); background: var(--tint); color: var(--brand); }
.pill input:checked + span .ico { width: 16px; opacity: 1; }

/* ---------- slider ervaring ---------- */
.slider { --thumb: 28px; --v: 0; position: relative; margin-top: 40px; }
.slider__track { position: absolute; left: calc(var(--thumb) / 2); right: calc(var(--thumb) / 2); top: calc(var(--thumb) / 2 - 3px); height: 6px; border-radius: 6px; background: var(--rail); pointer-events: none; }
.slider__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 6px; background: var(--brand); }
.slider.is-set .slider__fill { width: calc(100% * var(--v) / 3); }
.slider__tick { position: absolute; top: 50%; left: calc(100% * var(--i) / 3); width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: var(--line-2); transition: background var(--t); }
.slider__tick.is-passed { background: rgba(255, 255, 255, .9); }
.slider__input { position: relative; z-index: 2; display: block; width: 100%; height: var(--thumb); margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; touch-action: pan-y; }
.slider__input:focus-visible { outline: none; }
.slider__input::-webkit-slider-runnable-track { height: var(--thumb); background: transparent; }
.slider__input::-moz-range-track { height: var(--thumb); background: transparent; }
.slider__input::-webkit-slider-thumb { -webkit-appearance: none; width: var(--thumb); height: var(--thumb); border-radius: 50%; border: 1px solid var(--line-2); background: var(--white); box-shadow: 0 1px 2px rgba(2, 6, 23, .12), 0 4px 10px -2px rgba(2, 6, 23, .14); cursor: grab; transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), border-color 160ms; }
.slider__input::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--white); box-shadow: 0 1px 2px rgba(2, 6, 23, .12), 0 4px 10px -2px rgba(2, 6, 23, .14); cursor: grab; }
.slider.is-set .slider__input::-webkit-slider-thumb { border-color: rgba(37, 94, 173, .25); background: radial-gradient(circle, var(--brand) 0 5px, var(--white) 5.6px); }
.slider.is-set .slider__input::-moz-range-thumb { border-color: rgba(37, 94, 173, .25); background: radial-gradient(circle, var(--brand) 0 5px, var(--white) 5.6px); }
.slider__input:hover::-webkit-slider-thumb { box-shadow: 0 1px 2px rgba(2, 6, 23, .12), 0 6px 14px -2px rgba(2, 6, 23, .18); }
.slider__input:active::-webkit-slider-thumb, .slider.is-dragging .slider__input::-webkit-slider-thumb { transform: scale(1.12); cursor: grabbing; box-shadow: 0 0 0 6px rgba(37, 94, 173, .12), 0 6px 16px -2px rgba(2, 6, 23, .2); }
.slider__input:focus-visible::-webkit-slider-thumb { box-shadow: var(--ring), 0 4px 10px -2px rgba(2, 6, 23, .14); }
.slider__input:focus-visible::-moz-range-thumb { box-shadow: var(--ring); }
.slider__labels { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 14px; }
.slider__label { padding: 6px 2px; border: 0; background: none; font-size: 14px; line-height: 1.3; color: var(--muted); text-align: center; cursor: pointer; border-radius: 8px; transition: color var(--t), background var(--t); }
.slider__label:first-child { text-align: left; }
.slider__label:last-child { text-align: right; }
.slider__label:hover { color: var(--black); }
.slider__label.is-active { color: var(--brand); font-weight: 600; }
.q.is-invalid .slider__track { background: #F8D7D7; }
/* labels lopen gelijk met de stops: buitenste labels links en rechts uitgelijnd, de middelste gecentreerd op 1/3 en 2/3 */
.slider__label:nth-child(2) { text-align: center; transform: translateX(-16.5%); }
.slider__label:nth-child(3) { text-align: center; transform: translateX(16.5%); }

/* ---------- kaart ----------
   Vaste hoogte voor de kaart en één regel voor de samenvatting: selecteren verschuift niets. */
.map { margin-top: 16px; }
.nl { display: block; width: 100%; height: 380px; overflow: visible; }
@media (max-width: 599px) { .nl { height: 320px; } }
.nl__prov { fill: var(--rail); stroke: var(--white); stroke-width: 1.5; stroke-linejoin: round; cursor: pointer; transition: fill 180ms var(--ease); outline: none; }
.nl__prov:hover { fill: #D3DFF3; }
.nl__prov.is-on { fill: var(--brand); }
.nl__prov.is-on:hover { fill: var(--brand-hover); }
.nl__prov:focus-visible { stroke: var(--black); stroke-width: 2.5; }
.map__bar { display: flex; align-items: center; gap: 12px; height: 52px; margin-top: 16px; padding: 0 8px 0 12px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.map__summary { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; font-size: 14px; color: var(--muted); }
.map__count { flex: none; min-width: 26px; height: 26px; padding: 0 8px; display: grid; place-items: center; border-radius: 999px; background: var(--tint); color: var(--muted); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; transition: background var(--t), color var(--t); }
.map__count.is-on { background: var(--brand); color: #fff; }
.map__names { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map__count.is-on + .map__names { color: var(--black); }
.map__clear { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; visibility: hidden; }
.map__clear.is-shown { visibility: visible; }
.map__clear:hover { background: var(--tint); color: var(--black); }
.map__clear .ico { width: 16px; height: 16px; }
.map__action { flex: none; height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--brand); font-size: 14px; font-weight: 500; cursor: pointer; }
.map__action:hover { background: var(--tint); }

/* ---------- werkdagen en tijdsloten ---------- */
.q[data-key="werkdagen"] > legend { float: left; margin-bottom: 0; line-height: 32px; }
.q[data-key="werkdagen"] .days { clear: both; padding-top: 12px; }
.toggle-all { float: right; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--black); font-size: 13px; font-weight: 500; cursor: pointer; transition: all var(--t); }
.toggle-all .ico { width: 0; height: 14px; stroke-width: 2.6; opacity: 0; transition: width var(--t), opacity var(--t); }
.toggle-all:hover { border-color: var(--line-2); }
.toggle-all.is-on { border-color: var(--brand); background: var(--tint); color: var(--brand); }
.toggle-all.is-on .ico { width: 14px; opacity: 1; }
.days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) repeat(2, minmax(0, .78fr)); gap: 8px; }
.day { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.day input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.day > span:not(.visually-hidden) { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 84px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); transition: background var(--t), border-color var(--t), transform var(--t); }
.day b { font-family: var(--head); font-size: 18px; font-weight: 700; letter-spacing: -.02em; color: var(--black); transition: color var(--t); }
.day i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--white) center/11px no-repeat; transition: all var(--t); }
.day:hover > span:not(.visually-hidden) { border-color: var(--line-2); }
.day:active > span:not(.visually-hidden) { transform: scale(.97); }
.day input:focus-visible + span { box-shadow: var(--ring); border-color: var(--brand); }
.day input:checked + span { background: var(--brand); border-color: var(--brand); }
.day input:checked + span b { color: #fff; }
.day input:checked + span i { border-color: #fff; background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23255EAD' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.day--off { cursor: not-allowed; }
.day--off:first-of-type, .day--off { }
.day--off > span { border-style: dashed !important; background: repeating-linear-gradient(135deg, var(--tint) 0 6px, var(--white) 6px 12px) !important; }
.day--off b { color: var(--faint); }
.day--off .ico { width: 14px; height: 14px; color: var(--faint); stroke-width: 2; }
@media (max-width: 599px) {
  .days { gap: 6px; }
  .day > span:not(.visually-hidden) { height: 72px; gap: 8px; }
  .day b { font-size: 16px; }
}
.q.is-invalid .day:not(.day--off) > span { border-color: #F2B8B8; }

.parts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.part { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.part input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.part > span { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); transition: border-color var(--t), background var(--t), box-shadow var(--t); }
.part > span > .ico { color: var(--muted); transition: color var(--t); }
.part__name { flex: 1; font-size: 15px; font-weight: 500; color: var(--black); }
.part:hover > span { border-color: var(--line-2); }
.part input:focus-visible + span { box-shadow: var(--ring); border-color: var(--brand); }
.part input:checked + span { border-color: var(--brand); background: var(--tint); box-shadow: inset 0 0 0 1px var(--brand); }
.part input:checked + span > .ico, .part input:checked + span .part__name { color: var(--brand); }
.part input:checked + span .box { background: var(--brand); border-color: var(--brand); color: #fff; }
.q__opt { font-weight: 400; color: var(--faint); margin-left: 4px; }
.fields--after { margin-top: 16px; }
.field__box--compact textarea.field__input { min-height: 44px; }

/* ---------- inmeetkaart ---------- */
.promo { margin-top: 20px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); animation: in 260ms var(--ease); }
.promo__title { font-family: var(--head); font-weight: 700; font-size: 22px; letter-spacing: -.04em; color: var(--black); }
.promo__text { margin-top: 4px; font-size: 15px; color: var(--text); }
/* Verhaal: foto + plattegrond = meer verdienpotentieel */
.story { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, .95fr); align-items: center; gap: 10px; margin-top: 18px; padding: 16px; border-radius: var(--r); background: var(--white); }
.story__tile { margin: 0; }
.story__tile svg { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 10px; background: var(--tint); }
.story__tile figcaption { margin-top: 8px; text-align: center; font-size: 12px; font-weight: 500; color: var(--muted); }
.story .vf { stroke: var(--brand); stroke-width: 2.5; }
.story .house { stroke: var(--muted); stroke-width: 2; }
.story .rec { fill: var(--brand); stroke: none; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.story .plan { stroke: var(--brand); stroke-width: 2.2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawPlan 900ms var(--ease) 250ms forwards; }
.story .plan + .plan { animation-delay: 600ms; }
.story .door { stroke: var(--brand); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .7; animation: drawPlan 500ms var(--ease) 1100ms forwards; }
.story .dim { stroke: var(--line-2); stroke-width: 1.5; opacity: 0; animation: fade 400ms var(--ease) 1300ms forwards; }
@keyframes drawPlan { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
.story__op { font-family: var(--head); font-size: 20px; font-weight: 700; color: var(--faint); padding-bottom: 22px; }
.story__result { display: flex; flex-direction: column; align-items: center; padding-bottom: 20px; text-align: center; }
.story__pct { font-family: var(--head); font-size: 34px; font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--brand); font-variant-numeric: tabular-nums; animation: pop 500ms var(--ease) 1500ms both; }
.story__label--top { margin: 0 0 4px !important; }
.story__label { margin-top: 6px; font-size: 12px; font-weight: 500; color: var(--muted); }
@media (max-width: 599px) {
  .story { gap: 6px; padding: 12px; }
  .story__op { font-size: 16px; }
  .story__pct { font-size: 26px; }
}
.promo .opt > span { background: var(--white); }

/* ---------- knoppen en navigatie ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 24px; border: 1px solid transparent; border-radius: var(--r); font-size: 16px; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background var(--t), border-color var(--t), box-shadow var(--t); -webkit-tap-highlight-color: transparent; }
.btn .ico { width: 18px; height: 18px; stroke-width: 2; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 18px -10px rgba(37, 94, 173, .7); }
.btn--primary:hover { background: var(--brand-hover); }
.btn--ghost { background: var(--white); color: var(--black); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--line-2); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn__spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite; }
.btn.is-loading .btn__spinner { display: inline-block; }
.btn.is-loading .btn__arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.actions { display: flex; gap: 12px; margin-top: 40px; }
.actions #btn-next { margin-left: auto; min-width: 180px; }
.legal { margin-top: 16px; font-size: 13px; color: var(--muted); }
@media (max-width: 599px) {
  .actions { position: sticky; bottom: 0; z-index: 3; margin: 32px -20px 0; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); }
  .actions #btn-next { flex: 1; min-width: 0; }
  .actions #btn-back { padding: 12px 16px; }
  .actions #btn-back span { display: none; }
  .legal { text-align: left; }
}

.alert { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; padding: 12px 14px; border-radius: var(--r); background: #FEF2F2; color: #991B1B; font-size: 14px; }
.alert .ico { width: 18px; height: 18px; margin-top: 1px; }

/* ---------- dialoog / bottom sheet ---------- */
.sheet { width: min(420px, calc(100vw - 32px)); max-width: none; padding: 0; border: 0; border-radius: 18px; background: var(--white); color: var(--text); box-shadow: 0 30px 70px -20px rgba(2, 6, 23, .35); }
.sheet::backdrop { background: rgba(2, 6, 23, .35); }
.sheet[open] { animation: pop 220ms var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.sheet__inner { position: relative; padding: 28px; }
.sheet__close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.sheet__close:hover { background: var(--tint); }
.sheet__title { font-size: 24px; padding-right: 36px; }
.sheet__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.sheet .btn--block { margin-top: 24px; }
@media (max-width: 599px) {
  .sheet { width: 100%; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .sheet[open] { animation: up 260ms var(--ease); }
  .sheet__inner { padding: 26px 20px calc(20px + env(safe-area-inset-bottom)); }
  @keyframes up { from { transform: translateY(100%); } to { transform: none; } }
}
.switches { margin-top: 18px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.switch:first-child { border-top: 1px solid var(--line); }
.switch__name { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; color: var(--black); }
.switch__name .ico { color: var(--muted); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch i { position: relative; width: 44px; height: 26px; flex: none; border-radius: 26px; background: var(--line-2); transition: background var(--t); }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(2, 6, 23, .2); transition: transform var(--t) var(--ease); }
.switch input:checked + i { background: var(--brand); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { box-shadow: var(--ring); }

/* ---------- welkom ---------- */
.welcome { flex: 1; display: flex; flex-direction: column; animation: in 300ms var(--ease); }
.welcome.is-back { animation-name: inBack; }
.welcome__photo { width: 100%; height: 220px; object-fit: cover; object-position: 50% 34%; border-radius: 16px; margin-bottom: 24px; }
@media (min-width: 980px) { .welcome__photo { display: none; } .welcome { padding-top: 8px; } }
.welcome__title { font-size: 30px; outline: none; text-wrap: balance; }
@media (min-width: 600px) { .welcome__title { font-size: 38px; } }
.welcome__text { margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--text); max-width: 520px; }
.welcome__actions { margin-top: 36px; }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 17px; }
@media (min-width: 980px) { .welcome__actions { margin-top: auto; padding-top: 36px; } }
@media (max-width: 599px) {
  .welcome__actions { position: sticky; bottom: 0; z-index: 3; margin: 28px -20px 0; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); }
  .welcome__actions .btn { width: 100%; }
}

/* Stappenplan: drie fases op één verticale, verbonden lijn. Fase 01 (nu) krijgt nadruk. */
.phases { --icon: 44px; position: relative; display: grid; gap: 4px; list-style: none; padding: 0; margin: 28px 0 0; }
.phase { position: relative; display: grid; grid-template-columns: var(--icon) minmax(0, 1fr); column-gap: 16px; align-items: start; padding: 14px 16px 14px 14px; border-radius: 16px; opacity: 0; animation: phaseIn 420ms var(--ease) forwards; }
.phase:nth-child(1) { animation-delay: 120ms; }
.phase:nth-child(2) { animation-delay: 300ms; }
.phase:nth-child(3) { animation-delay: 480ms; }
/* verbindingslijn tussen de iconen */
.phase:not(:last-child)::after { content: ""; position: absolute; left: calc(14px + var(--icon) / 2 - 1px); top: calc(14px + var(--icon) + 6px); bottom: calc(-14px - 4px + 6px); width: 2px; border-radius: 2px; background: var(--brand-soft, #C9D8F2); transform-origin: top; transform: scaleY(0); animation: drawY 420ms var(--ease) forwards; }
.phase:nth-child(1)::after { animation-delay: 420ms; }
.phase:nth-child(2)::after { animation-delay: 600ms; background: repeating-linear-gradient(to bottom, var(--brand-soft, #C9D8F2) 0 4px, transparent 4px 8px); }
.phase__icon { position: relative; z-index: 1; width: var(--icon); height: var(--icon); display: grid; place-items: center; border-radius: 12px; background: var(--surface); color: var(--brand); }
.phase__icon .ico { width: 22px; height: 22px; }
.phase__body { min-width: 0; padding-top: 2px; }
.phase__title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-family: var(--head); font-size: 18px; font-weight: 700; letter-spacing: -.03em; line-height: 1.25; color: var(--black); }
.phase__num { color: var(--brand); font-variant-numeric: tabular-nums; }
.phase__time { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: var(--white); color: var(--brand); font-family: var(--body); font-size: 12px; font-weight: 500; letter-spacing: 0; box-shadow: 0 0 0 1px var(--surface); white-space: nowrap; }
.phase__text { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.phase--now { background: var(--tint); box-shadow: inset 0 0 0 1px var(--surface); }
.phase--now .phase__icon { background: var(--brand); color: #fff; box-shadow: 0 8px 18px -8px rgba(37, 94, 173, .7); }
.phase--now .phase__text { color: var(--text); }
@keyframes phaseIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes drawY { to { transform: scaleY(1); } }
@media (max-width: 599px) {
  .phases { --icon: 40px; margin-top: 24px; }
  .phase { column-gap: 14px; padding: 12px; }
  .phase:not(:last-child)::after { left: calc(12px + var(--icon) / 2 - 1px); top: calc(12px + var(--icon) + 6px); bottom: calc(-12px - 4px + 6px); }
  .phase__title { font-size: 17px; }
}

/* ---------- bevestiging ---------- */
.done { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 8px; text-align: center; animation: in 300ms var(--ease); }
.done__badge { width: 64px; height: 64px; margin-bottom: 24px; border-radius: 50%; background: var(--ok-soft); display: grid; place-items: center; }
.done__badge svg { width: 44px; height: 44px; }
.done__ring { fill: none; stroke: var(--ok); stroke-width: 2.5; stroke-dasharray: 132; stroke-dashoffset: 132; animation: draw 600ms var(--ease) forwards; }
.done__check { fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 400ms var(--ease) 450ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done__title { font-size: 32px; outline: none; text-wrap: balance; max-width: 520px; }
.done__text { margin-top: 12px; max-width: 440px; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* Vervolgstappen na verzenden: ontvangen (klaar), Proland bekijkt (nu), contact (mogelijk later) */
.next { --tile: 76px; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; max-width: 560px; margin: 40px auto 0; padding: 0; list-style: none; }
.next__step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; opacity: 0; animation: nextIn 420ms var(--ease) forwards; }
.next__step:nth-child(1) { animation-delay: 700ms; }
.next__step:nth-child(2) { animation-delay: 950ms; }
.next__step:nth-child(3) { animation-delay: 1200ms; }
/* verbindingslijn naar de volgende stap, op de hartlijn van de tegels */
.next__step:not(:last-child)::after { content: ""; position: absolute; z-index: 0; top: calc(var(--tile) / 2 - 1px); left: calc(50% + var(--tile) / 2 + 4px); width: calc(100% - var(--tile) - 8px); height: 2px; border-radius: 2px; transform-origin: left; transform: scaleX(0); animation: drawX 500ms var(--ease) forwards; }
.next__step--done::after { background: linear-gradient(to right, #6FD39A, #3B8FD9 70%, var(--brand)); animation-delay: 1000ms !important; }
.next__step--now::after { background: linear-gradient(to right, var(--brand), var(--line)); animation-delay: 1250ms !important; }
.next__tile { position: relative; z-index: 1; width: var(--tile); height: var(--tile); display: grid; place-items: center; border-radius: 20px; }
.next__tile > .ico { width: 32px; height: 32px; stroke-width: 1.6; }
.next__label { max-width: 160px; text-wrap: balance; font-family: var(--head); font-size: 18px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; color: var(--black); }

.next__step--done .next__tile { background: var(--ok-soft); color: var(--ok); box-shadow: 0 0 0 1px #CDEBD8, 0 10px 24px -10px rgba(22, 163, 74, .45); }
.next__check { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--ok); color: #fff; box-shadow: 0 0 0 3px var(--white); }
.next__check .ico { width: 13px; height: 13px; stroke-width: 3; }

.next__step--now .next__tile { background: var(--white); color: var(--brand); box-shadow: 0 0 0 1px var(--brand-soft, #C9D8F2), 0 10px 28px -6px rgba(37, 94, 173, .45); }
.next__step--now .next__tile::before { content: ""; position: absolute; inset: -8px; z-index: -1; border-radius: 24px; background: radial-gradient(closest-side, rgba(37, 94, 173, .22), rgba(37, 94, 173, 0)); animation: glow 2.6s ease-in-out 1.6s infinite; }
@keyframes glow { 50% { opacity: .35; transform: scale(.94); } }

.next__step--later .next__tile { background: var(--tint); color: var(--faint); box-shadow: 0 0 0 1px var(--line); }
.next__step--later .next__label { color: var(--muted); }

@keyframes drawX { to { transform: scaleX(1); } }
@keyframes nextIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 599px) {
  .next { --tile: 54px; margin-top: 32px; }
  .next__tile { border-radius: 15px; }
  .next__tile > .ico { width: 24px; height: 24px; }
  .next__label { font-size: 15px; max-width: 110px; }
}

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer__inner { display: flex; gap: 24px; padding-top: 20px; padding-bottom: 20px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .done__ring, .done__check { stroke-dashoffset: 0; }
  .phase, .next__step { opacity: 1 !important; }
  .next__step::after { transform: none !important; }
  .phase::after { transform: none !important; }
}
