/* Rijschool Voorrang — demo rijschool. Gedeelde stijl voor alle pakketten. */
:root {
  --navy: #0a2251;          /* donkere vlakken, hero */
  --blue: #0b4aa2;          /* primair (merk), links */
  --blue-600: #0d58c2;
  --blue-100: #dce8fb;
  --blue-50: #eef4fd;
  --yellow: #ffc629;        /* signaalgeel: CTA's, accenten */
  --yellow-600: #f0b400;
  --yellow-50: #fff7dc;
  --ink: #0f1e3a;           /* tekst */
  --ink-2: #45536f;         /* secundaire tekst (7:1 op wit) */
  --on-navy: #e6edf9;
  --on-navy-2: #aebbd6;
  --line: #d8e1ef;
  --bg: #ffffff;
  --soft: #f4f7fc;
  --green: #0b7a43;
  --red: #b42318;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 18px;
  --r-sm: 12px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --shadow: 0 1px 2px rgba(15, 30, 58, .06), 0 12px 32px -12px rgba(15, 30, 58, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --z-header: 40; --z-bar: 50; --z-menu: 60;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow-600); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 56px; }
svg.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Typografie ---------- */
h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; font-stretch: 112%; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--ink-2); max-width: 60ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 4px; border-radius: 2px; background: var(--yellow); }
.on-navy .eyebrow { color: var(--yellow); }
.muted { color: var(--ink-2); }

