/* Van Zaandam Oost — jongerenenquête. Mobiel-first, grote tap-targets. */

:root {
  --blauw: #3ab4f2;
  --blauw-donker: #1f93cf;
  --tekst: #14202b;
  --grijs: #5b6b78;
  --rand: #d8e2ea;
  --rand-actief: var(--blauw);
  --vlak-actief: #eaf6fe;
  --radius: 14px;
  --tap: 56px;
}

* { box-sizing: border-box; }

/* Author-styles met display overschrijven de UA-default [hidden]; forceer hier. */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.45;
  color: var(--tekst);
  background: #fff;
}

.shell {
  max-width: 34rem;
  margin: 0 auto;
  padding: 1.25rem 1.1rem calc(1.25rem + env(safe-area-inset-bottom));
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Voortgang */
.topbar { margin-bottom: 1rem; }
.progress {
  height: 8px;
  background: var(--rand);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--blauw);
  border-radius: 999px;
  transition: width .25s ease;
}
.progress-text {
  margin: .4rem 0 0;
  font-size: .85rem;
  color: var(--grijs);
}

/* Stap-container */
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Intro / bedankt */
.intro {
  text-align: center;
  margin: auto 0;
  padding: 1rem 0 2rem;
}
.intro .logo { width: 60%; max-width: 240px; height: auto; }
.tagline { font-weight: 800; color: var(--blauw); font-size: 1.15rem; margin: .6rem 0 1rem; }
.lead { font-size: 1.1rem; margin: 0 auto 1rem; max-width: 28rem; }
.meta { color: var(--grijs); font-size: .95rem; }
.thanks .check {
  width: 72px; height: 72px; margin: 0 auto 1rem;
  border-radius: 50%; background: var(--blauw); color: #fff;
  font-size: 2.4rem; line-height: 72px; font-weight: 700;
}

.step-head { margin: .25rem 0 1.25rem; }
.step-title { font-size: 1.6rem; margin: 0 0 .25rem; line-height: 1.2; }
.step-sub { margin: 0; color: var(--grijs); }

/* Vraag */
.q {
  border: 0;
  padding: 0;
  margin: 0 0 1.75rem;
}
.q-label {
  display: block;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 0;
  margin: 0 0 .75rem;
}
.req { color: var(--blauw); }
.q-hint { margin: -.4rem 0 .75rem; color: var(--grijs); font-size: .95rem; }

/* Keuze-opties als grote kaarten */
.options { display: flex; flex-direction: column; gap: .6rem; }
.option {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: var(--tap);
  padding: .65rem 1rem;
  border: 2px solid var(--rand);
  border-radius: var(--radius);
  cursor: pointer;
  user-select: none;
  transition: border-color .12s, background-color .12s;
}
.option input { width: 24px; height: 24px; flex: 0 0 auto; accent-color: var(--blauw); }
.option-text { font-size: 1.05rem; }
.option.selected { border-color: var(--rand-actief); background: var(--vlak-actief); }
.option:active { transform: scale(.995); }

.option-group {
  margin: 1rem 0 .25rem;
  font-weight: 700;
  font-size: .95rem;
  color: var(--grijs);
}
.option-sub { margin-left: .25rem; }

.open-extra { margin: -.1rem 0 .2rem; }
.open-extra input { width: 100%; }

/* Tekstvelden */
textarea, input[type="text"], input[type="tel"] {
  width: 100%;
  font: inherit;
  padding: .7rem .85rem;
  border: 2px solid var(--rand);
  border-radius: var(--radius);
  background: #fff;
  color: var(--tekst);
}
textarea:focus, input:focus { outline: none; border-color: var(--blauw); }
textarea { resize: vertical; }

.toelichting { display: block; margin-top: .85rem; }
.toelichting-label { display: block; font-size: .95rem; color: var(--grijs); margin-bottom: .3rem; }

.field { display: block; margin-bottom: .9rem; }
.field span { display: block; font-weight: 600; margin-bottom: .3rem; }

.q-error { color: #c0392b; font-size: .95rem; margin: .5rem 0 0; }

.miss-list { text-align: left; max-width: 26rem; margin: 0 auto 1.5rem; }

/* Navigatie */
.nav {
  display: flex;
  gap: .75rem;
  margin-top: auto;
  padding-top: 1rem;
  position: sticky;
  bottom: 0;
  background: linear-gradient(to top, #fff 70%, transparent);
}
.btn {
  flex: 1;
  min-height: var(--tap);
  font: inherit;
  font-weight: 700;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  padding: .6rem 1rem;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary { background: var(--blauw); color: #fff; }
.btn-primary:active { background: var(--blauw-donker); }
.btn-ghost { background: #fff; color: var(--blauw); border-color: var(--rand); flex: 0 0 auto; min-width: 6.5rem; }
.intro .btn { flex: 0 1 auto; min-width: 14rem; margin: 1rem auto 0; }

@media (min-width: 480px) {
  body { font-size: 19px; }
}
