/* Aanvraagformulier Bouw — past op één scherm (mobiel eerst) */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #fff; }
body { font-family: var(--font-sans); color: var(--fg-1); -webkit-font-smoothing: antialiased; overflow: hidden; }
a { color: var(--primary); }
a:hover { color: var(--primary-hover); }
button { font-family: inherit; }
img { display: block; }
[hidden] { display: none !important; }
.icon { display: block; flex: none; }

.screen {
  position: relative; height: 100dvh; overflow: hidden; background: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
}
.glow { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.glow-orange { position: absolute; top: -220px; right: -200px; width: min(980px, 140vw); height: 620px; background: radial-gradient(closest-side, rgba(255,94,46,0.26), rgba(255,140,100,0.10) 55%, transparent); }
.glow-blue { position: absolute; bottom: -200px; left: -280px; width: min(860px, 140vw); height: 680px; background: radial-gradient(closest-side, rgba(25,42,75,0.16), rgba(80,105,150,0.06) 55%, transparent); }

.panel {
  position: relative; z-index: 1; min-height: 0; width: 100%; max-width: 560px; overflow-y: auto;
  background: #fff; border-radius: 24px; display: flex; flex-direction: column;
}
.panel--form {
  flex: 0 1 auto; overscroll-behavior: contain; gap: 12px; padding: 14px 16px 16px;
  border: 1px solid rgba(255,94,46,0.25);
  box-shadow: 0 24px 60px -30px rgba(255,94,46,0.45), 0 0 0 5px rgba(255,94,46,0.06);
}

/* ---------- Voortgang ---------- */
.progress-wrap { display: flex; flex-direction: column; gap: 8px; }
.progress-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; }
.step-label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--primary); }
.step-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(255,94,46,0.18); }
.back-btn { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; background: none; border: 0; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--fg-2); }
.progress { height: 6px; background: var(--slate-200); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary); border-radius: 999px; transition: width 300ms ease-out; }
.form-title { font-family: var(--font-heading); font-weight: 800; font-size: 24px; line-height: 1.2; letter-spacing: -0.03em; color: var(--primary); margin: 0; }

/* ---------- Tegels ---------- */
.tiles { display: grid; gap: 8px; }
.tiles--func { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles--count { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { border-radius: 14px; cursor: pointer; border: 2px solid var(--slate-300); background: #fff; transition: border-color 150ms, background 150ms; }
.tile:hover { border-color: var(--slate-400); }
.tile[aria-pressed="true"] { border-color: var(--primary); background: var(--brand-blue-10); }
.tile:focus-visible, .btn-next:focus-visible, .btn-submit:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.tile--func { position: relative; min-width: 0; min-height: 52px; display: flex; align-items: center; gap: 8px; padding: 6px 10px; text-align: left; font-size: 15px; font-weight: 600; line-height: 1.2; color: var(--slate-900); }
.tile-icon { color: var(--primary); display: flex; }
/* Volledige naam tonen; lange woorden (werkvoorbereider) breken af met een koppelteken. */
.tile-label { flex: 1; min-width: 0; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.tile-check { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; box-shadow: 0 0 0 2px #fff; }
.tile[aria-pressed="true"] .tile-check { opacity: 1; }
.tile--count { min-height: 72px; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 24px; font-weight: 800; color: var(--primary); }

.btn-next { min-height: 52px; flex: none; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--primary); color: #fff; border: 0; border-radius: 999px; cursor: pointer; font-family: var(--font-heading); font-size: 17px; font-weight: 700; }
.btn-next:hover { background: var(--primary-hover); }

/* ---------- Gegevens ---------- */
.contact-form { display: flex; flex-direction: column; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 14px; font-weight: 600; color: var(--slate-900); }
.field input { height: 46px; padding: 0 14px; font-family: var(--font-sans); font-size: 16px; color: var(--slate-900); border-radius: 12px; outline: none; width: 100%; border: 1.5px solid var(--slate-300); }
.field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--brand-blue-10); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { font-size: 13px; color: var(--danger); font-weight: 600; }
.btn-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; width: 100%; padding: 0 20px; margin-top: 4px;
  background: var(--accent); color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: 18px; white-space: nowrap;
  border-radius: 999px; border: 0; cursor: pointer;
  box-shadow: 0 12px 28px -10px rgba(255,94,46,0.6), 0 0 0 5px rgba(255,94,46,0.12);
  transition: background 150ms ease-out, box-shadow 150ms ease-out;
}
.btn-submit:hover { background: var(--accent-hover); }
.btn-submit:active { transform: translateY(1px); }
.btn-submit:disabled { opacity: 0.7; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit-error { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--danger-bg); color: var(--danger); font-size: 14px; font-weight: 600; line-height: 1.4; }
.submit-error a { color: var(--danger); }
.privacy-note { margin: 0; font-size: 12px; line-height: 1.45; color: var(--fg-2); }
.privacy-note a { font-weight: 600; text-underline-offset: 3px; }

/* ---------- Beoordelingen ---------- */
.ratings {
  position: relative; z-index: 1; flex: none; margin-top: auto; width: 100%; max-width: 560px;
  background: #fff; border: 1px solid var(--slate-200); border-radius: 20px; padding: 12px 14px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 16px 40px -18px rgba(15,23,42,0.16);
  display: flex; flex-direction: column; gap: 10px;
}
.ratings-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.rating { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--slate-700); }
.rating strong { font-family: var(--font-heading); color: var(--primary); }
.g-word { font-weight: 700; font-size: 15px; }
.stars-g { display: flex; gap: 1px; color: #F4B400; }
.tp { display: flex; align-items: center; gap: 3px; font-weight: 700; color: var(--slate-900); }
.tp-star { display: flex; color: #00B67A; }
.ratings-sep { width: 1px; height: 18px; background: var(--slate-200); }
.quote { display: flex; flex-direction: column; gap: 6px; padding: 10px 0 0; border: 0; border-top: 1px solid var(--slate-100); background: none; cursor: pointer; text-align: left; }
.quote-text { font-size: 14px; line-height: 1.45; color: var(--slate-900); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
.quote-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.quote-who { font-size: 13px; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quote-who strong { color: var(--primary); }
.quote-dots { display: flex; gap: 4px; flex: none; }
.quote-dots span { width: 6px; height: 6px; border-radius: 999px; background: var(--slate-300); transition: width 200ms ease-out, background 200ms; }
.quote-dots span.on { width: 16px; background: var(--accent); }

/* Op grotere schermen staat alles gecentreerd in plaats van de reviews onderaan. */
@media (min-width: 768px) {
  .screen { justify-content: center; padding-top: 32px; padding-bottom: 32px; }
  .ratings { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; }
}
