/* ==========================================================================
   Potenza Wellness — Design System & Stylesheet
   Typography: Butler & Montserrat (Google Fonts)
   ========================================================================== */

/* Butler by Fabian De Smet */
@font-face {
  font-family: 'Butler';
  src: url('assets/fonts/butler.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #5C2A54;
  --primary-dark: #3E1B39;
  --primary-tint: #7A4372;
  --accent-muted: #9C7A46;
  --bg: #ffffff;
  --band: #F6F1E9;
  --ink: #241E22;
  --muted: #75636F;
  --line: #EADFE6;
  --ph-bg: #F1E4EC;
  --ph-line: #C79FBC;
  --ph-ink: #8A5C7E;
  --gold: #B98A3E;
}

/* Fixed light theme on purpose for this prototype, so text stays readable
   regardless of the viewer's device dark-mode setting. */
* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 24px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-top: env(safe-area-inset-top, 0px);
  -webkit-text-size-adjust: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
}

h1, h2, h3, h4 {
  font-family: inherit;
  margin: 0;
  font-weight: 600;
}

.hero h1, .section-head h2, .cta-band h3 {
  font-family: 'Butler', 'Cormorant Garamond', Georgia, "Times New Roman", serif;
}

.tag {
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-muted);
  font-weight: 600;
}

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.ph {
  position: relative;
  background: linear-gradient(135deg, rgba(46, 25, 42, .74) 0%, rgba(20, 10, 18, .7) 100%);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #F3E7EF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  padding: 6px;
}

/* The one and only CTA style: purple box, white text */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 4px;
  padding: 14px 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s ease;
}

.btn-cta:hover {
  background: var(--primary-tint);
}

.btn-block {
  width: 100%;
}

.section-cta {
  text-align: center;
  margin-top: 28px;
}

section {
  padding: 56px 0;
}

.band {
  background: linear-gradient(135deg, #FBF8F3 0%, #F3ECE0 55%, #EEE3D0 100%);
}

.section-head {
  margin-bottom: 24px;
  max-width: 720px;
}

.section-head h2 {
  font-size: 32px;
  line-height: 1.2;
  margin-top: 0;
  font-weight: 400;
}

.results-note {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}

.section-head .lede {
  font-size: 15px;
  color: var(--ink);
  margin-top: 8px;
  line-height: 1.5;
}

.disclaimer {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}

/* Top bar */
.hero-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
}

.logo {
  font-family: inherit;
  font-size: 20px;
  letter-spacing: .12em;
  color: var(--primary);
  font-weight: 600;
}

.hero-topbar .logo {
  color: #fff;
}

.brand-logo {
  display: block;
  width: 210px;
  max-width: 62vw;
  height: auto;
}

footer .footer-logo {
  width: 200px;
  margin: 0 0 14px;
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #2A1626;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #2A1626;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(62, 27, 57, .82) 0%, rgba(28, 12, 26, .58) 55%, rgba(28, 12, 26, .38) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }
  .hero-media {
    background: url('assets/img/footer_bg.webp') center/cover;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 104px 24px 28px;
  width: 100%;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.15;
  margin-bottom: 10px;
  font-weight: 500;
}

.hero .sub {
  font-size: 16px;
  line-height: 1.5;
  color: #EDD9E5;
  max-width: 460px;
}

.hero .tag {
  color: #EDD9E5;
  margin-bottom: 12px;
  display: block;
}

.form-card {
  border-radius: 8px;
  padding: 26px;
  position: relative;
}

.form-card.glass {
  background: rgba(38, 19, 36, .6);
  border: 1px solid rgba(255, 255, 255, .4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
  color: #fff;
}

.form-card.flash {
  box-shadow: 0 0 0 3px #fff, 0 18px 40px rgba(0, 0, 0, .28);
}

.form-card h3 {
  font-size: 18px;
  color: #fff;
}

#book .form-card h3,
#hero-form-card h3 {
  margin-bottom: 16px;
}

.form-card .fsub {
  font-size: 12px;
  color: #EAD9E4;
  margin: 4px 0 14px;
  display: block;
}

.form-card form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-card input,
.form-card select {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .6);
  font-size: 14px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  width: 100%;
  font-family: inherit;
}

.form-card .consent {
  font-size: 12.5px;
  color: #EAD9E4;
  display: flex;
  gap: 8px;
  align-items: center;
}

.form-card .consent input {
  width: auto;
  margin: 0;
}

.captcha-group {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: 8px;
    grid-column: 1 / -1;
}

.captcha-img-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, .95);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 4px;
  padding: 3px 6px 3px 4px;
  box-sizing: border-box;
  height: 44px;
}

