/* ==========================================================================
   AiCME — Get In Touch
   Design tokens from AnswersInCME/CLAUDE.md + GetInTouch/DESIGN.md
   ========================================================================== */

:root {
  /* Brand color tokens */
  --color-crimson: #BB002F;
  --color-crimson-deep: #8f0025;
  --color-navy: #004981;
  --color-navy-deep: #003561;
  --color-sky: #9BCFE6;
  --color-mist: #E3F1F8;
  --color-mist-2: #EDF6FB;
  --color-white: #FFFFFF;
  --color-ink: #000000;
  --color-ink-soft: rgba(0, 0, 0, 0.72);

  /* Confirmed by pixel-sampling the mockup: header/footer-strip/pills/contact
     use a flat horizontal (to right) gradient — not a diagonal. */
  --gradient-brand: linear-gradient(to right, var(--color-crimson) 0%, var(--color-navy) 100%);
  --gradient-brand-soft: linear-gradient(to right, rgba(187, 0, 47, 0.88) 0%, rgba(0, 73, 129, 0.88) 100%);
  /* Hero background: a supplied static image (herobg.png — the actual
     crimson/navy crest artwork, not a CSS-recreated approximation), top-right
     aligned, no-repeat. --color-hero-bg-fill is sampled from the image's own
     left-edge blue so the solid fill it sits on has no visible seam. */
  --color-hero-bg-fill: #064576;

  /* Spacing scale (8px grid, AnswersInCME/CLAUDE.md) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;
  --space-9: 60px;

  /* Type scale */
  --text-sm: 14px;
  --text-base: 16px;
  --text-md: 18px;
  --text-lg: 20px;
  --text-xl: 24px;
  --text-2xl: 32px;
  --text-3xl: 40px;
  --text-4xl: 60px;

  --radius-pill: 9999px;
  --radius-card: 16px;
  --radius-card-sm: 8px;

  --shadow-card: 0 12px 32px rgba(0, 40, 80, 0.14);
  --shadow-card-hover: 0 18px 40px rgba(0, 40, 80, 0.20);

  --font-body: "PT Sans", Arial, Helvetica, sans-serif;

  --max-width: 1280px;
  --header-height: 76px;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--color-ink);
  background: var(--color-white);
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

.skip-link {
  position: absolute;
  top: -48px;
  left: var(--space-4);
  z-index: 1000;
  background: var(--color-white);
  color: var(--color-navy);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-card-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: var(--space-2);
}

/* Shared focus-visible treatment (PRODUCT.md a11y baseline) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.pv-pill:focus-visible {
  outline: 2px solid var(--color-sky);
  outline-offset: 3px;
  border-radius: var(--radius-card-sm);
}

.on-dark a:focus-visible,
.on-dark button:focus-visible {
  outline-color: var(--color-white);
}

.section {
  padding: var(--space-9) var(--space-5);
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Scroll-triggered entrance — fade + rise, staggered per item via a JS-set
   transition-delay on [data-animate-group] children. See getintouch.js
   initEntranceAnimations(). */
