/* Shared presentation for the two booking pages. Provider behavior stays in Planyo. */
body.cp-site-refresh.cp-clinical-unified .booking-page {
  --booking-ink: #17364b;
  --booking-accent: #246b64;
  --booking-line: #dce5e7;
  width: min(1120px, calc(100% - 48px));
  max-width: 1120px;
  margin: 24px auto 56px;
  padding: 0;
}

.booking-page *, .booking-page *::before, .booking-page *::after { box-sizing: border-box; }

body.cp-site-refresh.cp-clinical-unified .booking-page .booking-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 295px;
  align-items: center;
  gap: 40px;
  padding: 30px 0 32px;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.booking-page .booking-eyebrow {
  display: block;
  color: var(--booking-accent);
  font-size: 11px;
  line-height: 1.5;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}

body.cp-site-refresh.cp-clinical-unified .booking-page .booking-intro h1 {
  max-width: 24ch !important;
  margin: 12px 0 16px !important;
  color: var(--booking-ink) !important;
  font-size: clamp(30px, 3.2vw, 43px) !important;
  line-height: 1.15 !important;
  letter-spacing: -.04em !important;
  text-wrap: pretty;
}

.booking-page .booking-intro h1 span { color: var(--booking-accent); }
body.cp-site-refresh.cp-clinical-unified .booking-page .booking-intro__copy > p { max-width: 56ch; margin: 0; font-size: 16px; }

.booking-page .booking-professional {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 0 22px 26px;
  border-left: 1px solid var(--booking-line);
}

.booking-page .booking-professional img {
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  object-fit: cover;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgb(23 54 75 / 8%);
}