.form-card.light .captcha-img-wrap {
  background: #fff;
  border: 1px solid #DCCFD7;
}

.captcha-img {
  display: block;
  width: 120px;
  height: 36px;
  border-radius: 3px;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.btn-captcha-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--primary);
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  padding: 0;
  transition: transform .25s ease, opacity .2s ease;
  opacity: .75;
}

.btn-captcha-refresh:hover {
  opacity: 1;
  transform: rotate(60deg);
}

.btn-captcha-refresh:active {
  transform: rotate(180deg);
}

@media (max-width: 480px) {
  .captcha-group {
    /*grid-template-columns: 1fr;*/
  }
  .captcha-img-wrap {
    justify-content: space-between;
    width: 100%;
  }
}

.hero-cta {
  display: none;
  background: #fff;
  color: var(--primary);
  border: none;
  padding: 15px 30px;
  font-size: 13px;
  letter-spacing: .05em;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  margin-top: 6px;
}

.hero-stats .icon {
  display: none;
}

.hero-stats-bar {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, .25);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 56px;
  padding: 20px 24px 26px;
  align-items: center;
}

.stat b {
  display: block;
  font-family: 'Butler', Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
  color: #fff;
}

.stat b .star {
  color: var(--gold);
  margin-left: 2px;
}

.stat span {
  font-size: 12.5px;
  color: #EAD9E4;
}

.rating-stars {
  display: flex;
  gap: 3px;
  margin-top: 4px;
  font-size: 17px;
  line-height: 1;
  font-style: normal;
}

.rating-stars i {
  font-style: normal;
  color: var(--gold);
}

.rating-stars i.part {
  background: linear-gradient(90deg, var(--gold) 76%, rgba(255, 255, 255, .35) 76%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 900px) {
  .rating-stars {
    justify-content: center;
  }
}

/* Tabs */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.tab-btn {
  padding: 10px 20px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 999px;
  font-family: inherit;
}

.tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Carousel: arrows, one card at a time on phones */
.carousel {
  position: relative;
}

.car-viewport {
  overflow: hidden;
  margin: 0 -8px;
}

.car-track {
  display: flex;
  transition: transform .45s cubic-bezier(.22, .61, .36, 1);
}

.car-slide {
  flex: 0 0 calc(100% / var(--per, 1));
  padding: 0 8px;
  min-width: 0;
  display: flex;
}

.car-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.car-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background .2s ease;
}

.car-btn:hover:not(:disabled) {
  background: var(--primary-tint);
}

.car-btn:disabled {
  background: rgba(92, 42, 84, .28);
  cursor: default;
}

.car-count {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .car-track {
    transition: none;
  }
}

/* Cards inside carousels */
.tcard {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.tcard .ph {
  height: 150px;
  border-radius: 0;
  border-width: 0 0 1px 0;
}

.tcard .ph.has-img {
  padding: 0;
  overflow: hidden;
  background: #1d1219;
}

.tcard .ph.has-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.tcard .body {
  padding: 16px;
}

.tcard h4 {
  font-size: 17px;
  margin-bottom: 4px;
}

.tcard .maps {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.tcard p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

#locations .tcard p {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

#tc-carousel .tcard h4 {
  margin-bottom: 8px;
}

#tc-carousel .tcard p {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
}

#tc-carousel .tcard .body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tx-block {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #D9C6D2;
}

.tx-label {
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-muted);
  font-weight: 700;
  margin-bottom: 8px;
}

.tx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tx-chip {
  display: inline-block;
  background: var(--ph-bg);
  color: var(--primary);
  border: 1px solid #E2CCDA;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.clinic-tel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
}

.ba-imgs {
  display: block;
}

.ba-imgs .ph {
  width: 100%;
  height: auto;
  aspect-ratio: 2/1;
  border-radius: 0;
  border-width: 0;
}

.stars {
  color: var(--gold);
  font-size: 14px;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.who {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}

/* Doctors (left) and booking form (right) */
.doc-form {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}

.doc-col .section-head {
  margin-bottom: 20px;
}

.doctor-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.doctor-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
  display: flex;
  gap: 18px;
  background: var(--bg);
}

.doctor-card .ph {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  flex-shrink: 0;
}

.doctor-card h4 {
  font-size: 17px;
  margin-bottom: 4px;
}

.doctor-card .role {
  font-size: 12px;
  color: var(--primary);
  margin-bottom: 8px;
}

.doctor-card ul {
  margin: 0;
  padding-left: 16px;
  font-size: 14px;
  color: var(--ink);
  font-weight: 450;
  line-height: 1.65;
}

.doctor-card li {
  margin-bottom: 4px;
}

.doctor-card li::marker {
  color: var(--primary);
}

