/* Calendly needs viewport layout to render: preload transparently, then reveal. */
html.booking-open, html.booking-open body { overflow: hidden; }
.booking-dialog {
  display: flex;
  flex-direction: column;
  width: min(1200px, calc(100vw - 32px));
  max-width: none;
  height: fit-content;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 24px 100px #0004;
}
.booking-dialog:not([open]) {
  position: fixed;
  left: 0;
  top: 0;
  margin: 0;
  opacity: 0;
  z-index: -1;
  pointer-events: none;
}
.booking-dialog::backdrop { background: #0f2137b8; backdrop-filter: blur(6px); }
.booking-header { position: relative; flex: none; padding: 14px 24px; background: var(--navy); color: #fff; }
.booking-header h2 { margin: 0; font-size: 36px; padding-right: 48px; }
.booking-body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0,440px) minmax(320px,1fr); grid-template-areas: 'headline headline' 'intro scheduler' 'bio scheduler'; grid-template-rows: auto auto 1fr; align-content: start; gap: 16px 24px; padding: 12px 24px; overflow-y: auto; overscroll-behavior: contain; container-type: inline-size; scrollbar-gutter: stable; }
.booking-headline { grid-area: headline; justify-self: center; width: 100%; max-width: 900px; margin: 0; font-size: 26px; line-height: 1.2; text-align: center; }
#booking-intro { grid-area: intro; margin: 0; font-size: 15px; line-height: 1.6; }
#booking-intro p { margin: 0 0 12px; }
#booking-intro ul { margin: 0; padding-left: 20px; }
#booking-intro li + li { margin-top: 8px; }
.booking-bio { grid-area: bio; }
.booking-bio img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 30%; border-radius: 12px; margin-bottom: 16px; }
.booking-bio p { margin: 0; font-size: 14px; line-height: 1.6; }
.booking-close {
  position: absolute;
  z-index: 1;
  top: 50%;
  transform: translateY(-50%);
  right: 24px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #ffffff70;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font: 300 30px/1 'DM Sans', sans-serif;
}
.booking-close:hover { background: #ffffff20; }
.booking-content { grid-area: scheduler; position: relative; min-width: 0; }
.booking-widget { width: 100%; height: 600px; min-height: 600px; min-width: 320px; }
.booking-widget iframe { display: block; width: 100%; height: 100%; border: 0; }
.booking-loading { position: absolute; top: 0; left: 0; right: 0; z-index: 1; text-align: center; pointer-events: none; }
#booking-status { background: #fff; padding: 10px 18px; font-size: 13px; color: var(--muted); }
#booking-retry { pointer-events: auto; padding: 6px 16px; border: 1px solid var(--line); border-radius: 20px; color: var(--navy); background: #fff; font-size: 12px; }
.booking-footer { flex: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 12px; padding: 8px 24px; border-top: 1px solid var(--line); background: #fff; font-size: 12px; color: var(--muted); }
.booking-footer a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.booking-noscript { padding: 24px; text-align: center; }
.booking-noscript a { text-decoration: underline; }
/* At a 650px calendar width, use Calendly's transparent 66px top margin for
   the shared headline. The calendar card then aligns with the body copy;
   the full iframe remains visible for booking and privacy controls. */
@container (min-width: 1114px) {
  .booking-headline { min-height: 66px; display: grid; align-content: center; }
  #booking-intro { margin-top: -16px; }
  .booking-content { grid-row: 1 / 4; }
  .booking-loading { top: 66px; }
}
@media (max-width: 700px) {
  .booking-dialog { width: 100%; height: fit-content; max-height: 100dvh; margin: 0; border-radius: 0; }
  .booking-header { padding: 22px 20px; }
  .booking-header h2 { font-size: 32px; }
  .booking-close { right: 16px; }
  .booking-body { grid-template-columns: minmax(0,1fr); grid-template-areas: 'headline' 'intro' 'scheduler' 'bio'; grid-template-rows: auto auto auto auto; padding: 24px 20px; scrollbar-gutter: auto; }
  #booking-intro { font-size: 15px; }
  .booking-footer { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); font-size: 11px; }
}
@media (max-width: 359px) {
  .booking-body { padding-inline: 0; }
  .booking-headline { width: calc(100% - 40px); }
  #booking-intro, .booking-bio { margin-inline: 20px; }
}
