/* Core One — booking pages (/book), inside the website. Colours, fonts, buttons and radius
   come from the site theme (site.css + /site/theme.css); this file only lays out the
   booking pieces, scoped under .bk, with logical properties so Arabic mirrors itself. */
[hidden] { display: none !important; }

.bk {
  --bk-ink: var(--c-text, #1f2430);
  --bk-head: var(--c-head, var(--bk-ink));
  --bk-accent: var(--c-btn, var(--o1, #1e56d5));
  --bk-on-accent: var(--c-btn-text, #fff);
  --bk-link: var(--c-link, var(--bk-accent));
  --bk-paper: var(--c-card, #fff);
  --bk-muted: var(--c-muted, color-mix(in srgb, var(--bk-ink) 64%, transparent));
  --bk-line: var(--c-border, color-mix(in srgb, var(--bk-ink) 14%, transparent));
  --bk-danger: #b42318;
  --bk-r: var(--r, 12px);
  padding-block: clamp(24px, 4vw, 48px) clamp(48px, 7vw, 88px);
  color: var(--bk-ink);
}
.bk.bk-narrow { max-width: 720px; }
.bk h1 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.15rem); line-height: 1.2; margin: 0; color: var(--bk-head); }
.bk h2, .bk h3 { color: var(--bk-head); }
.bk a:not(.btn) { color: var(--bk-link); }
.bk-lead { color: var(--bk-muted); margin: 6px 0 0; font-size: 1.05em; }
.bk-empty { color: var(--bk-muted); padding-block: 36px; margin: 0; }
.bk-back { display: inline-block; font-weight: 600; margin-block-end: 18px; text-decoration: none; }
.bk-back:hover { text-decoration: underline; }
.bk-intro { margin-block-end: 26px; }

.bk-card {
  background: var(--bk-paper); border: 1px solid var(--bk-line); border-radius: var(--bk-r);
  padding: clamp(18px, 2.4vw, 26px);
}

/* meeting types */
.bk-types { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.bk-type {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; height: 100%;
  color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.bk a.bk-type { color: inherit; }
.bk-type:hover { border-color: var(--bk-accent); box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--bk-ink) 40%, transparent); transform: translateY(-1px); }
.bk-type:focus-visible { outline: 2px solid var(--bk-accent); outline-offset: 2px; }
.bk-type-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bk-type-name { font-weight: 650; font-size: 1.08em; color: var(--bk-head); }
.bk-meta { color: var(--bk-muted); font-size: .92em; }
.bk-type-desc { color: var(--bk-muted); font-size: .92em; margin-block-start: 6px; }
.bk-chev { width: 20px; height: 20px; color: var(--bk-muted); align-self: center; }
[dir="rtl"] .bk-chev { transform: scaleX(-1); }
.bk-dot { width: 12px; height: 12px; border-radius: 50%; margin-block-start: 6px; background: var(--bk-dot, var(--bk-accent)); flex: none; }
.bk-dot.is-lg { width: 16px; height: 16px; margin: 0 0 12px; display: block; }

/* one meeting type: info beside the picker */
.bk-layout { display: grid; grid-template-columns: minmax(230px, 320px) minmax(0, 1fr); gap: 22px; align-items: start; }
.bk-info { position: sticky; inset-block-start: 88px; }
.bk-facts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; color: var(--bk-muted); }
.bk-facts li { display: flex; align-items: center; gap: 8px; }
.bk-ic { width: 18px; height: 18px; flex: none; }
.bk-desc { color: var(--bk-muted); margin: 16px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.bk-h { font-size: 1.12rem; margin: 0 0 14px; }

/* slots: radio buttons dressed as buttons */
.bk-days { display: flex; flex-direction: column; gap: 20px; }
.bk-day { border: 0; margin: 0; padding: 0; min-width: 0; }
.bk-day-h { padding: 0; margin-block-end: 10px; font-size: .78rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--bk-muted); }
.is-js .bk-day-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.bk-slot { position: relative; display: block; }
.bk-slot input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.bk-slot-t {
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 46px;
  border: 1px solid var(--bk-line); border-radius: calc(var(--bk-r) * .75); padding: 8px 6px;
  font-weight: 650; color: var(--bk-accent); background: var(--bk-paper); font-variant-numeric: tabular-nums;
  transition: border-color .12s, background-color .12s, color .12s;
}
.bk-slot-t small { font-size: .72rem; font-weight: 500; opacity: .75; }
.bk-slot:hover .bk-slot-t { border-color: var(--bk-accent); }
.bk-slot input:focus-visible + .bk-slot-t { outline: 2px solid var(--bk-accent); outline-offset: 2px; }
.bk-slot input:checked + .bk-slot-t { background: var(--bk-accent); border-color: var(--bk-accent); color: var(--bk-on-accent); }

/* the day strip (built by /site/book.js) */
.bk-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin-block-end: 12px; scroll-snap-type: x proximity; scrollbar-width: none; }
.bk-strip::-webkit-scrollbar { display: none; }
.bk-daybtn {
  flex: none; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 78px; padding: 9px 10px; border: 1px solid var(--bk-line); border-radius: calc(var(--bk-r) * .75);
  background: var(--bk-paper); color: var(--bk-ink); font: inherit; cursor: pointer;
}
.bk-daybtn .wd { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--bk-muted); }
.bk-daybtn .dn { font-weight: 650; white-space: nowrap; }
.bk-daybtn:hover { border-color: var(--bk-accent); }
.bk-daybtn:focus-visible { outline: 2px solid var(--bk-accent); outline-offset: 2px; }
.bk-daybtn.is-on { background: var(--bk-accent); border-color: var(--bk-accent); color: var(--bk-on-accent); }
.bk-daybtn.is-on .wd { color: inherit; opacity: .85; }

