/* ── Design tokens ─────────────────────────────────────────────── */
:root {
  --primary:    #0ea5e9;
  --primary-d:  #0284c7;
  --primary-bg: #f0f9ff;
  --text:       #0f172a;
  --muted:      #475569;
  --border:     #e2e8f0;
  --surface:    #ffffff;
  --bg-alt:     #f7fafc;
  --radius:     14px;
  --shadow-sm:  0 2px 8px rgba(2,8,23,.06);
  --shadow:     0 8px 32px rgba(2,8,23,.09);
  --shadow-lg:  0 20px 60px rgba(2,8,23,.12);
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font: 16px/1.65 system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-d); }

/* ── Layout ────────────────────────────────────────────────────── */
.container { width: min(1140px, 92vw); margin-inline: auto; }
.section { padding: 72px 0; }
.section--alt { background: var(--bg-alt); }
.section__header { text-align: center; margin-bottom: 40px; }
.section__header h2 {
  font-size: clamp(24px, 3.5vw, 38px);
  margin: 0 0 .5rem;
  letter-spacing: -.02em;
}
.section__header p { color: var(--muted); margin: 0; font-size: 1.05rem; }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .8rem 1.4rem; border-radius: 999px;
  font-weight: 700; font-size: 1rem; border: 2px solid transparent;
  cursor: pointer; transition: background .15s, transform .1s, box-shadow .15s;
  text-decoration: none; line-height: 1;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-d); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(14,165,233,.35); }
.btn--lg { padding: 1rem 1.8rem; font-size: 1.1rem; }
.btn--block { display: flex; width: 100%; }
.btn--outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn--outline:hover { border-color: var(--primary); color: var(--primary); }

/* ── Skip link ─────────────────────────────────────────────────── */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; border-radius: 8px; z-index: 9999; }

/* ── Header ────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 12px;
}
@media (max-width: 640px) {
  .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
  .header-inner .brand { grid-column: 2; text-align: center; }
  .header-inner .btn { grid-column: 3; justify-self: end; }
}
.brand { display: flex; flex-direction: column; gap: 1px; text-decoration: none; }
.brand-main { font-size: 1.15rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.brand-tld { color: var(--primary); }
.brand-sub { font-size: .72rem; color: var(--muted); font-weight: 500; }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero { padding: 56px 0 64px; background: linear-gradient(160deg, var(--surface) 60%, var(--primary-bg)); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: start;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-bg); color: var(--primary-d);
  border: 1px solid rgba(14,165,233,.3); border-radius: 999px;
  font-size: .82rem; font-weight: 700; padding: .3rem .9rem;
  margin-bottom: 16px; letter-spacing: .04em; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(28px, 4.5vw, 52px);
  line-height: 1.1;
  letter-spacing: -.025em;
  margin: 0 0 16px;
}
.accent { color: var(--primary); }
.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 22px;
  max-width: 50ch;
}
.trust-pills {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px;
}
.trust-pill {
  display: flex; align-items: center; gap: 5px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 999px; padding: .35rem .85rem;
  font-size: .82rem; font-weight: 600; color: var(--text);
}
.trust-pill .check { color: #22c55e; font-size: .9rem; }
.hero-rating {
  display: flex; align-items: center; gap: 10px;
  font-size: .9rem; color: var(--muted);
}
.stars { color: #f59e0b; letter-spacing: 1px; }
.hero-mobile-cta { display: none; margin-top: 20px; }

/* ── Form card ─────────────────────────────────────────────────── */
.form-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: sticky;
  top: 80px;
}
.form-card-title {
  font-size: 1rem; font-weight: 700; text-align: center;
  margin: 0 0 16px; color: var(--text);
}
.form-card-title span { color: var(--primary); }

