/**
 * admissions-paying-for-treatment.css — Inspire Recovery Design System
 * /admissions/paying-for-treatment/
 *
 * Foundation: main.css (tokens · base · layout · typography · components · forms)
 * Visual references — all patterns drawn from /admissions/insurance/:
 *   Hero            → .insurance-hero (aqua, centered)
 *   Gap section     → .ins-coverage (soft-blue, two-column prose)
 *   Self-Pay        → .ins-payers-grid (white, two-column text grid)
 *   Scholarships    → .ins-fallback / section-brown (brown, centered)
 *   Transpire Help  → .ins-payers-grid (white, two-column text grid)
 *   Final CTA       → shared component
 */


/* ══════════════════════════════════════════════════════════════
   S1 — HERO
   Pattern: /admissions/insurance/ .insurance-hero
   ══════════════════════════════════════════════════════════════ */

.pay-hero {
  background: var(--brand-aqua);
  text-align: center;
}

.pay-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.pay-hero h1 {
  font-size: clamp(1.95rem, 3.8vw, 3rem);
  line-height: 1.08;
  margin-bottom: 18px;
}

.pay-hero .lead {
  max-width: 58ch;
  margin: 0 auto 28px;
  color: var(--text-primary);
}

.pay-hero .eyebrow  { justify-content: center; }
.pay-hero .actions  { justify-content: center; }

/* Aqua hero — buttons become white/ink */
.pay-hero .btn             { background: #fff; color: var(--ink); }
.pay-hero .btn:hover       { background: #EEF2F1; transform: translateY(-1px); }
.pay-hero .btn.ghost       { background: transparent; color: var(--ink); border-color: rgba(22, 32, 31, .44); }
.pay-hero .btn.ghost:hover { background: rgba(22, 32, 31, .07); transform: none; }


/* ══════════════════════════════════════════════════════════════
   S2 — IF INSURANCE ISN'T COVERING ENOUGH
   Pattern: /admissions/insurance/ .ins-coverage (soft-blue, two-column prose)
   ══════════════════════════════════════════════════════════════ */

.pay-gap { background: var(--surface-soft-blue); }

.pay-gap-intro {
  max-width: 760px;
  margin: 0 auto var(--space-lg);
  text-align: center;
}

.pay-gap-intro .eyebrow { justify-content: center; }

.pay-gap-intro h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.pay-gap-intro .lead {
  max-width: 66ch;
  margin: 0 auto;
}

.pay-gap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
}

.pay-gap-item h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--brand-aqua-hover);
}

.pay-gap-item p {
  font-size: .95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
  max-width: 100%;
}

.pay-gap-note {
  margin-top: var(--space-lg);
  text-align: center;
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary);
  font-style: italic;
}


/* ══════════════════════════════════════════════════════════════
   S3 — SELF-PAY
   Pattern: /admissions/insurance/ .ins-payers-grid (white, two-column text grid)
   ══════════════════════════════════════════════════════════════ */

.pay-self { background: #fff; }

.pay-self-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.pay-self-grid > .reveal:first-child {
  position: sticky;
  top: 100px;
}

.pay-self-grid h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.18;
  margin-bottom: 0;
}

.pay-self-content .lead {
  margin-bottom: 20px;
  max-width: 100%;
  color: var(--text-secondary);
}

.pay-self-content p {
  font-size: .95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 100%;
}


/* ══════════════════════════════════════════════════════════════
   S4 — SCHOLARSHIPS
   Pattern: /admissions/insurance/ .ins-fallback / section-brown (centered, .btn.light)
   ══════════════════════════════════════════════════════════════ */

.pay-scholarships { text-align: center; }

.pay-scholarships-inner {
  max-width: 800px;
  margin: 0 auto;
}

.pay-scholarships h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 16px;
  max-width: none;
  text-wrap: wrap;
}

.pay-scholarships .eyebrow {
  color: rgba(255, 255, 255, .75);
  justify-content: center;
}

.pay-scholarships .eyebrow::before { background: var(--accent-trans-pink); }

.pay-scholarships .lead {
  color: rgba(255, 255, 255, .85);
  max-width: 62ch;
  margin: 0 auto 36px;
}

.pay-scholarships-actions { justify-content: center; }


/* ══════════════════════════════════════════════════════════════
   S5 — TRANSPIRE HELP
   Pattern: /admissions/insurance/ .ins-payers-grid (white, two-column text grid)
   ══════════════════════════════════════════════════════════════ */

.pay-transpire { background: var(--surface-soft-blue); }

.pay-transpire-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.pay-transpire-grid > .reveal:first-child {
  position: sticky;
  top: 100px;
}

.pay-transpire-grid h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.18;
  margin-bottom: 0;
}

.pay-transpire-content .lead {
  margin-bottom: 20px;
  max-width: 100%;
  color: var(--text-secondary);
}

.pay-transpire-content p {
  font-size: .95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 100%;
}

.pay-transpire-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — single column at 860px
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 860px) {
  .pay-gap-grid      { grid-template-columns: 1fr; gap: 24px; }
  .pay-self-grid     { grid-template-columns: 1fr; gap: 32px; }
  .pay-transpire-grid { grid-template-columns: 1fr; gap: 32px; }

  .pay-self-grid > .reveal:first-child,
  .pay-transpire-grid > .reveal:first-child { position: static; }

  .pay-transpire-actions { align-items: flex-start; }
}
