/* ==========================================================================
   Start a project — intake-flow (versie Youri)
   Volledig scherm op mobiel, paneel rechts op desktop. Eén vraag per scherm.
   Alleen gebruikt door home-youri.html; raakt de gedeelde stijl niet.
   ========================================================================== */

.st { --st-accent: #2fd36b; --st-tile: #1f1f1f; --st-tile-on: #f7f7f7; position: fixed; inset: 0; z-index: 400; display: flex; justify-content: flex-end; }
.st[hidden] { display: none; }
.st__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s var(--ease); }
.st.is-open .st__scrim { opacity: 1; }

.st__panel {
  position: relative; display: flex; flex-direction: column; width: min(560px, 100%); height: 100%; height: 100dvh;
  background: var(--bg); color: var(--fg); border-left: 1px solid var(--line);
  transform: translateX(24px); opacity: 0; transition: transform .45s var(--ease), opacity .35s var(--ease);
}
.st.is-open .st__panel { transform: none; opacity: 1; }

/* ---------- kop: voortgang + sluiten ---------- */
.st__top { flex: none; padding: max(14px, env(safe-area-inset-top)) 20px 0; }
.st__bar { display: flex; align-items: center; gap: 12px; height: 48px; }
.st__back, .st__close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: 0 -10px; border-radius: 50%; font-size: 20px; line-height: 1; transition: background .2s, opacity .2s; }
.st__back:hover, .st__close:hover { background: rgba(247, 247, 247, .08); }
.st__back[disabled] { opacity: 0; pointer-events: none; }
.st__count { flex: 1; text-align: center; font-size: var(--t-label); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); font-variant-numeric: tabular-nums; }
.st__progress { height: 2px; margin-top: 6px; background: var(--line); border-radius: 2px; overflow: hidden; }
.st__progress i { display: block; height: 100%; width: 0; background: var(--fg); transition: width .45s var(--ease); }

/* ---------- inhoud ---------- */
.st__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 28px 20px 24px; }
.st__step { animation: st-in .45s var(--ease) both; }
.st__step.is-back { animation-name: st-in-back; }
@keyframes st-in { from { opacity: 0; transform: translateX(18px); } }
@keyframes st-in-back { from { opacity: 0; transform: translateX(-18px); } }

.st__eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: var(--t-label); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.st__eyebrow .hdr__cta-dot { width: 7px; height: 7px; }
.st__q { font-size: clamp(28px, 7.4vw, 40px); line-height: 1.06; font-weight: 500; letter-spacing: -.02em; outline: none; }
.st__q em { font-style: italic; font-synthesis: style; }
.st__sub { margin-top: 12px; color: var(--mute); font-size: 16px; line-height: 1.45; max-width: 40ch; }