.doctor-card .award-src {
  display: block;
  font-style: italic;
}

.form-card.light {
  background: linear-gradient(135deg, #FBF8F3 0%, #F3ECE0 55%, #EEE3D0 100%);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(36, 30, 34, .10);
  color: var(--ink);
}

.form-card.light h3 {
  color: var(--ink);
}

.form-card.light .fsub,
.form-card.light .consent {
  color: var(--muted);
}

.form-card.light input,
.form-card.light select {
  background: #fff;
  border: 1px solid #DCCFD7;
}

.form-card.light .consent input {
  accent-color: var(--primary);
}

.form-card.light.flash {
  box-shadow: 0 0 0 3px var(--accent-muted), 0 18px 40px rgba(36, 30, 34, .10);
}

/* How it works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 8px;
}

.step-card {
  position: relative;
  border-radius: 6px;
  padding: 26px 20px 20px;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .7);
}

.step-badge {
  position: absolute;
  top: -16px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--primary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--ph-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}

.step-card h4 {
  font-size: 19px;
  line-height: 1.25;
  margin-bottom: 8px;
  color: var(--ink);
}

.step-card p {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.55;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 18px 4px;
  font-size: 15px;
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--ink);
  font-family: inherit;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q::marker {
  content: '';
}

.faq-q:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.faq-q .plus {
  font-size: 20px;
  color: var(--primary);
  transition: transform .2s;
  flex-shrink: 0;
}

.faq-item[open] .plus {
  transform: rotate(45deg);
}

.faq-a p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
  padding: 0 4px 18px;
}

.faq-cta {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}

/* Final CTA band: dimmed clinic still */
.cta-band {
  position: relative;
  padding: 52px 0;
  text-align: center;
  overflow: hidden;
  background: #1A0C17 url('assets/img/footer_bg.webp') center/cover;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(26, 12, 24, .9) 0%, rgba(14, 6, 12, .86) 100%);
}

.cta-band .wrap {
  position: relative;
  z-index: 1;
}

.cta-band h3 {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: .05em;
  margin-bottom: 10px;
  color: #fff;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .cta-sub {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .9);
  max-width: 560px;
  margin: 0 auto 22px;
}

/* Footer */
footer {
  background: linear-gradient(160deg, var(--primary-dark) 0%, #2A1626 100%);
  color: #EFE2EA;
  padding: 44px 0 24px;
  font-size: 12.5px;
}

footer .cols {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 24px;
  margin-bottom: 26px;
}

footer h5 {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 10px;
}

footer p {
  margin-bottom: 6px;
}

footer .legal {
  border-top: 1px solid rgba(255, 255, 255, .18);
  padding-top: 16px;
  font-size: 12.5px;
  color: #C9B4C2;
  line-height: 1.7;
}

footer a {
  color: #EFE2EA;
}

/* Floating call and WhatsApp */
.mobile-actionbar {
  display: none;
}

.floaters {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floater {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
  cursor: pointer;
}

.floater.call {
  background: var(--primary);
}

.floater.whatsapp {
  background: #25D366;
}

.call-pop {
  position: fixed;
  z-index: 60;
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 16px 40px 14px 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
  display: none;
  min-width: 230px;
}

.call-pop.open {
  display: block;
}

.call-pop .lbl {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-muted);
  margin-bottom: 4px;
}

.call-pop .num {
  font-family: inherit;
  font-weight: 600;
  font-size: 20px;
  user-select: all;
}

.call-pop .x {
  position: absolute;
  top: 6px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--muted);
  cursor: pointer;
}

.call-pop .copy {
  margin-top: 8px;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

@media (prefers-reduced-motion: reduce) {
  .section-head, .carousel, .doctor-card, .step-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1000px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 18px;
  }
}

/* Mobile: form sits in the first screen, carousels show one card with arrows */
@media (max-width: 820px) {
  .wrap {
    padding: 0 18px;
  }
  #creators {
    --pad: 18px;
  }
  section {
    padding: 52px 0;
  }
  .section-head {
    margin-bottom: 22px;
  }
  .section-head h2 {
    font-size: 26px;
    line-height: 1.25;
  }
  .hero-topbar {
    padding: 10px 18px;
  }
  .logo {
    font-size: 17px;
  }
  .brand-logo {
    width: 150px;
  }
  footer .footer-logo {
    width: 170px;
  }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 56px 16px 8px;
  }
  .hero-content > div:first-child {
    text-align: center;
  }
  .hero .tag {
    display: none;
  }
  .hero h1 {
    font-size: 30px;
    line-height: 1.15;
    margin-bottom: 6px;
  }
  .hero .sub {
    font-size: 14px;
    max-width: none;
    margin-bottom: 0;
  }
  .form-card {
    padding: 14px;
  }
  .form-card h3 {
    font-size: 16px;
  }
  #book .form-card h3 {
    margin-bottom: 12px;
  }
  #hero-form-card h3 {
    margin-bottom: 10px;
  }
  .form-card .fsub {
    margin: 2px 0 10px;
  }
  .form-card form {
    gap: 8px;
  }
  .form-card input,
  .form-card select {
    padding: 11px 12px;
    font-size: 16px;
    min-height: 46px;
  }
  .form-card .cap-box,
  .form-card .captcha-img-wrap {
    min-height: 46px;
  }
  @media (max-width: 340px) {
    .form-card select {
      padding-left: 10px;
      padding-right: 4px;
    }
    .form-card input {
      padding-left: 10px;
      padding-right: 10px;
    }
  }
  .form-card .consent {
    align-items: flex-start;
    line-height: 1.45;
  }
  .form-card .consent input {
    margin-top: 1px;
  }
  .btn-cta {
    padding: 13px 22px;
  }
  body {
    padding-bottom: 0;
  }
  /* the lead form sits inside the hero on phones, like desktop */
  #hero-form-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }
  #hero-form-card.glass {
    background: rgba(38, 19, 36, .66); /* a touch darker on phones, where the video sits closer behind the form */
  }
  /* trust factors in one row so the form fits in the first screen */
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 10px 8px 8px;
    text-align: center;
    align-items: start;
  }
  .hero-stats .stat {
    padding: 2px 6px;
    border-bottom: none;
    border-left: 1px solid rgba(255, 255, 255, .22);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
  }
  .hero-stats .stat:first-child {
    border-left: none;
  }
  .hero-stats .icon {
    display: block;
    width: 18px;
    height: 18px;
  }
  .stat b {
    font-size: 24px;
    line-height: 1.1;
  }
  .stat span {
    font-size: 12.5px;
    line-height: 1.3;
  }
  .rating-stars {
    font-size: 12px;
    gap: 2px;
    margin-top: 0;
  }
  .floaters {
    display: none;
  }
  .mobile-actionbar {
    display: flex;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    background: var(--primary);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .26);
    transition: transform .28s ease, opacity .28s ease;
  }
  .mobile-actionbar.is-away {
    transform: translateY(calc(100% + 28px));
    opacity: 0;
    pointer-events: none;
  }
  .mobile-actionbar > * {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 9px 6px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border: none;
    background: none;
    font-family: inherit;
    cursor: pointer;
    position: relative;
    text-decoration: none;
  }
  .mobile-actionbar > *:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 22%;
    bottom: 22%;
    width: 1px;
    background: rgba(255, 255, 255, .3);
  }
  .doc-form {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .doctor-card {
    padding: 18px;
    gap: 14px;
  }
  .doctor-card .ph {
    width: 72px;
    height: 72px;
  }
  .tcard .ph {
    height: 140px;
  }
  /* concern + treatment pictures are saved at 2:1, so on phones the box follows that shape instead of cropping them to a thin strip */
  #tc-carousel .tcard .ph {
    height: auto;
    aspect-ratio: 2/1;
  }
  .ba-imgs .ph {
    height: auto;
    aspect-ratio: 2/1;
  }
  .cta-band {
    padding: 48px 0;
  }
  .cta-band h3 {
    font-size: 24px;
    letter-spacing: .03em;
  }
  .cta-band .cta-sub {
    font-size: 15px;
    margin-bottom: 20px;
  }
  footer .cols {
    grid-template-columns: 1fr;
  }
  footer {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    font-size: 13px;
  }
  .faq-q {
    font-size: 14.5px;
    padding: 18px 2px;
  }
  .hero-content {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 560px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .step-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
  }
  .step-card h4 {
    font-size: 18px;
    padding-right: 34px;
  }
  .step-icon {
    margin: 0;
    flex-shrink: 0;
  }
  .step-badge {
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
  .floater {
    width: 48px;
    height: 48px;
  }
}

