@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url(fonts/nunito-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 600; font-display: swap; src: url(fonts/nunito-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url(fonts/nunito-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url(fonts/nunito-latin-800-normal.woff2) format("woff2"); }

:root {
  --ink: #23244a; --muted: #6a6b85; --brand: #282879; --brand-2: #1e1e5e; --brand-soft: #eeeef8;
  --olive: #888000; --olive-soft: #f6f5e3; --amber: #b86e00; --amber-soft: #fff5e6;
  --red: #b3413a; --red-soft: #fdf0ee; --green: #2f7d5b; --green-soft: #eaf6f0;
  --line: #e3e3ef; --paper: #fff; --bg: #f6f6fb;
  --r: 18px; --shadow: 0 18px 50px rgba(40, 40, 121, .09);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column; }
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--brand); }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* balk */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px clamp(16px, 4vw, 48px); background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.brand { display: flex; align-items: center; gap: 14px; border: 0; background: none; padding: 0; cursor: pointer; text-align: left; }
.brand img { height: 33px; width: auto; display: block; }
.brand-sep { width: 1px; height: 30px; background: var(--line); }
.brand-name strong { display: block; color: var(--brand); font-weight: 800; font-size: 17px; line-height: 1.1; }
.brand-name small { color: var(--muted); font-size: 12.5px; }
.bar-right { display: flex; align-items: center; gap: 14px; }
.tel { font-weight: 700; text-decoration: none; color: var(--brand); white-space: nowrap; }
.install { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--brand); background: #fff; color: var(--brand); border-radius: 999px; padding: 8px 14px; font-weight: 700; cursor: pointer; }
.install:hover { background: var(--brand-soft); }
.progress { height: 4px; background: var(--brand-soft); }
.progress span { display: block; height: 100%; width: 0; background: var(--olive); transition: width .35s ease; }

/* inhoud */
main { flex: 1; width: 100%; max-width: 980px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 32px) 48px; outline: none; }
.kicker { margin: 0 0 6px; color: var(--olive); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; font-weight: 800; color: var(--brand); letter-spacing: -.01em; outline: none; }
h2 { margin: 0 0 10px; font-size: 16px; font-weight: 800; color: var(--brand); }
.sub { margin: 10px 0 0; color: var(--muted); font-size: 17px; max-width: 640px; }
.q-head { margin-bottom: 26px; }
.back { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 14px -6px; padding: 6px 8px; border: 0; background: none; color: var(--muted); font-weight: 700; cursor: pointer; border-radius: 10px; }
.back:hover { color: var(--brand); background: var(--brand-soft); }
.back svg { width: 18px; height: 18px; }

/* start */
.start { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.start h1 { font-size: clamp(30px, 4vw, 46px); }
.btn-big { margin-top: 28px; font-size: 19px; padding: 18px 28px; }
.who { margin: 16px 0 0; color: var(--muted); }
.flags-link { margin: 14px 0 0; display: block; }
.start-side { display: grid; gap: 16px; }
.how { list-style: none; margin: 0; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); display: grid; gap: 16px; }
.how li { display: flex; gap: 14px; }
.how b { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 15px; }
.how strong { display: block; color: var(--brand); }
.how span { color: var(--muted); font-size: 15px; }
.install-card { padding: 18px 20px; border-radius: var(--r); background: var(--olive-soft); border: 1px solid #e9e6bd; font-size: 15px; }
.install-card strong { display: block; color: var(--ink); margin-bottom: 2px; }

/* keuzes */
.grid { display: grid; gap: 12px; }
.grid-roles { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 320px)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.grid-signals { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.choice { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 16px 18px; text-align: left; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; font-weight: 700; font-size: 17px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.choice:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-1px); }
.choice:focus-visible, .btn:focus-visible, .flag:focus-within { outline: 3px solid rgba(136,128,0,.45); outline-offset: 2px; }
.choice.is-on { border-color: var(--brand); background: var(--brand-soft); }
.ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-style: normal; font-weight: 800; }
.ico-lg { width: 52px; height: 52px; font-size: 20px; }
.grid-2 .choice { min-height: 110px; font-size: 19px; }
.sig { flex-direction: column; align-items: flex-start; gap: 4px; border-left-width: 5px; }
.sig small { color: var(--muted); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; }
.sig.lvl-refer { border-left-color: var(--green); }
.sig.lvl-consult { border-left-color: var(--amber); }
.sig.lvl-urgent { border-left-color: var(--red); }
.search { display: flex; align-items: center; gap: 10px; max-width: 460px; margin-bottom: 18px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); }
.search:focus-within { border-color: var(--brand); }
.search input { flex: 1; border: 0; outline: 0; padding: 13px 0; background: none; font-size: 16px; color: var(--ink); }
.empty { color: var(--muted); }