/* ── Wizard ────────────────────────────────────────────────────── */
.wizard__meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.wizard__step-label { font-size: .78rem; color: var(--muted); font-weight: 600; }
.wizard__back {
  background: none; border: none; color: var(--muted);
  cursor: pointer; font-size: .78rem; padding: 0;
}
.wizard__back:hover { color: var(--text); }
.wizard__back[hidden] { display: none; }
.wizard__progress {
  background: var(--border); border-radius: 999px; height: 4px;
  margin-bottom: 18px; overflow: hidden;
}
.wizard__bar {
  background: var(--primary); height: 100%;
  width: var(--pct, 14%); transition: width .3s ease; border-radius: 999px;
}
.wizard__step { animation: wFade .18s ease; }
.wizard__step[hidden] { display: none; }
@keyframes wFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.wizard__question {
  font-size: .95rem; font-weight: 700; text-align: center; margin: 0 0 12px;
}
.wizard__hint {
  text-align: center; color: var(--muted); font-size: .75rem; margin: -6px 0 10px;
}
.wizard__choices {
  display: flex; flex-wrap: wrap; gap: 7px; justify-content: center;
}
.choice {
  padding: .45rem .95rem; border-radius: 999px;
  border: 2px solid var(--border); background: var(--surface);
  font-size: .85rem; font-weight: 600; cursor: pointer;
  transition: border-color .12s, background .12s, color .12s;
  color: var(--text); min-height: 36px;
}
.choice:hover { border-color: var(--primary); color: var(--primary); }
.choice--selected,
.choice--selected:hover { border-color: var(--primary); background: var(--primary); color: #fff; }

/* Anders veld */
.anders-field { margin-top: 10px; display: flex; gap: 8px; justify-content: center; }
.anders-field input {
  padding: .5rem .85rem; border-radius: 10px;
  border: 2px solid var(--border); font-size: .88rem;
  flex: 1; max-width: 220px; outline: none; transition: border-color .15s;
}
.anders-field input:focus { border-color: var(--primary); }

/* Volgende knop (stap 1 en 1b) */
.wizard-next-wrap { text-align: center; margin-top: 14px; }
.wizard-next-wrap .btn { padding: .65rem 1.6rem; font-size: .92rem; }

@keyframes btnPopUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
#vakVolgende:not([hidden]), #bsVolgende:not([hidden]) {
  animation: btnPopUp .22s ease;
}

/* Contact form stap */
.contact-form-fields { display: flex; flex-direction: column; gap: 10px; }
.form-field { display: flex; flex-direction: column; gap: 4px; }
.form-field label { font-weight: 600; font-size: .8rem; color: var(--text); }
.form-field input {
  padding: .65rem .9rem; border-radius: 10px;
  border: 2px solid var(--border); font-size: .9rem;
  outline: none; transition: border-color .15s; width: 100%;
}
.form-field input:focus { border-color: var(--primary); }
.field-note { font-size: .72rem; color: var(--muted); }

/* Summary chips */
.wizard__summary { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 14px; }
.summary-chip {
  background: var(--primary-bg); color: var(--primary-d);
  border-radius: 999px; padding: .2rem .7rem; font-size: .75rem; font-weight: 600;
}

.form-error { color: #dc2626; font-size: .78rem; text-align: center; }
.form-error[hidden] { display: none; }
.form-privacy { text-align: center; font-size: .72rem; color: var(--muted); margin: 6px 0 0; }

/* Leerjaar grid: smaller pills */
#leerjaarChoices { gap: 6px; }
#leerjaarChoices .choice { padding: .4rem .7rem; font-size: .82rem; }

/* ── Trust bar ──────────────────────────────────────────────────── */
.trust-bar { padding: 32px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.trust-bar-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.trust-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.trust-icon { font-size: 1.8rem; }
.trust-label { font-weight: 700; font-size: .9rem; }
.trust-desc { color: var(--muted); font-size: .8rem; }

/* ── How it works ───────────────────────────────────────────────── */
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.step {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm);
  position: relative;
}
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--primary-bg); color: var(--primary);
  font-weight: 800; font-size: 1rem; margin-bottom: 12px;
}
.step h3 { font-size: 1rem; margin: 0 0 6px; }
.step p { color: var(--muted); font-size: .88rem; margin: 0; }

/* ── Vakken ─────────────────────────────────────────────────────── */
.vakken-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.vak-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 18px 16px;
  box-shadow: var(--shadow-sm); text-decoration: none; color: var(--text);
  transition: border-color .15s, box-shadow .15s, transform .15s;
  display: flex; flex-direction: column; gap: 6px;
}
.vak-card:hover {
  border-color: var(--primary); box-shadow: var(--shadow);
  transform: translateY(-2px); color: var(--text);
}
.vak-icon { font-size: 1.5rem; }
.vak-name { font-weight: 700; font-size: .95rem; }
.vak-desc { color: var(--muted); font-size: .8rem; }

/* ── Voordelen ──────────────────────────────────────────────────── */
.voordelen-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.voordeel {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm);
}
.voordeel-icon { font-size: 1.6rem; margin-bottom: 10px; }
.voordeel h3 { font-size: .95rem; margin: 0 0 6px; }
.voordeel p { color: var(--muted); font-size: .85rem; margin: 0; }

/* ── Reviews ────────────────────────────────────────────────────── */
.reviews-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.review-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm);
}
.review-stars { color: #f59e0b; font-size: 1rem; margin-bottom: 10px; }
.review-text { color: var(--muted); font-size: .88rem; line-height: 1.6; margin: 0 0 12px; font-style: italic; }
.review-author { font-weight: 700; font-size: .82rem; }
.reviews-google-link {
  text-align: center; margin-top: 28px;
}
.google-reviews-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .65rem 1.4rem; border-radius: 50px;
  border: 1.5px solid var(--border); background: var(--surface);
  color: var(--text); font-size: .9rem; font-weight: 600;
  text-decoration: none; transition: border-color .2s, box-shadow .2s;
  box-shadow: var(--shadow-sm);
}
.google-reviews-btn:hover {
  border-color: #4285F4; color: var(--text);
  box-shadow: 0 4px 14px rgba(66,133,244,.2);
}