/* ---------- Knoppen ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: var(--r-sm); border: 2px solid transparent; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .12s var(--ease); touch-action: manipulation; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: var(--yellow-600); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--navy); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.on-navy .btn-ghost, .btn-ghost.light { color: #fff; border-color: rgba(255,255,255,.35); }
.on-navy .btn-ghost:hover, .btn-ghost.light:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- Demobalk ---------- */
.demobar { background: var(--ink); color: var(--on-navy-2); font-size: .85rem; }
.demobar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; }
.demobar a { color: inherit; text-decoration: none; }
.demobar .tag { display: inline-flex; align-items: center; gap: 8px; }
.demobar .tag b { color: #fff; }
.demobar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.demobar nav { display: flex; gap: 4px; background: rgba(255,255,255,.08); padding: 3px; border-radius: 999px; }
.demobar nav a { padding: 5px 12px; border-radius: 999px; font-weight: 600; color: var(--on-navy); }
.demobar nav a:hover { background: rgba(255,255,255,.1); }
.demobar nav a[aria-current="page"] { background: var(--yellow); color: var(--ink); }
@media (max-width: 760px) {
  .demobar .tag span, .demobar .tag b, .demobar .back { display: none; }
  .demobar .tag::after { content: "Demo"; color: #fff; font-weight: 700; }
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: var(--z-header); background: #fff; border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(15,30,58,.4); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); line-height: 1.05; }
.logo svg { width: 40px; height: 40px; flex: none; }
.logo b { display: block; font-size: 1.15rem; font-weight: 800; font-stretch: 115%; letter-spacing: -.01em; }
.logo small { display: block; font-size: .78rem; color: var(--ink-2); font-weight: 500; letter-spacing: .02em; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; white-space: nowrap; }
.logo small, .logo b { white-space: nowrap; }
.main-nav a:hover { background: var(--soft); }
.main-nav a[aria-current="page"] { color: var(--blue); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 48px; height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 22px; height: 22px; }
.main-nav .close { display: none; }
@media (max-width: 1180px) { .header-cta .btn-ghost { display: none; } }
@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; }
  .header-cta .btn { display: none; }
  .main-nav { position: fixed; inset: 0; z-index: var(--z-menu); background: #fff; flex-direction: column; align-items: stretch; padding: 88px var(--gutter) 32px; gap: 4px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s; }
  .main-nav.open { opacity: 1; transform: none; visibility: visible; transition: opacity .2s var(--ease), transform .2s var(--ease); }
  .main-nav a { font-size: 1.35rem; padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav .close { display: inline-flex; position: absolute; top: 14px; right: var(--gutter); }
}

/* ---------- Status 'nu bereikbaar' ---------- */
.status { display: inline-flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 600; padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(11,122,67,.12); color: #0d8a4d; }
.on-navy .status { background: rgba(52, 211, 130, .14); color: #7ee2ad; }
.status .pulse { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: pulse 2.2s infinite; }
.status.is-closed { background: rgba(180,35,24,.1); color: var(--red); }
.on-navy .status.is-closed { background: rgba(255,255,255,.1); color: var(--on-navy-2); }
.status.is-closed .pulse { animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,130,.55); } 70% { box-shadow: 0 0 0 8px rgba(52,211,130,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,130,0); } }
@media (prefers-reduced-motion: reduce) { .status .pulse { animation: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 85% 10%, rgba(13,88,194,.55), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 7vw, 96px) clamp(64px, 8vw, 112px); }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero .lead { color: var(--on-navy); margin-top: 20px; }
.hero .btn-row { margin-top: 30px; }
.hero-visual { position: relative; }
.hero-visual .photo { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 4.4; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.hero-visual .photo img { width: 100%; height: 100%; object-fit: cover; }
.float-card { position: absolute; background: #fff; color: var(--ink); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px; }
.float-card .big { font-size: 2rem; font-weight: 800; font-stretch: 112%; line-height: 1; color: var(--blue); }
.float-card span { font-size: .88rem; line-height: 1.3; color: var(--ink-2); }
.float-card.a { left: -22px; bottom: 34px; }
.float-card.b { right: -14px; top: 28px; }
.float-card .stars { color: var(--yellow-600); display: flex; gap: 2px; }
.float-card .stars svg { fill: currentColor; stroke: none; width: 16px; height: 16px; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--on-navy); font-size: .97rem; }
.hero-checks li { display: inline-flex; align-items: center; gap: 8px; }
.hero-checks svg { color: var(--yellow); }
/* Haaientanden als onderrand */
.teeth { position: absolute; left: 0; right: 0; bottom: 0; height: 16px; background: linear-gradient(135deg, transparent 50%, var(--bg) 50%) 0 0 / 32px 16px repeat-x, linear-gradient(225deg, transparent 50%, var(--bg) 50%) 0 0 / 32px 16px repeat-x; }
.teeth.soft { background: linear-gradient(135deg, transparent 50%, var(--soft) 50%) 0 0 / 32px 16px repeat-x, linear-gradient(225deg, transparent 50%, var(--soft) 50%) 0 0 / 32px 16px repeat-x; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
  .hero-visual .photo { aspect-ratio: 4 / 3; }
  .float-card.a { left: 12px; bottom: -22px; }
  .float-card.b { display: none; }
}

/* ---------- Kerncijfers ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: clamp(40px, 6vw, 64px); }
.stat { background: #fff; padding: 22px 24px; }
.stat b { display: block; font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; font-stretch: 112%; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat span { font-size: .93rem; color: var(--ink-2); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Secties ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section.soft { background: var(--soft); }
.section.navy { background: var(--navy); color: #fff; }
.section.navy .lead { color: var(--on-navy); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head .lead { margin-top: 14px; }

/* ---------- Lessen (kaarten) ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; display: flex; flex-direction: column; gap: 12px; }
.card .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.card .ico svg { width: 24px; height: 24px; }
.card p { color: var(--ink-2); font-size: .98rem; }
.card .meta { margin-top: auto; padding-top: 8px; font-size: .9rem; font-weight: 600; color: var(--ink); }
@media (max-width: 1040px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Tarieven ---------- */
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.pkg { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px 26px; display: flex; flex-direction: column; gap: 16px; }
.pkg.featured { border: 2px solid var(--blue); box-shadow: var(--shadow); }
.pkg .badge { position: absolute; top: -13px; left: 24px; background: var(--yellow); color: var(--ink); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.pkg .lessons { font-size: .95rem; color: var(--ink-2); }
.pkg .price { font-size: 2.5rem; font-weight: 800; font-stretch: 112%; line-height: 1; font-variant-numeric: tabular-nums; }
.pkg .price small { display: block; margin-top: 8px; font-size: .9rem; font-weight: 500; color: var(--ink-2); font-stretch: 100%; }
.pkg ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .97rem; }
.pkg li { display: flex; gap: 10px; align-items: flex-start; }
.pkg li svg { margin-top: 4px; color: var(--green); }
.pkg .btn { margin-top: auto; }
.rates { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 26px; }
.rates div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.rates div:nth-last-child(-n+2) { border-bottom: 0; }
.rates b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.note { margin-top: 16px; font-size: .9rem; color: var(--ink-2); }
@media (max-width: 960px) { .packages { grid-template-columns: 1fr; max-width: 520px; } .rates { grid-template-columns: 1fr; } .rates div:nth-last-child(2) { border-bottom: 1px dashed var(--line); } }

/* ---------- Lestijden & werkgebied ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3vw, 32px); }
.hours { list-style: none; margin: 18px 0 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; padding: 11px 12px; border-radius: 10px; font-variant-numeric: tabular-nums; }
.hours li:nth-child(odd) { background: var(--soft); }
.hours li.today { background: var(--yellow-50); outline: 2px solid var(--yellow); font-weight: 700; }
.hours .closed { color: var(--ink-2); }
.places { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.places li a, .places li span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--blue-50); color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; }
.places li a:hover { background: var(--blue-100); }
.places svg { color: var(--blue); }
.mini-map { margin-top: 22px; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; }
.mini-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- CTA-blok ---------- */
.cta-band { background: var(--navy); color: #fff; border-radius: 24px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.3fr auto; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; transform: rotate(45deg); border: 14px solid var(--yellow); border-radius: 22px; opacity: .9; }
.cta-band p { color: var(--on-navy); margin-top: 12px; max-width: 52ch; }
.cta-band .btn-row { position: relative; z-index: 1; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } .cta-band::after { width: 140px; height: 140px; right: -50px; bottom: -50px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-navy-2); padding: 56px 0 28px; font-size: .95rem; margin-top: clamp(64px, 9vw, 112px); }
.site-footer .logo { color: #fff; }
.site-footer .logo small { color: var(--on-navy-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: .95rem; font-stretch: 100%; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Mobiele actiebalk ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 84px; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bar); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -18px rgba(15,30,58,.5); }
  .mobile-bar.three { grid-template-columns: auto 1fr 1fr; }
  .mobile-bar .btn { min-height: 52px; padding: 0 14px; }
  .site-footer { padding-bottom: 28px; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Dialoog (demo-meldingen) ---------- */
dialog { border: 0; padding: 0; border-radius: 20px; width: min(440px, calc(100% - 32px)); box-shadow: 0 30px 80px -20px rgba(10,34,81,.5); color: var(--ink); }
dialog::backdrop { background: rgba(10,34,81,.55); backdrop-filter: blur(2px); }
dialog[open] { animation: pop .22s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { dialog[open] { animation: none; } }
.dlg { padding: 28px; display: grid; gap: 14px; }
.dlg h3 { font-size: 1.4rem; }
.dlg p { color: var(--ink-2); }
.dlg .tag { justify-self: start; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--yellow); padding: 4px 10px; border-radius: 999px; }
.dlg-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--soft); cursor: pointer; display: grid; place-items: center; }
.wa-preview { background: #e9e2d6; border-radius: 14px; padding: 14px; }
.wa-preview .to { font-size: .8rem; color: #54604f; margin-bottom: 8px; }
.wa-bubble { background: #dcf8c6; border-radius: 12px 12px 4px 12px; padding: 10px 12px; white-space: pre-wrap; font-size: .93rem; line-height: 1.45; margin-left: 24px; box-shadow: 0 1px 1px rgba(0,0,0,.08); max-height: 260px; overflow: auto; }

/* ================= PLUS ================= */

/* ---------- Formulieren ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field > label, .field legend { font-weight: 600; font-size: .97rem; }
.field fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.field legend { margin-bottom: 8px; padding: 0; }
.req { color: var(--red); }
input[type="text"], input[type="tel"], input[type="email"], select, textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #b9c6dc; border-radius: var(--r-sm); background: #fff; font-size: 1rem; }
textarea { min-height: 96px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue-100); border-color: var(--blue); outline-offset: 0; }
.helper { font-size: .87rem; color: var(--ink-2); }
.error { display: none; font-size: .88rem; color: var(--red); font-weight: 600; }
.field.invalid .error { display: block; }
.field.invalid input, .field.invalid select { border-color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid #b9c6dc; border-radius: 999px; font-weight: 600; font-size: .95rem; background: #fff; transition: background-color .15s, border-color .15s; }
.chip input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--yellow-600); outline-offset: 2px; }
.chip:hover span { border-color: var(--blue); }
.field.invalid .chip span { border-color: var(--red); }

/* ---------- Tools (keuzehulp + rekenhulp) ---------- */
.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 960px) { .tools { grid-template-columns: 1fr; } }
.tool { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 20px; }
.tool-head { display: flex; gap: 14px; align-items: center; }
.tool-head .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--yellow); color: var(--ink); flex: none; }
.tool-head .ico svg { width: 24px; height: 24px; }
.tool-head p { font-size: .95rem; color: var(--ink-2); }
.result { margin-top: auto; background: var(--navy); color: #fff; border-radius: 14px; padding: 20px 22px; display: grid; gap: 6px; }
.result .label { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); font-weight: 700; }
.result .value { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; font-stretch: 112%; line-height: 1.1; font-variant-numeric: tabular-nums; }
.result p { color: var(--on-navy); font-size: .95rem; }
.result a { color: var(--yellow); font-weight: 700; }
.range-row { display: flex; align-items: center; gap: 14px; }
input[type="range"] { flex: 1; accent-color: var(--blue); height: 32px; }
.range-row output { min-width: 4ch; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }

/* ---------- Proefles-formulier ---------- */
.request { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .request { grid-template-columns: 1fr; } }
.steps-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 18px; counter-reset: s; }
.steps-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; counter-increment: s; }
.steps-list li::before { content: counter(s); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--ink); font-weight: 800; }
.steps-list b { display: block; }
.steps-list span { color: var(--ink-2); font-size: .97rem; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3.5vw, 36px); box-shadow: var(--shadow); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; align-items: center; }
.error-summary { display: none; background: #fdecea; border: 1.5px solid var(--red); color: var(--red); border-radius: var(--r-sm); padding: 12px 16px; font-weight: 600; margin-bottom: 18px; }
.error-summary.show { display: block; }

/* ================= COMPLEET ================= */

/* ---------- Team & lesauto's ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .team { grid-template-columns: 1fr; max-width: 560px; } }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 14px; }
.person-top { display: flex; gap: 14px; align-items: center; }
.avatar { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; font-stretch: 112%; background: var(--blue); color: #fff; flex: none; }
.avatar.y { background: var(--yellow); color: var(--ink); }
.avatar.n { background: var(--navy); }
.person-top span { display: block; font-size: .92rem; color: var(--ink-2); }
.person p { color: var(--ink-2); font-size: .97rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: .82rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); }
.cars { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
@media (max-width: 760px) { .cars { grid-template-columns: 1fr; } }
.car { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.car img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.car-body { padding: 22px; display: grid; gap: 10px; align-content: start; }
.car-body .type { justify-self: start; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--blue-50); color: var(--blue); }
.car-body ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .93rem; color: var(--ink-2); }
.car-body li { display: flex; gap: 8px; align-items: flex-start; }
.car-body li svg { color: var(--green); margin-top: 3px; }
@media (max-width: 460px) { .car { grid-template-columns: 1fr; } }

/* ---------- Reviews ---------- */
.rating-sum { display: flex; align-items: center; gap: 16px; }
.rating-sum b { font-size: 3rem; font-weight: 800; font-stretch: 112%; line-height: 1; }
.rating-sum .stars svg { width: 22px; height: 22px; }
.stars { display: inline-flex; gap: 2px; color: var(--yellow-600); }
.stars svg { fill: currentColor; stroke: none; width: 18px; height: 18px; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .reviews { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .reviews { grid-template-columns: 1fr; } }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 12px; align-content: start; }
.review blockquote { margin: 0; font-size: 1rem; }
.review footer { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--ink-2); }
.review footer b { color: var(--ink); }
.review .ini { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); font-weight: 800; font-size: .85rem; }
.review .passed { justify-self: start; display: inline-flex; gap: 6px; align-items: center; font-size: .8rem; font-weight: 700; color: var(--green); background: rgba(11,122,67,.1); padding: 3px 10px; border-radius: 999px; }

