/* Ailard /gesprek: booking page. Builds on styles.css (tokens, .btn, .link, .idx, .foot).
   Same shape rule: things you press are pills, surfaces are near square (4px).
   Left: ink panel with what to expect. Right: paper column with the four steps. */

.bk-page { --top: 72px; --err: #a3271b; }
.bk-page .foot { padding-bottom: 40px; }
.bk-top :focus-visible, .bk-intro :focus-visible, .bk-error :focus-visible, .foot :focus-visible { outline-color: var(--lime); }

/* ── Top bar ─────────────────────────────────────────────── */
.bk-top {
  height: var(--top); display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--pad); background: var(--ink); color: var(--paper); border-bottom: 1px solid var(--line-d);
}
.bk-top__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); font-weight: 700; font-size: 19px; text-decoration: none; letter-spacing: -0.02em; }
.bk-top__brand svg { color: var(--lime); }
.bk-top__back { display: inline-flex; align-items: center; gap: 8px; color: var(--mute-d); font-size: 15px; font-weight: 500; text-decoration: none; transition: color 0.2s; }
.bk-top__back:hover { color: var(--paper); }
.bk-top__back svg { transition: transform 0.25s var(--ease); }
.bk-top__back:hover svg { transform: translateX(-3px); }

/* ── Layout: ink column + paper column, like the homepage ── */
.bk {
  display: grid; grid-template-columns: var(--stage) minmax(0, 1fr);
  min-height: calc(100vh - var(--top)); min-height: calc(100dvh - var(--top));
  background: linear-gradient(to right, var(--ink) 0 var(--stage), var(--paper) var(--stage));
}

