/* ═══════════════════════════════════════════════════════════════════════════
   AMERISTEAD HEALTH — AGENT TRAINING PORTAL
   Brand: Navy #1D3461 · Red #CC2020 · White #FFFFFF
   Fonts: Montserrat (headings) · Inter (body)
═══════════════════════════════════════════════════════════════════════════ */

/* ── CSS Variables ──────────────────────────────────────────────────────── */
:root {
  --navy:       #1D3461;
  --navy-mid:   #2E4B8F;
  --navy-light: #3A5FA0;
  --navy-pale:  #EEF2FA;
  --red:        #CC2020;
  --red-dark:   #A81A1A;
  --red-pale:   #FFF0F0;
  --white:      #FFFFFF;
  --off-white:  #F5F7FA;
  --border:     #DDE3F0;
  --text-dark:  #1A1F36;
  --text-mid:   #4A5568;
  --text-light: #8896B0;
  --green:      #16A34A;
  --green-pale: #F0FDF4;
  --amber:      #D97706;
  --amber-pale: #FFFBEB;
  --shadow-sm:  0 2px 8px rgba(29,52,97,.10);
  --shadow-md:  0 8px 32px rgba(29,52,97,.14);
  --shadow-lg:  0 20px 60px rgba(29,52,97,.18);
  --radius:     12px;
  --radius-lg:  20px;
  --transition: .22s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--off-white);
  color: var(--text-dark);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4 { font-family: 'Montserrat', sans-serif; line-height: 1.2; }

img { max-width: 100%; }

/* ── Accessibility ──────────────────────────────────────────────────────── */
.skip-link {
  position: fixed; top: -100%; left: 50%; transform: translateX(-50%);
  background: var(--navy); color: #fff; padding: 10px 20px;
  border-radius: 0 0 8px 8px; font-weight: 600; z-index: 9999;
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 0; }

*:focus-visible {
  outline: 3px solid var(--navy-mid);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Screen Show/Hide ───────────────────────────────────────────────────── */
.screen { display: flex; flex-direction: column; min-height: 100vh; }
.hidden { display: none !important; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: .9rem; letter-spacing: .04em;
  padding: 12px 28px; border-radius: 8px; border: none;
  cursor: pointer; transition: var(--transition);
  text-transform: uppercase; white-space: nowrap; user-select: none;
}
.btn:disabled { opacity: .55; cursor: not-allowed; filter: grayscale(40%); }

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(204,32,32,.35);
}
.btn-primary:not(:disabled):hover {
  background: linear-gradient(135deg, #d42424, #921515);
  box-shadow: 0 6px 20px rgba(204,32,32,.45);
  transform: translateY(-1px);
}
.btn-primary:not(:disabled):active { transform: translateY(0); }

.btn-secondary {
  background: var(--navy-pale); color: var(--navy);
  border: 2px solid var(--border);
}
.btn-secondary:not(:disabled):hover { background: var(--border); }

.btn-ghost {
  background: transparent; color: var(--text-mid);
  border: 2px solid var(--border);
}
.btn-ghost:not(:disabled):hover { background: var(--off-white); color: var(--navy); }

.btn-lg { font-size: 1rem; padding: 15px 36px; }
.btn-full { width: 100%; }

/* ── Confetti Canvas ────────────────────────────────────────────────────── */
#confetti-canvas {
  position: fixed; inset: 0; pointer-events: none;
  z-index: 900; width: 100%; height: 100%;
}