/* keuzetegels: echte radio's/checkboxen, als tegel gestyled */
.st__opts { display: grid; gap: 8px; margin-top: 26px; border: 0; padding: 0; min-width: 0; }
.st__opts--2 { grid-template-columns: 1fr 1fr; }
.st__opt { position: relative; display: block; }
.st__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.st__opt span {
  display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 14px 18px; border-radius: 14px;
  background: var(--st-tile); border: 1px solid var(--line); font-size: 17px; font-weight: 500; line-height: 1.25;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.st__opt span small { display: block; margin-top: 3px; font-size: 14px; font-weight: 400; color: var(--mute); transition: color .2s; }
.st__opt span b { font-weight: 500; }
.st__opt span::after { content: ""; flex: none; margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); transition: background .2s, border-color .2s; }
.st__opt input[type="checkbox"] + span::after { border-radius: 6px; }
.st__opt input:checked + span { background: var(--st-tile-on); color: var(--bg); border-color: var(--st-tile-on); }
.st__opt input:checked + span small { color: #555; }
.st__opt input:checked + span::after { border-color: var(--bg); background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23f7f7f7' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.st__opt input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 3px; }
.st__opt:active span { transform: scale(.985); }
@media (hover: hover) { .st__opt:hover input:not(:checked) + span { border-color: var(--line-2); background: #242424; } }
.st__opts--2 .st__opt span { min-height: 56px; padding: 12px 14px; font-size: 16px; }
.st__opts--2 .st__opt span::after { display: none; }
.st__opt--unsure span { background: transparent; border-style: dashed; }

/* velden */
.st__fields { display: grid; gap: 18px; margin-top: 26px; }
.st__field label, .st__field .st__lbl { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.st__field label small, .st__lbl small { font-weight: 400; color: var(--mute); }
.st__input {
  width: 100%; height: 56px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--st-tile);
  color: var(--fg); font: 400 16px/1.3 var(--sans); /* 16px: geen inzoomen op iOS */ transition: border-color .2s, background .2s;
  -webkit-appearance: none; appearance: none;
}
textarea.st__input { height: auto; min-height: 96px; padding: 14px 16px; resize: vertical; }
.st__input::placeholder { color: #777; }
.st__input:focus { outline: none; border-color: var(--fg); background: #222; }
.st__input[aria-invalid="true"] { border-color: #ff6b5e; }
.st__err { margin-top: 6px; font-size: 14px; color: #ff8a7f; }
.st__err:empty { display: none; }
.st__date { margin-top: 22px; }

.st__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.st__chip { position: relative; }
.st__chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.st__chip span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 15px; transition: background .2s, color .2s; }
.st__chip input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.st__chip input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 3px; }

/* samenvatting op de laatste stap */
.st__recap { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.st__recap button { height: 30px; padding: 0 12px; border-radius: 99px; background: rgba(247, 247, 247, .08); font-size: 13px; color: var(--fg); transition: background .2s; }
.st__recap button:hover { background: rgba(247, 247, 247, .16); }

/* geruststelling, snelle lijn, bewijs */
.st__note { display: flex; gap: 10px; margin-top: 20px; font-size: 14px; line-height: 1.45; color: var(--mute); }
.st__note::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a6a6a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat; }
.st__direct { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); font-size: 15px; line-height: 1.35; }
.st__direct small { display: block; color: var(--mute); font-size: 13px; }
.st__direct a { flex: none; display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; transition: background .2s, color .2s; }
.st__direct a:hover { background: var(--fg); color: var(--bg); }
.st__trust { margin-top: 18px; font-size: 13px; color: var(--mute); line-height: 1.5; }
.st__trust b { color: var(--fg); font-weight: 500; }

/* ---------- voet: knoppen binnen duimbereik ---------- */
.st__foot { flex: none; display: flex; gap: 10px; padding: 12px 20px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
.st__next { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; border-radius: 99px; background: var(--fg); color: var(--bg); font-size: 16px; font-weight: 700; transition: opacity .2s, transform .15s; }
.st__next:active { transform: scale(.985); }
.st__next[aria-disabled="true"] { opacity: .35; }
.st__next i { font-style: normal; transition: transform .2s; }
.st__next:hover i { transform: translateX(3px); }
.st__foot[hidden] { display: none; }

/* ---------- bedankt ---------- */
.st__done-mark { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 26px; border-radius: 50%; background: var(--st-accent); color: #0b2a16; font-size: 26px; }
.st__actions { display: grid; gap: 10px; margin-top: 28px; }
.st__btn { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 22px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 16px; font-weight: 500; transition: background .2s, color .2s; }
.st__btn--solid { background: var(--fg); color: var(--bg); border-color: var(--fg); font-weight: 700; }
.st__btn:hover { background: var(--fg); color: var(--bg); }
.st__case { display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: center; margin-top: 30px; padding: 10px; border-radius: 14px; background: var(--st-tile); transition: background .2s; }
.st__case:hover { background: #262626; }
.st__case img { width: 88px; height: 88px; object-fit: cover; border-radius: 8px; background: #2a2a2a; }
.st__case small { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.st__case strong { display: block; margin-top: 4px; font-size: 17px; font-weight: 500; }
.st__case em { font-style: normal; font-size: 14px; color: var(--mute); }

/* interne fiche (alleen met ?fiche in de URL) */
.st__fiche { margin-top: 34px; padding: 16px; border-radius: 12px; border: 1px dashed var(--line-2); font: 13px/1.6 var(--mono); color: var(--mute); white-space: pre-wrap; word-break: break-word; }
.st__fiche b { color: var(--fg); }

/* ---------- zwevende knop op mobiel ---------- */
.st-fab {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 90;
  display: none; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 99px;
  background: var(--fg); color: var(--bg); font-size: 15px; font-weight: 700; letter-spacing: .02em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); transform: translate(-50%, 140%); transition: transform .45s var(--ease);
}
.st-fab.is-on { transform: translate(-50%, 0); }
@media (max-width: 480px) { .st-fab { display: inline-flex; } }

/* ---------- desktop ---------- */
@media (min-width: 721px) {
  .st__top { padding: 22px 40px 0; }
  .st__body { padding: 48px 40px 32px; }
  .st__foot { padding: 16px 40px 22px; }
  .st__opts:not(.st__opts--2) .st__opt span { min-height: 64px; }
}
@media (max-width: 720px) { .st__panel { border-left: 0; } }

@media (prefers-reduced-motion: reduce) {
  .st__panel, .st__scrim, .st__progress i, .st-fab { transition: none; }
  .st__step { animation: none; }
}
