/* Overrides and replacements for WordPress plugin behaviour (loaded last). */

/* Scroll sequences (was inline plugin CSS) */
.scrollsequence-pages-wrap { height: 100vh; }
.scrollsequence-page { position: absolute; display: none; top: 0; left: 0; }
.scrollsequence-canvas { top: 0; pointer-events: none; }
.ssq-static .scrollsequence-sticky { position: relative !important; }
.ssq-static .scrollsequence-pages-wrap { height: auto; }
.ssq-static .scrollsequence-page { position: relative; display: block; background-repeat: no-repeat; }
.ssq-static .scrollsequence-canvas { display: none; }
html:not(.ssq-ready) .scrollsequence-wrap:not(.ssq-static) .scrollsequence-page:first-child { display: block; }

/* Abbreviation tooltips (was qTip) */
abbr.c2c-text-hover { text-decoration: underline dotted; text-underline-offset: 0.15em; cursor: help; }
abbr.c2c-text-hover:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.text-hover-tip {
  position: absolute; z-index: 1000; max-width: 280px; padding: 6px 10px;
  font-size: 14px; line-height: 1.4; color: #333; background: #fff;
  border: 1px solid #ccc; border-radius: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

/* Calendly badge (was Calendly widget.js badge; same computed geometry as the live widget) */
.calendly-badge {
  position: fixed; right: 100px; bottom: 25px; z-index: 9998;
  display: flex; align-items: center; justify-content: center;
  height: 45px; padding: 0 30px; box-sizing: border-box; border-radius: 25px;
  background: rgba(0, 2, 255, 0.85); color: #fff !important;
  font: 700 14px/1.2 sans-serif; text-align: center; text-decoration: none !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}
.calendly-badge:hover, .calendly-badge:focus-visible { background: rgba(0, 2, 255, 1); }

/* Forms */
.nf-hp-label, .nf-form-hp { position: absolute !important; left: -9999px !important; }
/* Radio buttons: Ninja Forms drew the filled dot only when its WordPress script added .nf-checked-label.
   That script is gone, so follow the input's real state instead (input precedes its label). */
.listradio-wrap .nf-field-element input:checked + label:before { content: ""; position: absolute; left: -26px; top: .25em; width: 10px; height: 10px; border-radius: 50%; background: #333; z-index: 2; }
.listradio-wrap .nf-field-element input:checked + label:after { border-color: #333; }
.listradio-wrap .nf-field-element input:focus-visible + label:after { outline: 2px solid #c8102e; outline-offset: 2px; }
.listradio-wrap .nf-field-element label { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.nf-response-msg:not(:empty) { margin: 1em 0; padding: 0.75em 1em; border-left: 4px solid #2e7d32; background: #f1f8f1; }
.nf-response-msg.is-error { border-left-color: #b00020; background: #fdf0f0; }
/* interaction-only Turnstile: takes no space unless a challenge is shown */
.cf-turnstile { margin: 0; }
.subscribe-form .form-status:not(:empty) { margin-top: 8px; font-size: 14px; }
.subscribe-form .form-status.is-error { color: #b00020; }

/* Status lines take no space until there is a message (as MailPoet/Ninja Forms messages). */
.form-status:empty { display: none; }
.calendly-badge { transition: opacity .4s ease, transform .4s ease; }
.calendly-badge.is-hidden, .calendly-badge.is-tucked { opacity: 0; transform: translateY(8px); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .calendly-badge { transition: none; transform: none !important; } }
/* Keep the always-on badge (45px tall, 25px from the bottom) clear of the footer's last line. */
.site-footer { padding-bottom: 80px; }

/* Patient-page password gate (replaces the WordPress post-password form) */
.patient-gate { max-width: 560px; min-height: 30vh; }
.patient-gate__form label { display: block; margin-bottom: 6px; font-weight: 700; color: #222; }
.patient-gate__row { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.patient-gate__row input[type=password] { flex: 1 1 220px; border: 1px solid #8a94a3; }
.patient-gate__submit { padding: 10px 28px; border: 0; border-radius: 3px; background: #111; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.patient-gate__submit:hover, .patient-gate__submit:focus-visible { background: #333; }
.patient-gate__submit:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.patient-gate__error { margin-top: 12px; color: #b00020; }
/* Visit payment pages (/pay/<service>/) */
.pay { max-width: 560px; min-height: 30vh; color: #222; }
.pay__summary { margin: 0 0 24px; padding: 16px 20px; border: 1px solid #c9d0da; border-radius: 3px; background: #fff; }
.pay__summary div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; }
.pay__summary div + div { border-top: 1px solid #e3e7ec; }
.pay__summary dt { font-weight: 700; margin: 0; }
.pay__summary dd { margin: 0; text-align: right; }
.pay__summary div:last-child dd { font-size: 1.25em; font-weight: 700; }
.pay .pay__button { display: block; width: 100%; padding: 14px 28px; border: 0; border-radius: 3px; background: #111; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.pay .pay__button:hover, .pay .pay__button:focus-visible { background: #333; color: #fff; }
.pay__button:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.pay__button:disabled { opacity: .6; cursor: progress; }
.pay__status { min-height: 1.5em; margin: 12px 0 20px; font-weight: 700; }
.pay__status:empty { margin-bottom: 8px; }
.pay__note { font-size: .9em; color: #333; }
.esab__head { cursor: pointer; }
.esab__head:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* Footer: one-line pointer to the sister practices */
/* Footer: the two other practices as equal, parallel entries. */
.hs-practices { margin: 20px 0 18px; }
.hs-practices__label { margin: 0 0 6px; font-size: .78em; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #555; }
.hs-practices ul { margin: 0; padding: 0; list-style: none; }
.hs-practices li { margin: 0 0 8px; line-height: 1.35; }
.hs-practices li a { font-weight: 600; }
.hs-practices li span:not(.hs-svc__ext) { display: block; font-size: .9em; color: #555; }
.hs-practices .hs-svc__ext { font-size: .85em; }
/* Contact page: the two in-person practices as parallel blocks (stacked; the column is narrow). */
.hs-inperson { display: grid; gap: 20px; margin: 8px 0 24px; }
.hs-inperson__opt { padding-top: 14px; border-top: 1px solid #d9d9d9; }
.hs-inperson__opt p { margin: 0 0 10px; }
.hs-inperson__name { font-size: 1.15em; }
.hs-inperson__opt a { overflow-wrap: anywhere; }
.hs-inperson .hs-svc__ext, .hs-practices .hs-svc__ext { white-space: nowrap; }

/* Visit picker + single Calendly calendar (patient pages; content.ts booking()) */
.booking { max-width: 1000px; margin: 0 auto; }
.booking__heading { margin: 0 0 14px; font-size: 22px; font-weight: 600; color: #222; }
.booking__options { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 18px; }
.booking__option { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 40px 14px 18px; border: 1px solid #9aa4b2; border-radius: 6px; background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.booking__option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.booking__label { font-weight: 700; color: #222; }
.booking__meta { color: #333; font-size: .95em; }
.booking__option::after { content: ""; position: absolute; top: 50%; right: 14px; width: 18px; height: 18px; margin-top: -9px; border: 2px solid #9aa4b2; border-radius: 50%; box-sizing: border-box; background: #fff; }
.booking__option:has(input:checked)::after { border: 5px solid #0002ff; }
.booking__option:hover { border-color: #0002ff; }
.booking__option:has(input:checked) { border-color: #0002ff; box-shadow: inset 0 0 0 1px #0002ff; background: #eef0ff; }
.booking__option:has(input:focus-visible) { outline: 2px solid #0002ff; outline-offset: 2px; }
.booking__calendar { min-height: 700px; border-radius: 6px; background: #fff; }
.booking__widget { min-width: 320px; height: 700px; }
/* Calendly's spinner is position:absolute; z-index:-1 and expects a positioned parent (.calendly-inline-widget).
   Without one it floated to the top of the page and never got covered by the calendar. */
.booking__widget { position: relative; z-index: 0; }
.booking__widget.is-loaded .calendly-spinner { display: none; }
.booking__calendar noscript ul { padding: 18px 18px 18px 36px; }
.booking__done { margin-top: 16px; padding: 18px 20px; border: 1px solid #c9d0da; border-left: 4px solid #2e7d32; border-radius: 6px; background: #fff; }
.booking__done-text { margin: 0 0 12px; font-weight: 700; color: #222; }
.booking .booking__pay { display: inline-block; padding: 12px 26px; border-radius: 3px; background: #111; color: #fff; font-weight: 700; text-decoration: none; }
.booking .booking__pay:hover, .booking .booking__pay:focus-visible { background: #333; color: #fff; }
.booking .booking__pay[hidden] { display: none; }
@media (max-width: 600px) { .booking__options { grid-template-columns: 1fr; gap: 8px; } .booking__option { flex-direction: row; justify-content: space-between; align-items: baseline; padding: 14px 44px 14px 14px; } }
@media (prefers-reduced-motion: reduce) { .booking__option { transition: none; } }

/* Home: three services (Healthspan / WholeFamily MD / N of 1) */
.hs-services { flex-direction: column; }
.hs-services h2.gb-headline-f9c5e670 { margin-bottom: 24px; }
.hs-services__intro { text-wrap: balance; max-width: 40em; margin: 0 auto 56px; text-align: center; font-size: 1.15em; color: var(--contrast-2, #333); }
.hs-services__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; width: 100%; }
.hs-svc { display: flex; flex-direction: column; padding: 36px 32px 32px; border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 12px 32px -18px rgba(20,30,60,.28); border-top: 4px solid var(--accent, #d7df21); }
.hs-svc__kind { margin: 0 0 6px; font-size: .78em; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #555; }
.hs-svc__title { margin: 0 0 6px; font-size: 1.9em; font-weight: 400; line-height: 1.15; color: var(--contrast, #1d1d1b); }
.hs-svc__meta { margin: 0 0 18px; font-size: .95em; color: #444; }
.hs-svc__text { margin: 0 0 12px; }
.hs-svc__note { margin: 0 0 24px; font-size: .95em; color: #444; }
.hs-svc__link { display: inline-flex; align-items: center; gap: .45em; margin-top: auto; align-self: flex-start; color: var(--accent-2); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.hs-svc__link:hover, .hs-svc__link:focus-visible { color: var(--contrast); }
.hs-svc__link .gb-icon { line-height: 0; }
.hs-svc__link .gb-icon svg { width: 1em; height: 1em; fill: currentColor; }
.hs-svc__ext { font-size: .9em; }
/* Healthspan (this site) keeps the red accent; the two separate practices are neutral. */
.hs-svc--here { border-top: 4px solid var(--accent, #f00); }
.hs-svc--elsewhere { padding-top: 39px; border-top: 1px solid #e3e3e3; background: #fcfcfc; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.hs-svc--elsewhere .hs-svc__title { color: #444; }
@media (max-width: 1024px) { .hs-services__grid { grid-template-columns: 1fr; gap: 20px; max-width: 640px; margin: 0 auto; } .hs-services__intro { margin-bottom: 36px; } }

/* Healthspan program page: the chart as a static final frame, filling its column. */
.hs-curve--still { width: 100%; max-width: 640px; margin-inline: auto; }