/* ── Modals ─────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10,20,50,.65);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 950; padding: 20px;
  animation: fadeIn .3s ease;
}

.modal-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 44px 40px; max-width: 520px; width: 100%;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: slideUp .35s cubic-bezier(.34,1.56,.64,1);
}

/* Pass modal */
.modal-card--pass { border-top: 6px solid var(--green); }
.pass-icons { font-size: 2rem; margin-bottom: 12px; letter-spacing: 4px; }
.pass-title {
  font-size: 2rem; font-weight: 900; color: var(--navy);
  letter-spacing: .06em; margin-bottom: 6px;
}
.pass-name { font-size: 1.1rem; font-weight: 700; color: var(--navy-mid); margin-bottom: 16px; }
.pass-message { font-size: 1rem; color: var(--text-mid); line-height: 1.6; margin-bottom: 20px; }
.pass-details {
  background: var(--green-pale); border-radius: 10px;
  padding: 16px 20px; text-align: left; font-size: .9rem;
  color: #166534; margin-bottom: 20px; line-height: 1.8;
}
.pass-confetti-note {
  font-size: .95rem; color: var(--text-light); font-style: italic;
  animation: pulse 2s ease-in-out infinite;
}

/* Fail modal */
.modal-card--fail { border-top: 6px solid var(--amber); }
.fail-icon { font-size: 2.5rem; margin-bottom: 10px; }
.fail-title { font-size: 1.6rem; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.fail-score { font-size: 2.8rem; font-weight: 900; color: var(--red); margin-bottom: 4px; }
.fail-message { font-size: .95rem; color: var(--text-mid); margin-bottom: 16px; line-height: 1.6; }
.fail-wrong {
  text-align: left; font-size: .85rem; color: var(--text-mid);
  background: var(--amber-pale); border-radius: 8px;
  padding: 12px 16px; margin-bottom: 20px; line-height: 1.8;
}
.fail-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════════════════════
   REGISTRATION SCREEN
═══════════════════════════════════════════════════════════════════════════ */
.screen-registration {
  align-items: center; justify-content: center;
  min-height: 100vh; padding: 24px;
  background: linear-gradient(145deg, var(--navy) 0%, #1a2d58 40%, #0d1f40 100%);
  position: relative; overflow: hidden;
}

/* Decorative star background */
.reg-bg {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.reg-bg-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.12) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,.08) 1.5px, transparent 1.5px);
  background-size: 60px 60px, 120px 120px;
  background-position: 0 0, 30px 30px;
}
/* Diagonal accent lines */
.screen-registration::before {
  content: '';
  position: absolute; top: -30%; right: -10%;
  width: 600px; height: 600px;
  background: linear-gradient(135deg, rgba(204,32,32,.15), transparent);
  border-radius: 50%;
  pointer-events: none;
}
.screen-registration::after {
  content: '';
  position: absolute; bottom: -20%; left: -10%;
  width: 400px; height: 400px;
  background: linear-gradient(135deg, rgba(46,75,143,.4), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.reg-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  max-width: 540px; width: 100%;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.1);
  position: relative; z-index: 1;
  animation: slideUp .4s cubic-bezier(.34,1.2,.64,1);
}

.reg-logo-wrap {
  text-align: center;
  padding-bottom: 24px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
}
.reg-logo { height: auto; width: auto; max-height: 80px; max-width: 85%; object-fit: contain; }

.reg-badge {
  display: inline-block; background: var(--navy-pale); color: var(--navy);
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px;
  border: 1.5px solid var(--border);
  margin-bottom: 16px;
  max-width: 100%; word-break: break-word; white-space: normal;
}

.reg-heading {
  font-size: 1.85rem; font-weight: 900; color: var(--navy);
  margin-bottom: 8px; letter-spacing: -.01em;
}
.reg-subheading {
  font-size: .92rem; color: var(--text-mid);
  line-height: 1.6; margin-bottom: 28px;
}

/* Form */
.reg-form { display: flex; flex-direction: column; gap: 18px; }

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

.form-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.form-group label {
  font-family: 'Montserrat', sans-serif;
  font-size: .78rem; font-weight: 700;
  color: var(--navy); letter-spacing: .04em; text-transform: uppercase;
  display: flex; align-items: center; gap: 6px;
}
.label-hint { font-weight: 400; color: var(--text-light); text-transform: none; letter-spacing: 0; }

