/* Shared styles for the teacher open-enrollment pages.
   Extracted verbatim from the approved teachers.html design. */
    :root {
      --red: #e52528;
      --red-dark: #b70f16;
      --black: #08080a;
      --soft-black: #18191f;
      --gray: #666b76;
      --light-gray: #f4f5f7;
      --border: #e6e8ee;
      --white: #ffffff;
      --cream: #fffafa;
      --shadow: 0 24px 70px rgba(0,0,0,.12);
      --radius: 26px;
      --max: 1180px;
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      font-family: Arial, Helvetica, sans-serif;
      color: var(--black);
      background:
        radial-gradient(circle at 15% 8%, rgba(229,37,40,.10), transparent 28%),
        radial-gradient(circle at 85% 0%, rgba(0,0,0,.07), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #f7f7f9 100%);
      line-height: 1.45;
    }

    a { color: inherit; }

    .page {
      overflow: hidden;
    }

    .container {
      width: min(var(--max), calc(100% - 40px));
      margin: 0 auto;
    }

    .nav {
      padding: 22px 0;
    }

    .nav-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      font-weight: 900;
      letter-spacing: .08em;
      text-transform: uppercase;
      font-size: 13px;
      line-height: 1.05;
    }

    .brand-mark {
      width: 50px;
      height: 50px;
      border: 3px solid var(--red);
      border-radius: 15px;
      display: grid;
      place-items: center;
      color: var(--red);
      font-size: 26px;
      font-weight: 900;
    }

    .nav-cta {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 44px;
      padding: 0 18px;
      border-radius: 999px;
      background: var(--black);
      color: var(--white);
      text-decoration: none;
      font-weight: 900;
      font-size: 14px;
      box-shadow: 0 8px 24px rgba(0,0,0,.18);
      white-space: nowrap;
    }

    .hero {
      padding: 8px 0 34px;
    }

    .hero-card {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: clamp(28px, 5vw, 62px);
      position: relative;
      overflow: hidden;
    }

    .hero-card:before {
      content: "";
      position: absolute;
      top: 0;
      left: 32px;
      right: 32px;
      height: 6px;
      background: var(--red);
      border-radius: 0 0 10px 10px;
    }

    .eyebrow {
      color: var(--red);
      text-transform: uppercase;
      font-weight: 900;
      letter-spacing: .18em;
      font-size: 14px;
      margin: 0 0 16px;
    }


    .revolt-rally {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: var(--black);
      color: var(--white);
      border-radius: 16px;
      padding: 12px 18px;
      margin: 0 0 22px;
      font-weight: 900;
      font-size: clamp(24px, 3.1vw, 40px);
      line-height: .95;
      letter-spacing: -0.04em;
      box-shadow: 0 16px 36px rgba(0,0,0,.18);
    }

    h1 {
      font-size: clamp(46px, 6.6vw, 86px);
      line-height: .94;
      letter-spacing: -0.075em;
      margin: 0 0 24px;
      max-width: 1050px;
    }

    .hero-copy {
      font-size: clamp(16px, 1.7vw, 20px);
      line-height: 1.32;
      color: var(--soft-black);
      max-width: 980px;
      margin: 0 0 30px;
      font-weight: 700;
    }

    .hero-copy span {
      color: var(--red);
    }

    .cta-row {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      align-items: center;
      margin-top: 28px;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 56px;
      padding: 0 26px;
      border-radius: 12px;
      text-decoration: none;
      border: 2px solid transparent;
      font-weight: 900;
      letter-spacing: .01em;
      cursor: pointer;
      transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    }

    .btn:hover { transform: translateY(-2px); }

    .btn-primary {
      color: var(--white);
      background: var(--red);
      box-shadow: 0 14px 30px rgba(229,37,40,.28);
    }

    .btn-primary:hover { background: var(--red-dark); }

    .btn-secondary {
      color: var(--black);
      background: var(--white);
      border-color: var(--black);
    }

    .trust-strip {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1px;
      margin-top: 34px;
      background: var(--border);
      border: 1px solid var(--border);
      border-radius: 16px;
      overflow: hidden;
    }

    .trust-item {
      background: #fff;
      padding: 16px 14px;
      display: flex;
      gap: 10px;
      align-items: center;
      font-weight: 900;
      font-size: 13px;
      text-transform: uppercase;
      letter-spacing: .04em;
    }

    .trust-icon {
      width: 32px;
      height: 32px;
      border: 2px solid var(--red);
      color: var(--red);
      display: grid;
      place-items: center;
      border-radius: 8px;
      flex: 0 0 auto;
      font-weight: 900;
    }

    .section {
      padding: 38px 0;
    }

    .section-title {
      font-size: clamp(32px, 4.2vw, 54px);
      line-height: .98;
      letter-spacing: -0.055em;
      margin: 0 0 18px;
    }

    .section-lead {
      font-size: 19px;
      color: var(--gray);
      max-width: 820px;
      margin: 0 0 30px;
    }

    .split {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 28px;
      align-items: stretch;
    }

    .panel {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 24px;
      padding: clamp(24px, 3.8vw, 42px);
      box-shadow: 0 14px 42px rgba(0,0,0,.07);
    }

    .panel.dark {
      background: var(--black);
      color: var(--white);
      border-color: var(--black);
    }

    .panel.red {
      background: var(--red);
      color: var(--white);
      border-color: var(--red);
    }


    .angle-head {
      display: grid;
      gap: 18px;
      margin-bottom: 22px !important;
    }

    .angle-head span {
      display: block;
    }

    .white-check {
      display: inline-grid !important;
      place-items: center;
      width: 34px;
      height: 34px;
      margin-right: 10px;
      border: 2px solid #fff;
      border-radius: 9px;
      color: #fff;
      font-size: 22px;
      line-height: 1;
      vertical-align: middle;
    }

    .panel h2, .panel h3 {
      margin: 0 0 14px;
      font-size: clamp(28px, 3vw, 42px);
      line-height: 1;
      letter-spacing: -0.045em;
    }



    .strategy-lines {
      margin: 32px 0 26px;
      display: grid;
      gap: 16px;
      font-weight: 900;
      font-size: clamp(24px, 2.35vw, 34px);
      line-height: 1.08;
      letter-spacing: -0.03em;
    }

    .panel p.spaced-line {
      margin-top: 28px;
    }

    .panel p {
      margin: 0 0 18px;
      color: inherit;
      font-size: 17px;
    }

    .muted { color: var(--gray); }

    .pain-list {
      display: grid;
      gap: 14px;
      margin-top: 22px;
    }

    .pain-item {
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 16px;
      background: #fff;
      display: grid;
      grid-template-columns: 38px 1fr;
      gap: 12px;
      align-items: start;
    }

    .bullet {
      width: 38px;
      height: 38px;
      border-radius: 12px;
      background: rgba(229,37,40,.1);
      color: var(--red);
      display: grid;
      place-items: center;
      font-weight: 900;
      font-size: 18px;
    }

    .pain-item strong {
      display: block;
      margin-bottom: 3px;
    }

    .strategy-steps {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
      margin-top: 26px;
    }

    .step {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 24px;
      min-height: 188px;
    }

    .step-num {
      width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      background: var(--red);
      color: #fff;
      border-radius: 14px;
      font-weight: 900;
      margin-bottom: 16px;
    }

    .step h3 {
      margin: 0 0 10px;
      font-size: 24px;
      letter-spacing: -0.035em;
      line-height: 1;
    }

    .step p {
      color: var(--gray);
      margin: 0;
    }

    .benefits-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 14px;
      margin-top: 28px;
    }

    .benefit {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: 18px;
      min-height: 136px;
    }

    .benefit .check {
      color: var(--red);
      font-weight: 900;
      margin-bottom: 12px;
      font-size: 22px;
    }

    .benefit strong {
      display: block;
      font-size: 17px;
      line-height: 1.08;
      margin-bottom: 8px;
    }

    .benefit small {
      color: var(--gray);
      font-size: 13px;
      line-height: 1.25;
      display: block;
    }

    .quote-box {
      background: var(--white);
      border: 2px solid var(--red);
      border-radius: 24px;
      overflow: hidden;
      box-shadow: var(--shadow);
    }

    .quote-head {
      background: var(--red);
      color: var(--white);
      padding: 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
    }

    .quote-head h2 {
      margin: 0;
      font-size: clamp(28px, 4vw, 48px);
      line-height: 1;
      letter-spacing: -0.05em;
    }

    .timer {
      background: #fff;
      color: var(--red);
      padding: 10px 14px;
      border-radius: 999px;
      font-weight: 900;
      white-space: nowrap;
    }

    .story {
      padding: clamp(24px, 4vw, 42px);
      display: grid;
      grid-template-columns: .95fr 1.05fr;
      gap: 30px;
      align-items: center;
    }

    .savings-card {
      border: 1px solid var(--border);
      border-radius: 20px;
      overflow: hidden;
      background: #fff;
    }

    .savings-row {
      display: flex;
      justify-content: space-between;
      gap: 20px;
      border-bottom: 1px solid var(--border);
      padding: 14px 18px;
      font-weight: 900;
    }

    .savings-row:last-child {
      border-bottom: none;
      background: #fff4f4;
      color: var(--red);
      font-size: 20px;
    }

    .form-card {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 26px;
      padding: clamp(24px, 4vw, 44px);
      box-shadow: var(--shadow);
    }

    .form-card .topline {
      height: 5px;
      background: var(--red);
      border-radius: 999px;
      margin-bottom: 24px;
    }

    .form-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

    label {
      font-size: 12px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: .04em;
      display: block;
      margin-bottom: 8px;
    }

    input, select, textarea {
      width: 100%;
      border: 1px solid #d8dbe3;
      border-radius: 10px;
      min-height: 48px;
      padding: 12px 13px;
      font: inherit;
      background: #fff;
    }

    textarea {
      min-height: 120px;
      resize: vertical;
    }

    .full { grid-column: 1 / -1; }

    .helper {
      color: var(--gray);
      font-size: 13px;
      margin-top: 8px;
    }

    .referral-preview {
      background: var(--light-gray);
      border-radius: 16px;
      padding: 18px;
      color: #3f4654;
      margin: 18px 0;
      font-size: 15px;
    }

    .copy-row {
      display: flex;
      gap: 12px;
      align-items: center;
      flex-wrap: wrap;
      margin-bottom: 20px;
    }

    .copy-note {
      color: var(--gray);
      font-size: 13px;
    }

    .faq {
      display: grid;
      gap: 12px;
      margin-top: 24px;
    }

    details {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: 18px 20px;
    }

    summary {
      cursor: pointer;
      font-weight: 900;
      font-size: 18px;
    }

    details p {
      color: var(--gray);
      margin: 12px 0 0;
    }

    .final {
      text-align: center;
      background: var(--black);
      color: var(--white);
      padding: clamp(42px, 7vw, 76px) 20px;
      border-radius: 30px;
      margin-bottom: 60px;
    }

    .final h2 {
      font-size: clamp(34px, 5vw, 62px);
      letter-spacing: -0.06em;
      line-height: .96;
      margin: 0 auto 18px;
      max-width: 850px;
    }

    .final p {
      margin: 0 auto 28px;
      max-width: 740px;
      color: #d6d6d6;
      font-size: 19px;
    }

    .disclaimer {
      color: #767b86;
      font-size: 12px;
      line-height: 1.5;
      margin-top: 22px;
    }

    .sticky-mobile {
      display: none;
    }

    @media (max-width: 900px) {
      .split, .story {
        grid-template-columns: 1fr;
      }

      .trust-strip, .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .strategy-steps {
        grid-template-columns: 1fr;
      }

      .quote-head {
        align-items: flex-start;
        flex-direction: column;
      }

      h1 {
        font-size: clamp(52px, 16vw, 90px);
      }
    }

    @media (max-width: 620px) {
      .container {
        width: min(100% - 24px, var(--max));
      }

      .nav-inner {
        align-items: flex-start;
      }

      .brand {
        font-size: 11px;
      }

      .brand-mark {
        width: 42px;
        height: 42px;
      }

      .nav-cta {
        display: none;
      }

      .hero-card {
        padding: 30px 18px;
        border-radius: 22px;
      }

      .hero-card:before {
        left: 18px;
        right: 18px;
      }

      h1 {
        letter-spacing: -0.08em;
      }

      .btn {
        width: 100%;
      }

      .trust-strip, .benefits-grid, .form-grid {
        grid-template-columns: 1fr;
      }

      .full { grid-column: auto; }

      .section {
        padding: 30px 0;
      }

      .sticky-mobile {
        display: block;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 20;
      }

      .sticky-mobile .btn {
        box-shadow: 0 10px 30px rgba(0,0,0,.25);
      }

      body {
        padding-bottom: 84px;
      }
    }
  