.animate-on-enter {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-enter.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .animate-on-enter {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* Heading letter glide-in (getintouch.js) — not part of the shared
   .animate-on-enter system above. Every character of the hero H1 and every
   section H2 swims in from the right on the same heading, one after another
   left to right — a trailing school-of-fish motion, not letters converging
   from opposite sides. The slight overshoot easing (settles just past 0
   before easing back) is what reads as a swim rather than a mechanical
   slide. Runs on its own IntersectionObserver, replaying every re-entry
   like the rest of the page's scroll animation. */
.fly-word {
  display: inline-block;
  white-space: nowrap;
}

.fly-letter {
  display: inline-block;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.fly-letter.is-visible {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .fly-letter {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

.eyebrow {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-crimson);
  margin-bottom: var(--space-2);
}

.on-dark .eyebrow {
  color: var(--color-sky);
}

.section__heading {
  font-size: 42px;
  color: var(--color-navy);
  margin-bottom: var(--space-3);
}

.on-dark .section__heading {
  color: var(--color-white);
}

.section__body {
  font-size: var(--text-lg);
  color: var(--color-ink-soft);
}

.on-dark .section__body {
  color: rgba(255, 255, 255, 0.88);
}

/* Same responsive-scaling approach as the hero: step down at tablet, step
   down again at mobile, rather than holding one fixed size at every width. */
@media (max-width: 960px) {
  .eyebrow {
    font-size: var(--text-sm);
  }

  .section__heading {
    font-size: var(--text-2xl);
  }

  .section__body {
    font-size: var(--text-md);
  }
}

@media (max-width: 560px) {
  .section__heading {
    font-size: var(--text-xl);
  }

  .section__body {
    font-size: var(--text-base);
  }
}

.section--white {
  background: var(--color-white);
}

.section--mist {
  background: linear-gradient(180deg, var(--color-mist) 0%, var(--color-mist-2) 100%);
}

.section--navy {
  background: var(--color-navy);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border-radius: var(--radius-pill);
  /* Measured against the mockup: ~48px horizontal / ~16px vertical, not a
     narrower default pill padding — these are deliberately generous CTAs. */
  padding: 16px 48px;
  font-size: var(--text-base);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.btn--solid {
  background: var(--color-crimson);
  color: var(--color-white);
}

.btn--solid:hover {
  background: var(--color-crimson-deep);
}

.btn--outline {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

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

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: var(--gradient-brand);
}

.site-header__inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.site-header__logo img {
  width: 121px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Shared base for every nav item, including the Contact pill — same font
   size, padding and radius throughout the bar. */
.site-nav__links a {
  display: inline-block;
  color: var(--color-white);
  text-decoration: none;
  font-size: var(--text-md);
  padding: 4px 16px;
  border-radius: var(--radius-pill);
}

/* Plain text links: regular weight, soft white-pill hover (no underline,
   no color shift — text stays white). */
.site-nav__links a:not(.btn) {
  font-weight: 400;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.site-nav__links a:not(.btn):hover {
  background-color: rgba(255, 255, 255, 0.10);
}

@media (prefers-reduced-motion: reduce) {
  .site-nav__links a:not(.btn) {
    transition: none;
  }
}

/* The Contact pill keeps its bold .btn treatment; it just doesn't lift on
   hover the way the hero CTAs do — that felt inconsistent next to the
   plain nav links, which never move. */
.site-nav__cta {
  margin-left: var(--space-4);
}

.site-nav__links .btn {
  font-weight: 700;
}

.site-nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 28px;
  line-height: 1;
  padding: var(--space-2);
}

@media (max-width: 860px) {
  .site-nav__links {
    display: none;
  }

  .site-nav__toggle {
    display: inline-flex;
  }

  /* Folded into the same mobile menu panel: nav links stacked above the
     Contact pill, which drops its desktop left-margin for a plain top gap. */
  .site-nav--open .site-nav__links {
    display: flex;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--color-navy-deep);
    padding: var(--space-4) var(--space-5);
    gap: var(--space-4);
  }

  .site-nav__cta {
    margin-left: 0;
    margin-top: var(--space-2);
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background-color: var(--color-hero-bg-fill);
  background-image: url("../images/backgrounds/hero-bg.jpg");
  background-position: top right;
  background-repeat: no-repeat;
  background-size: auto 100%;
  color: var(--color-white);
  overflow: hidden;
  /* Measured against the mockup: hero carries noticeably more breathing
     room above/below its content than a standard section — not the shared
     --space-9 padding used elsewhere. */
  padding: 96px var(--space-5);
}

@supports (background-image: url("x.webp")) {
  .hero {
    background-image: url("../images/backgrounds/hero-bg.webp");
  }
}

.hero__inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero__heading {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-8);
}

.hero__values {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: var(--space-9);
  margin-bottom: var(--space-8);
}

.hero__value {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.hero__value img {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

/* Rotating spotlight — always running, independent of scroll. One item at
   a time reads as "active" (full opacity, slight scale), the other two
   dim, cycled by getintouch.js. Transform lives on the whole .hero__value
   so the icon and its label scale together. */
.hero__value {
  opacity: 0.55;
  transform: scale(1);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero__value--active {
  opacity: 1;
  transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .hero__value {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.hero__value span {
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
}

.hero__lede {
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* Hero CTAs are deliberately larger than the header's compact Contact
   pill — measured against the mockup, not the shared .btn default. */
.hero__ctas .btn {
  font-size: var(--text-lg);
  line-height: 1;
  padding: 12px 32px;
}

/* Tablet: everything steps down one notch but the 3 value items still fit
   in a row. */
@media (max-width: 960px) {
  .hero {
    padding: 72px var(--space-5);
  }

  .hero__heading {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-6);
  }

  .hero__values {
    gap: var(--space-7);
    margin-bottom: var(--space-6);
  }

  .hero__value img {
    width: 56px;
    height: 56px;
  }

  .hero__value span {
    font-size: var(--text-xl);
  }

  .hero__lede,
  .hero__ctas .btn {
    font-size: var(--text-md);
  }

  .hero__lede {
    margin-bottom: var(--space-6);
  }
}

/* Mobile: the 3 items no longer fit as a row at any reasonable size —
   switch the whole group to a vertical stack instead of letting individual
   items wrap into an uneven 2-then-1 layout. */
@media (max-width: 640px) {
  .hero {
    /* Horizontal padding stays var(--space-5), matching .section at every
       breakpoint — only vertical breathing room tapers on small screens. */
    padding: 56px var(--space-5);
  }

  .hero__heading {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-5);
  }

  .hero__values {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-5);
    margin-bottom: var(--space-5);
  }

  .hero__value img {
    width: 56px;
    height: 56px;
  }

  .hero__value span {
    font-size: var(--text-xl);
  }

  .hero__lede,
  .hero__ctas .btn {
    font-size: var(--text-base);
  }

  .hero__lede {
    margin-bottom: var(--space-5);
  }

  .hero__ctas .btn {
    padding: 10px 24px;
  }
}

/* ==========================================================================
   Framework cards
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-6);
}

@media (max-width: 960px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* transform deliberately left out of this card's own hover state — it
   shares the .animate-on-enter class, whose entrance transition also
   needs `transform` (for the rise). Two rules setting the same shorthand
   `transition` property on one element don't merge; the later one (this
   one) was winning outright, silently dropping the entrance's `opacity`
   transition and running its `transform` at the wrong (hover) speed. */
.framework-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  /* This rule wins the cascade over .animate-on-enter's own `transition`
     (same specificity, later in source) — the shorthand doesn't merge
     across rules, so opacity/transform have to be listed here explicitly
     or the entrance fade+rise silently gets no transition at all. */
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.2s ease;
}

.framework-card:hover {
  box-shadow: var(--shadow-card-hover);
}

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

.framework-card__media {
  aspect-ratio: 5 / 3;
  overflow: hidden;
}

.framework-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.framework-card__body {
  padding: var(--space-4) var(--space-4) var(--space-5);
}

.framework-card__title {
  font-size: var(--text-xl);
  color: var(--color-navy);
  margin-bottom: var(--space-1);
}

.framework-card__text {
  font-size: var(--text-lg);
  color: var(--color-ink-soft);
}

@media (max-width: 960px) {
  .framework-card__title {
    font-size: var(--text-md);
  }

  .framework-card__text {
    font-size: var(--text-base);
  }
}

/* ==========================================================================
   Solutions accordion
   ========================================================================== */

.accordion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-6);
}

@media (max-width: 760px) {
  .accordion-grid {
    grid-template-columns: 1fr;
  }
}

.accordion-item {
  grid-column: auto;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--gradient-brand);
  color: var(--color-white);
  border: none;
  /* A moderate rounded-rect, not a full stadium pill — --radius-pill clips
     to half the (tall) button height, which over-rounds it. */
  border-radius: 24px;
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-xl);
  font-weight: 700;
  text-align: left;
  /* Same resting shadow whether open or closed — consistent elevation
     rather than one popping in only when a pill expands. */
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.20);
}

.accordion-trigger__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.accordion-trigger__label {
  flex: 1;
}

.accordion-trigger__chevron {
  width: 22px;
  height: 14px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.accordion-trigger[aria-expanded="true"] {
  border-radius: 24px 24px 0 0;
}

.accordion-trigger[aria-expanded="true"] .accordion-trigger__chevron {
  transform: rotate(180deg);
}

@media (max-width: 760px) {
  .accordion-trigger {
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-md);
  }

  .accordion-trigger__icon {
    width: 32px;
    height: 32px;
  }
}

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

.accordion-panel {
  overflow: hidden;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}

.accordion-panel[data-open="true"] {
  grid-template-rows: 1fr;
}

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

.accordion-panel__inner {
  min-height: 0;
}

/* Flush with the trigger above it, not a separate floating card — square
   top corners (matching the trigger's own squared-off bottom when open),
   rounded bottom only, no gap between them. */
/* No overflow:hidden here — combined with box-shadow + border-radius on
   the same element it clips the shadow right at the curve, leaving a
   visible gray corner artifact. Nothing inside needs corner-clipping now
   that the old colored bar is gone. */
/* The real fix for the corner-clip glitch lives in getintouch.js — the
   parent .accordion-panel switches to overflow:visible once fully open, so
   this shadow no longer needs contorted negative-spread math to avoid
   being clipped; a normal soft shadow renders cleanly. */
.solution-card {
  background: var(--color-white);
  border-radius: 0 0 24px 24px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.20);
}

.solution-card__body {
  padding: var(--space-5);
}

.solution-card__logo {
  height: 45px;
  width: auto;
  display: block;
  margin-bottom: var(--space-4);
}

.solution-card__text {
  font-size: var(--text-lg);
  color: var(--color-ink-soft);
}

@media (max-width: 760px) {
  .solution-card__body {
    padding: var(--space-4);
  }

  /* The widest logos (MECasePoint, MEViewPoint) were pushing past a
     narrow mobile card's content width at the desktop 45px height. */
  .solution-card__logo {
    height: 32px;
  }

  .solution-card__text {
    font-size: var(--text-base);
  }
}

/* ==========================================================================
   Reach stats
   ========================================================================== */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-6);
}

