/* Vragenlijst voor ouders (/enquete, /en/survey) en de bedankpagina's. Bovenop styles.css;
   alleen kleuren en lettertypen uit de tokens daar. Gebouwd door _build_enquete.mjs. */

[hidden] { display: none !important; }
.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;
}

/* Kop: mint, sluit aan op de balk met het woordmerk */
.survey-top { background: var(--mint); padding: 12px 0 clamp(28px, 5vw, 44px); }
.survey-top .wrap, .survey .wrap, .thanks .wrap { max-width: 760px; }
.survey-top h1 { font-size: clamp(32px, 7vw, 48px); color: var(--wine); overflow-wrap: break-word; }
.survey-top__intro { margin-top: 14px; font-size: clamp(16px, 2.2vw, 18px); font-weight: 600; color: var(--wine); }
.survey-top__req { margin-top: 10px; font-size: 14px; color: var(--text); }

.survey { padding: clamp(20px, 4vw, 36px) 0 clamp(40px, 7vw, 64px); }

/* Blokken (zoals de vier pagina's in Tally, nu onder elkaar) */
.block {
  background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card);
  padding: 24px 18px 28px; margin-top: 20px;
}
.block:first-of-type { margin-top: 0; }
@media (min-width: 600px) { .block { padding: 32px 36px 36px; margin-top: 28px; } }
.block__title { display: flex; align-items: center; gap: 12px; font-size: clamp(20px, 3.6vw, 24px); color: var(--wine); }
.block__n {
  flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px;
  border-radius: var(--radius-pill); background: var(--wine); color: var(--cream);
  font-family: var(--font-head); font-weight: 400; font-size: 20px;
}
.block__intro { margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: var(--cream); }
.block__intro h3 { font-size: 18px; color: var(--wine); }
.block__intro p { margin-top: 6px; font-size: 16px; color: var(--text); }

/* Vraag */
.q { scroll-margin-top: 16px; min-width: 0; margin: 24px 0 0; padding: 24px 0 0; border: 0; border-top: 1px solid rgba(123, 51, 50, 0.14); }
.block__title + .q { margin-top: 18px; padding-top: 0; border-top: 0; }
.q__head { display: block; width: 100%; padding: 0 0 12px; cursor: default; }
label.q__head { cursor: pointer; }
/* Legend zweeft, anders zet de browser hem op de rand van de fieldset en komt de padding eronder. */
legend.q__head { float: left; }
.q > :not(legend) { clear: both; }
.q__nr { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wine); opacity: 0.8; }
.q__text { display: block; margin-top: 2px; font-size: 17px; font-weight: 700; line-height: 1.4; color: var(--text); }
.q__hint { font-size: 15px; font-weight: 600; opacity: 0.8; }
.q__req { color: var(--wine); }
.q__cond { margin: -4px 0 12px; font-size: 14px; color: var(--text); }
.q__note { margin: -2px 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--cream); font-size: 15px; font-weight: 600; color: var(--text); }
.q__error { margin: -2px 0 12px; font-size: 15px; font-weight: 700; color: var(--wine); }

/* Keuzes: de hele rij is tikbaar */
.opts { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 14px;
  border: 2px solid rgba(123, 51, 50, 0.18); border-radius: 14px; background: #fff;
  font-size: 16px; line-height: 1.35; color: var(--text); cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.opt:hover { border-color: rgba(151, 59, 97, 0.55); }
/* Eigen rondje en vinkvak in wijnrood: het grijze standaardrondje van Safari is te zwak. */
.opt input {
  -webkit-appearance: none; appearance: none; flex: none; display: grid; place-content: center;
  width: 24px; height: 24px; margin: 0; border: 2px solid var(--wine); border-radius: 6px;
  background: #fff; cursor: pointer;
}
.opt input[type="radio"] { border-radius: 50%; }
.opt input::before { content: ""; width: 12px; height: 12px; background: var(--wine); transform: scale(0); transition: transform .12s ease; }
.opt input[type="radio"]::before { border-radius: 50%; }
.opt input[type="checkbox"]::before { width: 14px; height: 14px; clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); }
.opt input:checked::before { transform: scale(1); }
.opt input:focus-visible { outline: none; }
.opt__label { min-width: 0; overflow-wrap: anywhere; }
.opt:has(input:checked) { border-color: var(--wine); background: rgba(176, 224, 199, 0.35); }
.opt:has(input:focus-visible) { outline: 3px solid var(--wine); outline-offset: 2px; }
.q--error .field { border-color: var(--wine); }
.q__other { margin-top: 10px; }