/* rode vlaggen */
.flags { display: grid; gap: 10px; max-width: 640px; }
.flag { display: flex; align-items: center; gap: 14px; padding: 15px 18px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); cursor: pointer; font-weight: 600; font-size: 16.5px; }
.flag input { width: 22px; height: 22px; accent-color: var(--red); flex: none; }
.flag:has(input:checked) { border-color: var(--red); background: var(--red-soft); }

/* knoppen */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 999px; border: 1.5px solid var(--brand); background: var(--brand); color: #fff; font-weight: 800; font-size: 16px; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--brand-2); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-ghost { background: #fff; color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-warn { background: var(--red); border-color: var(--red); }
.btn-warn:hover { background: #962f29; }
.link { border: 0; background: none; padding: 0; color: var(--brand); font-weight: 700; text-decoration: underline; cursor: pointer; }

/* kaarten */
.card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.urgent { border-top: 6px solid var(--red); }
.advice { border-top: 6px solid var(--green); }
.advice.lvl-consult { border-top-color: var(--amber); }
.advice.lvl-urgent { border-top-color: var(--red); }
.status { display: inline-flex; align-items: center; gap: 10px; margin: -8px 0 16px; padding: 7px 14px 7px 8px; border-radius: 999px; font-weight: 800; background: var(--green-soft); color: var(--green); }
.status i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-style: normal; font-size: 14px; }
.lvl-consult .status { background: var(--amber-soft); color: var(--amber); }
.lvl-consult .status i { background: var(--amber); }
.lvl-urgent .status { background: var(--red-soft); color: var(--red); }
.lvl-urgent .status i { background: var(--red); }
.lead { font-size: 18px; margin: 0 0 22px; max-width: 720px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.self { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.done { text-align: left; }
.done-ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-size: 28px; font-weight: 800; margin-bottom: 14px; }

/* formulier */
.form { display: grid; gap: 14px; max-width: 760px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.form label small { color: var(--muted); font-weight: 600; }
.form input:not([type=checkbox]), .form textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-weight: 400; font-size: 16px; }
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.form .check { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.form .check input { width: 20px; height: 20px; accent-color: var(--brand); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.preview { border: 1px dashed var(--line); border-radius: 12px; padding: 10px 14px; background: #fff; }
.preview summary { cursor: pointer; font-weight: 700; color: var(--brand); }
.preview pre { white-space: pre-wrap; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; margin: 10px 0 0; color: var(--ink); }
.err { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--red-soft); color: var(--red); font-weight: 700; }
.fine { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 18px clamp(16px, 4vw, 48px); border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; background: #fff; }
.foot-links { display: flex; gap: 16px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 12px; background: var(--brand-2); color: #fff; font-weight: 700; transition: .25s; z-index: 30; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 760px) {
  .start, .cols, .row { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .brand-sep, .brand-name small { display: none; }
  .brand img { height: 26px; }
  .install span { display: none; }
  .tel { font-size: 14px; }
}
@media (max-width: 420px) { .grid-2 { grid-template-columns: 1fr; } .brand-name { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