@media (max-width: 960px) {
  .stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-tile {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-card);
  padding: 16px 24px;
  text-align: left;
}

.stat-tile__value {
  display: block;
  font-size: 42px;
  font-weight: 700;
  color: var(--color-sky);
  margin-bottom: var(--space-1);
}

.stat-tile__label {
  font-size: var(--text-lg);
  color: var(--color-white);
}

@media (max-width: 560px) {
  .stat-tile__value {
    font-size: var(--text-2xl);
  }

  .stat-tile__label {
    font-size: var(--text-base);
  }
}

/* ==========================================================================
   Impact steps
   ========================================================================== */

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-7);
}

@media (max-width: 760px) {
  .step-grid {
    grid-template-columns: 1fr;
  }
}

/* Missing content, not just a size fix: the mockup pairs each circle with
   its own big step name (Engage/Learn/Apply) inline, then a separate bold
   subtitle line, then the body text — three distinct pieces, not the one
   merged "Engage — Reach the right clinicians." title this used to be. */
.step__head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-crimson);
  color: var(--color-white);
  font-size: 30px;
  font-weight: 700;
}

.step__name {
  font-size: 30px;
  font-weight: 700;
  color: var(--color-crimson);
}

.step__subtitle {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 0;
}

.step__text {
  font-size: var(--text-lg);
  color: var(--color-ink-soft);
}