/* ---------- Tablets (600 to 820 px): a two-column hero and more generous layout, instead of the phone layout stretched ---------- */
@media (min-width: 600px) and (max-width: 820px) {
  .wrap {
    padding: 0 28px;
  }
  #creators {
    --pad: 28px;
  }
  section {
    padding: 60px 0;
  }
  .section-head {
    margin-bottom: 26px;
  }
  .section-head h2 {
    font-size: 30px;
  }
  .hero {
    min-height: 620px;
  }
  .hero-topbar {
    padding: 14px 28px;
  }
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
    padding: 104px 28px 40px;
  }
  .hero-content > div:first-child {
    text-align: left;
  }
  .hero h1 {
    font-size: 38px;
    margin-bottom: 10px;
  }
  .hero .sub {
    font-size: 16px;
  }
  #hero-form-card {
    max-width: none;
    margin: 0;
  }
  .form-card {
    padding: 20px;
  }
  .form-card h3 {
    font-size: 17px;
  }
  .hero-stats {
    padding: 14px 20px 12px;
  }
  .stat b {
    font-size: 28px;
  }
  .stat span {
    font-size: 12.5px;
  }
  .doc-form {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    align-items: stretch;
  }
  .doc-form .form-col {
    display: flex;
  }
  .doc-form .form-col .form-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 24px;
  }
  .doc-form .form-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
  }
  .doc-form .form-card form {
    gap: 14px;
  }
  .doc-form .form-card input,
  .doc-form .form-card select {
    padding: 14px;
    font-size: 15px;
  }
  .doc-form .form-card .btn-cta {
    padding: 15px 22px;
  }
  .doctor-card {
    padding: 20px;
  }
  .mobile-actionbar {
    max-width: 480px;
    margin: 0 auto;
  }
  .media-strip {
    padding: 40px 0;
  }
  .media-track img {
    height: 64px;
  }
  .cta-band {
    padding: 56px 0;
  }
}

