/* ============================================================
   BOOKING — native demo scheduler inside the contact "meeting" pane
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.booking {
  container-type: inline-size;
  position: relative;
  color-scheme: dark;
}

.booking button:focus-visible,
.booking-choice input:focus-visible + span {
  outline: 1px solid var(--burnished-gold);
  outline-offset: 2px;
}

/* —— Meeting context —— */
.booking-context {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--hairline);
  position: relative;
}
.booking-context::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 72px; height: 1px;
  background: var(--antique-gold);
}
.booking-eyebrow {
  font-family: var(--body);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--burnished-gold);
  margin-bottom: 8px;
}
.booking-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--parchment);
}
.booking-meta {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: rgba(250, 247, 242, 0.72);
}
.booking-meta li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.booking-meta li[hidden] { display: none; }
.booking-meta svg {
  flex-shrink: 0;
  color: var(--burnished-gold);
}
/* Time zone picker — a custom listbox styled like the site (the native
   <select> option list can't be themed). */
.booking-meta li.booking-tz-wrap { position: relative; }
.booking-tz {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  /* Fixed width so the chosen zone's name never resizes the header. */
  width: 260px;
  max-width: 100%;
  padding: 2px 2px 5px 0;
  font-family: var(--body);
  font-weight: 300;
  font-size: 13px;
  text-align: left;
  color: rgba(250, 247, 242, 0.85);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(184, 150, 58, 0.22);
  border-radius: 0;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
.booking-tz:hover,
.booking-tz[aria-expanded="true"] {
  color: var(--parchment);
  border-bottom-color: var(--burnished-gold);
}
.booking-tz-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.booking-tz-chevron {
  flex-shrink: 0;
  color: var(--burnished-gold);
  transition: transform 0.3s;
}
.booking-tz[aria-expanded="true"] .booking-tz-chevron { transform: rotate(180deg); }

.booking-tz-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 30;
  width: 300px;
  max-width: calc(100vw - 44px);
  background: var(--prussian-deep);
  border: 1px solid rgba(184, 150, 58, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  padding-top: 10px;
}
.booking-tz-panel[hidden] { display: none; }
.booking-tz-panel {
  opacity: 0;
  transform: translateY(-6px);
  transform-origin: top left;
  transition: opacity 0.2s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.booking-tz-panel.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.booking-tz-panel::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 72px; height: 1px;
  background: var(--antique-gold);
}
.booking-tz-search {
  display: block;
  width: calc(100% - 32px);
  margin: 0 16px 4px;
  padding: 4px 0 8px;
  font-family: var(--body);
  font-weight: 300;
  font-size: 13px;
  color: var(--parchment);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(184, 150, 58, 0.22);
  border-radius: 0;
  outline: none;
  transition: border-color 0.3s;
}
.booking-tz-search::placeholder { color: rgba(250, 247, 242, 0.32); }
.booking-tz-search:focus { border-bottom-color: var(--burnished-gold); }

.booking-tz-list {
  list-style: none;
  max-height: 248px; /* ~7 rows */
  overflow-y: auto;
  padding: 4px 0 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(184, 150, 58, 0.45) transparent;
  position: relative; /* offsetTop of options is measured from here */
}
.booking-tz-option {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 16px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(250, 247, 242, 0.82);
  cursor: pointer;
  border-left: 1px solid transparent;
}
.booking-tz-option.is-active {
  background: rgba(28, 58, 95, 0.75);
  color: var(--parchment);
}
.booking-tz-option[aria-selected="true"] {
  color: var(--burnished-gold);
  border-left-color: var(--burnished-gold);
}
.booking-tz-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.booking-tz-region {
  margin-left: 8px;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: rgba(250, 247, 242, 0.4);
}
.booking-tz-offset {
  flex-shrink: 0;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: rgba(250, 247, 242, 0.5);
}
.booking-tz-option[aria-selected="true"] .booking-tz-offset { color: var(--burnished-gold); }
.booking-tz-empty {
  padding: 10px 16px;
  font-size: 13px;
  color: rgba(250, 247, 242, 0.55);
}

/* —— Status / notices —— */
.booking-status {
  font-size: 14px;
  line-height: 1.6;
  color: var(--parchment);
  padding: 14px 18px;
  margin-bottom: 24px;
  border-left: 2px solid #d98a7a;
  background: rgba(217, 138, 122, 0.08);
}
.booking-status[data-tone="warning"] {
  border-left-color: var(--burnished-gold);
  background: rgba(212, 174, 92, 0.08);
}

/* —— Date + time picker —— */
.booking-pick {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
.booking-pick[hidden] { display: none; }

@container (min-width: 560px) {
  .booking-pick {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 40px;
  }
  .booking-times {
    border-left: 1px solid var(--hairline);
    padding-left: 32px;
  }
}

.booking-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.booking-cal-month {
  font-family: var(--button);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--parchment);
}
.booking-cal-nav {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(184, 150, 58, 0.35);
  color: var(--burnished-gold);
  cursor: pointer;
  transition: background 0.3s, color 0.3s, opacity 0.3s;
}
.booking-cal-nav:hover:not(:disabled) { background: rgba(28, 58, 95, 0.55); }
.booking-cal-nav:disabled { opacity: 0.3; cursor: default; }

.booking-cal-weekdays,
.booking-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.booking-cal-weekdays {
  margin-bottom: 6px;
}
.booking-cal-weekdays span {
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.45);
  padding: 4px 0;
}