/* Schaal 1 tot 5: vijf grote knoppen */
.scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; max-width: 440px; }
.scale__opt { position: relative; display: block; }
.scale__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.scale__btn {
  display: grid; place-items: center; height: 56px; border: 2px solid rgba(123, 51, 50, 0.18);
  border-radius: 14px; background: #fff; color: var(--wine); font-family: var(--font-head);
  font-size: 26px; letter-spacing: 0.03em; transition: border-color .15s ease, background-color .15s ease;
}
.scale__opt:hover .scale__btn { border-color: rgba(151, 59, 97, 0.55); }
.scale__opt input:checked + .scale__btn { background: var(--wine); border-color: var(--wine); color: var(--cream); }
.scale__opt input:focus-visible + .scale__btn { outline: 3px solid var(--wine); outline-offset: 2px; }
.scale__ends {
  display: flex; justify-content: space-between; gap: 12px; max-width: 440px; margin-top: 8px;
  font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--text);
}
.scale__ends span { max-width: 50%; }
.scale__ends span:last-child { text-align: right; }

/* Invulvelden: volle breedte, 16px tegen inzoomen op de iPhone */
.field {
  display: block; width: 100%; min-height: 52px; padding: 12px 14px;
  border: 2px solid rgba(123, 51, 50, 0.22); border-radius: 14px; background: #fff;
  font-family: var(--font-body); font-size: 16px; line-height: 1.4; color: var(--text);
}
.field--area { min-height: 120px; resize: vertical; }
.field::placeholder { color: var(--text); opacity: 0.55; }
.field:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(151, 59, 97, 0.2); }

/* Valveld: buiten beeld, niet display:none */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Slot: privacytekst, melding en de knop */
.survey__end { margin-top: 24px; }
.survey__privacy { padding: 16px 18px; border-radius: 16px; background: rgba(176, 224, 199, 0.45); font-size: 14px; color: var(--text); }
.survey__privacy a { color: var(--wine); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.survey__status { margin-top: 16px; font-weight: 700; color: var(--wine); }
.survey__status:empty { display: none; }
.survey__send { display: block; width: 100%; min-height: 54px; margin-top: 20px; font-size: 18px; cursor: pointer; }
.survey__send[disabled] { opacity: 0.65; cursor: progress; }
@media (min-width: 600px) { .survey__send { width: auto; min-width: 240px; } }

/* Bedankpagina */
.thanks { padding: clamp(40px, 8vw, 72px) 0 clamp(48px, 9vw, 88px); text-align: center; }
.thanks__sloth { width: auto; height: 170px; margin: 0 auto 16px; }
.thanks h1 { font-size: clamp(40px, 9vw, 60px); color: var(--wine); }
.thanks__lead { max-width: 520px; margin: 14px auto 0; font-size: clamp(17px, 2.4vw, 19px); font-weight: 600; color: var(--wine); }
.thanks__mail { max-width: 520px; margin: 12px auto 0; font-size: 16px; color: var(--text); }
.thanks__btn { margin-top: 28px; min-height: 48px; }
.thanks__back { margin: 18px auto 0; font-size: 16px; }

/* Voettekst: links in de slanke voet met een tikvlak van 44px */
.survey-page .footer__legal a { display: inline-block; padding: 12px 2px; }

/* Voettekst onderaan, ook op een korte pagina */
.survey-page { display: flex; flex-direction: column; }
.survey-page > main { flex: 1 0 auto; }

/* Lopende tekst rechts uitgevuld met woordafbreking (zie styles.css): de intro bovenaan, de uitleg in
   de blokken en de privacytekst onderaan. Niet de vragen, keuzes, labels of meldingen. Uitvullen pas
   vanaf 600px, net als in styles.css; daaronder links uitgelijnd. De woordafbreking geldt overal. */
.survey-top__intro, .block__intro p, .survey__privacy { -webkit-hyphens: auto; hyphens: auto; }
@media (min-width: 600px) { .survey-top__intro, .block__intro p, .survey__privacy { text-align: justify; } }