/* ---------- Image slots that hold a real photo ---------- */
.ph.has-img {
  padding: 0;
  overflow: hidden;
  background: #1d1219;
}

.ph.has-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Reviews, styled like a Google reviews widget ---------- */
.rv-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.rv-head .section-head {
  margin-bottom: 0;
  flex: 1 1 420px;
}

.rv-summary {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rv-sum-main {
  text-align: center;
}

.rv-sum-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.rv-sum-score {
  font-family: 'Butler', Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}

.rv-sum-stars {
  font-size: 26px;
  letter-spacing: 2px;
  line-height: 1;
  color: transparent;
  background: linear-gradient(90deg, #F6B800 var(--p, 100%), #D9D9D9 var(--p, 100%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rv-sum-text {
  font-size: 13px;
  color: var(--ink);
  margin-top: 4px;
}

.rv-sum-div {
  width: 1px;
  height: 38px;
  background: #D8CFC9;
}

.rv-glogo {
  font: 700 30px/1 "Product Sans", "Google Sans", Arial, Helvetica, sans-serif;
  letter-spacing: -.5px;
  white-space: nowrap;
}

.rv-glogo span:nth-child(1),
.rv-glogo span:nth-child(4) {
  color: #4285F4;
}

.rv-glogo span:nth-child(2),
.rv-glogo span:nth-child(6) {
  color: #EA4335;
}

.rv-glogo span:nth-child(3) {
  color: #FBBC05;
}

.rv-glogo span:nth-child(5) {
  color: #34A853;
}

.rv-card {
  align-self: flex-start;
  border-radius: 10px;
  padding: 20px;
  background: #fff;
  border: 1px solid #E6E1DC;
}

.rv-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rv-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}

.car-slide:nth-child(4n+1) .rv-avatar {
  background: #E8467C;
}

.car-slide:nth-child(4n+2) .rv-avatar {
  background: #7B61C9;
}

.car-slide:nth-child(4n+3) .rv-avatar {
  background: #2F9E8F;
}

.car-slide:nth-child(4n+4) .rv-avatar {
  background: #E08A2E;
}

.rv-who {
  flex: 1;
  min-width: 0;
}

.rv-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

.rv-date {
  font-size: 13px;
  color: #8A8186;
  margin-top: 1px;
}

.rv-g {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  align-self: flex-start;
}

.rv-rate {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0 8px;
}

.rv-stars {
  color: #F6B800;
  font-size: 18px;
  letter-spacing: 2px;
  line-height: 1;
}

.rv-stars .off {
  color: #D9D9D9;
}

.rv-tick {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.rv-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rv-card.open .rv-text {
  display: block;
  -webkit-line-clamp: unset;
}

.rv-more {
  align-self: flex-start;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  margin-top: 10px;
  font-size: 13px;
  color: #3E92E0;
  cursor: pointer;
  font-family: inherit;
}

.rv-more[hidden] {
  display: none;
}

@media (max-width: 820px) {
  .rv-summary {
    width: 100%;
    justify-content: flex-start;
  }
  .rv-glogo {
    font-size: 26px;
  }
  .rv-card {
    padding: 16px;
  }
}

/* Doctor points: a blank point disappears completely (bullet included). In edit mode it shows as a slot to fill. */
.doctor-card li.pt-empty {
  display: none;
}

/* ---------- Dark page scrollbar (black track, grey thumb) ---------- */
/* ---------- As featured in: continuous logo glide (same pace as the main site: 2 seconds per logo) ---------- */
.media-strip {
  background: #fff;
  padding: 30px 0;
}

.media-marquee {
  overflow: hidden;
  width: 100%;
}

.media-track {
  display: flex;
  width: max-content;
  animation: pz-media-glide 22s linear infinite;
  will-change: transform;
}

.media-track img {
  display: block;
  flex: none;
  height: 81px;
  width: auto;
  max-width: none;
}

@keyframes pz-media-glide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 767px) {
  .media-strip {
    padding: 34px 0;
  }
  .media-track img {
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .media-track {
    animation: none;
  }
  .media-marquee {
    overflow-x: auto;
  }
}

/* ---------- Creators: videos you swipe through sideways, playing inside their cards ---------- */
#creators {
  --pad: 24px;
  --vw: 252px;
  --vgap: 28px;
}

#creators .section-head {
  margin-bottom: 22px;
}