.booking-page .booking-professional strong { display: block; margin: 4px 0; color: var(--booking-ink); font-size: 16px; line-height: 1.4; }
.booking-page .booking-professional span { display: block; color: #526574; font-size: 12px; line-height: 1.5; }
.booking-page .booking-professional .booking-professional__label { color: var(--booking-accent); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }

.booking-page .booking-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 0 0 24px;
  list-style: none;
  border: 1px solid var(--booking-line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

body.cp-site-refresh.cp-clinical-unified .booking-page .booking-steps { width: 100% !important; max-width: none !important; }

.booking-page .booking-steps li, .booking-page .booking-steps li > a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 18px 24px;
}

.booking-page .booking-steps li + li { border-left: 1px solid var(--booking-line); }
.booking-page .booking-steps li:has(> a) { padding: 0; }
.booking-page .booking-steps li > a { width: 100%; color: inherit; text-decoration: none !important; }
.booking-page .booking-steps li > a:hover { background: #f1f6f6; }
.booking-page .booking-steps .booking-steps__current { background: #eaf3f0; }
.booking-page .booking-steps__number { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid #d6e0e4; border-radius: 50%; color: #647584; font-size: 13px; font-weight: 700; }
.booking-page .booking-steps__current .booking-steps__number { color: white; background: var(--booking-accent); border-color: var(--booking-accent); }
.booking-page .booking-steps strong { display: block; color: var(--booking-ink); font-size: 14px; line-height: 1.4; }
.booking-page .booking-steps small { display: block; margin-top: 2px; color: #536775; font-size: 12px; line-height: 1.5; }

body.cp-site-refresh.cp-clinical-unified .booking-page .booking-panel {
  min-width: 0;
  margin: 0;
  padding: 30px 32px 0;
  border: 1px solid var(--booking-line);
  border-radius: 22px;
  background: #fff !important;
  box-shadow: 0 8px 32px rgb(23 54 75 / 4%);
  overflow: visible;
}

.booking-page .reservations-calendar { scroll-margin-top: 24px; }
.booking-page .booking-panel__heading { display: flex; align-items: center; gap: 16px; }
.booking-page .booking-panel__icon { flex: 0 0 56px; width: 56px; height: 56px; }
body.cp-site-refresh.cp-clinical-unified .booking-page .booking-panel__heading h2 { margin: 5px 0 0 !important; color: var(--booking-ink) !important; font-size: 25px !important; line-height: 1.25 !important; }
.booking-page .booking-tag { flex-shrink: 0; margin-left: auto; padding: 7px 12px; border: 1px solid #d9e8e1; border-radius: 20px; color: var(--booking-accent); background: #f4f9f6; font-size: 12px; font-weight: 650; }
body.cp-site-refresh.cp-clinical-unified .booking-page .booking-panel__description { max-width: 78ch; margin: 16px 0 24px; font-size: 15px; }
.booking-page .booking-panel__description a { color: var(--booking-accent); font-weight: 650; }

.booking-page .reservations-widget {
  display: flex;
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding: 24px 0;
  border-top: 1px solid #e8eeee;
  background: #fff;
}

/* Planyo resizes its height after loading; preserve that and its established width. */
.booking-page .reservations-widget iframe { display: block; width: 812.5px !important; max-width: 100%; border: 0; }
body.cp-site-refresh.cp-clinical-unified .booking-page .booking-panel__note { width: auto !important; max-width: none !important; margin: 0 -32px; padding: 16px 32px; border-top: 1px solid #e8eeee; border-radius: 0 0 22px 22px; background: #f8faf9; color: #526574; font-size: 13px; text-align: center !important; }

.booking-page .booking-help { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.booking-page .booking-help > a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-width: 0; padding: 20px; border: 1px solid var(--booking-line); border-radius: 14px; color: var(--booking-ink); background: #fff; text-decoration: none; transition: border-color .18s, background-color .18s; }
.booking-page .booking-help > a:hover { border-color: #91b2aa; background: #f0f7f4; }
.booking-page .booking-help strong { display: block; font-size: 13px; line-height: 1.5; }
.booking-page .booking-help small { display: block; margin-top: 4px; color: #526574; font-size: 12px; line-height: 1.5; }
.booking-page .booking-help > a > span:last-child { color: var(--booking-accent); font-size: 20px; }
.booking-page .booking-back { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--booking-accent); font-size: 13px; font-weight: 650; text-decoration: none; }
.booking-page .booking-back:hover { text-decoration: underline; text-underline-offset: 4px; }
body.cp-site-refresh.cp-clinical-unified .reservation-form-page .booking-intro { padding-top: 16px; }
body.cp-site-refresh.cp-clinical-unified .booking-page .booking-form-panel { padding-bottom: 32px; }
.booking-page .booking-form-panel .planyo-integration { margin-top: 24px; padding-top: 24px; border-top: 1px solid #e8eeee; }

/* Visual treatment only: keep provider validation, widths and visibility states. */
.booking-page #planyo_content .form-control { min-height: 44px; border-radius: 8px; font-size: 16px; box-shadow: none; }
.booking-page #planyo_content .control-label { color: var(--booking-ink); font-size: 14px; font-weight: 650; }
.booking-page #planyo_content .help-block { color: #526574; font-size: 12px; }
.booking-page #planyo_content .form-group { margin-bottom: 20px; }
.booking-page #planyo_content #submit_button { min-height: 48px; padding: 12px 22px; border: 1px solid var(--booking-accent) !important; border-radius: 10px !important; color: #fff !important; background: var(--booking-accent) !important; font-size: 16px; }
.booking-page #planyo_content .reservation_steps { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid #e8eeee; }
.booking-page #planyo_content .reservation_steps > span { width: auto; max-width: none; }
.booking-page #planyo_content .reservation_step_img { display: none; }
.booking-page #planyo_content .reservation_step_name { width: auto; max-width: none; margin: 0; padding: 8px 12px; border-radius: 8px; color: #526574; font-size: 12px; white-space: nowrap; }
.booking-page #planyo_content .reservation_step_current .reservation_step_name { color: var(--booking-accent); background: #eaf3f0; font-weight: 700; }

@media (max-width: 900px) {
  body.cp-site-refresh.cp-clinical-unified .booking-page .booking-intro { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 12px; }
  .booking-page .booking-professional { gap: 12px; padding: 0; border: 0; }
  .booking-page .booking-professional img { flex-basis: 56px; width: 56px; height: 56px; border-width: 3px; }
  .booking-page .booking-professional strong { margin: 2px 0; font-size: 14px; }
  .booking-page .booking-professional .booking-professional__label { display: none; }
  .booking-page .booking-help { gap: 10px; }
  .booking-page .booking-help > a { padding: 16px; }
}

@media (max-width: 640px) {
  body.cp-site-refresh.cp-clinical-unified .booking-page { width: calc(100% - 28px); margin: 18px auto 36px; }
  body.cp-site-refresh.cp-clinical-unified .booking-page .booking-intro { padding: 8px 4px 24px; gap: 18px; }
  body.cp-site-refresh.cp-clinical-unified .booking-page .booking-intro h1 { font-size: 30px !important; margin: 10px 0 12px !important; }
  body.cp-site-refresh.cp-clinical-unified .booking-page .booking-intro__copy > p { font-size: 14px; }
  .booking-page .booking-eyebrow { font-size: 10px; letter-spacing: .1em; }
  .booking-page .booking-steps { margin-bottom: 18px; border-radius: 12px; }
  .booking-page .booking-steps li, .booking-page .booking-steps li > a { align-items: flex-start; gap: 9px; padding: 14px 12px; }
  .booking-page .booking-steps__number { flex-basis: 26px; width: 26px; height: 26px; font-size: 11px; }
  .booking-page .booking-steps strong { font-size: 12px; }
  .booking-page .booking-steps small { font-size: 10px; }
  body.cp-site-refresh.cp-clinical-unified .booking-page .booking-panel { padding: 20px 14px 0; border-radius: 16px; }
  .booking-page .booking-panel__heading { gap: 10px; }
  .booking-page .booking-panel__icon { flex-basis: 42px; width: 42px; height: 42px; }
  body.cp-site-refresh.cp-clinical-unified .booking-page .booking-panel__heading h2 { font-size: 21px !important; }
  .booking-page .booking-tag { display: none; }
  body.cp-site-refresh.cp-clinical-unified .booking-page .booking-panel__description { margin: 14px 0 18px; font-size: 14px; }
  .booking-page .reservations-widget { padding: 18px 0; }
  /* The provider keeps its desktop height on resize; leave room for the wrapped legend. */
  .booking-page .reservations-widget iframe { min-height: 480px; }
  body.cp-site-refresh.cp-clinical-unified .booking-page .booking-panel__note { margin: 0 -14px; padding: 14px 18px; border-radius: 0 0 16px 16px; font-size: 12px; }
  .booking-page .booking-help { grid-template-columns: minmax(0, 1fr); margin-top: 16px; }
  .booking-page .booking-help > a { padding: 16px 18px; }
  .booking-page .booking-back { font-size: 12px; }
  body.cp-site-refresh.cp-clinical-unified .booking-page .booking-form-panel { padding-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .booking-page .booking-help > a { transition: none; }
}