/* details */
.bk-details { margin-block-start: 24px; padding-block-start: 22px; border-block-start: 1px solid var(--bk-line); }
.bk-chosen { font-weight: 650; color: var(--bk-accent); margin: 0 0 14px; }
.bk-chosen:empty { display: none; }
.bk-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.bk-fld { display: block; min-width: 0; }
.bk-fld span { display: block; font-size: .9rem; font-weight: 600; margin-block-end: 6px; color: var(--bk-head); }
.bk-fld input[type=email], .bk-fld input[type=tel] { direction: ltr; text-align: start; }
[dir="rtl"] .bk-fld input[type=email], [dir="rtl"] .bk-fld input[type=tel] { text-align: end; }
.bk-hint { color: var(--bk-muted); font-size: .86rem; margin: 10px 0 0; }
.bk-submit { margin-block-start: 18px; }

/* confirmation */
.bk-done { text-align: center; }
.bk-check {
  width: 64px; height: 64px; border-radius: 50%; margin: 4px auto 16px; display: grid; place-items: center;
  font-size: 30px; background: color-mix(in srgb, #0d7a4f 14%, var(--bk-paper)); color: #0d7a4f;
}
.bk-done.is-cancel .bk-check { background: color-mix(in srgb, var(--bk-danger) 12%, var(--bk-paper)); color: var(--bk-danger); }
.bk-summary { max-width: 440px; margin: 22px auto; text-align: start; border: 1px solid var(--bk-line); border-radius: var(--bk-r); padding: 4px 18px; }
.bk-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-block-end: 1px solid var(--bk-line); }
.bk-row:last-child { border-block-end: 0; }
.bk-row dt { color: var(--bk-muted); }
.bk-row dd { margin: 0; font-weight: 600; text-align: end; overflow-wrap: anywhere; }
.bk-cal { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 8px; color: var(--bk-muted); margin: 0 0 18px; font-size: .94em; }
.bk-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-block-start: 8px; }
.bk-done.is-ask .bk-actions { margin-block-start: 22px; }
.bk-danger { background: var(--bk-danger); border-color: var(--bk-danger); color: #fff; }
.bk-danger:hover { filter: brightness(1.08); }
.bk .bk-danger-link { color: var(--bk-danger); background: transparent; border-color: transparent; }
.bk .bk-danger-link:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .bk-layout { grid-template-columns: minmax(0, 1fr); }
  .bk-info { position: static; }
}
@media (max-width: 560px) {
  .bk-fields { grid-template-columns: minmax(0, 1fr); }
  .bk-slots { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
  .bk-submit { width: 100%; }
  .bk-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .bk-type, .bk-slot-t { transition: none; }
  .bk-type:hover { transform: none; }
}

/* Table bookings: how many are coming, above the times (batch 12) */
.bk-party { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; margin-block-end: 18px; }
.bk-party .bk-fld { flex: 0 0 auto; min-width: 120px; }
.bk-party select { min-width: 120px; min-height: 44px; padding: 8px 12px; border-radius: var(--bk-r, 10px); border: 1px solid var(--bk-line); background: var(--bk-paper); color: var(--bk-ink); font: inherit; }
