@font-face {
  font-family: Inter;
  src: url('/assets/fonts/inter-400.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url('/assets/fonts/inter-600.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url('/assets/fonts/playfair-display-500.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url('/assets/fonts/playfair-display-500-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: #123d44;
  --secondary: #365d64;
  --muted: #718d91;
  --placeholder: #9bb3b7;
  --border: #d9ecef;
  --nav-aqua: #2fb5c6;
  --brand-gold: #fbb848;
  --foundation-teal: #0c6873;
  --page: #f0fcfe;
  --error: #bd3218;
  --footer-teal-top: #0a515a;
  --footer-teal-highlight: #0a5a63;
  --footer-teal-mid: #094850;
  --footer-teal-bottom: #073035;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input { font: inherit; }

a { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(1096px, calc(100% - 24px));
  min-height: calc(100vh - 24px);
  margin: 12px auto;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 3px 12px rgb(12 104 115 / 5%), 0 24px 70px rgb(7 48 53 / 12%);
}

.site-header {
  position: relative;
  z-index: 10;
  height: 88px;
  padding: 0 32px 0 46px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgb(7 48 53 / 18%);
  background:
    linear-gradient(100deg, #fff 0%, rgb(255 255 255 / 96%) 20%, rgb(255 255 255 / 0%) 48%),
    var(--nav-aqua);
  box-shadow: 0 7px 22px rgb(7 48 53 / 12%);
}

.wordmark {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  margin-right: auto;
  text-decoration: none;
}

.wordmark img {
  display: block;
  width: 200px;
  height: 43px;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgb(7 48 53 / 28%));
}

.site-nav {
  position: absolute;
  left: 420px;
  min-height: 42px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 12px;
  background: var(--foundation-teal);
  box-shadow: 0 8px 20px rgb(7 48 53 / 16%);
}

.site-nav a {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  white-space: nowrap;
  transition: text-decoration-color 160ms ease;
}

.site-nav a strong { font-weight: 600; }
.site-nav a:not(.mobile-nav-cta):hover { color: #fff; text-decoration: underline; text-decoration-color: var(--brand-gold); }
.site-nav a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  border-radius: 3px;
  box-shadow: 0 0 0 5px var(--brand-gold);
}

.header-cta,
.mobile-nav-cta {
  width: 158px;
  min-width: 158px;
  min-height: 40px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--foundation-teal);
  box-shadow: 0 5px 14px rgb(7 48 53 / 20%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.header-cta:hover,
.mobile-nav-cta:hover { background: var(--footer-teal-mid); color: #fff; }

.header-cta:active,
.mobile-nav-cta:active { transform: translateY(1px); }

.mobile-nav-cta { display: none !important; }

.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  padding: 8px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 62%);
  border-radius: 9px;
  background: rgb(7 48 53 / 12%);
  color: #fff;
  cursor: pointer;
}

.menu-button svg { width: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 464px 480px;
  gap: 36px;
  padding: 41px 44px 33px 46px;
}

.hero-copy { position: relative; z-index: 2; min-width: 0; }

.hero-title {
  margin: 39px 0 37px;
  font: 500 67px/1.1 "Playfair Display", serif;
  letter-spacing: -.035em;
}

.hero-title span { display: block; }

.hero-title .accent {
  font-style: italic;
  color: transparent;
  background: linear-gradient(90deg, var(--foundation-teal), #197f8d 55%, var(--ink));
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-intro {
  max-width: 330px;
  margin: 0;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.72;
}

.mission-block { max-width: 335px; margin-top: 48px; }

.mission-block h2 {
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 14px;
  font-weight: 600;
}

.mission-block h2 span { width: 24px; height: 2px; background: var(--brand-gold); }

.mission-block p {
  margin: 0;
  color: var(--secondary);
  font-size: 13.5px;
  line-height: 1.68;
}

.clinic-card {
  position: relative;
  z-index: 3;
  min-width: 0;
  min-height: 752px;
  padding: 34px 28px 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 5px 12px rgb(12 104 115 / 4%), 0 18px 50px rgb(7 48 53 / 11%);
}

.clinic-heading { display: grid; grid-template-columns: 46px 1fr; gap: 12px; }
.clinic-heading > div { min-width: 0; }

.broadcast-icon {
  width: 40px;
  margin-top: -1px;
  fill: none;
  stroke: var(--brand-gold);
  stroke-linecap: round;
  stroke-width: 2.25;
}

.clinic-heading h2 { margin: 2px 0 15px; font-size: 21px; font-weight: 600; letter-spacing: -.025em; }
.clinic-heading h2 span { color: var(--foundation-teal); font-weight: 600; }

.clinic-heading p {
  margin: 0;
  color: var(--secondary);
  font-size: 12.5px;
  line-height: 1.92;
}

.confidential-note { display: block; margin-top: 23px; color: var(--foundation-teal); font-size: 12.5px; font-weight: 600; }

.card-divider { height: 1px; margin: 29px 0 23px; background: var(--border); }

.registration-intro { max-width: 342px; margin: 0 0 22px; color: var(--secondary); font-size: 14px; line-height: 1.55; }

.form-field { margin-bottom: 13px; }

.form-field label,
.role-fieldset legend {
  display: block;
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input::placeholder { color: var(--placeholder); }

.phone-control { display: grid; grid-template-columns: 94px 1fr; gap: 10px; }

.country-prefix {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.country-flag { font-size: 17px; line-height: 1; }
.country-prefix svg { width: 12px; fill: none; stroke: var(--muted); stroke-width: 1.5; }

.field-error { min-height: 0; display: block; color: var(--error); font-size: 10px; line-height: 1.35; }
.field-error:not(:empty) { margin-top: 4px; }

.role-fieldset { min-width: 0; margin: 2px 0 17px; padding: 0; border: 0; }
.role-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.role-option {
  position: relative;
  min-height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.role-option input { position: absolute; width: 1px; min-height: 1px; opacity: 0; pointer-events: none; }
.role-option span { font-size: 12px; font-weight: 600; }
.role-option:has(input:checked) { border-color: var(--foundation-teal); background: var(--page); box-shadow: inset 0 0 0 1px var(--foundation-teal); }
.role-option:has(input[aria-invalid="true"]) { border-color: var(--error); }
.role-option:has(input:focus-visible) { outline: 3px solid rgb(47 181 198 / 38%); outline-offset: 2px; }

.submit-button {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: var(--brand-gold);
  box-shadow: 0 6px 16px rgb(151 101 10 / 24%);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 160ms ease, transform 160ms ease;
}

.submit-button:hover { filter: saturate(1.08) brightness(1.03); }
.submit-button:active { transform: translateY(1px); }
.submit-button:disabled { cursor: wait; filter: grayscale(.15); opacity: .7; }

#form-status {
  min-height: 17px;
  margin: 7px 0 0;
  text-align: center;
  font-size: 10.5px;
  line-height: 1.5;
}

#form-status:empty { min-height: 0; margin: 0; }
#form-status[data-state="success"] { color: #147641; }
#form-status[data-state="error"] { color: var(--error); }

#thank-you-dialog {
  width: min(calc(100% - 32px), 28rem);
  max-width: 28rem;
  padding: 34px 32px 30px;
  border: 2px solid var(--nav-aqua);
  border-radius: 18px;
  color: var(--ink);
  background: linear-gradient(145deg, #fff, var(--page));
  box-shadow: 0 24px 70px rgb(7 48 53 / 30%);
  text-align: center;
}

#thank-you-dialog::backdrop {
  background: rgb(7 48 53 / 62%);
  backdrop-filter: blur(4px);
}

#thank-you-dialog h2 {
  margin: 0;
  color: var(--foundation-teal);
  font: 500 32px/1.15 "Playfair Display", serif;
}

#thank-you-dialog p {
  margin: 14px 0 24px;
  color: var(--secondary);
  line-height: 1.6;
}

.dialog-close {
  min-width: 8rem;
  min-height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: var(--brand-gold);
  box-shadow: 0 6px 16px rgb(151 101 10 / 24%);
  font-weight: 600;
  cursor: pointer;
}

.dialog-close:focus-visible {
  outline: 3px solid var(--foundation-teal);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--brand-gold);
}

.privacy-copy {
  margin: 14px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
  text-align: center;
}

.privacy-copy svg { width: 17px; flex: 0 0 17px; fill: none; stroke: var(--secondary); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

.wave-decoration {
  position: absolute;
  z-index: 0;
  left: -70px;
  bottom: -2px;
  width: 1160px;
  height: 370px;
  overflow: hidden;
  pointer-events: none;
}

.wave-decoration::before,
.wave-decoration::after {
  content: "";
  position: absolute;
  inset: 42px -10px -55px -20px;
  border-radius: 48% 60% 12% 16%;
  background:
    radial-gradient(ellipse at 26% 72%, rgb(251 184 72 / 48%), transparent 42%),
    radial-gradient(ellipse at 62% 65%, rgb(47 181 198 / 34%), transparent 47%),
    linear-gradient(135deg, rgb(255 248 231 / 82%), rgb(229 248 250 / 54%) 53%, rgb(188 236 241 / 35%));
  filter: blur(22px);
  transform: rotate(-6deg);
}

.wave-decoration::after {
  inset: 105px -95px -100px 210px;
  background: radial-gradient(ellipse, rgb(251 184 72 / 34%), rgb(47 181 198 / 25%) 50%, transparent 73%);
  filter: blur(30px);
  transform: rotate(-15deg);
}

.wave-decoration svg { position: absolute; z-index: 2; inset: 0; width: 820px; height: 100%; overflow: visible; transform: translateY(-30px); }
.wave-decoration path { fill: none; stroke: rgb(255 255 255 / 76%); stroke-width: 1.25; }

.benefits {
  position: relative;
  z-index: 4;
  margin: 0 36px 16px;
  min-height: 129px;
  display: grid;
  grid-template-columns: 313px 318px 1fr;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 8px 30px rgb(7 48 53 / 6%);
  backdrop-filter: blur(12px);
}

.benefit-item {
  position: relative;
  min-width: 0;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.benefit-item:nth-child(1) { padding-left: 36px; gap: 21px; }
.benefit-item:nth-child(2) { padding-left: 37px; gap: 21px; }
.benefit-item:nth-child(3) { padding-left: 45px; gap: 24px; }

.benefit-item + .benefit-item::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 0;
  width: 1px;
  background: var(--border);
}

.benefit-icon {
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.benefit-icon svg { width: 39px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.25; }
.benefit-icon-calendar { color: #946000; background: #fff4dc; }
.benefit-icon-sparkle { color: var(--foundation-teal); background: #e4f8fa; }
.benefit-icon-people { color: var(--ink); background: #d9f1f3; }

.benefit-item h2 { margin: 0 0 8px; font-size: 15px; line-height: 1.25; }
.benefit-item p { margin: 0; color: var(--secondary); font-size: 12px; line-height: 1.6; }

.site-footer {
  min-height: 249px;
  padding: 78px 32px 112px;
  display: grid;
  align-content: start;
  justify-items: center;
  color: #f4f4f4;
  background: linear-gradient(
    180deg,
    var(--footer-teal-top) 0%,
    var(--footer-teal-highlight) 8%,
    var(--footer-teal-mid) 50%,
    var(--footer-teal-bottom) 100%
  );
  text-align: center;
}

.site-footer p { margin: 0; }

.footer-address {
  max-width: 100%;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.site-footer .footer-tax-id {
  margin-top: 6px;
  font-size: 10.5px;
  line-height: 1.45;
}

:focus-visible { outline: 3px solid rgb(12 104 115 / 48%); outline-offset: 2px; }
input:focus { border-color: var(--nav-aqua); box-shadow: 0 0 0 3px rgb(47 181 198 / 14%); }
[aria-invalid="true"] { border-color: var(--error); }

@media (max-width: 1080px) {
  .site-header { padding-inline: 30px; }
  .site-nav { position: static; left: auto; gap: 22px; margin-right: 20px; }
  .hero-layout { grid-template-columns: minmax(0, .92fr) minmax(0, 1fr); gap: 24px; padding-inline: 30px; }
  .hero-title { font-size: clamp(52px, 7vw, 64px); }
  .benefits { grid-template-columns: repeat(3, 1fr); }
  .benefit-item,
  .benefit-item:nth-child(n) { padding-inline: 18px; gap: 14px; }
  .benefit-icon { width: 64px; height: 64px; flex-basis: 64px; }
}

@media (max-width: 900px) {
  .site-header {
    height: 66px;
    padding: 0 20px;
    background:
      linear-gradient(100deg, #fff 0%, rgb(255 255 255 / 96%) 48%, rgb(255 255 255 / 0%) 78%),
      var(--nav-aqua);
  }
  .wordmark img { width: 156px; height: auto; }
  .desktop-nav, .header-cta { display: none; }
  .menu-button { display: inline-grid; }
  .menu-button[aria-expanded="true"] { background: var(--foundation-teal); }
  .desktop-nav.is-open {
    position: absolute;
    top: 57px;
    right: 12px;
    display: flex;
    width: min(270px, calc(100vw - 40px));
    margin: 0;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid rgb(255 255 255 / 16%);
    border-radius: 14px;
    background: var(--foundation-teal);
    box-shadow: 0 18px 45px rgb(7 48 53 / 24%);
  }
  .desktop-nav.is-open a { padding: 11px 8px; }
  .desktop-nav.is-open .mobile-nav-cta {
    width: 100%;
    min-width: 0;
    margin-top: 8px;
    padding: 0 14px;
    display: inline-flex !important;
    border: 1px solid rgb(255 255 255 / 18%);
    background: var(--footer-teal-bottom);
  }
}

@media (max-width: 860px) {
  .hero-layout { grid-template-columns: 1fr; gap: 34px; }
  .hero-copy { width: min(100%, 600px); }
  .clinic-card { width: min(100%, 600px); justify-self: center; }
  .wave-decoration { top: 300px; bottom: auto; }
}

@media (max-width: 760px) {
  .site-shell { width: calc(100% - 16px); margin: 8px auto; border-radius: 22px; }
  .hero-layout { grid-template-columns: 1fr; gap: 30px; padding: 22px 20px 28px; }
  .hero-title { margin: 16px 0 22px; font-size: 30px; line-height: 1.08; }
  .hero-intro { font-size: 14px; }
  .mission-block { margin-top: 33px; }
  .clinic-card { width: 100%; min-height: 0; padding: 24px 18px; border-radius: 18px; }
  .clinic-heading { grid-template-columns: 38px 1fr; gap: 9px; }
  .broadcast-icon { width: 34px; }
  .clinic-heading h2 { font-size: 19px; }
  .phone-control { grid-template-columns: 88px 1fr; gap: 8px; }
  .wave-decoration { top: auto; left: -240px; bottom: 675px; opacity: .82; }
  .benefits { margin: 0 20px 20px; grid-template-columns: 1fr; }
  .benefit-item,
  .benefit-item:nth-child(n) { padding: 20px; }
  .benefit-item + .benefit-item::before { top: 0; right: 20px; bottom: auto; left: 20px; width: auto; height: 1px; }
  .site-footer { min-height: 190px; padding: 44px 24px 50px; }
  .footer-address { font-size: 15px; line-height: 1.45; }
  .site-footer .footer-tax-id { margin-top: 7px; font-size: 13px; }
}

@media (max-width: 390px) {
  .hero-layout { padding-inline: 20px; }
  .role-options { gap: 6px; }
  .phone-control { grid-template-columns: 82px 1fr; }
  .country-prefix { gap: 4px; }
  .benefits { margin-inline: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