.booking-day {
  aspect-ratio: 1 / 1;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-family: var(--body);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(250, 247, 242, 0.28);
  cursor: default;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.booking-day.is-blank { visibility: hidden; }
.booking-day.is-available {
  color: var(--parchment);
  font-weight: 400;
  background: rgba(28, 58, 95, 0.55);
  border-color: rgba(184, 150, 58, 0.22);
  cursor: pointer;
}
.booking-day.is-available::after {
  content: '';
  position: absolute;
  bottom: 18%;
  left: 50%;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--burnished-gold);
}
.booking-day.is-available:hover {
  border-color: var(--burnished-gold);
}
.booking-day.is-today {
  text-decoration: underline;
  text-decoration-color: rgba(212, 174, 92, 0.6);
  text-underline-offset: 4px;
}
.booking-day.is-selected,
.booking-day.is-selected:hover {
  background: var(--burnished-gold);
  border-color: var(--burnished-gold);
  color: var(--prussian-deep);
  font-weight: 500;
}
.booking-day.is-selected::after { background: var(--prussian-deep); }

/* Pulse the cells (not the grid) so the grid stays free for the month slide. */
.booking-calendar.is-loading .booking-day {
  opacity: 0.45;
  animation: bookingPulse 1.6s ease-in-out infinite;
}
@keyframes bookingPulse {
  50% { opacity: 0.25; }
}
@media (prefers-reduced-motion: reduce) {
  .booking-calendar.is-loading .booking-day { animation: none; }
}

.booking-cal-note {
  min-height: 1.6em;
  margin-top: 12px;
  font-size: 13px;
  color: rgba(250, 247, 242, 0.55);
}
.booking-cal-note.is-silent { color: transparent; }

/* —— Times —— */
.booking-times-title {
  font-family: var(--button);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--parchment);
  margin-bottom: 16px;
  min-height: 36px;
  display: flex;
  align-items: center;
  scroll-margin-top: 96px; /* clear the fixed nav */
}
.booking-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  /* exactly 7 rows: 7 × 44px slots + 6 × 8px gaps */
  max-height: 356px;
  overflow-y: auto;
  padding-right: 4px;
}
@container (min-width: 560px) {
  .booking-slots { grid-template-columns: 1fr; }
}
.booking-slot {
  width: 100%;
  padding: 12px 10px;
  font-family: var(--body);
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--parchment);
  background: transparent;
  border: 1px solid rgba(184, 150, 58, 0.35);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.booking-slot:hover {
  background: var(--burnished-gold);
  border-color: var(--burnished-gold);
  color: var(--prussian-deep);
}

.booking-slot-ghost {
  height: 44px;
  border: 1px solid rgba(184, 150, 58, 0.14);
  background: rgba(28, 58, 95, 0.4);
  animation: bookingPulse 1.6s ease-in-out infinite;
}
.booking-slot-ghost:nth-child(2) { animation-delay: 0.12s; }
.booking-slot-ghost:nth-child(3) { animation-delay: 0.24s; }
.booking-slot-ghost:nth-child(4) { animation-delay: 0.36s; }
.booking-slot-ghost:nth-child(5) { animation-delay: 0.48s; }
.booking-slot-ghost:nth-child(6) { animation-delay: 0.6s; }
@media (prefers-reduced-motion: reduce) {
  .booking-slot-ghost { animation: none; }
}

.booking-note {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(250, 247, 242, 0.65);
  grid-column: 1 / -1;
}
.booking-slots > div:not([role]):not(.booking-slot-ghost) { grid-column: 1 / -1; }
.booking-link {
  display: inline-block;
  margin-top: 10px;
  padding: 0 0 2px;
  font-family: var(--button);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--burnished-gold);
  background: none;
  border: none;
  border-bottom: 1px solid rgba(212, 174, 92, 0.45);
  cursor: pointer;
  transition: border-color 0.3s;
}
.booking-link:hover { border-bottom-color: var(--burnished-gold); }