.form-group input {
  border: 2px solid var(--border); border-radius: 8px;
  padding: 12px 14px; font-family: 'Inter', sans-serif;
  font-size: .95rem; color: var(--text-dark);
  background: var(--off-white);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.form-group input::placeholder { color: var(--text-light); }
.form-group input:focus {
  border-color: var(--navy-mid); background: #fff;
  box-shadow: 0 0 0 3px rgba(46,75,143,.15);
  outline: none;
}
.form-group input.error { border-color: var(--red); }

.form-error {
  background: var(--red-pale); border: 1.5px solid #fca5a5;
  border-radius: 8px; padding: 10px 14px;
  font-size: .88rem; color: var(--red-dark);
}

.reg-footer-note {
  text-align: center; font-size: .82rem; color: var(--text-light);
  margin-top: 16px; line-height: 1.5;
}

/* Spinner */
.btn-spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PORTAL HEADER (shared by slideshow + test)
═══════════════════════════════════════════════════════════════════════════ */
.portal-header {
  display: flex; align-items: center; gap: 20px;
  background: linear-gradient(135deg, var(--navy), #263f74);
  padding: 12px 28px; min-height: 68px;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
  position: sticky; top: 0; z-index: 100;
}

.header-logo {
  height: 30px; width: auto;
  background: #fff;
  padding: 6px 16px;
  border-radius: 999px;
}

.header-center { flex: 1; min-width: 0; }

.progress-label {
  font-family: 'Montserrat', sans-serif;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.7);
  margin-bottom: 5px;
}

.progress-bar-wrap {
  background: rgba(255,255,255,.2); border-radius: 99px;
  height: 6px; overflow: hidden;
}
.progress-bar-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #f87171, var(--red));
  transition: width .4s cubic-bezier(.4,0,.2,1);
  width: 0%;
}

.header-agent {
  font-family: 'Montserrat', sans-serif; font-size: .78rem;
  font-weight: 600; color: rgba(255,255,255,.75);
  text-align: right; white-space: nowrap; letter-spacing: .02em;
}

.header-badge {
  font-family: 'Montserrat', sans-serif; font-size: .7rem;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.8); white-space: nowrap;
  background: rgba(255,255,255,.15); padding: 5px 12px; border-radius: 20px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SLIDESHOW SCREEN
═══════════════════════════════════════════════════════════════════════════ */
.screen-slideshow {
  background: linear-gradient(160deg, #0f1d38 0%, #1a2d56 100%);
}

.slideshow-body {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; padding: 28px 20px 8px;
  gap: 0;
}

/* ── Slide Container ── */
.slide-container {
  width: 100%; max-width: 900px;
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.06);
  overflow: hidden; min-height: 460px;
  display: flex; flex-direction: column;
  animation: slideIn .35s cubic-bezier(.4,0,.2,1);
}

/* ── Slide Types ── */
.slide-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  padding: 22px 36px 18px;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px;
}
.slide-header-text { flex: 1; }
.slide-slide-number {
  font-family: 'Montserrat', sans-serif;
  font-size: .65rem; font-weight: 700; letter-spacing: .12em;
  color: rgba(255,255,255,.5); text-transform: uppercase;
  margin-bottom: 4px;
}
.slide-title-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.45rem; font-weight: 800; color: #fff;
  line-height: 1.2;
}
.slide-icon-badge {
  background: rgba(255,255,255,.12); border-radius: 12px;
  padding: 10px 14px; font-size: 1.5rem; flex-shrink: 0;
}

.slide-body {
  flex: 1; padding: 28px 36px 32px;
  display: flex; flex-direction: column;
}