.vid-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0 calc(var(--pad) * -1);
  padding: 6px var(--pad) 22px;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--pad);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.vid-viewport::-webkit-scrollbar {
  display: none;
}

.vid-viewport.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
}

.vid-track {
  display: flex;
  gap: var(--vgap);
  width: max-content;
}

.vid-slide {
  flex: 0 0 auto;
  width: var(--vw);
  scroll-snap-align: start;
}

.vid-card {
  position: relative;
  aspect-ratio: 9/16;
  border-radius: 22px;
  overflow: hidden;
  background: #2a1c27;
  color: #fff;
  box-shadow: 0 10px 22px rgba(36, 18, 34, .18);
  transform: translateZ(0);
  user-select: none;
  -webkit-user-select: none;
}

.vid-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64%;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20, 8, 18, 0) 0%, rgba(20, 8, 18, .05) 16%, rgba(20, 8, 18, .17) 34%, rgba(20, 8, 18, .38) 54%, rgba(20, 8, 18, .62) 76%, rgba(20, 8, 18, .80) 100%);
}

.vid-media {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.vid-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #1d1219;
}

.vid-ph {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  background: linear-gradient(160deg, #7a6672, #4b3944);
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
}

.vid-empty .vid-ph {
  display: flex;
}

.vid-empty video,
.vid-empty .vid-big,
.vid-empty .vid-ctrls,
.vid-empty .vid-bar {
  display: none;
}

.vid-empty .vid-media {
  cursor: default;
}

.vid-big {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, .92);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
}

.vid-big:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.vid-big svg {
  width: 26px;
  height: 26px;
  margin-left: 3px;
}

.is-playing .vid-big {
  opacity: 0;
  pointer-events: none;
}

.vid-info {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding-right: 0;
}

.vid-tag {
  background: rgba(255, 255, 255, .26);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 6px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}

.vid-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  padding-right: 84px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}

.vid-ctrls {
  position: absolute;
  right: 12px;
  bottom: 42px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.vid-ctrls button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.vid-ctrls button:hover {
  background: rgba(0, 0, 0, .75);
}

.vid-ctrls svg {
  width: 18px;
  height: 18px;
}

.vid-card .i-pause,
.vid-card .i-mute {
  display: none;
}

.vid-card.is-playing .i-pause {
  display: block;
}

.vid-card.is-playing .i-play {
  display: none;
}

.vid-card.is-muted .i-mute {
  display: block;
}

.vid-card.is-muted .i-vol {
  display: none;
}

.vid-media::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 44%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
  animation: pz-spin .8s linear infinite;
}

.is-buffering .vid-media::after {
  opacity: 1;
}

@keyframes pz-spin {
  to {
    transform: rotate(360deg);
  }
}

.vid-msg {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 44%;
  transform: translateY(-50%);
  z-index: 4;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(20, 10, 18, .82);
  color: #fff;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.4;
}

.vid-msg a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}

.vid-dbg {
  display: block;
  font: 10.5px/1.45 ui-monospace, Menlo, monospace;
  opacity: .85;
  word-break: break-word;
  text-align: left;
  max-width: 100%;
}

.has-error .vid-msg {
  display: flex;
}

.has-error .vid-big,
.has-error .vid-ctrls {
  display: none;
}

.vid-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, .28);
  z-index: 3;
}

.vid-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
}

@media (max-width: 820px) {
  #creators {
    --vw: 230px;
    --vgap: 18px;
  }
}

@media (max-width: 560px) {
  #creators {
    --pad: 16px;
    --vw: min(240px, 66vw);
    --vgap: 14px;
  }
  .vid-card {
    border-radius: 20px;
  }
  .vid-big {
    width: 54px;
    height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vid-viewport {
    scroll-behavior: auto;
  }
}