/* Same two-tier downgrade, at the same 960px/560px breakpoints, as the
   20px body paragraphs (.section__body) elsewhere on the page — not the
   step grid's own 760px layout breakpoint, which is a separate concern.
   Must come after the base rules above: equal-specificity selectors
   resolve by source order, and a media-scoped rule gets no extra weight
   for being in a media query. */
@media (max-width: 960px) {
  .step__subtitle,
  .step__text {
    font-size: var(--text-md);
  }
}

@media (max-width: 560px) {
  .step__subtitle,
  .step__text {
    font-size: var(--text-base);
  }
}

/* ==========================================================================
   Contact
   ========================================================================== */

/* The actual mockup-supplied gradient image (contactbg.png) — no separate
   CSS gradient overlay needed, the crimson→navy blend is baked into the
   photo itself. */
.contact-section {
  position: relative;
  background: url("../images/backgrounds/contact-bg.jpg") center / cover no-repeat;
  color: var(--color-white);
}

@supports (background-image: url("x.webp")) {
  .contact-section {
    background: url("../images/backgrounds/contact-bg.webp") center / cover no-repeat;
  }
}

.contact-form {
  margin-top: var(--space-6);
}

/* Shown in place of the form once a submission succeeds — a sibling of
   <form>, not a child, since the submit handler hides the form itself
   (`form.hidden = true`) and anything nested inside it would disappear
   right along with it. */
.form-confirmation {
  margin-top: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--color-white);
}

/* The `display: flex` above ties in specificity with the UA stylesheet's
   `[hidden] { display: none }` — an author rule wins that tie regardless of
   source order, which would render this visible from page load despite the
   `hidden` attribute. Reassert it explicitly. */
.form-confirmation[hidden] {
  display: none;
}

.form-confirmation__icon {
  flex-shrink: 0;
}

.form-confirmation__text {
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 0;
}