/* ─ Title Slide ─ */
.slide-type-title {
  background: linear-gradient(145deg, var(--navy) 0%, #1a2d58 50%, #0d1f40 100%);
  min-height: 460px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 48px; position: relative; overflow: hidden;
}
.slide-type-title .title-bg-stars {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.slide-type-title .title-accent-left {
  position: absolute; left: -60px; top: 50%; transform: translateY(-50%);
  width: 180px; height: 400px;
  background: linear-gradient(180deg, var(--red) 0%, transparent 100%);
  opacity: .25; border-radius: 0 90px 90px 0;
  pointer-events: none;
}
.slide-type-title .title-accent-right {
  position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: 180px; height: 400px;
  background: linear-gradient(180deg, transparent, var(--navy-light));
  opacity: .3; border-radius: 90px 0 0 90px;
  pointer-events: none;
}
.slide-type-title .title-logo,
.slide-type-cta .title-logo {
  height: 40px; width: auto; margin-bottom: 24px;
  background: #fff;
  padding: 8px 22px;
  border-radius: 999px;
  position: relative; z-index: 1;
}
.slide-type-title .title-divider {
  width: 64px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--red), #f87171);
  margin: 0 auto 20px; position: relative; z-index: 1;
}
.slide-type-title h2 {
  font-size: 2rem; font-weight: 900; color: #fff;
  letter-spacing: .04em; margin-bottom: 10px;
  position: relative; z-index: 1;
}
.slide-type-title .title-subtitle {
  font-size: 1.05rem; color: rgba(255,255,255,.7);
  font-weight: 500; margin-bottom: 24px;
  position: relative; z-index: 1;
}
.slide-type-title .title-meta {
  font-size: .75rem; color: rgba(255,255,255,.45);
  letter-spacing: .08em; text-transform: uppercase;
  position: relative; z-index: 1;
}

/* ─ Bullet Slide ─ */
.slide-bullets { display: flex; flex-direction: column; gap: 16px; }
.slide-bullet-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 18px; border-radius: 10px;
  background: var(--off-white); border: 1.5px solid var(--border);
  font-size: .95rem; color: var(--text-dark); line-height: 1.5;
  transition: var(--transition);
}
.slide-bullet-item.highlight {
  background: var(--navy-pale); border-color: var(--navy-mid);
  color: var(--navy);
}
.slide-bullet-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--red); flex-shrink: 0; margin-top: 5px;
}
.slide-bullet-item.highlight .slide-bullet-dot { background: var(--navy); }
.plan-tiers-row {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px;
}
.plan-tier-badge {
  padding: 7px 16px; border-radius: 20px;
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; box-shadow: var(--shadow-sm);
}

/* ─ Structure / Cards ─ */
.slide-cards-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.slide-info-card {
  background: var(--off-white); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 20px 16px; text-align: center;
  transition: var(--transition);
}
.slide-info-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.card-icon { font-size: 2rem; margin-bottom: 10px; }
.card-label {
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: .88rem; color: var(--navy); margin-bottom: 6px;
}
.card-desc { font-size: .82rem; color: var(--text-mid); line-height: 1.5; }

/* ─ Flow / Steps ─ */
.slide-flow {
  display: flex; align-items: flex-start; gap: 0;
  position: relative;
}
.flow-step {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  text-align: center; position: relative;
}
.flow-step:not(:last-child)::after {
  content: '→';
  position: absolute; right: -18px; top: 20px;
  font-size: 1.4rem; color: var(--red); font-weight: 900; z-index: 1;
}
.flow-icon-wrap {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy); display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 10px; box-shadow: var(--shadow-sm);
}
.flow-label {
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: .82rem; color: var(--navy); margin-bottom: 4px;
}
.flow-sub { font-size: .75rem; color: var(--text-mid); line-height: 1.4; }

