/* ══════════════════════════════════════════════════════════════
   STAPPENFORMULIER — één vraag per scherm (2026-10, branch funnel-v2)
   Gedeeld door alle landingspagina's. Gebruikt de CSS-variabelen
   van de pagina (--primary, --heading-font, --body-font, ...).
   ══════════════════════════════════════════════════════════════ */

.sf { position: relative; min-height: 440px; display: flex; flex-direction: column; }

/* Voortgang */
.sf-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 36px; }
.sf-bar { flex: 1; height: 3px; background: var(--border-light); overflow: hidden; }
.sf-bar-fill { height: 100%; width: 0; background: var(--primary); transition: width 0.4s ease; }
.sf-count { font-size: 11px; color: var(--text-muted); letter-spacing: 0.1em; font-variant-numeric: tabular-nums; }

/* Eén stap */
.sf-step { border: 0; animation: sf-in 0.35s ease both; }
.sf-step.sf-back { animation-name: sf-in-back; }
@keyframes sf-in      { from { opacity: 0; transform: translateY(18px); }  to { opacity: 1; transform: none; } }
@keyframes sf-in-back { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sf-step, .sf-bar-fill { animation: none; transition: none; } }

.sf .sf-q {
  font-family: var(--heading-font); font-size: 26px; font-weight: 400;
  color: var(--text); line-height: 1.3; margin-bottom: 10px; padding: 0;
}
.sf .sf-q:focus { outline: none; }
.sf-hint { font-size: 14px; color: var(--text-muted); line-height: 1.7; font-weight: 300; margin-bottom: 26px; }

/* Keuzetegels */
.sf-options { display: flex; flex-direction: column; gap: 10px; }
.sf-option {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 14px 16px; text-align: left; cursor: pointer;
  background: var(--off-white); border: 1px solid var(--border-light);
  font-family: var(--body-font); font-size: 15px; font-weight: 400; color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.sf-option:hover { border-color: var(--primary); background: var(--white); }
.sf-option:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.sf-key {
  flex-shrink: 0; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-light); font-size: 11px; font-weight: 500; color: var(--text-muted);
  background: var(--white);
}
.sf-option.is-selected { border-color: var(--primary); background: var(--primary); color: var(--white); }
.sf-option.is-selected .sf-key { border-color: rgba(255,255,255,0.5); color: var(--white); background: transparent; }

/* Tekstvelden */
.sf-field { margin-bottom: 16px; }
.sf-field label {
  display: block; font-size: 11px; font-weight: 500; color: var(--text-muted);
  margin-bottom: 7px; text-transform: uppercase; letter-spacing: 0.1em;
}
.sf-field input, .sf-field textarea {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--border-light); background: var(--off-white);
  font-family: var(--body-font); font-size: 16px; font-weight: 300; color: var(--text);
  outline: none; transition: border-color 0.2s; appearance: none; border-radius: 0;
}
.sf-field input:focus, .sf-field textarea:focus { border-color: var(--primary); background: var(--white); }
.sf-field.has-error input { border-color: #a4332b; }
.sf-error { font-size: 13px; color: #a4332b; margin-top: 6px; min-height: 0; }

/* Navigatie */
.sf-nav { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.sf-next {
  background: var(--black); color: var(--white); border: 1px solid var(--black);
  padding: 15px 28px; cursor: pointer;
  font-family: var(--body-font); font-size: 12px; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase; transition: background 0.2s;
}
.sf-next:hover { background: var(--primary); border-color: var(--primary); }
.sf-next[disabled] { opacity: 0.5; cursor: default; }
.sf-enter { font-size: 12px; color: var(--text-muted); }
.sf-enter kbd { font-family: var(--body-font); font-weight: 500; }
.sf-backbtn {
  margin-top: auto; padding-top: 28px; align-self: flex-start;
  background: none; border: 0; cursor: pointer;
  font-family: var(--body-font); font-size: 12px; color: var(--text-muted);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.sf-backbtn:hover { color: var(--text); }

.sf-privacy { font-size: 12px; color: var(--text-muted); line-height: 1.6; margin-top: 14px; font-weight: 300; }
.sf-privacy a { color: var(--text-muted); }

/* Eindscherm */
.sf .sf-done .sf-q { font-size: 28px; }
.sf-done p { font-size: 15px; color: var(--text); line-height: 1.8; font-weight: 300; margin-bottom: 14px; }
.sf-done a { color: var(--primary); }

/* Testmodus-label (alleen lokaal of met ?test) */
.sf-testbadge {
  position: absolute; top: -44px; right: 0;
  background: #f4d35e; color: #1a1a1a; font-size: 11px; font-weight: 500;
  padding: 4px 10px; letter-spacing: 0.06em; text-transform: uppercase;
}

@media (max-width: 768px) {
  .sf { min-height: 400px; }
  .sf .sf-q { font-size: 23px; }
  .sf-option { padding: 15px 14px; font-size: 16px; }
  .sf-enter { display: none; }
  .sf-next { width: 100%; padding: 17px; font-size: 13px; }
  .sf-testbadge { top: -34px; }
}

/* Vrije optie ("Iets anders"): tekstveld onder de tegels */
.sf-other { margin-top: 18px; animation: sf-in 0.25s ease both; }
.sf-other[hidden] { display: none; }
.sf-other .sf-nav { margin-top: 4px; }