/* ── Form interaction helpers (teacher landing) ───────────────────── */
/* Honeypot: visually + AT hidden, but present in the DOM so naive bots
   fill it and trip the backend's check. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.is-hidden { display: none !important; }
.form-status {
  margin-top: 16px;
  font-weight: 700;
  font-size: 15px;
}
.form-status.error { color: var(--red-dark); }
.form-status.ok { color: #0a7d33; }
.thanks-card {
  text-align: center;
  padding: 8px 0 4px;
}
.thanks-card .check-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(10,125,51,.12);
  color: #0a7d33;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 900;
}
button[disabled] { opacity: .6; cursor: progress; }

/* ── Inline field validation (mirrors the RHA application) ─────────── */
.field-error {
  margin-top: 6px;
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
input.input-invalid,
select.input-invalid,
textarea.input-invalid {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(229, 37, 40, .12);
}

/* ── Smooth in-page navigation ────────────────────────────────────── */
/* All anchor CTAs ("Review — Before You Renew", "Show Me Better
   Options", the sticky mobile bar, etc.) glide to their target instead
   of jumping. Accessibility: honour prefers-reduced-motion. */
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
/* Breathing room so an anchored section's heading lands a touch below
   the viewport top, not flush against it. */
#quote,
#strategy,
#referral {
  scroll-margin-top: 28px;
}
