/* Boekingspagina van een bedrijf. --brand en --on-brand zet de server per bedrijf. */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --error: #b91c1c;
  --ok: #15803d;
  --radius: 12px;
  color-scheme: light;
}
/* Altijd lichte weergave: geen donkere modus */
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

.site-header { background: var(--brand); color: var(--on-brand); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand img { height: 36px; width: auto; }
.header-contact { color: inherit; opacity: 0.9; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.intro { padding: 32px 0 8px; }
.intro h1 { margin: 0 0 8px; font-size: 1.75rem; line-height: 1.2; }
.intro p { margin: 0; color: var(--muted); }

.booking { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 24px 0 40px; }

.progress { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0; margin: 0 0 24px; font-size: 0.85rem; color: var(--muted); }
.progress li { display: flex; align-items: center; gap: 6px; border-top: 3px solid var(--line); padding-top: 8px; }
.progress span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: var(--text); font-size: 0.75rem; font-weight: 600; flex: none; }
.progress li.active, .progress li.done { color: var(--text); border-color: var(--brand); }
.progress li.active span, .progress li.done span { background: var(--brand); color: var(--on-brand); }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-size: 1.2rem; font-weight: 650; margin-bottom: 16px; padding: 0; }

/* Keuzes (dienst, dag, tijd) als knoppen met een verborgen radio */
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .card { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.choice:hover .card { border-color: var(--brand); }
.choice input:checked + .card { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand) inset; }
.choice input:focus-visible + .card { outline: 2px solid var(--brand); outline-offset: 2px; }
.choice input:disabled + .card { opacity: 0.4; cursor: not-allowed; border-style: dashed; }

.service-list { display: grid; gap: 10px; }
.service .card { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; }
.service strong { font-size: 1.02rem; }
.service .price { font-weight: 700; white-space: nowrap; }
.service .desc { grid-column: 1 / -1; color: var(--muted); font-size: 0.92rem; }
.service .guarantee { grid-column: 1 / -1; color: var(--ok); font-size: 0.85rem; }

.day-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 12px; scroll-snap-type: x proximity; }
.day-strip .choice { flex: 0 0 76px; scroll-snap-align: start; }
.day-strip .card { text-align: center; padding: 10px 6px; }
.day-strip .wd { display: block; font-size: 0.8rem; color: var(--muted); text-transform: capitalize; }
.day-strip .dm { display: block; font-weight: 650; }
.day-strip .free { display: block; font-size: 0.75rem; color: var(--muted); }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slot-grid .card { text-align: center; padding: 10px 6px; font-weight: 600; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.fields label { display: flex; flex-direction: column; gap: 6px; font-size: 0.92rem; font-weight: 550; }
.fields .span-2 { grid-column: 1 / -1; }
.optional { color: var(--muted); font-weight: 400; }
input, textarea, select { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
input[aria-invalid="true"] { border-color: var(--error); }
.field-note { font-size: 0.82rem; font-weight: 400; min-height: 1.2em; }
.field-note.ok { color: var(--ok); }
.field-note.bad { color: var(--error); }

.summary { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0 0 20px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--brand); }

.hint { color: var(--muted); font-size: 0.9rem; margin: 12px 0 0; }
.form-error { color: var(--error); min-height: 1.5em; margin: 16px 0 0; }

.actions { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.total { margin-left: auto; font-weight: 700; }
.btn { font: inherit; font-weight: 650; border: 0; border-radius: 8px; padding: 12px 20px; background: var(--button, var(--brand)); color: var(--on-button, var(--on-brand)); cursor: pointer; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }

.site-footer { color: var(--muted); font-size: 0.85rem; padding: 0 0 32px; }

@media (max-width: 560px) {
  .booking { padding: 16px; border-radius: 0; margin-left: -16px; margin-right: -16px; border-left: 0; border-right: 0; }
  .progress { font-size: 0; gap: 6px; }
  .progress li { justify-content: center; }
  .fields { grid-template-columns: 1fr; }
  .header-contact { display: none; }
  .intro h1 { font-size: 1.5rem; }
}

/* Bedankpagina */
.result h1 { margin: 0 0 8px; font-size: 1.5rem; }
.result-title.ok { color: var(--ok); }
.result-title.bad { color: var(--error); }
.result .summary { margin-top: 20px; }
.result a:not(.btn) { color: inherit; }
a.btn { display: inline-block; text-decoration: none; }

/* Stap 2: eerst de postcode, dan de tijden */
.postcode-first { display: flex; flex-direction: column; gap: 6px; font-size: 0.92rem; font-weight: 550; margin-bottom: 20px; }
.postcode-row { display: flex; gap: 8px; max-width: 220px; }
.postcode-row input { flex: 1; text-transform: uppercase; }
.fields input[readonly] { background: var(--surface-alt, rgba(127, 127, 127, 0.08)); color: var(--muted); cursor: default; }
.link-btn { background: none; border: 0; padding: 0; text-align: left; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 0.82rem; }