@media (max-width: 960px) {
  .form-confirmation__text {
    font-size: var(--text-lg);
  }
}

@media (max-width: 560px) {
  .form-confirmation__text {
    font-size: var(--text-md);
  }
}

.form-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}

.form-row--split {
  grid-template-columns: 1fr 1fr;
}

/* Below desktop: skip the messy in-between 2-column state entirely — every
   field drops straight to its own full-width row, same 24px gap throughout
   (both between fields and between rows) as the desktop layout down to
   640px, where the tighter tier below takes over. */
@media (max-width: 860px) {
  .form-row,
  .form-row--split {
    grid-template-columns: 1fr;
  }

  /* Same classic stacked treatment for the submit button + status message
     — separate rows instead of squeezing side by side. */
  .form-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* At full field-per-row stacking, 24px between every single-line input
   reads as too much scroll for how little each row holds — tighten to
   var(--space-4) once the layout is already single-column, matching the
   hero's own 960px/640px taper points rather than inventing a new one. */
@media (max-width: 640px) {
  .form-row {
    gap: var(--space-4);
    margin-bottom: var(--space-4);
  }
}

/* Fields stretch to the row's full height (grid default); a labeled
   field's input naturally sits below its label, but a label-less field's
   single input would sit at the top of that same stretched box instead —
   pin it to the bottom so it lines up with its row-mates' inputs. */
.field {
  display: flex;
  flex-direction: column;
}

.field--input-only {
  justify-content: flex-end;
}

.field label {
  display: block;
  font-size: var(--text-lg);
  font-weight: 400;
  margin-bottom: var(--space-2);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: none;
  border-radius: var(--radius-card-sm);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-lg);
  font-family: inherit;
  color: var(--color-ink);
  background: var(--color-white);
}

/* Same two-tier downgrade, at the same 960px/560px breakpoints, as the
   20px body paragraphs (.section__body) elsewhere on the page — not the
   form's own 860px layout breakpoint, which is a separate concern. Must
   come after the base rules above: equal-specificity selectors resolve by
   source order, and a media-scoped rule gets no extra weight for being in
   a media query. */
@media (max-width: 960px) {
  .field label,
  .field input,
  .field select,
  .field textarea {
    font-size: var(--text-md);
  }
}

@media (max-width: 560px) {
  .field label,
  .field input,
  .field select,
  .field textarea {
    font-size: var(--text-base);
  }
}

/* Custom chevron — the native OS/browser select arrow looked plain and
   inconsistent with the rest of the page's chevron styling. */
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25.34 15.1'%3E%3Cpolyline points='1 1 12.68 14.1 24.34 1.03' fill='none' stroke='%23004981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  background-size: 14px auto;
}

.field-error {
  display: block;
  font-size: 13px;
  color: #ffd6d6;
  margin-top: var(--space-1);
  min-height: 1em;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

/* Same treatment as the hero CTAs — not the oversized shared .btn default.
   Must also match the hero CTAs' own responsive step-down (below), which
   this rule previously left out entirely. */
.form-actions .btn {
  font-size: var(--text-lg);
  line-height: 1;
  padding: 12px 32px;
}

@media (max-width: 960px) {
  .form-actions .btn {
    font-size: var(--text-md);
  }
}

@media (max-width: 640px) {
  .form-actions .btn {
    font-size: var(--text-base);
    padding: 10px 24px;
  }
}

.form-status {
  font-size: var(--text-sm);
  font-weight: 700;
}

.form-status[data-state="success"] {
  color: #c9f7d6;
}

.form-status[data-state="error"] {
  color: #ffd6d6;
}

.submit-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.grecaptcha-badge {
  visibility: hidden;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-navy);
  color: var(--color-white);
  position: relative;
}

.site-footer::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--gradient-brand);
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-7) var(--space-5);
}

.site-footer__copyright {
  font-size: var(--text-lg);
}

.site-footer__legal {
  margin-top: var(--space-5);
  font-size: var(--text-lg);
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.site-footer__legal a {
  color: var(--color-white);
  text-decoration: underline;
}

/* Same two-tier downgrade, at the same 960px/560px breakpoints, as the
   20px body paragraphs (.section__body) elsewhere on the page. */
@media (max-width: 960px) {
  .site-footer__copyright,
  .site-footer__legal {
    font-size: var(--text-md);
  }
}

@media (max-width: 560px) {
  .site-footer__copyright,
  .site-footer__legal {
    font-size: var(--text-base);
  }
}