html {
  scrollbar-color: #6A6A6A #0D0D0D;
}

@supports not (scrollbar-color: auto) {
  /* older Chrome, Safari */
  ::-webkit-scrollbar {
    width: 12px;
    height: 12px;
  }
  ::-webkit-scrollbar-track {
    background: #0D0D0D;
  }
  ::-webkit-scrollbar-thumb {
    background: #6A6A6A;
    border-radius: 6px;
    border: 2px solid #0D0D0D;
  }
}

/* ---------- Legal pages (Privacy Policy, Terms): their own views of this page, opened from the footer ---------- */
body.legal-view section,
body.legal-view .floaters,
body.legal-view .mobile-actionbar {
  display: none !important;
}

.consent a {
  color: inherit;
  text-decoration: underline;
}

.legal-page {
  background: #fff;
  color: var(--ink);
}

.legal-page[hidden] {
  display: none;
}

.legal-bar {
  background: var(--primary-dark);
  padding: 14px 0;
}

.legal-bar-in {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.legal-back {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 0;
}

.legal-back:hover {
  text-decoration: underline;
}

.legal-back-dark {
  color: var(--primary);
}

.legal-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 44px 24px 72px;
}

.legal-body h1,
.legal-body h2 {
  font-family: 'Butler', Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: var(--ink);
}

.legal-body h1 {
  font-size: 42px;
  line-height: 1.15;
  margin: 0 0 6px;
  outline: none;
}

.legal-sub {
  font-family: 'Butler', Georgia, "Times New Roman", serif;
  font-size: 24px;
  color: var(--primary);
  margin: 0 0 12px;
}

.legal-meta {
  font-size: 14px;
  color: var(--muted);
  margin: 10px 0 0;
  line-height: 1.7;
}

.legal-draft {
  background: #FFF8E1;
  border-left: 4px solid #E0B43C;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.55;
  margin: 20px 0;
}

.blank {
  background: #FFF3C4;
  border: 1px dashed #C9A227;
  border-radius: 4px;
  padding: 1px 7px;
  font-size: .92em;
  color: #6B5200;
  font-style: normal;
  white-space: nowrap;
}

.legal-dl-row {
  margin: 0 0 6px;
}

.legal-dl {
  display: inline-block;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.legal-dl:hover {
  background: var(--primary);
  color: #fff;
}

.legal-intro {
  font-size: 16.5px;
  line-height: 1.75;
  margin: 22px 0 0;
}

.legal-toc {
  background: #FBF8F3;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 28px 0 12px;
}

.legal-toc h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: var(--muted);
}

.legal-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.legal-toc a {
  color: var(--primary);
  text-decoration: none;
  font-size: 14.5px;
  line-height: 2.05;
}

.legal-toc a:hover {
  text-decoration: underline;
}

.legal-sec {
  margin-top: 36px;
}

.legal-sec h2 {
  font-size: 27px;
  line-height: 1.25;
  margin: 0 0 14px;
}

.legal-sec p {
  font-size: 15.5px;
  line-height: 1.78;
  margin: 0 0 14px;
}

.legal-sec .clause {
  display: flex;
  gap: 14px;
}

.legal-sec .num {
  flex: 0 0 40px;
  font-weight: 700;
  color: var(--primary);
}

.legal-sec .ctext {
  flex: 1;
  min-width: 0;
}

.grievance {
  background: #FBF8F3;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 6px;
}

.grievance p {
  margin: 0 0 6px;
}

