/* Omanzil booking page: the approved brand kit (brand/components.css and tokens.css) plus this page's layout.
   Colours, fonts and components come from the kit; only booking-page layout lives here. Phone first.
   Oman element on this page: the Muscat contour lines behind the side panel. The advisor's photo is a circle
   (people are never shown in the arch; brand/README.md). */
[hidden] { display: none !important; }
html, body { overflow-x: clip; }
body.om-page { min-height: 100vh; }

.bk-wrap { max-width: 560px; margin-inline: auto; padding-inline: 16px; }
.bk-header .om-logo { width: 132px; }
.bk-langs { display: flex; gap: 8px; }
.bk-langs .om-switch { text-decoration: none; padding: 5px 10px; min-height: 32px; display: inline-flex; align-items: center; }

/* ---------- side panel: who the call is with ---------- */
.bk-side { position: relative; overflow: hidden; margin-top: 16px; padding: 16px; border-radius: var(--om-radius-card);
  background: var(--om-sea-deep); color: var(--om-on-deep-text); }
.bk-side__contours { position: absolute; inset: -1px; background: var(--om-on-deep-label); opacity: .16; pointer-events: none;
  -webkit-mask: url("brand/elements/contours/muscat-hills.svg") center / cover no-repeat; mask: url("brand/elements/contours/muscat-hills.svg") center / cover no-repeat; }
.bk-side__in { position: relative; display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 2px 14px; align-items: center; }
.bk-side__in .bk-meta { grid-column: 1 / -1; margin-top: 10px; }
.bk-avatar { position: relative; width: 60px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: var(--om-shallows); color: var(--om-sea); font-weight: 600; font-size: 20px; letter-spacing: .02em; }
.bk-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bk-avatar__mark { width: 46%; fill: var(--om-sea); }
/* the team (a link whose host isn't known yet): 2 to 5 overlapping circles ringed in the panel colour, the first on
   top, always above the title, a little smaller with 4 or 5 so they fit (Denis, 23 Oct: 2 to 5 must look good) */
.bk-side__in--team { grid-template-columns: 1fr; }
.bk-stack { display: flex; isolation: isolate; margin: 0 0 12px; }
.bk-stack img { width: 48px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; background: var(--om-shallows);
  box-shadow: 0 0 0 2px var(--om-sea-deep); }
.bk-stack img + img { margin-inline-start: -12px; }
.bk-stack img:nth-child(1) { z-index: 5; } .bk-stack img:nth-child(2) { z-index: 4; } .bk-stack img:nth-child(3) { z-index: 3; }
.bk-stack img:nth-child(4) { z-index: 2; } .bk-stack img:nth-child(5) { z-index: 1; }
.bk-title { margin: 0; color: var(--om-white); font-size: 17px; line-height: 1.3; font-weight: 500; letter-spacing: -.01em; text-wrap: balance; }
[dir="rtl"] .bk-title { letter-spacing: 0; line-height: 1.45; }
.bk-host { margin: 6px 0 0; font-size: 14px; line-height: 1.45; text-wrap: pretty; }
.bk-host b { color: var(--om-white); font-weight: 500; }
.bk-host span { display: block; color: var(--om-on-deep-text); font-size: 13px; }
.bk-host span:empty { display: none; }
.bk-meta { margin: 0; font-size: 13px; color: var(--om-on-deep-text); text-wrap: pretty; }
.bk-meta:empty { display: none; }

/* ---------- the card ---------- */
.bk-card { margin: 12px 0 0; padding: 20px 16px 24px; background: var(--om-surface); border: 1px solid var(--om-line);
  border-radius: var(--om-radius-card); }
.bk-label { display: block; margin: 24px 0 10px; }
[dir="rtl"] .om-label { letter-spacing: 0; text-transform: none; font-size: 13px; }
.bk-card section > .bk-label:first-child { margin-top: 0; }

