#booking-dialog {
  width: min(660px, calc(100% - 24px));
  max-height: min(92dvh, 960px);
  inset: auto 0 0;
  margin: 0 auto;
  padding: 0;
  border-radius: 20px 20px 0 0;
  border: 1px solid var(--line);
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 20px 65px #231c2937;
  scroll-padding-top: 6rem;
}
#booking-dialog .booking-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}
#booking-dialog .booking-kicker { color: var(--plum); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
#booking-dialog h2 { font-size: clamp(29px, 5vw, 37px); margin: 2px 0 4px; }
#booking-dialog #booking-lead { color: var(--muted); font-size: 12px; line-height: 1.4; margin: 0; }
#booking-dialog .booking-close {
  padding: 0;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--plum);
  font-size: 17px;
}
#booking-dialog .booking-close:hover { background: var(--lavender); }
#booking-dialog .booking-close:disabled { opacity: .46; }

#booking-form { padding: 16px 20px 0; }
#booking-dialog .booking-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
#booking-dialog .booking-progress button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-height: 44px;
  padding: 6px 3px;
  border: 0;
  border-radius: 7px;
  background: #edeae4;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
#booking-dialog .booking-progress button span {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid currentColor;
  flex-shrink: 0;
  font-size: 10px;
}
#booking-dialog .booking-progress li[aria-current="step"] button { background: var(--plum); color: #fff; font-weight: 700; }
#booking-dialog .booking-progress li[data-complete] button { background: var(--sage); color: var(--plum-deep); text-decoration: underline; text-underline-offset: 3px; }
#booking-dialog .booking-progress button:not(:disabled):hover { box-shadow: inset 0 0 0 1px var(--plum); }
#booking-dialog .booking-mode { margin: 0 0 16px; border-radius: 8px; }
#booking-dialog .booking-step h3,
#booking-dialog #booking-success h3 { margin: 0 0 5px; font-size: clamp(24px, 4vw, 31px); }
#booking-dialog .step-intro { color: var(--muted); font-size: 13px; margin: 0 0 12px; line-height: 1.45; }
#booking-dialog .booking-inline-note { color: var(--muted); font-size: 12px; line-height: 1.45; margin: 6px 0 0; }
#booking-dialog .booking-inline-note:empty { display: none; }
#booking-dialog .booking-inline-actions { display: flex; flex-wrap: wrap; gap: 5px 16px; }
#booking-dialog label { margin-top: 12px; color: var(--ink); }
#booking-dialog label input:not([type="checkbox"]), #booking-dialog select, #booking-dialog textarea {
  margin-top: 5px;
  min-height: 46px;
  border: 1px solid #aaa1a8;
  border-radius: 8px;
  font-size: 16px;
  min-width: 0;
  background: #fff;
}
#booking-dialog :is(input, select, textarea):disabled { opacity: .78; background: #edeae4; }
#booking-dialog .booking-optional { font-weight: 400; color: var(--muted); }
#booking-dialog .booking-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 0 12px;
}
#booking-dialog .booking-filter-grid label { min-width: 0; }

#booking-dialog .selection-summary,
#booking-dialog .booking-mini-summary,
#booking-dialog .booking-summary {
  margin: 14px 0 10px;
  padding: 11px 13px;
  border-radius: 8px;
  background: var(--lavender);
  color: var(--plum-deep);
  font-size: 13px;
}
#booking-dialog .selection-summary strong,
#booking-dialog .booking-mini-summary strong { display: block; overflow-wrap: anywhere; }
#booking-dialog .booking-summary dl { display: grid; grid-template-columns: minmax(74px, .34fr) minmax(0, 1fr); gap: 6px 10px; margin: 0 0 4px; }
#booking-dialog .booking-summary dt { color: var(--muted); }
#booking-dialog .booking-summary dd { margin: 0; overflow-wrap: anywhere; }
#booking-dialog .booking-summary button { min-height: 36px; padding-block: 4px; }
#booking-dialog .booking-slot-message { min-height: 33px; margin-top: 7px; }
#booking-dialog .booking-slot-message .text-link { padding-block: 3px; }
#booking-dialog .booking-confirm-note {
  padding: 10px 12px;
  border: 1px solid #bac7ad;
  border-radius: 8px;
  background: #edf2e8;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.5;
}
#booking-dialog .step-actions {
  position: sticky;
  z-index: 1;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 14px -20px 0;
  padding: 10px 20px max(11px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--ivory);
}
#booking-dialog .step-actions .text-link { margin-right: auto; }
#booking-dialog .step-actions .button { min-height: 46px; gap: 9px; padding: 8px 13px; text-align: center; }
#booking-dialog .step-actions .button:disabled { opacity: .54; }
#booking-dialog #booking-submit-label { font: inherit; }
#booking-dialog .optional-details { border-block: 1px solid var(--line); margin-top: 12px; padding: 4px 0; }
#booking-dialog .optional-details label { margin-top: 6px; }
#booking-dialog .check { line-height: 1.45; }
#booking-dialog .website-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

#booking-dialog .booking-error { margin: 12px 0; padding: 10px 12px; border: 1px solid #d59898; border-radius: 8px; background: #fff1f1; color: #6d2020; font-size: 13px; }
#booking-dialog #booking-success { padding: 12px 0 26px; }
#booking-dialog #booking-success p { margin: 10px 0; color: var(--muted); font-size: 14px; }
#booking-dialog #booking-success [data-success-detail] { color: var(--plum-deep); }
#booking-dialog .booking-success-mark { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 50%; background: var(--sage); color: var(--plum); font-size: 22px; }
#booking-dialog .booking-reference { padding: 9px 13px; border-radius: 8px; background: var(--lavender); margin: 12px 0; font-size: 13px; }
#booking-dialog .booking-reference dt { color: var(--muted); }
#booking-dialog .booking-reference dd { margin: 0; color: var(--plum-deep); font-weight: 700; overflow-wrap: anywhere; user-select: all; }
#booking-dialog #booking-success .button { margin-top: 8px; }

@media (min-width: 620px) {
  #booking-dialog { inset: 0; margin: auto; border-radius: 18px; max-height: min(88dvh, 960px); }
  #booking-dialog .booking-header { padding: 22px 26px 16px; }
  #booking-form { padding-inline: 26px; }
  #booking-dialog .step-actions { margin-inline: -26px; padding-inline: 26px; }
  #booking-dialog .booking-progress button { font-size: 13px; }
}
@media (max-width: 370px) {
  #booking-dialog { width: calc(100% - 12px); }
  #booking-dialog .booking-header { padding-inline: 14px; }
  #booking-form { padding-inline: 14px; }
  #booking-dialog .step-actions { margin-inline: -14px; padding-inline: 14px; }
  #booking-dialog .booking-filter-grid { grid-template-columns: minmax(0, 1fr); }
}