/* ---------- Tijdlijn ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; top: 27px; left: 10%; right: 10%; height: 4px; background: repeating-linear-gradient(90deg, var(--yellow) 0 22px, transparent 22px 36px); }
.timeline li { position: relative; text-align: center; padding: 0 10px; display: grid; gap: 8px; justify-items: center; }
.timeline .age { width: 58px; height: 58px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; font-weight: 800; font-stretch: 112%; font-size: 1.05rem; border: 4px solid var(--yellow); position: relative; }
.timeline h3 { font-size: 1.05rem; color: #fff; }
.timeline p { font-size: .93rem; color: var(--on-navy-2); }
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 22px; }
  .timeline::before { top: 10px; bottom: 10px; left: 27px; right: auto; width: 4px; height: auto; background: repeating-linear-gradient(180deg, var(--yellow) 0 22px, transparent 22px 36px); }
  .timeline li { grid-template-columns: 58px 1fr; text-align: left; justify-items: start; column-gap: 18px; padding: 0; }
  .timeline .age { grid-row: span 2; }
}
.coach { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .coach { grid-template-columns: 1fr; } }
.coach > div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r); padding: 24px; }
.coach h3 { margin-bottom: 12px; }
.coach ul { margin: 0; padding-left: 20px; color: var(--on-navy); display: grid; gap: 6px; }
.coach p { color: var(--on-navy); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { transition: transform .2s var(--ease); color: var(--blue); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq .answer { padding: 0 20px 20px; color: var(--ink-2); display: grid; gap: 10px; }

/* ---------- Plaatspagina ---------- */
.crumbs { font-size: .9rem; color: var(--on-navy-2); margin-bottom: 18px; }
.crumbs a { color: var(--on-navy); }
.local-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .local-facts { grid-template-columns: 1fr; } }

/* ===== Demobalk blijft bovenaan staan, het menu van de rijschool eronder ===== */
:root { --demobar-h: 42px; }
.demobar { position: sticky; top: 0; z-index: calc(var(--z-header) - 1); } /* net onder de header: het uitklapmenu zit in de header en moet over de balk heen */
.site-header { top: var(--demobar-h); }
html { scroll-padding-top: calc(88px + var(--demobar-h)); }/* Op de telefoon is de terugknop verborgen: daarom zegt het linkerlabel daar "← Specificaties" (linkt naar de pakketvergelijking) */
@media (max-width: 760px) {
  .demobar .dot { display: none; }
  .demobar .tag::after { content: "← Specificaties"; white-space: nowrap; }
}