/* —— Details form —— */
.booking-form[hidden] { display: none; }
.booking-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(184, 150, 58, 0.35);
  background: rgba(10, 26, 51, 0.35);
}
.booking-summary-label {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--burnished-gold);
  margin-bottom: 8px;
}
.booking-summary-when {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.25;
  color: var(--parchment);
  outline: none;
}
.booking-summary-meta {
  margin-top: 4px;
  font-size: 13px;
  color: rgba(250, 247, 242, 0.6);
}
.booking-change {
  flex-shrink: 0;
  font-family: var(--button);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--burnished-gold);
  background: none;
  border: none;
  border-bottom: 1px solid rgba(212, 174, 92, 0.45);
  padding: 0 0 2px;
  cursor: pointer;
}
.booking-change:disabled { opacity: 0.4; cursor: wait; }

#bookingExtraFields { display: flex; flex-direction: column; gap: 32px; }
#bookingExtraFields:empty { display: none; }
#bookingExtraFields [hidden] { display: none; }

.booking-choices {
  border: none;
  min-width: 0;
}
.booking-choices legend {
  font-family: var(--body);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--burnished-gold);
  margin-bottom: 12px;
  padding: 0;
}
.booking-choices .booking-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: rgba(250, 247, 242, 0.85);
  cursor: pointer;
  padding: 4px 0;
  letter-spacing: normal;
  text-transform: none;
}
.booking-choices .booking-choice input {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  accent-color: var(--burnished-gold);
  flex-shrink: 0;
}
.booking-other {
  margin-top: 6px;
  font-family: var(--body);
  font-weight: 300;
  font-size: 15px;
  color: var(--parchment);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(184, 150, 58, 0.22);
  padding: 8px 0 10px;
  outline: none;
  border-radius: 0;
}
.booking-other:focus { border-bottom-color: var(--burnished-gold); }

.booking-guests {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-top: -12px;
}
.booking-guests .booking-link { margin-top: 0; }
.booking-guests .field { width: 100%; }
.booking-guests .field[hidden] { display: none; }
.booking-hint {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(250, 247, 242, 0.5);
}

.field-error {
  font-size: 13px;
  line-height: 1.5;
  color: #e9a596;
}
.field.has-error input,
.field.has-error textarea {
  border-bottom-color: #d98a7a;
}

/* Honeypot — off-screen for people, present for bots */
.booking-hp {
  position: absolute;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.booking-done { padding-top: 4px; }

@media (max-width: 640px) {
  .booking { padding-bottom: 56px; }
  .booking-pick { gap: 20px; }
  .booking-cal-note:empty { display: none; }
  .booking-context { margin-bottom: 22px; }
  .booking-tz { max-width: 100%; }
  .booking-summary { flex-direction: column; gap: 14px; }
  .booking-summary-when { font-size: 20px; }
}

/* —— Motion (site easing; disabled for reduced-motion users) —— */
@keyframes bookingSlideNext {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes bookingSlidePrev {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes bookingFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@keyframes bookingFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.booking-cal-grid.slide-next,
.booking-cal-month.slide-next { animation: bookingSlideNext 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.booking-cal-grid.slide-prev,
.booking-cal-month.slide-prev { animation: bookingSlidePrev 0.45s cubic-bezier(0.16, 1, 0.3, 1); }

/* Bookable days appear one after another once availability arrives. */
.booking-day.is-entering {
  animation: bookingFadeIn 0.4s ease both;
  animation-delay: calc(min(var(--i, 0), 20) * 18ms);
}

/* Time slots cascade in when a date is chosen. */
.booking-slot-item {
  animation: bookingFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(min(var(--i, 0), 12) * 28ms);
}
.booking-slots > div:not([role]):not(.booking-slot-ghost),
.booking-slots > .booking-note {
  animation: bookingFadeIn 0.35s ease both;
}

/* Switching between the calendar and the details form. */
.booking-pick.is-entering,
.booking-form.is-entering {
  animation: bookingFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  .booking-tz-panel,
  .booking-tz-chevron { transition: none; }
  .booking-tz-panel { transform: none; }
  .booking-cal-grid.slide-next, .booking-cal-grid.slide-prev,
  .booking-cal-month.slide-next, .booking-cal-month.slide-prev,
  .booking-day.is-entering,
  .booking-slot-item,
  .booking-slots > div:not([role]):not(.booking-slot-ghost),
  .booking-slots > .booking-note,
  .booking-pick.is-entering,
  .booking-form.is-entering { animation: none; }
}
