:root {
  --ink: #2B2D2D;
  --ink-soft: #5D5F5F;
  --page: #F2F1F1;
  --surface: #FFFFFF;
  --line: #D3D1D2;
  --brand: #C61371;
  --brand-dark: #A40E5D;
  --brand-soft: #FBE9F2;
  --error: #A3392A;
  --focus: #2F6FB0;
  --radius-field: 8px;
  --radius-panel: 14px;
  --head: "Montserrat", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.55 var(--body);
}

.top { padding: 20px 16px 0; max-width: 680px; margin: 0 auto; }
.brand { display: inline-block; }
.brand img { display: block; height: 64px; width: auto; }

.wrap { max-width: 680px; margin: 0 auto; padding: 24px 16px 120px; }

/* Voortgang als gestikte zadelnaad */
.progress {
  position: relative; height: 6px;
  background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 17px) center / 100% 2px no-repeat;
}
.seam-done {
  position: absolute; inset: 0 auto 0 0; width: var(--p, 0%);
  background: repeating-linear-gradient(90deg, var(--brand) 0 10px, transparent 10px 17px) center / 100% 3px no-repeat;
  transition: width .5s ease;
}
@media (prefers-reduced-motion: reduce) { .seam-done { transition: none; } }

.stepcount { margin: 10px 0 0; color: var(--ink-soft); font-size: .92rem; }

h1 {
  font: 700 clamp(1.6rem, 5vw, 2.1rem)/1.15 var(--head);
  letter-spacing: -0.015em;
  margin: 4px 0 8px;
}
h1:focus { outline: none; }
.lead { margin: 0 0 24px; color: var(--ink-soft); max-width: 60ch; }
h2 { font: 600 1.15rem/1.3 var(--head); margin: 32px 0 10px; }

.panel {
  background: var(--surface);
  border-radius: var(--radius-panel);
  padding: 20px;
  border: 1px solid var(--line);
}
.panel + .panel { margin-top: 14px; }

/* Velden */
.field { margin: 0 0 18px; }
.field:last-child { margin-bottom: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; margin: 0 0 18px; }
.row:last-child { margin-bottom: 0; }
.row > .field { margin: 0; }
.row.pc { grid-template-columns: 1.3fr 1fr; }
@media (max-width: 480px) { .row:not(.pc) { grid-template-columns: 1fr; } }

label, legend { display: block; font-weight: 700; margin: 0 0 6px; }
.opt { font-weight: 400; color: var(--ink-soft); }
.hint { margin: 6px 0 0; color: var(--ink-soft); font-size: .92rem; }

input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=time], select, textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-field);
  padding: 11px 12px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: 3px solid color-mix(in srgb, var(--focus) 35%, transparent); outline-offset: 1px; }
[aria-invalid=true] { border-color: var(--error) !important; }

fieldset { border: 0; padding: 0; margin: 0 0 18px; }

.found { margin: 8px 0 18px; font-size: .95rem; min-height: 1.4em; }
.found.ok { color: var(--ink); }
.found.ok::before { content: "✓ "; color: var(--brand); font-weight: 700; }
.found.bad { color: var(--error); }

/* Keuzes: dienst, ja/nee, vinkjes */
.choices { display: grid; gap: 10px; }
.choice {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 16px;
  cursor: pointer;
  font-weight: 400;
  margin: 0;
}
.choice:hover { border-color: var(--ink-soft); }
.choice input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; margin: 0; }
.choice .info { flex: 1; display: grid; gap: 2px; }
.choice .name { font-weight: 700; }
.choice .who { color: var(--ink-soft); font-size: .92rem; line-height: 1.4; }
.choice .meta { display: grid; justify-items: end; gap: 2px; text-align: right; }
.choice .price { font-weight: 700; white-space: nowrap; }
.choice .dur { color: var(--ink-soft); white-space: nowrap; font-size: .92rem; }
.costs { margin: -12px 0 24px; }
.choice:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

.yesno { display: flex; flex-wrap: wrap; gap: 10px; }
.yesno .choice { padding: 10px 16px; }

.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }

.notice {
  border-left: 4px solid var(--error);
  background: #F7E7E3;
  padding: 14px 16px;
  border-radius: 0 var(--radius-field) var(--radius-field) 0;
  margin: 12px 0 0;
}
.notice.info { border-color: var(--ink-soft); background: #ECEBEB; }

/* Tijden */
.near {
  background: var(--brand-soft);
  border: 1.5px solid var(--brand);
  border-radius: var(--radius-panel);
  padding: 18px;
}
.near h2 { margin-top: 0; }
.near p { margin: 0 0 14px; color: var(--ink-soft); }
.day { padding: 14px 0; border-top: 1px solid var(--line); }
.day:first-of-type { border-top: 0; padding-top: 0; }
.near .day { border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
.dayname { font-weight: 700; margin: 0 0 8px; }
.dayname::first-letter { text-transform: uppercase; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot {
  font: 700 1rem/1 var(--body);
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 11px 16px;
  cursor: pointer;
  min-width: 76px;
}
.slot:hover { border-color: var(--ink); }
.slot[aria-pressed=true] { background: var(--brand); color: #fff; border-color: var(--brand); }
.slot:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.loading { color: var(--ink-soft); padding: 18px 0; }

/* Overzicht */
dl.sum { margin: 0; display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 8px 16px; }
dl.sum dt { color: var(--ink-soft); }
dl.sum dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.sumhead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.sumhead h2 { margin: 0; }
.edit {
  background: none; border: 0; padding: 0; font: inherit; color: var(--ink);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

a { color: var(--ink); text-underline-offset: 3px; }

.error { color: var(--error); font-weight: 700; min-height: 1.5em; margin: 16px 0 0; }

/* Knoppen */
.actions {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 8px;
}
@media (max-width: 640px) {
  .actions {
    position: fixed; left: 0; right: 0; bottom: 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    margin: 0;
  }
}
.btn {
  font: 700 1rem/1 var(--body);
  border-radius: var(--radius-field);
  padding: 15px 22px;
  cursor: pointer;
  border: 1.5px solid var(--ink);
}
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; margin-left: auto; }
.btn.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn[hidden] { display: none; }

/* Klaar */
.done .mark {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--brand-soft); border: 2px solid var(--brand);
  display: grid; place-items: center; font-size: 1.6rem; color: var(--ink);
  margin-bottom: 14px;
}

/* Keuze zadelpasser */
.wie { margin: 0 0 20px; }
.slot .zp { display: block; font: 400 .75rem/1.2 var(--body); color: var(--ink-soft); margin-top: 3px; }
.slot[aria-pressed=true] .zp { color: #fff; }