/* ── Lokale sectie ──────────────────────────────────────────────── */
.lokaal-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
}
.lokaal-text h2 { font-size: clamp(22px, 3vw, 32px); margin: 0 0 16px; }
.lokaal-text p { color: var(--muted); font-size: .95rem; line-height: 1.75; margin: 0 0 12px; }
.lokaal-lijst { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
.lokaal-lijst li { display: flex; align-items: baseline; gap: 8px; font-size: .9rem; }
.lokaal-lijst li::before { content: "📍"; font-size: .85rem; flex-shrink: 0; }
.lokaal-cta { background: var(--primary-bg); border: 1.5px solid rgba(14,165,233,.25); border-radius: var(--radius); padding: 24px; }
.lokaal-cta h3 { margin: 0 0 8px; font-size: 1rem; }
.lokaal-cta p { color: var(--muted); font-size: .88rem; margin: 0 0 16px; }

/* ── FAQ ────────────────────────────────────────────────────────── */
.faq-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.faq-item {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 14px 18px;
}
.faq-item summary {
  cursor: pointer; font-weight: 700; font-size: .9rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; color: var(--primary); font-size: 1.2rem; flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-answer { color: var(--muted); font-size: .875rem; line-height: 1.65; margin-top: 10px; }
.faq-answer a { color: var(--primary); }

/* ── CTA sectie ─────────────────────────────────────────────────── */
.cta-sectie {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-d) 100%);
  padding: 64px 0; text-align: center; color: #fff;
}
.cta-sectie h2 { font-size: clamp(24px, 3.5vw, 36px); margin: 0 0 .5rem; color: #fff; }
.cta-sectie p { margin: 0 0 28px; opacity: .9; font-size: 1.05rem; }
.cta-sectie .btn {
  background: #fff; color: var(--primary-d);
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
}
.cta-sectie .btn:hover { background: var(--primary-bg); color: var(--primary-d); }
.cta-trust { display: flex; gap: 20px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.cta-trust span { font-size: .85rem; opacity: .85; }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer { background: #0b1220; color: #cbd5e1; padding: 40px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px;
  padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .brand-main { color: #e2e8f0; }
.footer-brand .brand-sub { color: #64748b; }
.footer-brand p { color: #94a3b8; font-size: .875rem; margin: 10px 0 0; line-height: 1.65; }
.footer-title { color: #e2e8f0; font-size: .85rem; font-weight: 700; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .05em; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.footer-links a { color: #94a3b8; font-size: .875rem; }
.footer-links a:hover { color: #fff; }
.footer-meta {
  text-align: center; padding: 16px 0; color: #475569; font-size: .8rem;
}

/* ── WhatsApp ────────────────────────────────────────────────────── */
.whatsapp-btn {
  position: fixed; bottom: 24px; right: 20px;
  width: 56px; height: 56px; background: #25d366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4); z-index: 100;
  transition: transform .15s, box-shadow .15s;
}
.whatsapp-btn:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37,211,102,.5); }
.whatsapp-btn svg { width: 30px; height: 30px; fill: #fff; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-form { order: 2; }
  .form-card { position: static; }
  .hero-mobile-cta { display: inline-flex; }
  .trust-bar-grid { grid-template-columns: repeat(2, 1fr); }
  .vakken-grid { grid-template-columns: repeat(2, 1fr); }
  .voordelen-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .lokaal-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .hero { padding: 32px 0 40px; }
  .steps-grid { grid-template-columns: 1fr; }
  .vakken-grid { grid-template-columns: repeat(2, 1fr); }
  .voordelen-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-bar-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .whatsapp-btn { bottom: calc(16px + env(safe-area-inset-bottom)); right: 16px; width: 52px; height: 52px; }

  /* Volgende knoppen in flow op mobiel */
  #vakVolgende, #bsVolgende {
    width: 100%; border-radius: 12px; font-size: 1rem; padding: .9rem;
    box-shadow: 0 8px 28px rgba(14,165,233,.3);
  }
  /* Submit knop sticky */
  .contact-form-fields button[type=submit] {
    position: sticky;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 10;
    box-shadow: 0 8px 28px rgba(14,165,233,.35);
  }

  .trust-pills { display: grid; grid-template-columns: 1fr 1fr; }
  .choice {
    flex: 1 1 calc(50% - 4px);
    max-width: calc(50% - 4px);
    justify-content: center;
    min-height: 44px;
  }
  [data-step="3"] .choice {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .anders-field { flex-direction: column; }
  .anders-field input { max-width: 100%; }
}
