/* V20: requested qualifications placement, permanent expertise, booking popup. */
@media (min-width: 821px) {
  body[data-page="home"] .home-credentials { padding-top: 110px; padding-bottom: 45px; scroll-margin-top: 110px; }
  body[data-page="home"] .credentials-heading { align-items: center; padding-top: 20px; margin-bottom: 38px; }
  body[data-page="home"] .credentials-heading > div:first-child { padding-top: 12px; }
  body[data-page="home"] .credentials-heading > p { margin-top: 56px; align-self: center; }
  body[data-page="home"] .credentials-heading > .rp-mark { margin-top: 56px; align-self: center; }
}
.home-credentials .trust-strip { width: 100%; margin: 32px 0 0; background: var(--soft-surface); box-shadow: none; border: 1px solid var(--line); }
.home-credentials .trust-grid { width: 100%; padding-block: 8px; align-items: stretch; }
.home-credentials .trust-grid > div { min-width: 0; display: flex; align-items: center; gap: 16px; padding: 26px 24px; }
.home-credentials .trust-grid > div > svg { width: 30px; height: 30px; flex: 0 0 30px; }
.home-credentials .trust-grid strong { display: block; font-size: 21px; line-height: 1.3; font-weight: 800 !important; }
.home-credentials .trust-grid small { display: block; font-size: 16px; line-height: 1.5; margin-top: 7px; color: var(--ink) !important; }
.doctor-card-body .expertise-box { padding: 0; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft-surface); overflow: hidden; }
.doctor-card-body .expertise-box > h4 { font: inherit; font-size: 19px; padding: 18px 20px; margin: 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.doctor-card-body .expertise-box .doctor-expertise-content { padding: 20px; }
.doctor-card-body .expertise-box :is(li,h5) { font-size: 16px; line-height: 1.65; }
.doctor-card-body .expertise-box .expertise-groups { display: grid; gap: 18px; }
.doctor-card-body .expertise-box h5 { margin: 0 0 8px; }
.doctor-grid .doctor-card-body > .doctor-cta { margin-top: auto; }
.booking-landing { max-width: 760px; margin: 0 auto; padding: 32px; text-align: center; border: 1px solid var(--line); border-radius: 20px; background: var(--soft-surface); }
.booking-landing h2 { font-size: 30px; margin-bottom: 14px; }
.booking-landing p { line-height: 1.6; margin-bottom: 20px; }
.booking-landing-contact { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin-top: 22px; }
.booking-landing-contact a { text-decoration: underline; text-underline-offset: 4px; }
.booking-dialog {
  width: min(1060px,calc(100% - 40px)); max-width: none; height: min(790px,calc(100dvh - 40px));
  max-height: calc(100dvh - 40px); padding: 0; margin: auto; border: 1px solid var(--line);
  border-radius: 22px; background: var(--soft-surface); color: var(--ink); overflow: hidden;
}
.booking-dialog:not([open]) { display: none; }
.booking-dialog[open] { display: flex; flex-direction: column; }
.booking-dialog::backdrop { background: rgb(9 19 38 / 65%); backdrop-filter: blur(4px); }
.booking-dialog-head { flex: 0 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.booking-dialog-head h2 { margin: 0; font-size: 24px; line-height: 1.3; }
.booking-dialog-close { width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid var(--line); border-radius: 50%; font-size: 28px; background: var(--soft-surface); color: var(--ink); cursor: pointer; }
.booking-dialog .booking-workspace { flex: 1; min-height: 0; width: 100%; display: grid; grid-template-columns: 260px minmax(0,1fr); border: 0; border-radius: 0; box-shadow: none; }
.booking-dialog .booking-guide { padding: 24px 20px; overflow-y: auto; overscroll-behavior: contain; background: #243b80; --text-main: #f5f8ff; --text-sub: #edf3ff; }
.booking-dialog .booking-guide :is(p,li,h2,.eyebrow) { color: #f5f8ff !important; }
.booking-dialog .booking-guide h2 { font-size: 33px; margin: 18px 0 22px; }
.booking-dialog .booking-progress { gap: 8px; margin-bottom: 22px; }
.booking-dialog .booking-progress li { color: #f5f8ff !important; font-size: 14px; }
.booking-dialog .booking-progress li[aria-current="step"] { color: #20366f !important; }
.booking-dialog .booking-guide > p { font-size: 15px; }
/* V23: contact buttons own their colours instead of inheriting sidebar white. */
.booking-dialog .booking-contact-actions { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; margin-top: 20px; }
.booking-dialog .booking-guide .booking-contact-actions > a {
  display: flex; align-items: center; justify-content: flex-start; gap: 11px;
  width: 100%; min-width: 0; min-height: 52px; padding: 12px 14px;
  border: 1px solid #dbe3f2; border-radius: 12px;
  background: #fff; color: #20366f !important;
  font-size: 15px; line-height: 1.4; text-decoration: none; box-shadow: none;
  transition: background-color .18s ease, border-color .18s ease;
}
.booking-dialog .booking-guide .booking-contact-actions > a[href^="https://wa.me/"] {
  background: #edf9f2; border-color: #c4e9d3; color: #155b39 !important;
}
.booking-dialog .booking-guide .booking-contact-actions > a:hover { background: #eef3fd; border-color: #becbe3; }
.booking-dialog .booking-guide .booking-contact-actions > a[href^="https://wa.me/"]:hover { background: #dff4e7; border-color: #9ad2b1; }
.booking-dialog .booking-guide .booking-contact-actions > a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.booking-dialog .booking-contact-actions img { display: block; width: 24px; height: 24px; flex: 0 0 24px; object-fit: contain; }
.booking-dialog .booking-survey { min-height: 0; min-width: 0; display: flex; flex-direction: column; padding: 0; }
.booking-dialog .survey-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px; scroll-padding-block: 20px; }
.booking-dialog .survey-topline { margin-bottom: 22px; }
.booking-dialog .booking-survey legend { font-size: 29px; line-height: 1.2; }
.booking-dialog .step-help { font-size: 16px; line-height: 1.5; margin-bottom: 20px; }
.booking-dialog .booking-survey :is(label,.field-label) { font-size: 16px; }
.booking-dialog .booking-survey :is(input:not([type="radio"]):not([type="checkbox"]),select,textarea) { font-size: 17px; min-height: 50px; }
.booking-dialog .specialist-choices small { font-size: 13px; }
.booking-dialog .survey-actions { flex: 0 0 auto; margin: 0; padding: 14px 24px; background: var(--soft-surface); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.booking-dialog .survey-actions button { min-height: 48px; font-size: 16px; padding: 12px 18px; }
.booking-dialog .survey-actions button:disabled { opacity: .5; cursor: default; }
.booking-dialog :is(button,a):focus-visible { outline: 3px solid #829ef1; outline-offset: 3px; }
@media (max-width: 820px) {
  .home-credentials .trust-grid > div { padding: 18px; gap: 12px; }
  .home-credentials .trust-grid strong { font-size: 19px; }
  .home-credentials .trust-grid small { font-size: 15px; }
  .booking-dialog { width: calc(100% - 16px); height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); border-radius: 16px; }
  .booking-dialog-head { padding: 8px 14px; }
  .booking-dialog-head h2 { font-size: 21px; }
  .booking-dialog .booking-workspace { display: flex; flex-direction: column; }
  .booking-dialog .booking-guide { flex: 0 0 auto; padding: 10px 14px; overflow: visible; }
  .booking-dialog .booking-progress { margin: 0; gap: 4px; }
  .booking-dialog .booking-progress li { font-size: 10px; padding: 6px 3px; }
  .booking-dialog .booking-contact-actions { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 10px; gap: 8px; }
  .booking-dialog .booking-guide .booking-contact-actions > a { min-height: 44px; padding: 9px 10px; gap: 8px; font-size: 13px; }
  .booking-dialog .booking-contact-actions img { width: 22px; height: 22px; flex-basis: 22px; }
  .booking-dialog .booking-survey { flex: 1; }
  .booking-dialog .survey-scroll { padding: 18px 16px; }
  .booking-dialog .booking-survey legend { font-size: 25px; }
  .booking-dialog .survey-actions { padding: 12px 16px max(12px,env(safe-area-inset-bottom)); }
  .booking-dialog .survey-actions button { font-size: 14px; padding: 11px 14px; }
}
@media (max-height: 500px) and (max-width: 820px) {
  .booking-dialog .booking-progress { display: none; }
  .booking-dialog .booking-contact-actions { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .booking-dialog .booking-guide .booking-contact-actions > a { transition: none; }
}
