/* Public booking page. Themed by the deployment: --primary and --primary-text come from /branding.css. */
:root {
  --bk-bg: #f3f1ed;
  --bk-surface: #ffffff;
  --bk-text: #1d1c1a;
  --bk-muted: #57534c;
  --bk-border: #d3cec6;
  --bk-soft: #f0eeea;
  --bk-soft-strong: #e3e0da;
  --bk-field-border: #8a857d;
  --bk-overlay: #4a463f;
  --bk-hint-bg: rgb(74 70 63 / .88);  /* the step 1 hint by a free date: soft and see-through, still AA for its white text */
  --bk-hint-text: #ffffff;
  --bk-accent: var(--primary, #2563eb);
  --bk-accent-text: var(--primary-text, #ffffff);
  --bk-focus: #0b57d0;
  --bk-danger: #b42318;
  --bk-danger-bg: #fef3f2;
  --bk-ok: #067647;
  --bk-ok-bg: #ecfdf3;
  --bk-radius: 16px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--bk-text);
  line-height: 1.5;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.bk-body { margin: 0; background: var(--bk-bg); font-size: 16px; min-height: 100vh; display: flex; flex-direction: column; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

a { color: var(--bk-focus); }
[tabindex="-1"]:focus { outline: none; }  /* headings the script moves focus to are not controls */

/* Keyboard focus: always visible, never clipped. */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible,
.bk-chip input:focus-visible + span, .bk-check input:focus-visible {
  outline: 3px solid var(--bk-focus);
  outline-offset: 2px;
}
.bk-skip { position: absolute; left: .75rem; top: -4rem; background: var(--bk-surface); padding: .6rem .9rem; border-radius: 8px; z-index: 10; }
.bk-skip:focus { top: .75rem; }

.bk-topbar { display: flex; align-items: center; justify-content: center; gap: .6rem; height: 60px; border-bottom: 1px solid var(--bk-border); background: var(--bk-surface); }
.bk-logo { height: 32px; width: auto; }
.bk-brand { font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; }
.bk-footer { margin-top: auto; padding: 1.5rem 1rem; text-align: center; color: var(--bk-muted); font-size: .85rem; }

.bk { flex: 1 0 auto; width: 100%; max-width: 1040px; margin: 0 auto; padding: 1rem 1rem 2.5rem; }
.bk-embed .bk { padding: 1rem .75rem; }
/* In a frame sized to the page's own height, the off-screen helpers (live region, honeypot) sit at the top, so they never
   make the page 1px taller than it reports (a hairline scrollbar when the frame is not fixed). */
.bk-embed .visually-hidden, .bk-embed .bk-hp { top: 0; }

/* The card: details + calendar, then info + calendar + times. The calendar keeps its size and glides. */
.bk-card { background: var(--bk-surface); border: 1px solid var(--bk-border); border-radius: var(--bk-radius); overflow: hidden; }
.bk-panes { display: grid; grid-template-columns: 1fr 1fr; transition: grid-template-columns .4s ease; }
.bk[data-step="time"] .bk-panes { grid-template-columns: 32fr 43fr 25fr; }
.bk-card-single { display: block; max-width: 640px; margin: 0 auto; }
.bk-col { padding: 1.5rem; min-width: 0; }
.bk-cal { border-left: 1px solid var(--bk-border); position: relative; }
.bk-times { border-left: 1px solid var(--bk-border); max-height: 36rem; overflow-y: auto; padding-inline: 1.25rem; }
@media (prefers-reduced-motion: reduce) { .bk-panes { transition: none; } }

/* Step indicator: two dots, the current one filled, the finished one ticked */
.bk-steps { list-style: none; margin: 0; padding: .9rem 1rem; display: flex; justify-content: center; gap: 2rem; border-bottom: 1px solid var(--bk-border); font-size: .95rem; color: var(--bk-muted); }
.bk-step { display: inline-flex; align-items: center; gap: .5rem; }
.bk-step-dot { width: 9px; height: 9px; border-radius: 50%; background: #9a958d; flex: none; }
.bk-step.is-current { color: var(--bk-text); font-weight: 700; }
.bk-step.is-current .bk-step-dot { background: var(--bk-text); box-shadow: 0 0 0 3px var(--bk-soft-strong); }
.bk-step.is-done { color: var(--bk-text); }
.bk-step.is-done .bk-step-dot { width: auto; height: auto; background: none; font-size: .85rem; line-height: 1; }
.bk-step.is-done .bk-step-dot::before { content: "\2713"; }

/* Host header */
.bk-host { display: flex; gap: .9rem; align-items: center; margin-bottom: .75rem; }
.bk-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.bk-avatar-initial { display: inline-flex; align-items: center; justify-content: center; background: var(--bk-text); color: #fff; font-weight: 700; font-size: 1.4rem; }
.bk-host-name { margin: 0; color: var(--bk-muted); font-size: .9rem; font-weight: 600; letter-spacing: .02em; }
.bk-title { margin: 0; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.01em; }
.bk-meta { margin: .15rem 0 0; color: var(--bk-muted); font-size: .95rem; }
.bk[data-step="time"] .bk-meta { display: none; }
.bk-bullets { margin: 0 0 1.25rem; padding-left: 1.2rem; color: var(--bk-text); }
.bk-bullets li { margin: .2rem 0; }
.bk[data-step="time"] .bk-bullets { display: none; }
.bk-h2 { font-size: 1.05rem; margin: 0 0 .5rem; }
.bk-intro { margin: 0 0 1rem; color: var(--bk-muted); font-size: .95rem; }

/* Form */
.bk-field { margin-bottom: .8rem; }
.bk-field label, .bk-field legend { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .3rem; padding: 0; }
.bk-field input[type="text"], .bk-field input[type="email"], .bk-field input[type="tel"], .bk-field textarea, .bk-guest-row input {
  width: 100%; font: inherit; font-size: 1rem; min-height: 44px; padding: .6rem .75rem; color: var(--bk-text);
  background: var(--bk-surface); border: 1px solid var(--bk-field-border); border-radius: 10px;
}
.bk-field input:focus-visible, .bk-guest-row input:focus-visible { outline-offset: 0; }
.bk-field textarea { resize: vertical; }
.bk-field.has-error input, .bk-field.has-error textarea { border-color: var(--bk-danger); border-width: 2px; }
.bk-req { color: var(--bk-danger); }
.bk-opt { color: var(--bk-muted); font-weight: 400; }
.bk-hint { margin: .25rem 0 0; color: var(--bk-muted); font-size: .85rem; }
.bk-error { margin: .3rem 0 0; color: var(--bk-danger); font-size: .9rem; font-weight: 600; }
.bk-error-box { margin: 0 0 1rem; padding: .7rem .9rem; border-radius: 10px; background: var(--bk-danger-bg); color: var(--bk-danger); border: 1px solid #fda29b; font-weight: 600; }
fieldset.bk-choices { border: 0; margin: 0; padding: 0; min-width: 0; }
.bk-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.bk-chip { position: relative; margin: 0; }
.bk-chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.bk-chip span { display: inline-block; min-height: 40px; padding: .5rem .9rem; border: 1px solid var(--bk-field-border); border-radius: 999px; font-weight: 500; }
.bk-chip input:checked + span { background: var(--bk-text); border-color: var(--bk-text); color: #fff; }
.bk-nextfree { margin: 0 0 1rem; padding: .6rem .9rem; border-radius: 10px; background: var(--bk-soft); border: 1px solid var(--bk-border); font-weight: 700; font-size: .95rem; }
.bk[data-step="time"] .bk-nextfree { display: none; }
.bk-notice-line { margin: .6rem 0 0; color: var(--bk-muted); font-size: .8rem; line-height: 1.4; }
.bk-check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400 !important; font-size: .9rem !important; cursor: pointer; }
.bk-check input { width: 24px; height: 24px; flex: none; margin: .1rem 0 0; accent-color: var(--bk-accent); }
.bk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Buttons */
.bk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .6rem 1.1rem;
  font: inherit; font-weight: 700; color: var(--bk-text); background: var(--bk-surface); border: 1px solid var(--bk-field-border); border-radius: 999px;
  cursor: pointer; text-decoration: none; text-align: center;
}
.bk-btn:hover { background: var(--bk-soft); }
.bk-btn-primary { background: var(--bk-accent); border-color: var(--bk-accent); color: var(--bk-accent-text); }
#bk-continue, .bk-confirm { border-radius: 12px; }
.bk-btn-primary:hover { background: var(--bk-accent); filter: brightness(.93); }
.bk-btn-danger { background: var(--bk-danger); border-color: var(--bk-danger); color: #fff; }
.bk-btn[disabled] { opacity: .6; cursor: progress; }
#bk-continue { width: 100%; }
.bk-linkbtn { background: none; border: 0; padding: .25rem 0; font: inherit; color: var(--bk-focus); text-decoration: underline; cursor: pointer; min-height: 24px; }

/* Summary column (step 2) */
.bk-tz { color: var(--bk-muted); font-size: .9rem; margin: 0 0 .5rem; text-align: center; }
.bk-bookedas { border-top: 1px solid var(--bk-border); padding-top: .9rem; }
.bk-label { margin: 0; color: var(--bk-muted); font-size: .85rem; }
.bk-who { margin: 0 0 .25rem; overflow-wrap: anywhere; }
.bk-who strong { display: block; }
.bk-notice { padding: 1rem; border-radius: 12px; background: var(--bk-soft); }
.bk-notice h2 { margin: 0 0 .25rem; font-size: 1.05rem; }
.bk-muted { color: var(--bk-muted); }

/* Calendar */
/* Step 1 hint: invisible until a free date is hovered, tapped or focused (booking.js places it by that date). It never
   covers the calendar on load, ignores the pointer so it cannot flicker, and only fades: the text is never moved out of view. */
.bk-locked {
  position: absolute; z-index: 2; left: 0; top: 0; width: max-content; max-width: min(16rem, calc(100% - 1rem)); margin: 0;
  padding: .55rem .8rem; border-radius: 10px; background: var(--bk-hint-bg); color: var(--bk-hint-text);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: .875rem; font-weight: 600; line-height: 1.35; text-align: center; box-shadow: 0 6px 20px rgb(29 28 26 / .14);
  pointer-events: none; visibility: hidden; opacity: 0; transition: opacity .12s ease, visibility 0s linear .12s;
}
.bk-locked.is-shown { visibility: visible; opacity: 1; transition: opacity .12s ease; }
/* Area mode (cfg.hintMode "area"): one hint for the whole calendar, centred in it. */
.bk-locked.is-area { left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: calc(100% - 2rem); }
@media (prefers-reduced-motion: reduce) { .bk-locked, .bk-locked.is-shown { transition: none; } }
.bk-scarcity { margin: 0 0 .75rem; padding: .5rem .8rem; border-radius: 10px; background: var(--bk-soft); border: 1px solid var(--bk-border); font-size: .9rem; font-weight: 700; }
.bk-scarcity::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: .5rem; border-radius: 50%; background: var(--bk-text); }
.bk[data-step="details"] .bk-tz, .bk[data-step="time"] .bk-tz { text-align: center; }
.bk[data-step="time"] .bk-tz { display: none; }
.bk-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.bk-month { margin: 0; font-size: 1.05rem; text-align: center; flex: 1; }
.bk-nav { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--bk-field-border); background: var(--bk-surface); font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--bk-text); }
.bk-nav:hover:not([disabled]) { background: var(--bk-soft); }
.bk-nav[disabled] { opacity: .35; cursor: default; }
.bk-grid { width: 100%; border-collapse: separate; border-spacing: 2px; table-layout: fixed; }
.bk-grid th { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--bk-muted); padding: .35rem 0; }
.bk-grid td { padding: 0; height: 44px; text-align: center; }  /* six rows always: the card never changes height between months */
.bk-day {
  width: 100%; min-width: 40px; height: 44px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: .95rem;
  color: #8d8880; font-weight: 400; cursor: default; position: relative;
}
.bk-day.is-free { background: var(--bk-soft-strong); color: var(--bk-text); font-weight: 800; cursor: pointer; }
.bk-day.is-free:hover { background: #d4d0c8; }
.bk-day.is-selected { background: var(--bk-text); color: #fff; }
.bk-day.is-today::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.bk-month-empty { margin: .75rem 0 0; font-size: .9rem; }

/* Times */
.bk-slots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.bk-slot-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.bk-slot-row .bk-slot { flex: 1 1 auto; }
/* The chosen time and its confirm button share a row; when the column is too narrow for the button's label, the button
   moves to its own row at full width instead of letting the text spill out (it never shrinks below its label). */
.bk-slot-row.is-selected .bk-slot { flex: 1 0 40%; padding-inline: .5rem; }
.bk-slot-row .bk-confirm { flex: 1 1 auto; min-width: max-content; padding-inline: .75rem; white-space: nowrap; font-size: .95rem; }
.bk-slot {
  min-height: 44px; padding: .55rem 1rem; border: 1px solid var(--bk-field-border); border-radius: 10px; background: var(--bk-surface);
  font: inherit; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--bk-text); cursor: pointer;
}
.bk-slot:hover { background: var(--bk-soft-strong); }
.bk-slot[aria-pressed="true"] { background: var(--bk-text); border-color: var(--bk-text); color: #fff; }

/* Step 2 left column: meeting facts, time zone, guests; who is booking sits below them */
.bk-info { display: flex; flex-direction: column; }
.bk-aside { order: 1; }
.bk-info #bk-summary { order: 2; margin-top: 1rem; }
.bk-summary .bk-h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bk-aside { margin-top: 1rem; border-top: 1px solid var(--bk-border); padding-top: 1rem; }
.bk-factlist { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .6rem; font-size: .95rem; }
.bk-factlist li { display: flex; align-items: center; gap: .6rem; min-height: 28px; }
.bk-ico { width: 20px; height: 20px; flex: none; background: var(--bk-text); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.bk-ico-video { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 6h12a2 2 0 0 1 2 2v2.6l4-2.6v8l-4-2.6V16a2 2 0 0 1-2 2H3z'/%3E%3C/svg%3E"); }
.bk-ico-clock { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 5v5.4l3.6 2.1-1 1.7L11 13V7z'/%3E%3C/svg%3E"); }
.bk-ico-globe { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm6.9 9h-3a15 15 0 0 0-1.3-5.6A8 8 0 0 1 18.9 11zM12 4c.8 1 1.7 3.3 1.9 7h-3.8C10.300 7.300 11.200 5 12 4zM4.100 13h3a15 15 0 0 0 1.300 5.600A8 8 0 0 1 4.100 13zm3-2h-3a8 8 0 0 1 4.300-5.600A15 15 0 0 0 7.100 11zM12 20c-.8-1-1.700-3.300-1.900-7h3.800c-.2 3.700-1.100 6-1.900 7zm2.600-1.400a15 15 0 0 0 1.300-5.600h3a8 8 0 0 1-4.300 5.600z'/%3E%3C/svg%3E"); }
.bk-tzrow { align-items: center; }
.bk-select { flex: 1; min-width: 0; min-height: 44px; font: inherit; font-size: .95rem; padding: .4rem .6rem; color: var(--bk-text); background: var(--bk-surface); border: 1px solid var(--bk-field-border); border-radius: 10px; }
.bk-guests-head { margin: 0 0 .5rem; font-weight: 600; font-size: .95rem; }
#bk-guests-count { color: var(--bk-muted); font-weight: 400; margin-left: .25rem; }
.bk-guest-list { list-style: none; margin: 0 0 .5rem; padding: 0; display: grid; gap: .4rem; }
.bk-guest-list li { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .25rem .25rem .25rem .7rem; border-radius: 10px; background: var(--bk-soft); font-size: .9rem; }
.bk-guest-list .bk-guest-email { overflow-wrap: anywhere; }
.bk-guest-remove { flex: none; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--bk-text); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.bk-guest-remove:hover { background: var(--bk-soft-strong); }
.bk-addguest { min-height: 44px; border-radius: 10px; font-weight: 600; }
.bk-guest-form { margin-top: .6rem; }
.bk-guest-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.bk-guest-row { display: flex; gap: .5rem; }
.bk-guest-row input { flex: 1; min-width: 0; }
.bk-guest-row .bk-btn { border-radius: 10px; }

.bk-optional-short { display: none; }

/* Confirmation and self-service pages */
.bk-done { padding: 2rem 1.75rem; text-align: left; }
.bk-check-badge { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--bk-ok-bg); color: var(--bk-ok); font-size: 1.8rem; font-weight: 700; margin-bottom: .75rem; }
.bk-facts { margin: 1rem 0; padding: 1rem; background: var(--bk-soft); border-radius: 12px; }
.bk-facts div { display: grid; grid-template-columns: 5.5rem 1fr; gap: .5rem; padding: .3rem 0; }
.bk-facts dt { color: var(--bk-muted); font-size: .9rem; }
.bk-facts dd { margin: 0; overflow-wrap: anywhere; }
.bk-addcal h2, .bk-next h2, .bk-change h2, .bk-video h2 { font-size: 1.05rem; margin: 1.5rem 0 .25rem; }
.bk-addcal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .75rem; }
.bk-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* Narrow screens (and narrow iframes): one column, rules between the parts */
@media (max-width: 760px) {
  .bk { padding: 1rem; }
  .bk-panes, .bk[data-step="time"] .bk-panes { grid-template-columns: 1fr; }
  .bk-steps { gap: 1.25rem; font-size: .9rem; padding: .75rem .5rem; }
  .bk-cal, .bk-times { border-left: 0; border-top: 1px solid var(--bk-border); }
  .bk-times { max-height: none; }
  .bk-col { padding: 1.25rem; }
  .bk-topbar { height: 52px; }
  /* First screen on a phone: the form comes before the three bullets, so the button and the notice are visible without scrolling. */
  .bk-info .bk-bullets { order: 2; margin: 1rem 0 0; }
  /* Step 2 on a phone: a compact info block so the calendar starts on the first screen */
  .bk[data-step="time"] .bk-info { padding-bottom: 1rem; }
  .bk[data-step="time"] .bk-host { margin-bottom: .5rem; }
  .bk[data-step="time"] .bk-avatar { width: 44px; height: 44px; font-size: 1.1rem; }
  .bk[data-step="time"] .bk-title { font-size: 1.2rem; }
  .bk-aside { margin-top: .25rem; padding-top: .6rem; }
  .bk-factlist { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; margin-bottom: .6rem; font-size: .9rem; }
  .bk-factlist li { min-height: 24px; }
  .bk-factlist .bk-tzrow { flex: 1 1 100%; }
  .bk-select { min-height: 36px; font-size: .9rem; padding: .2rem .5rem; max-width: 16rem; }
  .bk-guests:not(.has-guests) .bk-guests-head { display: none; }
  .bk-guests-head { margin-bottom: .3rem; font-size: .9rem; }
  .bk-optional-short { display: inline; font-weight: 400; }
  .bk-addguest { min-height: 36px; padding: .3rem .8rem; font-size: .9rem; }
  .bk-info #bk-summary { margin-top: .6rem; }
  .bk-bookedas { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .6rem; padding-top: .5rem; font-size: .9rem; }
  .bk-bookedas .bk-label { display: none; }
  .bk-bookedas .bk-who { display: flex; flex-wrap: wrap; gap: 0 .5rem; margin: 0; }
  .bk-bookedas .bk-who strong { display: inline; }
  .bk-done { padding: 1.5rem 1.25rem; }
}
@media (max-width: 420px) {
  .bk-addcal-grid { grid-template-columns: 1fr; }
  .bk-facts div { grid-template-columns: 1fr; gap: 0; }
}