.bk-intro {
  position: sticky; top: 0; align-self: start;
  padding: clamp(48px, 9vh, 104px) var(--pad) 56px; color: var(--paper);
}
.bk-intro .idx { color: var(--mute-d); }
.bk-intro .idx span { border-color: var(--line-d); color: var(--lime); }
.bk-intro h1 {
  margin-top: 28px; font-size: clamp(42px, 4.4vw, 74px); line-height: 1.04; letter-spacing: -0.045em;
  max-width: 11ch;
}
.bk-intro__lede { margin-top: 24px; font-size: clamp(19px, 1.45vw, 22px); line-height: 1.42; color: var(--mute-d); max-width: 34ch; }
.bk-expect { margin-top: 36px; border-top: 1px solid var(--line-d); max-width: 30rem; }
.bk-expect li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line-d); color: var(--mute-d); font-size: 17px; line-height: 1.45; }
.bk-expect li svg { margin-top: 4px; color: var(--ink); background: var(--lime); border-radius: 2px; padding: 1px; width: 18px; height: 18px; }
.bk-expect b { color: var(--paper); font-weight: 600; }
.bk-intro__alt { margin-top: 28px; color: var(--mute-d); font-size: 15px; max-width: 34ch; }
.bk-intro__alt a, .bk-error a { color: var(--paper); text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

/* ── Flow column ─────────────────────────────────────────── */
.bk-flow { padding: clamp(48px, 9vh, 104px) var(--pad) clamp(64px, 10vh, 120px); min-width: 0; }
.bk-app, .bk-fallback { max-width: 42rem; }
.bk-tz { display: inline-flex; align-items: center; gap: 10px; color: var(--mute); }
.bk-tz::before { content: ""; width: 8px; height: 8px; background: var(--lime); box-shadow: 0 0 0 1px rgba(18, 18, 17, 0.25); }

.bk-step { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.bk-step + .bk-step { margin-top: 44px; }
.bk-step__h {
  display: flex; align-items: center; gap: 14px;
  font-size: clamp(26px, 2.2vw, 34px); line-height: 1.05; letter-spacing: -0.03em;
}
.bk-step__h:focus { outline: none; }
.bk-step__h:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.bk-step__n {
  display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 6px; flex: none;
  border-radius: var(--r); background: var(--ink); color: var(--lime); font-weight: 600; letter-spacing: 0.04em;
}
.bk-step__sub { margin-top: 10px; color: var(--mute); }
.bk-step__sub b { color: var(--ink); font-weight: 600; }

/* Step 1: a small calendar, one column per working day */
.bk-days { margin-top: 22px; }
.bk-days__head, .bk-days__grid { display: grid; gap: 8px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bk-cols-1 { grid-template-columns: minmax(0, 1fr); }
.bk-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bk-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bk-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bk-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.bk-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.bk-days__head { margin-bottom: 8px; }
.bk-days__head span { color: var(--mute); padding-left: 2px; }
.bk-c1 { grid-column-start: 1; } .bk-c2 { grid-column-start: 2; } .bk-c3 { grid-column-start: 3; } .bk-c4 { grid-column-start: 4; }
.bk-c5 { grid-column-start: 5; } .bk-c6 { grid-column-start: 6; } .bk-c7 { grid-column-start: 7; }

.bk-day {
  appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer;
  display: grid; grid-template-rows: auto auto 1fr; align-items: start; justify-items: start; gap: 2px;
  min-height: 92px; padding: 12px 12px 11px; text-align: left;
  background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r);
  font-family: var(--display);
  transition: border-color 0.2s, background-color 0.2s, color 0.2s, transform 0.25s var(--ease);
}
.bk-day__d { font-size: 28px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.bk-day__m { font-size: 14px; color: var(--mute); line-height: 1.2; }
.bk-day__n { align-self: end; margin-top: 8px; font-size: 11px; color: var(--ink); white-space: nowrap; }
.bk-day__n::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; vertical-align: 1px; background: var(--lime); box-shadow: 0 0 0 1px rgba(18, 18, 17, 0.3); }
.bk-day__short { display: none; }
.bk-day:hover:not(:disabled) { border-color: var(--ink); }
.bk-day:active:not(:disabled) { transform: scale(0.97); }
.bk-day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.bk-day[aria-pressed="true"] .bk-day__m { color: var(--mute-d); }
.bk-day[aria-pressed="true"] .bk-day__n { color: var(--lime); }
.bk-day[aria-pressed="true"] .bk-day__n::before { box-shadow: none; }
.bk-day:disabled { cursor: default; background: transparent; border-style: dashed; color: var(--mute-d); }
.bk-day:disabled .bk-day__m, .bk-day:disabled .bk-day__n { color: var(--mute-d); }
.bk-day:disabled .bk-day__n::before { background: transparent; box-shadow: inset 0 0 0 1px var(--mute-d); }

.bk-loading { display: inline-flex; align-items: center; gap: 10px; color: var(--mute); padding: 18px 0; }
.bk-loading::before { content: ""; width: 10px; height: 10px; background: var(--lime); box-shadow: 0 0 0 1px rgba(18, 18, 17, 0.3); animation: bk-pulse 0.9s ease-in-out infinite alternate; }
@keyframes bk-pulse { from { opacity: 0.25; } to { opacity: 1; } }
.bk-empty { margin-top: 4px; color: var(--mute); max-width: 44ch; }

/* Step 2: times as pills */
.bk-times { margin-top: 20px; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.bk-time {
  appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer;
  min-height: 48px; padding: 0 14px; border-radius: 999px;
  background: var(--white); color: var(--ink); border: 1px solid var(--line);
  font: 600 17px/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -0.005em;
  transition: border-color 0.2s, background-color 0.2s, transform 0.25s var(--ease);
}
.bk-time:hover { border-color: var(--ink); }
.bk-time:active { transform: scale(0.97); }
.bk-time[aria-pressed="true"] { background: var(--lime); border-color: var(--ink); }

/* Step 3: the form */
.bk-form { margin-top: 24px; display: grid; gap: 20px; }
.bk-f { display: grid; gap: 8px; }
.bk-f label { font-weight: 600; font-size: 16px; }
.bk-f label span[aria-hidden] { color: var(--mute); }
.bk-f__opt { color: var(--mute); font-weight: 400; }
.bk-f input, .bk-f textarea {
  width: 100%; min-height: 52px; margin: 0; padding: 12px 14px;
  background: var(--white); color: var(--ink); border: 1px solid rgba(18, 18, 17, 0.3); border-radius: var(--r);
  font: 400 17px/1.4 var(--display); transition: border-color 0.2s, box-shadow 0.2s;
}
.bk-f textarea { min-height: 120px; resize: vertical; }
.bk-f input:hover, .bk-f textarea:hover { border-color: rgba(18, 18, 17, 0.55); }
.bk-f input:focus-visible, .bk-f textarea:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), 0 0 0 4px var(--lime); }
.bk-f [aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 1px var(--err); }
.bk-f__hint { font-size: 14px; color: var(--mute); }
.bk-f__err { font-size: 14px; color: var(--err); font-weight: 600; }
.bk-f__err:empty { display: none; }
.bk-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.bk-form__act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding-top: 6px; }
.bk-form__act .btn { border: 0; cursor: pointer; }
.bk-form__act .btn:disabled { cursor: progress; background: var(--paper-2); color: var(--mute); }
.bk-form__note { color: var(--mute); font-size: 15px; }