/* steps: 1 Time, 2 Details, 3 Booked */
.bk-steps { display: flex; align-items: center; gap: 10px; list-style: none; margin: 0 0 18px; padding: 0; font-size: 13px; color: var(--om-stone); }
.bk-steps li { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.bk-steps li + li::before { content: ""; width: 18px; height: 1px; background: var(--om-sand); margin-inline-end: 3px; }
.bk-steps li span { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--om-input-border); display: grid; place-items: center;
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bk-steps li.is-current { color: var(--om-sea); font-weight: 500; }
.bk-steps li.is-current span { background: var(--om-sea); border-color: var(--om-sea); color: var(--om-white); }
.bk-steps li.is-done span { background: var(--om-shallows); border-color: var(--om-shallows); color: var(--om-sea); }

/* time zone line */
.bk-zone { font-size: var(--om-size-small); color: var(--om-text-muted); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.bk-zone .om-btn--tertiary { min-height: 32px; padding-inline: 0; }
.bk-zone-box { width: 100%; margin-top: 4px; }
#zone-list li .zone-sub { color: var(--om-text-muted); font-size: 13px; }

/* week of days: month with the arrows on one line, the seven days full width below */
.bk-week { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.bk-month { margin: 0; font-size: 15px; font-weight: 500; color: var(--om-ink); }
.bk-nav { flex: none; width: 44px; height: 44px; border: 1px solid var(--om-sand); border-radius: var(--om-radius); background: var(--om-white);
  color: var(--om-sea); font: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.bk-nav:hover { border-color: var(--om-sea); }
.bk-nav:disabled { color: var(--om-sand); border-color: var(--om-sand); cursor: default; }
[dir="rtl"] .bk-nav { transform: scaleX(-1); }
.bk-days .om-day { min-width: 0; min-height: 60px; padding-block: 8px; }
.bk-days .om-day span { max-width: 100%; overflow: hidden; white-space: nowrap; }
.bk-days .om-day.bk-has { background: var(--om-white); border-color: var(--om-sand); color: var(--om-sea); }
.bk-days .om-day.bk-has:hover { border-color: var(--om-sea); }
.bk-days .om-day[aria-pressed="true"] { background: var(--om-sea); border-color: var(--om-sea); color: var(--om-white); }
.bk-days .om-day:focus-visible, .om-slot:focus-visible, .bk-nav:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--om-shallows); border-color: var(--om-sea); }
/* four times a row from 360 px up: a day's times fit in four rows instead of six */
.bk-slots { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
.om-slot { direction: ltr; padding-inline: 4px; }
.bk-skel { border-color: transparent; pointer-events: none; }
.bk-note { color: var(--om-text-muted); }
.bk-note:empty { display: none; }

/* the chosen time and Continue: on a phone a bar that stays at the bottom of the screen once a time is picked */
.bk-cta { position: sticky; bottom: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 16px -16px -24px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--om-white);
  border-top: 1px solid var(--om-sand); border-radius: 0 0 var(--om-radius-card) var(--om-radius-card); }
.bk-cta__when { margin: 0; min-width: 0; font-size: 14px; line-height: 1.3; color: var(--om-sea); }
.bk-cta__when b { display: block; font-weight: 600; font-variant-numeric: tabular-nums; }
.bk-cta__when span { color: var(--om-stone); font-size: 13px; }
.bk-next { flex: none; }

/* form */
.bk-chosen { margin: 0; padding: 12px 14px; border-radius: var(--om-radius); background: var(--om-shallows); color: var(--om-sea); font-weight: 500; }
.bk-chosen--row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bk-chosen--row .bk-back { flex: none; min-height: 28px; padding-inline: 2px; }
.bk-form { display: grid; gap: 16px; margin-top: 12px; }
[dir="rtl"] .om-input[dir="ltr"] { text-align: right; }
.bk-cc { display: flex; align-items: center; gap: 4px; cursor: pointer; white-space: nowrap; }
.bk-caret { color: var(--om-text-muted); font-size: 12px; }
#cc-flag, .cc-list-flag { font-size: 20px; line-height: 1; }
.bk-cc-panel { margin-top: 6px; padding: 8px; border: 1px solid var(--om-input-border); border-radius: var(--om-radius); background: var(--om-white); }
#cc-list, #zone-list { list-style: none; margin: 8px 0 0; padding: 0; max-height: 280px; overflow-y: auto; }
#cc-list li[role="option"], #zone-list li[role="option"] { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: var(--om-radius); cursor: pointer; }
#cc-list li[role="option"]:hover, #cc-list li[role="option"].active, #zone-list li[role="option"]:hover { background: var(--om-shallows); }
#zone-list li[aria-selected="true"] { background: var(--om-shallows); color: var(--om-sea); font-weight: 500; }
#cc-list li .dial, #zone-list li .dial { margin-inline-start: auto; color: var(--om-text-muted); direction: ltr; font-variant-numeric: tabular-nums; }
#cc-list li.group { padding: 8px 8px 4px; font-size: var(--om-size-label); font-weight: 500; color: var(--om-text-muted); text-transform: uppercase; letter-spacing: .14em; }
[dir="rtl"] #cc-list li.group { letter-spacing: 0; text-transform: none; font-size: 13px; }
.bk-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bk-consent { display: grid; gap: 6px; }
.bk-privacy { font-size: var(--om-size-small); }
.bk-privacy summary { padding: 10px 0; font-size: var(--om-size-small); }
.bk-error, .bk-ferr { margin: 0; }
.bk-error:empty, .bk-ferr:empty { display: none; }

/* done, manage */
.bk-done-mark { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin: 2px 0 14px;
  background: var(--om-good-bg); color: var(--om-good); }
.bk-done-title { margin: 0 0 12px; color: var(--om-ink); }
#done-text { margin: 12px 0 0; }
#done-text:empty { display: none; }
.bk-next-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: bk; font-size: 15px; }
.bk-next-list li { position: relative; padding-inline-start: 36px; min-height: 24px; }
.bk-next-list li::before { counter-increment: bk; content: counter(bk); position: absolute; inset-inline-start: 0; top: 0; width: 24px; height: 24px;
  border-radius: 50%; background: var(--om-shallows); color: var(--om-sea); font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.bk-manage-btn { margin-top: 20px; }
.bk-actions { display: grid; gap: 10px; margin-top: 16px; }
.bk-reason { min-height: 80px; }
.bk-danger { color: var(--om-error); border-color: var(--om-error); }
.bk-danger:hover { background: var(--om-error-bg); }

/* privacy notice */
.bk-policy-title { margin: 0 0 6px; }
.bk-policy h2 { margin: 24px 0 8px; }
.bk-policy .om-list-peaks { font-size: 15px; }

.bk-foot { margin: 20px 0 32px; text-align: center; font-size: 13px; }
.bk-foot a { color: var(--om-text-muted); }

/* ---------- wider screens ---------- */
@media (min-width: 600px) {
  .bk-card { padding: 28px 28px 32px; }
  .bk-side { padding: 20px 24px; }
  .bk-side__in { grid-template-columns: 72px minmax(0, 1fr); gap: 2px 18px; }
  .bk-avatar { width: 72px; font-size: 24px; }
  .bk-stack { margin-bottom: 14px; }
  .bk-stack img { width: 56px; }
  .bk-stack img + img { margin-inline-start: -14px; }
  .bk-title { font-size: 20px; }
  .bk-cta { position: static; margin: 20px 0 0; padding: 12px 12px 12px 16px; border: 1px solid var(--om-sand); border-radius: var(--om-radius); background: var(--om-shallows); }
  .bk-cta__when { font-size: 15px; }
  .bk-cta__when b { display: inline; }
  .bk-cta__when span { display: inline; margin-inline-start: 6px; }
}
/* desktop: the side panel on the left, the card on the right */
@media (min-width: 900px) {
  .bk-header .bk-wrap, .bk-layout { max-width: 980px; }
  .bk-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; }
  .bk-layout--one { display: block; max-width: 640px; }
  .bk-layout--one .bk-card { margin-top: 32px; }
  .bk-side { position: sticky; top: 88px; margin-top: 24px; padding: 32px 28px 28px; min-height: 420px; }
  .bk-side__in { grid-template-columns: 1fr; gap: 0; align-items: start; }
  .bk-side__in .bk-meta { margin-top: 16px; }
  .bk-avatar { width: 112px; font-size: 34px; margin: 4px 0 20px; }
  .bk-side__in--team { grid-template-columns: 1fr; }
  .bk-stack { margin: 4px 0 20px; }
  .bk-stack img { width: 76px; box-shadow: 0 0 0 3px var(--om-sea-deep); }
  .bk-stack img + img { margin-inline-start: -20px; }
  .bk-stack[data-n="4"] img { width: 68px; } .bk-stack[data-n="4"] img + img { margin-inline-start: -18px; }
  .bk-stack[data-n="5"] img { width: 60px; } .bk-stack[data-n="5"] img + img { margin-inline-start: -16px; }
  .bk-title { font-size: 24px; line-height: 1.2; }
  .bk-host { margin-top: 14px; font-size: 16px; }
  .bk-host span { font-size: 14px; }
  .bk-meta { padding-top: 14px; border-top: 1px solid rgba(184, 149, 106, .4); font-size: 14px; }
  .bk-card { margin-top: 24px; }
  .bk-foot { grid-column: 1 / -1; }
}
