/* Publieke boekingspagina van een afspraakformulier. Kleuren komen uit de huisstijl van het label (--brand). */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.55; color: #24211d; background: var(--brand-bg, #f5f3ef); min-height: 100vh; }
[hidden] { display: none !important; }
.bk { max-width: 640px; margin: 0 auto; padding: 28px 16px 60px; }
.bk-brand { display: flex; align-items: center; min-height: 44px; margin-bottom: 18px; font-size: 20px; font-weight: 800; color: var(--brand); }
.bk-brand img { height: 40px; width: auto; max-width: 220px; display: block; }
.bk-card { background: #fff; border-radius: 16px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 8px 24px rgba(0, 0, 0, .05); overflow: hidden; }
.bk-intro { padding: 26px 28px 20px; border-top: 5px solid var(--brand); }
.bk-intro h1, .bk-done h1 { font-size: 24px; line-height: 1.25; margin-bottom: 10px; }
.bk-intro p { color: #4a443c; margin-top: 12px; }
.bk-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; color: #4a443c; font-size: 14px; }
.bk-facts li { display: inline-flex; align-items: center; gap: 6px; }
.bk-facts svg { color: var(--brand); flex: none; }
.bk-banner { margin: 0 28px 4px; padding: 10px 14px; border-radius: 10px; background: var(--brand-soft); font-size: 13.5px; }
.bk-banner-err { background: #fdecec; color: #8a2a2a; }
.bk-empty { padding: 8px 28px 30px; color: #4a443c; }
.bk-form { display: block; }
.bk-step { padding: 20px 28px 24px; border-top: 1px solid #eee9e1; }
.bk-step h2 { display: flex; align-items: center; gap: 10px; font-size: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.bk-step h2 > span:first-child { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; flex: none; }
.bk-form.js:not(.has-time) [data-step="2"] { opacity: .45; pointer-events: none; }
.bk-form.js:not(.has-time) [data-step="2"] > :not(h2) { display: none; }

.bk-days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px 6px; scrollbar-width: thin; }
.bk-day { flex: none; width: 62px; padding: 8px 4px; border: 1.5px solid #e2dcd2; border-radius: 12px; background: #fff; font-family: inherit; color: inherit; cursor: pointer; display: grid; justify-items: center; line-height: 1.2; }
.bk-day small { font-size: 11.5px; color: #7a7164; text-transform: lowercase; }
.bk-day b { font-size: 19px; }
.bk-day:hover { border-color: var(--brand); }
.bk-day[aria-selected=true] { border-color: var(--brand); background: var(--brand); color: #fff; }
.bk-day[aria-selected=true] small { color: rgba(255, 255, 255, .85); }
.bk-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.bk-form:not(.js) .bk-days { display: none; }
.bk-form:not(.js) .bk-times[hidden] { display: grid !important; margin-top: 12px; }
.bk-time { position: relative; display: block; cursor: pointer; }
.bk-time input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.bk-time span { display: block; text-align: center; padding: 10px 0; border: 1.5px solid var(--brand); border-radius: 10px; color: var(--brand); font-weight: 700; font-variant-numeric: tabular-nums; }
.bk-time:hover span { background: var(--brand-soft); }
.bk-time input:checked + span { background: var(--brand); color: #fff; }
.bk-time input:focus-visible + span { outline: 3px solid var(--brand-soft); outline-offset: 2px; }
.bk-small { font-size: 12.5px; color: #7a7164; margin-top: 12px; }
.bk-chosen { display: inline-block; margin-bottom: 14px; padding: 8px 12px; border-radius: 10px; background: var(--brand-soft); font-weight: 700; }
.bk-chosen::first-letter { text-transform: uppercase; }

.bk-field { display: block; margin-bottom: 14px; font-size: 13.5px; font-weight: 700; }
.bk-label { display: block; margin-bottom: 5px; }
.bk-field i { color: #b3261e; font-style: normal; }
.bk-field input:not([type=radio]):not([type=checkbox]), .bk-field select, .bk-field textarea { display: block; width: 100%; margin-top: 5px; padding: 11px 12px; border: 1.5px solid #d9d2c7; border-radius: 10px; font: inherit; font-weight: 400; font-size: 16px; background: #fff; color: inherit; }
.bk-field .bk-label + input, .bk-field .bk-label + select, .bk-field .bk-label + textarea { margin-top: 0; }
.bk-field input:focus, .bk-field select:focus, .bk-field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.bk-options { display: grid; gap: 6px; font-weight: 400; }
.bk-options label { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1.5px solid #e2dcd2; border-radius: 10px; cursor: pointer; }
.bk-options label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.bk-options input { accent-color: var(--brand); width: 17px; height: 17px; }
.bk-scale { display: flex; flex-wrap: wrap; gap: 6px; }
.bk-scale label { position: relative; cursor: pointer; }
.bk-scale input { position: absolute; opacity: 0; }
.bk-scale span { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1.5px solid #d9d2c7; border-radius: 10px; font-weight: 700; }
.bk-scale input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.bk-heading { font-size: 15px; margin: 20px 0 8px; }
.bk-para { color: #4a443c; margin-bottom: 14px; font-size: 14px; }
.bk-err { display: block; margin-top: 5px; font-size: 12.5px; font-weight: 700; color: #b3261e; }
h2 .bk-err { margin: 0; flex-basis: 100%; }
.bk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.bk-btn { display: inline-block; width: 100%; margin-top: 6px; padding: 14px 20px; border: 0; border-radius: 12px; background: var(--brand); color: #fff; font: inherit; font-weight: 700; font-size: 16px; text-align: center; text-decoration: none; cursor: pointer; }
.bk-btn:hover { filter: brightness(1.08); }
.bk-btn:disabled { opacity: .55; cursor: default; filter: none; }
.bk-btn-danger { background: #b3261e; }
.bk-done { padding: 34px 28px; border-top: 5px solid var(--brand); }
.bk-done p { margin-top: 12px; color: #4a443c; }
.bk-done form { margin-top: 18px; }
.bk-check { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff; margin-bottom: 16px; }
.bk-note { padding: 12px 14px; border-radius: 10px; background: var(--brand-soft); }
@media (max-width: 480px) {
  .bk { padding: 16px 10px 40px; }
  .bk-intro, .bk-step, .bk-done { padding-left: 18px; padding-right: 18px; }
  .bk-banner { margin-left: 18px; margin-right: 18px; }
  .bk-intro h1, .bk-done h1 { font-size: 21px; }
}

/* Taalschakelaar bovenaan het formulier */
.bk-brand { justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bk-langs { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; font-weight: 600; }
.bk-langs a { color: #7a7164; text-decoration: none; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.bk-langs a:hover { color: #1b1b1b; }
.bk-langs a.on { color: var(--brand); border-bottom-color: var(--brand); }

/* Stellingen in een gewoon formulier: de keuze "Geen mening" is breder dan een cijfer */
.bk-scale span { width: auto; min-width: 40px; padding: 0 10px; }
/* Knop "Ga terug" boven de kaart (booking.js zet hem aan als er een vorige pagina is) */
.bk-terug { margin: 0 0 12px; }
.bk-back { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; background: none; border: 0; font: inherit; font-size: 14px; font-weight: 600; color: #5d564c; cursor: pointer; }
.bk-back:hover { color: var(--brand); }
.bk-back:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
/* Detailkleur (huisstijl, sinds v0.86.0): accenten in --accent met --accent-ink als tekst erop. Zonder detailkleur zet f.php --accent gelijk aan
   de merkkleur, dus dan verandert er niets. Tekst, links, rand van niet-gekozen dagen en tijden blijven in de merkkleur. */
.bk-intro, .bk-done { border-top-color: var(--accent); }
.bk-step h2 > span:first-child, .bk-check { background: var(--accent); color: var(--accent-ink); }
.bk-day[aria-selected=true], .bk-time input:checked + span, .bk-scale input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.bk-day[aria-selected=true] small { color: var(--accent-ink); opacity: .8; }
.bk-btn { background: var(--accent); color: var(--accent-ink); }
.bk-langs a.on { border-bottom-color: var(--accent); }
.bk-options input { accent-color: var(--accent); }
