/* Mapido uitproberen. Kleuren en lettertype komen uit de planner zelf. */

:root {
  --primary: #5ded00;
  --primary-hover: #79ff22;
  --primary-light: #e0f6d2;
  --tertiary: #d1d5d8;

  --ink: #00292d;
  --ink-hover: #02474e;
  --teal: #096b74;

  --surface: #ffffff;
  --surface-muted: #f0f4f5;
  --surface-hover: #f7f8f8;
  --hairline: #eceeee;
  --muted: #6c787a;
  --slate: #545e5f;
  --red: #dc3545;

  --shadow-button: 0 2px 5px 0 rgb(163 173 174 / 0.1), 0 10px 10px 0 rgb(163 173 174 / 0.09);
  --shadow-kaart: 0 1px 2px rgb(0 41 45 / 0.04), 0 8px 24px rgb(0 41 45 / 0.06);

  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Mulish, "Proxima Nova", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface-muted);
  -webkit-font-smoothing: antialiased;
}

:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.kop {
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 16px 8px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.merk { font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.merk-sub { color: var(--muted); font-weight: 600; font-size: 14px; }

.pagina {
  max-width: 680px;
  margin: 0 auto;
  padding: 8px 16px 48px;
  display: grid;
  gap: 16px;
}
.pagina.breed { max-width: 960px; }

.kaart {
  background: var(--surface);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: var(--shadow-kaart);
  min-width: 0;
}

h1 {
  font-size: clamp(24px, 5vw, 30px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 6px 0 12px;
  text-wrap: balance;
}
h2 { font-size: 19px; line-height: 1.3; font-weight: 700; margin: 0 0 6px; }
p { margin: 0 0 12px; }

.label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
  margin: 0;
}
.intro { color: var(--slate); }
.groet { font-weight: 700; margin-top: 18px; }
.klein { font-size: 14px; color: var(--muted); margin: 16px 0 0; }

.stappen {
  counter-reset: stap;
  list-style: none;
  padding: 0;
  margin: 22px 0 26px;
  display: grid;
  gap: 16px;
}
.stappen li {
  counter-increment: stap;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
}
.stappen li::before {
  content: counter(stap);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.knop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1.25px solid var(--tertiary);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease-in-out, border-color 0.18s ease-in-out;
}
.knop:hover { background: var(--surface-hover); }
.knop.primair { background: var(--primary); border-color: var(--primary); box-shadow: var(--shadow-button); }
.knop.primair:hover:not(:disabled) { background: var(--primary-hover); border-color: var(--primary-hover); }
.knop:disabled { opacity: 0.6; cursor: progress; }
.knop.klein-formaat { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.knop.gevaar { color: var(--red); }

.terug { transition: box-shadow 0.25s ease; }
.terug.actief { box-shadow: 0 0 0 2px var(--primary), var(--shadow-kaart); }

.navigatie {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
}
.navigatie:has(#vorige) { justify-content: space-between; }

.vraag { border: 0; padding: 0; margin: 28px 0 0; min-width: 0; }
.vraag > label,
.vraag > legend {
  display: block;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
  margin-bottom: 8px;
  padding: 0;
}
.nr {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  vertical-align: 1px;
}
.optioneel {
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  margin-left: 8px;
  white-space: nowrap;
}
.hint { font-size: 15px; color: var(--slate); margin: -2px 0 10px; }

input:not([type]),
textarea {
  display: block;
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1.25px solid var(--tertiary);
  border-radius: 8px;
  padding: 12px 14px;
}
textarea { min-height: 116px; line-height: 1.5; resize: vertical; overflow: hidden; }
input:not([type]):focus,
textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgb(9 107 116 / 0.15); }

.fout { color: var(--red); font-weight: 600; font-size: 14px; margin: 8px 0 0; }
.vraag.mist textarea,
.vraag.mist .optie { border-color: var(--red); }

.schaal { display: grid; gap: 8px; }
.optie {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1.25px solid var(--tertiary);
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.optie:hover { background: var(--surface-hover); }
.optie input { position: absolute; opacity: 0; pointer-events: none; }
.optie .cijfer {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.25px solid var(--tertiary);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.optie:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; }
.optie:has(input:checked) { border-color: var(--ink); background: var(--primary-light); }
.optie:has(input:checked) .cijfer { background: var(--ink); border-color: var(--ink); color: #fff; }

.voortgang { height: 6px; background: var(--hairline); border-radius: 999px; overflow: hidden; }
.voortgang span { display: block; height: 100%; background: var(--primary); border-radius: inherit; }

@media (max-width: 480px) {
  .kaart { padding: 22px 18px; border-radius: 14px; }
  .navigatie { flex-direction: column-reverse; }
  .navigatie .knop,
  .kaart > .knop { width: 100%; }
}