/* Step 4: done */
.bk-done { margin-top: 28px; display: grid; gap: 18px; justify-items: start; }
.bk-done__ok { display: grid; place-items: center; width: 56px; height: 56px; background: var(--lime); color: var(--ink); border-radius: var(--r); }
.bk-done .bk-step__h { font-size: clamp(36px, 3.4vw, 56px); line-height: 1; }
.bk-done__when { display: grid; gap: 4px; padding-left: 18px; border-left: 3px solid var(--lime); }
.bk-done__when b { font-size: clamp(20px, 1.6vw, 24px); font-weight: 600; }
.bk-done__when span { color: var(--mute); font-variant-numeric: tabular-nums; }
.bk-done > p:not([class]), .bk-done__more { color: var(--mute); max-width: 48ch; }
.bk-done__more a { color: var(--ink); }
.bk-done .btn { margin-top: 8px; }

/* Status + errors */
.bk-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.bk-error { margin-top: 28px; padding: 22px 24px; display: grid; gap: 12px; justify-items: start; background: var(--ink); color: var(--paper); border-radius: var(--r); border-left: 4px solid var(--lime); }
.bk-error p { max-width: 52ch; }
.bk-error__alt { color: var(--mute-d); font-size: 16px; }

/* Without JavaScript */
.bk-fallback { display: grid; gap: 16px; }
.bk-fallback h2 { font-size: clamp(26px, 2.2vw, 34px); letter-spacing: -0.03em; }
.bk-fallback p { color: var(--mute); max-width: 48ch; }
.bk-fallback__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.bk-fallback__acts .link { color: var(--ink); }
html:not(.js) .bk-app { display: none; }

[hidden] { display: none !important; }

/* ── Tablet and phone: one column, intro on top ─────────── */
@media (max-width: 900px) {
  .bk-page { --top: 60px; }
  .bk { grid-template-columns: minmax(0, 1fr); background: var(--paper); }
  .bk-intro { position: static; background: var(--ink); padding: 36px var(--pad) 34px; }
  .bk-intro h1 { font-size: clamp(38px, 10.5vw, 60px); max-width: 12ch; }
  .bk-intro__lede { font-size: 18px; margin-top: 20px; }
  .bk-expect { margin-top: 26px; }
  .bk-expect li { padding: 12px 0; font-size: 16px; }
  .bk-intro__alt { margin-top: 22px; }
  .bk-flow { padding: 36px var(--pad) 72px; }
}
@media (max-width: 520px) {
  :root { --pad: 16px; }
  .bk-top__back span { font-size: 14px; }
  .bk-days__head, .bk-days__grid { gap: 6px; }
  .bk-day { min-height: 84px; padding: 10px 8px 9px; }
  .bk-day__d { font-size: 24px; }
  .bk-day__m { font-size: 13px; }
  .bk-day__n { font-size: 11px; letter-spacing: 0.02em; }
  .bk-day__long { display: none; }
  .bk-day__short { display: inline; }
  .bk-day__n::before { display: none; }
  .bk-times { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bk-form__act .btn { width: 100%; }
  .bk-error { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .bk-day, .bk-time, .bk-top__back svg { transition: none; }
  .bk-loading::before { animation: none; }
}

/* /bedankt: voorbereidingslijst op de lichte kant (de intro-lijst is voor de donkere kant). */
.bd-h { margin-top: 12px; font-size: clamp(20px, 1.6vw, 24px); font-weight: 600; letter-spacing: -0.01em; }
.bk-expect.bd-prep { margin-top: 0; border-top-color: var(--line); max-width: 40rem; }
.bd-prep li { border-bottom-color: var(--line); color: var(--mute); }
.bd-prep b { color: var(--ink); }
.bk-done a:not(.btn) { color: var(--ink); }
.bd-prep a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.bd-prep a:hover { text-decoration-color: var(--ink); }