.legal-foot {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.fw {
    display: block;
    min-width: 0;
    position: relative;
}
@media (max-width: 560px) {
  .legal-bar-in {
    padding: 0 18px;
  }
  .legal-body {
    padding: 30px 18px 56px;
  }
  .legal-body h1 {
    font-size: 32px;
  }
  .legal-sub {
    font-size: 20px;
  }
  .legal-sec h2 {
    font-size: 23px;
  }
  .legal-sec .num {
    flex-basis: 34px;
  }
  .legal-sec p {
    font-size: 15px;
  }
}

/* ---------- Phones: space in the hero, and a much more compact booking form (tablets and desktop keep their own sizes) ---------- */
@media (max-width: 599px) {
  .hero {
    min-height: 0; /* the hero is as tall as its content, so the gaps below stay fixed instead of stretching on tall phones */
  }
  .hero-topbar {
    padding: 16px 18px 0;
  }
  .hero-content {
    padding-top: 86px;
    gap: 26px;
    align-content: start;
    padding-bottom: 18px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero h1 {
    margin-bottom: 10px;
  }
  #hero-form-card,
  #book .form-card {
    width: 100%;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
  .form-card {
    padding: 11px 13px 12px;
  }
  .form-card h3 {
    font-size: 15px;
    line-height: 1.2;
  }
  #hero-form-card h3,
  #book .form-card h3 {
    margin-bottom: 6px;
  }
  .form-card form {
    gap: 7px;
  }
  .form-card input,
  .form-card select {
    padding: 5px 11px;
    font-size: 14px;
    min-height: 33px;
    line-height: 1.2;
  }
  .form-card .captcha,
  .form-card .captcha-group {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
    grid-column: 1 / -1;
  }
  .form-card .cap-box,
  .form-card .captcha-img-wrap {
    min-height: 33px;
    height: 33px;
    padding: 1px 30px 1px 4px;
    box-sizing: border-box;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .cap-canvas,
  .captcha-img {
    width: min(100%, 108px);
    height: auto;
    max-height: 29px;
  }
  .cap-refresh,
  .btn-captcha-refresh {
    width: 30px;
    height: 30px;
    right: 1px;
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
  }
  .cap-refresh svg,
  .btn-captcha-refresh svg {
    width: 17px;
    height: 17px;
  }
  .form-card .consent {
    font-size: 12px;
    line-height: 1.4;
    gap: 8px;
  }
  .form-card .consent input {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    min-height: 0;
    margin-top: 1px;
  }
  .form-msg,
  .formResponse {
    font-size: 12px;
  }
  .form-card .btn-block {
    padding: 9px 16px;
    font-size: 13px;
    min-height: 38px;
  }
  @supports (-webkit-touch-callout: none) {
    /* iPhones zoom the whole page in when a field's text is under 16 px. So on iPhones the field keeps 16 px text
       (no zoom) but is drawn at 14/16 of its size, which looks exactly like the 14 px version on other phones. */
    .fw {
      height: 33px;
    }
    .fw > input,
    .fw > select {
      position: absolute;
      left: 0;
      top: 0;
      width: 114.2857%;
      max-width: none;
      height: 37.714px;
      min-height: 0;
      box-sizing: border-box;
      padding: 0 12.6px;
      font-size: 16px;
      line-height: normal;
      transform: scale(.875);
      transform-origin: 0 0;
    }
  }
}

/* phones wide enough for two columns: short fields share a row (timeline + clinic) */
@media (min-width: 300px) and (max-width: 599px) {
  .form-card form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px 9px;
  }
  .form-card form .f-full,
  .form-card form .captcha,
  .form-card form .captcha-group,
  .form-card form .form-msg,
  .form-card form .formResponse,
  .form-card form .consent,
  .form-card form .btn-block {
    grid-column: 1 / -1;
  }
}

/* ---------- Desktop: a more compact booking form, so the trust numbers stay in the first screen ---------- */
@media (min-width: 821px) {
  .form-card {
    padding: 20px 22px 22px;
  }
  .form-card h3 {
    font-size: 17px;
  }
  #book .form-card h3,
  #hero-form-card h3 {
    margin-bottom: 12px;
  }
  .form-card form {
    gap: 9px;
  }
  .form-card input,
  .form-card select {
    padding: 8px 12px;
    font-size: 14px;
    min-height: 38px;
  }
  .form-card .cap-box,
  .form-card .captcha-img-wrap {
    min-height: 38px;
    height: 38px;
  }
  .cap-canvas,
  .captcha-img {
    width: min(100%, 128px);
    max-height: 32px;
  }
  .form-card .btn-block {
    padding: 11px 22px;
    min-height: 42px;
  }
  .hero-content {
    padding: 104px 24px 28px;
  }
}

@media (min-width: 1000px) {
  /* wide enough for two columns with the full labels: timeline and clinic share a row */
  .form-card form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px 10px;
  }
  .form-card form .f-full,
  .form-card form .captcha,
  .form-card form .captcha-group,
  .form-card form .form-msg,
  .form-card form .formResponse,
  .form-card form .consent,
  .form-card form .btn-block {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1000px) and (max-height: 660px) {
  /* short laptop windows: a little tighter still */
  .form-card {
    padding: 16px 20px 18px;
  }
  #book .form-card h3,
  #hero-form-card h3 {
    margin-bottom: 8px;
  }
  .form-card form {
    gap: 6px 10px;
  }
  .form-card input,
  .form-card select {
    padding: 5px 12px;
    min-height: 34px;
  }
  .form-card .cap-box,
  .form-card .captcha-img-wrap {
    min-height: 34px;
    height: 34px;
  }
  .cap-canvas,
  .captcha-img {
    width: min(100%, 112px);
    max-height: 28px;
  }
  .form-card .btn-block {
    padding: 9px 22px;
    min-height: 38px;
  }
  .hero-content {
    padding-top: 96px;
    padding-bottom: 20px;
  }
}