/* Free-session booking dialog and sticky booking bar, shared by every page.
   Self-contained: works on the homepage and on pages that use /styles.css. */
body.booking-open { overflow: hidden; }

.booking-dialog {
  --bk-ink: #2a1019;
  --bk-paper: #fffaf6;
  --bk-muted: #7a646c;
  --bk-cherry: #7a2240;
  --bk-cherry-dark: #5a102b;
  --bk-plum: #741b42;
  --bk-time: #4a0d24;
  --bk-gold: #e6c98f;
  --bk-sage: #6e5b48;
  --bk-line: rgba(42, 16, 25, .14);
  --bk-spring: cubic-bezier(.34, 1.56, .64, 1);
  width: min(1080px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 246, .2);
  border-radius: 28px;
  color: var(--bk-ink);
  background: var(--bk-paper);
  box-shadow: 0 42px 120px -28px rgba(20, 4, 13, .82);
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-align: left;
}

/* Zero-specificity resets so page stylesheets can't leak in and component rules always win. */
:where(.booking-dialog) :where(*, *::before, *::after) { box-sizing: border-box; margin: 0; padding: 0; }
:where(.booking-dialog) :where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.booking-dialog) :where(a) { color: inherit; }
/* Element-level (0,0,1) on purpose: ties with page rules like `p { color }` and wins by loading later. */
:where(.booking-dialog) p,
:where(.booking-dialog) li,
:where(.booking-dialog) label,
:where(.booking-dialog) strong { color: inherit; }
.booking-dialog h2,
.booking-dialog h3 {
  color: inherit;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.028em;
  text-wrap: balance;
}
.booking-dialog :focus-visible { outline: 3px solid #c79a5b; outline-offset: 3px; box-shadow: none; }
.booking-dialog::backdrop { background: rgba(13, 3, 9, .78); backdrop-filter: blur(10px); }

.booking-shell {
  display: grid;
  grid-template-columns: minmax(285px, .72fr) minmax(0, 1.28fr);
  min-height: min(720px, calc(100dvh - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  overscroll-behavior: contain;
}

.booking-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(32px, 4vw, 54px);
  overflow: hidden;
  color: var(--bk-paper);
  background:
    radial-gradient(circle at 14% 18%, rgba(230, 201, 143, .2), transparent 24%),
    radial-gradient(circle at 94% 70%, rgba(194, 81, 125, .32), transparent 38%),
    linear-gradient(155deg, #1a0813 0%, #32101f 62%, #170711 100%);
}

.booking-aside::after {
  content: "R";
  position: absolute;
  right: -24px;
  bottom: -82px;
  color: rgba(255, 250, 246, .035);
  font-family: "Fraunces", Georgia, serif;
  font-size: 20rem;
  line-height: 1;
  pointer-events: none;
}

.booking-mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  color: var(--bk-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.booking-mark img { width: 38px; height: 38px; }
.booking-aside h2 { max-width: 8ch; margin-top: 48px; font-size: clamp(3.2rem, 5vw, 5rem); }
.booking-aside > p { max-width: 31ch; margin-top: 22px; color: rgba(255, 250, 246, .72); }

.booking-facts { position: relative; z-index: 1; display: grid; gap: 12px; margin-top: 34px; list-style: none; }
.booking-facts li { display: flex; align-items: center; gap: 10px; color: rgba(255, 250, 246, .84); font-size: 14px; }
.booking-facts li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 1px solid rgba(230, 201, 143, .5);
  border-radius: 50%;
  color: var(--bk-gold);
  font-size: 11px;
  font-weight: 800;
}

.booking-timezone-wrap { position: relative; z-index: 1; margin-top: auto; padding-top: 38px; }
.booking-timezone-wrap label { display: block; margin-bottom: 8px; color: rgba(255, 250, 246, .6); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.booking-timezone {
  width: 100%;
  min-height: 48px;
  padding: 10px 36px 10px 13px;
  border: 1px solid rgba(255, 250, 246, .24);
  border-radius: 13px;
  color: var(--bk-paper);
  background: rgba(255, 250, 246, .07);
}
.booking-timezone option { color: var(--bk-ink); }

.booking-main { position: relative; padding: clamp(30px, 4vw, 54px); }
.booking-close {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(42, 16, 25, .22);
  border-radius: 50%;
  background: var(--bk-paper);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.booking-eyebrow { color: var(--bk-cherry-dark); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.booking-main h3 { max-width: 12ch; margin-top: 8px; font-size: clamp(2.6rem, 4vw, 4.1rem); }
.booking-intro { max-width: 52ch; margin-top: 13px; color: var(--bk-muted); }
.booking-quick-facts { display: none; flex-wrap: wrap; gap: 6px; margin-top: 14px; list-style: none; }
.booking-quick-facts li { padding: 5px 10px; border: 1px solid rgba(122, 34, 64, .2); border-radius: 999px; color: var(--bk-cherry-dark); background: rgba(194, 81, 125, .06); font-size: 12px; font-weight: 700; }
.booking-calendar { margin-top: 30px; }

.booking-calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.booking-month { font-family: "Fraunces", Georgia, serif; font-size: 1.65rem; font-weight: 600; }
.booking-month-nav { display: flex; gap: 7px; }
.booking-month-nav button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(42, 16, 25, .18);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
}
.booking-month-nav button:disabled { opacity: .35; cursor: default; }

.booking-weekdays,
.booking-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.booking-weekdays { margin-bottom: 7px; color: var(--bk-muted); font-size: 11px; font-weight: 800; text-align: center; text-transform: uppercase; }
.booking-day {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s var(--bk-spring);
}
.booking-day:hover:not(:disabled) { border-color: rgba(122, 34, 64, .34); background: #f5e9ec; transform: translateY(-2px); }
.booking-day.available { background: rgba(194, 81, 125, .075); }
.booking-day.today { border-color: rgba(199, 154, 91, .75); }
.booking-day.selected { color: var(--bk-paper); background: linear-gradient(135deg, #a33e68, #741b42); box-shadow: 0 8px 18px -10px rgba(90, 16, 43, .9); }
.booking-day:disabled { color: rgba(42, 16, 25, .3); cursor: default; }
.booking-day.blank { visibility: hidden; }

.booking-times { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--bk-line); }
.booking-times[hidden],
.booking-details[hidden],
.booking-success[hidden],
.booking-flow[hidden],
.booking-marketing[hidden],
.booking-fallback[hidden] { display: none !important; }
.booking-times-label { font-size: 13px; font-weight: 800; }
.booking-times-note { margin-top: 4px; color: var(--bk-muted); font-size: 12.5px; }
.booking-tz-change { min-height: 32px; padding: 4px 2px; border: 0; background: none; color: var(--bk-cherry-dark); cursor: pointer; font-size: 12.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.booking-time-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 14px; }
.booking-time {
  min-height: 46px;
  padding: 9px;
  border: 1px solid rgba(122, 34, 64, .24);
  border-radius: 11px;
  color: var(--bk-time);
  background: rgba(255, 255, 255, .72);
  cursor: pointer;
  font-weight: 700;
}
.booking-time:hover { border-color: var(--bk-cherry); background: #f9ecef; }
.booking-time.selected { color: var(--bk-paper); border-color: var(--bk-plum); background: var(--bk-plum); }

.booking-details { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--bk-line); scroll-margin-top: 12px; }
.booking-selection { margin-bottom: 18px; color: var(--bk-cherry-dark); font-weight: 800; }
.booking-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.booking-field { display: grid; gap: 6px; margin-bottom: 14px; }
.booking-field label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.booking-field label span { display: inline; color: var(--bk-muted); font-weight: 600; letter-spacing: .04em; text-transform: none; }
.booking-field input,
.booking-field select,
.booking-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid rgba(42, 16, 25, .3);
  border-radius: 11px;
  color: var(--bk-ink);
  background: #fff;
  font-size: 16px;
}
.booking-field textarea { min-height: 82px; resize: vertical; }
.booking-field input:user-invalid { border-color: #b3261e; }
.booking-hint { color: var(--bk-muted); font-size: 12.5px; line-height: 1.5; }
.booking-marketing { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; margin: -2px 0 16px; padding: 12px; border: 1px solid var(--bk-line); border-radius: 11px; background: rgba(42, 16, 25, .025); cursor: pointer; }
.booking-marketing input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--bk-plum); cursor: pointer; }
.booking-marketing span { color: var(--bk-muted); font-size: 12.5px; line-height: 1.5; }
.booking-marketing b { display: block; color: var(--bk-ink); font-size: 13.5px; font-weight: 700; }

.booking-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 15px 24px;
  border: 1px solid var(--bk-cherry);
  border-radius: 999px;
  color: var(--bk-paper);
  background: var(--bk-cherry);
  box-shadow: 0 16px 36px -24px rgba(42, 15, 29, .75);
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  transition: transform .28s var(--bk-spring), box-shadow .28s ease;
}
.booking-submit:hover { transform: translateY(-2px); box-shadow: 0 22px 46px -24px rgba(217, 138, 152, .88); }
.booking-submit:disabled { opacity: .7; cursor: progress; transform: none; }
.booking-submit.ghost { width: auto; color: var(--bk-paper); border-color: rgba(255, 250, 246, .16); background: linear-gradient(135deg, #9a3d62, #6b1737); }
.booking-disclaimer { margin-top: 12px; color: var(--bk-muted); font-size: 12.5px; line-height: 1.55; }
.booking-disclaimer a { text-decoration: underline; text-underline-offset: 3px; }
.booking-form-status { min-height: 22px; margin-top: 10px; color: var(--bk-muted); font-size: 13.5px; }
.booking-form-status.error { color: #9b1c33; font-weight: 600; }
.booking-fallback { margin-top: 8px; padding: 12px 14px; border: 1px solid rgba(155, 28, 51, .3); border-radius: 11px; background: #fdf1f3; font-size: 13.5px; }
.booking-fallback a { color: var(--bk-cherry-dark); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

.booking-success { display: grid; min-height: 420px; align-content: center; justify-items: start; }
.booking-success-mark { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: var(--bk-paper); background: var(--bk-sage); font-size: 24px; }
.booking-success h3 { margin-top: 24px; }
.booking-success > p { max-width: 46ch; margin-top: 15px; color: var(--bk-muted); }
.booking-success .booking-success-time { color: var(--bk-cherry-dark); font-weight: 800; }
.booking-next { display: grid; gap: 12px; max-width: 48ch; margin-top: 22px; list-style: none; counter-reset: next; }
.booking-next li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; color: var(--bk-ink); font-size: 14.5px; counter-increment: next; }
.booking-next li::before { content: counter(next); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--bk-cherry-dark); background: rgba(194, 81, 125, .12); font-size: 12px; font-weight: 800; }
.booking-success .booking-submit { width: auto; margin-top: 26px; padding-inline: 34px; }

@media (min-width: 761px) and (max-height: 860px) {
  .booking-aside h2 { margin-top: 30px; font-size: clamp(2.6rem, 4vw, 3.6rem); }
  .booking-aside > p { margin-top: 16px; font-size: 14.5px; }
  .booking-facts { margin-top: 22px; gap: 9px; }
  .booking-timezone-wrap { padding-top: 24px; }
}

@media (max-width: 760px) {
  .booking-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); border-radius: 22px; }
  .booking-shell { grid-template-columns: 1fr; min-height: 0; max-height: calc(100dvh - 16px); }
  .booking-aside { display: grid; grid-template-columns: 1fr minmax(150px, .8fr); min-height: auto; gap: 14px; align-items: end; padding: 16px 20px; }
  .booking-aside h2,
  .booking-aside > p,
  .booking-facts,
  .booking-aside::after { display: none; }
  .booking-mark { align-self: center; font-size: 9px; }
  .booking-mark img { width: 32px; height: 32px; }
  .booking-timezone-wrap { margin-top: 0; padding-top: 0; }
  .booking-timezone-wrap label { margin-bottom: 4px; font-size: 9px; }
  .booking-timezone { min-height: 44px; padding-block: 8px; font-size: 13px; }
  .booking-main { padding: 24px 20px 30px; }
  .booking-main h3 { padding-right: 40px; font-size: 2.3rem; }
  .booking-quick-facts { display: flex; }
  .booking-calendar { margin-top: 22px; }
  .booking-time-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .booking-form-row { grid-template-columns: 1fr; gap: 0; }
  .booking-time-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booking-weekdays,
  .booking-days { gap: 3px; }
  .booking-month { font-size: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .booking-day,
  .booking-submit { transition: none; }
}

/* Sticky booking bar on phones (pages that opt in with data-booking-sticky). */
.rm-sticky {
  position: fixed;
  z-index: 60;
  left: 10px;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(230, 201, 143, .3);
  border-radius: 999px;
  background: rgba(24, 8, 18, .94);
  box-shadow: 0 18px 44px -16px rgba(0, 0, 0, .7);
  backdrop-filter: blur(14px);
  transform: translateY(160%);
  transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}
.rm-sticky.show { transform: none; }
.rm-sticky a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 999px;
  color: #fffaf6;
  background: #7a2240;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.rm-sticky small { flex: 0 0 auto; padding-right: 12px; color: rgba(255, 250, 246, .78); font-family: "Hanken Grotesk", system-ui, sans-serif; font-size: 12px; font-weight: 600; line-height: 1.25; text-align: center; }
@media (max-width: 760px) { .rm-sticky { display: flex; } }
@media (prefers-reduced-motion: reduce) { .rm-sticky { transition: none; } }