/* ─ Eligibility ─ */
.eligibility-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.elig-col { border-radius: 12px; padding: 20px; }
.elig-col--yes { background: var(--green-pale); border: 2px solid #86efac; }
.elig-col--no { background: var(--red-pale); border: 2px solid #fca5a5; }
.elig-col-header {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Montserrat', sans-serif; font-weight: 800;
  font-size: .85rem; text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 14px;
}
.elig-col--yes .elig-col-header { color: #166534; }
.elig-col--no .elig-col-header { color: var(--red-dark); }
.elig-item {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: .85rem; line-height: 1.5; margin-bottom: 10px;
}
.elig-item:last-child { margin-bottom: 0; }
.elig-item-icon { flex-shrink: 0; margin-top: 1px; }
.elig-col--yes .elig-item { color: #166534; }
.elig-col--no .elig-item { color: #7f1d1d; }

/* ─ Numbered Steps ─ */
.slide-steps { display: flex; flex-direction: column; gap: 12px; }
.step-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 14px 18px; background: var(--off-white);
  border: 1.5px solid var(--border); border-radius: 10px;
}
.step-num {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif; font-weight: 800;
  font-size: .9rem;
}
.step-content { flex: 1; }
.step-title {
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: .9rem; color: var(--navy); margin-bottom: 3px;
}
.step-desc { font-size: .83rem; color: var(--text-mid); line-height: 1.4; }

/* ─ Warning Slide ─ */
.warning-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.warning-panel {
  border-radius: 12px; padding: 20px;
  border: 2px solid;
}
.warning-panel--enrollee { background: var(--amber-pale); border-color: #fbbf24; }
.warning-panel--agent { background: var(--red-pale); border-color: #fca5a5; }
.warning-panel-header {
  font-family: 'Montserrat', sans-serif; font-weight: 800;
  font-size: .8rem; text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 12px;
}
.warning-panel--enrollee .warning-panel-header { color: #92400e; }
.warning-panel--agent .warning-panel-header { color: var(--red-dark); }
.warning-item {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: .83rem; line-height: 1.5; margin-bottom: 8px;
}
.warning-item:last-child { margin-bottom: 0; }
.warning-panel--enrollee .warning-item { color: #78350f; }
.warning-panel--agent .warning-item { color: #7f1d1d; }
.warning-callout {
  background: var(--navy); color: #fff;
  border-radius: 10px; padding: 14px 20px;
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: .88rem; text-align: center; line-height: 1.5;
}

/* ─ Comparison (Approved/Declined) ─ */
.comparison-note {
  background: var(--navy-pale); border: 1.5px solid var(--border);
  border-radius: 8px; padding: 10px 16px;
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: .82rem; color: var(--navy); text-align: center;
  margin-bottom: 18px; letter-spacing: .02em;
}
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.comparison-col { border-radius: 12px; padding: 20px; }
.comparison-col--green { background: var(--green-pale); border: 2px solid #86efac; }
.comparison-col--red { background: var(--red-pale); border: 2px solid #fca5a5; }
.comparison-col-label {
  font-family: 'Montserrat', sans-serif; font-weight: 900;
  font-size: .9rem; margin-bottom: 14px;
}
.comparison-col--green .comparison-col-label { color: #166534; }
.comparison-col--red .comparison-col-label { color: var(--red-dark); }
.comparison-item {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: .84rem; line-height: 1.5; margin-bottom: 8px;
}
.comparison-col--green .comparison-item { color: #166534; }
.comparison-col--red .comparison-item { color: #7f1d1d; }

/* ─ Plans Grid ─ */
.plans-grid-layout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan-card {
  border-radius: 12px; padding: 20px 16px; text-align: center;
  border: 2px solid; transition: var(--transition); cursor: default;
}
.plan-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.plan-card-name {
  font-family: 'Montserrat', sans-serif; font-weight: 900;
  font-size: 1.15rem; margin-bottom: 8px;
}
.plan-card-network {
  font-size: .75rem; font-weight: 600;
  padding: 3px 10px; border-radius: 12px;
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: .04em; text-transform: uppercase;
}

/* ─ Features ─ */
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feature-panel {
  background: var(--off-white); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 20px;
}
.feature-panel-header {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Montserrat', sans-serif; font-weight: 800;
  font-size: .85rem; color: var(--navy); margin-bottom: 14px;
}
.feature-icon { font-size: 1.2rem; }
.feature-item {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: .84rem; color: var(--text-mid); line-height: 1.5;
  margin-bottom: 8px;
}
.feature-item:last-child { margin-bottom: 0; }
.feature-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); flex-shrink: 0; margin-top: 6px;
}

/* ─ Out of Network Table ─ */
.oon-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.oon-table th {
  padding: 10px 14px; text-align: left;
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: .75rem; letter-spacing: .06em; text-transform: uppercase;
}
.oon-table th:first-child { color: var(--text-mid); background: var(--off-white); }
.oon-table th.in-net { background: var(--green-pale); color: #166534; border-radius: 8px 0 0 0; }
.oon-table th.out-net { background: var(--red-pale); color: var(--red-dark); border-radius: 0 8px 0 0; }
.oon-table td { padding: 10px 14px; border-bottom: 1.5px solid var(--border); line-height: 1.4; }
.oon-table tr:last-child td { border-bottom: none; }
.oon-table td:first-child { font-weight: 600; color: var(--navy); background: var(--off-white); }
.oon-table td.in-net { background: #f0fdf8; color: #166534; }
.oon-table td.out-net { background: #fff5f5; color: #7f1d1d; font-weight: 600; }

/* ─ Timeline ─ */
.timeline-list { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: flex; align-items: flex-start; gap: 16px;
  position: relative;
}
.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute; left: 25px; top: 50px;
  width: 2px; height: calc(100% - 10px);
  background: var(--border);
}
.timeline-dot {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif; font-weight: 800;
  font-size: .62rem; text-align: center; line-height: 1.1;
  border: 2px solid;
  margin-bottom: 16px; z-index: 1;
}
.timeline-dot.dot-single { font-size: .82rem; }
.timeline-dot.dot-mid { font-size: .62rem; }
.timeline-dot.alert {
  background: var(--red); border-color: var(--red-dark); color: #fff;
}
.timeline-dot.normal {
  background: var(--navy-pale); border-color: var(--navy); color: var(--navy);
}
.timeline-content { flex: 1; padding-bottom: 16px; }
.timeline-date {
  font-family: 'Montserrat', sans-serif; font-weight: 800;
  font-size: .82rem; color: var(--navy); margin-bottom: 2px;
}
.timeline-desc {
  font-size: .85rem; color: var(--text-mid); line-height: 1.4;
}
.timeline-item.alert-item .timeline-date { color: var(--red); }
.zero-exceptions {
  display: inline-block; background: var(--red); color: #fff;
  font-family: 'Montserrat', sans-serif; font-weight: 800;
  font-size: .65rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 4px; margin-left: 8px;
}

/* ─ Contact Slide ─ */
.contact-email-card {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: 14px; padding: 24px 28px;
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 20px;
}
.contact-email-icon { font-size: 2rem; }
.contact-email-label {
  font-family: 'Montserrat', sans-serif; font-size: .7rem;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.6); margin-bottom: 4px;
}
.contact-email-addr {
  font-family: 'Montserrat', sans-serif; font-weight: 800;
  font-size: 1.05rem; color: #fff; letter-spacing: .02em;
}
.contact-rules { display: flex; flex-direction: column; gap: 10px; }
.contact-rule {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .85rem; color: var(--text-mid); line-height: 1.5;
}
.contact-rule-icon { flex-shrink: 0; }

/* ─ CTA Slide ─ */
.slide-type-cta {
  background: linear-gradient(145deg, #0f1d38 0%, #1a2d56 60%, #0d1f40 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 48px; min-height: 460px;
  position: relative; overflow: hidden;
}
.slide-type-cta .cta-bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 40px 40px; pointer-events: none;
}
.slide-type-cta h2 {
  font-size: 2.1rem; font-weight: 900; color: #fff;
  margin-bottom: 10px; position: relative; z-index: 1;
}
.cta-subtitle {
  font-size: 1rem; color: rgba(255,255,255,.7);
  margin-bottom: 28px; position: relative; z-index: 1; line-height: 1.6;
}
.cta-checklist {
  list-style: none; margin-bottom: 32px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative; z-index: 1;
}
.cta-checklist li {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.85); font-size: .92rem;
}
.cta-check {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 900; flex-shrink: 0;
}

/* ── Closed Captions ── */
.cc-bar {
  width: 100%; max-width: 900px; margin-top: 10px;
  background: rgba(10,20,50,.88); border-radius: 10px;
  padding: 10px 18px 10px 14px;
  display: flex; align-items: center; gap: 12px;
  min-height: 44px;
}
.cc-label {
  background: var(--red); color: #fff;
  font-family: 'Montserrat', sans-serif; font-weight: 800;
  font-size: .65rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 4px; flex-shrink: 0;
}
.cc-text {
  flex: 1; font-size: .85rem; color: rgba(255,255,255,.9);
  line-height: 1.4; font-style: italic;
}
.cc-word-highlight { color: #fff; font-weight: 600; font-style: normal; }
.cc-toggle {
  background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.7); border-radius: 6px; padding: 4px 10px;
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: .65rem; letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; transition: var(--transition); flex-shrink: 0;
}
.cc-toggle:hover { background: rgba(255,255,255,.2); color: #fff; }
.cc-bar.cc-hidden .cc-text { opacity: .3; }

/* ── Slide Navigation ── */
.slide-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px 20px; max-width: 900px; width: 100%; margin: 0 auto;
}

.narration-controls {
  display: flex; align-items: center; gap: 10px;
  font-size: .8rem; color: rgba(255,255,255,.65);
  font-family: 'Montserrat', sans-serif; font-weight: 600;
  letter-spacing: .04em;
}
.btn-pause {
  background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.25);
  color: #fff; font-size: .75rem; width: 44px; height: 44px;
  border-radius: 50%; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
  letter-spacing: -1px; padding: 0;
}
.btn-pause:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.4); }
.volume-slider {
  width: 70px; height: 4px; -webkit-appearance: none; appearance: none;
  background: rgba(255,255,255,.2); border-radius: 2px; outline: none;
  cursor: pointer;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px;
  background: #fff; border-radius: 50%; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.volume-slider::-moz-range-thumb {
  width: 14px; height: 14px; background: #fff;
  border-radius: 50%; cursor: pointer; border: none;
}
.narration-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--red); flex-shrink: 0;
}
.narration-dot.pulsing { animation: pulseDot 1.4s ease-in-out infinite; }
.narration-dot.idle { background: rgba(255,255,255,.2); }
.narration-dot.done { background: #22c55e; }

/* ═══════════════════════════════════════════════════════════════════════════
   TEST SCREEN
═══════════════════════════════════════════════════════════════════════════ */
.screen-test {
  background: linear-gradient(160deg, #0f1d38 0%, #1a2d56 100%);
}

.portal-header--test { background: linear-gradient(135deg, #0d1f40, #1D3461); }

.test-body {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; padding: 32px 20px 32px;
  gap: 20px; max-width: 720px; width: 100%; margin: 0 auto;
}

.question-card {
  width: 100%; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: slideIn .3s cubic-bezier(.4,0,.2,1);
}

.question-number {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: rgba(255,255,255,.65);
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 10px 24px;
}

.question-text {
  padding: 24px 28px 8px;
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: 1.1rem; color: var(--navy); line-height: 1.5;
}

.answer-grid {
  padding: 12px 20px 24px;
  display: flex; flex-direction: column; gap: 10px;
}

.answer-tile {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: 10px;
  border: 2px solid var(--border); background: var(--off-white);
  cursor: pointer; transition: var(--transition);
  font-size: .95rem; color: var(--text-dark); line-height: 1.4;
  text-align: left; width: 100%;
}
.answer-tile:hover:not(:disabled) {
  border-color: var(--navy-mid); background: var(--navy-pale);
  color: var(--navy);
}
.answer-tile.selected {
  border-color: var(--navy); background: var(--navy-pale);
  color: var(--navy); font-weight: 600;
}
.answer-tile:focus-visible {
  outline: 3px solid var(--navy-mid); outline-offset: 2px;
}
.answer-letter {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--border); background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif; font-weight: 800;
  font-size: .78rem; color: var(--text-mid); flex-shrink: 0;
  transition: var(--transition);
}
.answer-tile.selected .answer-letter {
  background: var(--navy); border-color: var(--navy); color: #fff;
}
.answer-tile:hover:not(:disabled) .answer-letter {
  border-color: var(--navy-mid); color: var(--navy);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════════════════════════ */
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  0%,100% { opacity: .7; } 50% { opacity: 1; }
}
@keyframes pulseDot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.7); }
}

/* ── Legal Footer ──────────────────────────────────────────────────────── */
.legal-footer {
  text-align: center; padding: 16px 20px;
  font-size: .75rem; color: var(--text-light);
  letter-spacing: .02em;
}
.legal-footer a { color: var(--text-light); text-decoration: underline; }
.legal-footer a:hover { color: var(--navy); }
.legal-footer--dark { color: rgba(255,255,255,.35); }
.legal-footer--dark a { color: rgba(255,255,255,.45); }
.legal-footer--dark a:hover { color: rgba(255,255,255,.7); }

/* ── Reduced Motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    transform: none !important;
  }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  /* Registration */
  .reg-card { padding: 32px 24px; }
  .reg-logo { max-height: 56px; }
  .form-row { grid-template-columns: 1fr; }

  /* Portal header — compact for mobile */
  .portal-header { padding: 8px 12px; gap: 8px; min-height: 52px; flex-wrap: wrap; }
  .header-logo { height: 22px; padding: 4px 10px; }
  .header-center { flex: 1; min-width: 0; }
  .progress-label { font-size: .65rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .header-agent { font-size: .65rem; max-width: 80px; overflow: hidden; text-overflow: ellipsis; }

  /* Slide content */
  .slide-header { padding: 16px 20px; }
  .slide-body { padding: 20px; }
  .slide-title-text { font-size: 1.1rem; }
  .slide-cards-row { grid-template-columns: 1fr; }

  /* Slide 3 flow — centered column on mobile */
  .slide-flow { flex-direction: column; gap: 12px; align-items: center; }
  .flow-step { width: 100%; align-items: center; }
  .flow-step:not(:last-child)::after { content: '↓'; right: auto; left: 50%; top: 100%; transform: translateX(-50%); }

  /* Grids → single column */
  .warning-grid, .comparison-grid, .eligibility-grid, .features-grid { grid-template-columns: 1fr; }
  .plans-grid-layout { grid-template-columns: repeat(2,1fr); }

  /* Slide 11 OON table — tighter columns */
  .oon-table { font-size: .75rem; }
  .oon-table th, .oon-table td { padding: 8px 6px; }
  .oon-table th:first-child, .oon-table td:first-child { width: 28%; }
  .oon-table th.in-net, .oon-table td.in-net { width: 32%; }

  /* Slide 13 contact email — stacked layout */
  .contact-email-card {
    flex-direction: column; text-align: center;
    gap: 8px; padding: 20px 16px;
  }
  .contact-email-addr { font-size: .88rem; word-break: break-all; }

  /* Title + CTA slide logos */
  .slide-type-title .title-logo,
  .slide-type-cta .title-logo { height: auto; max-height: 32px; max-width: 70%; }
  .slide-type-title, .slide-type-cta { padding: 32px 20px; min-height: 360px; }

  /* Slideshow body — don't stretch to fill viewport on mobile */
  .slideshow-body { flex: 0 1 auto; padding: 16px 12px 4px; }
  .slide-container { min-height: auto; }

  /* CC bar — tighter on mobile */
  .cc-bar { margin-top: 4px; margin-bottom: 0; border-radius: 8px; padding: 8px 12px; }

  /* Bottom nav — butted up against CC bar */
  .slide-nav {
    flex-wrap: wrap; justify-content: center; gap: 6px;
    padding: 2px 12px 6px; margin-top: 0;
  }
  .slide-nav > .btn { order: 0; flex: 1; min-width: 0; font-size: .75rem; padding: 10px 12px; }
  .narration-controls { order: 1; width: 100%; justify-content: center; margin-top: 2px; }

  /* Modals */
  .modal-card { padding: 28px 24px; }
  .pass-title { font-size: 1.6rem; }
  .fail-score { font-size: 2.2rem; }
}
