/* =========================================================
   המרכז הארצי לזכויות מס – Styles
   Professional Institutional Design | gov.il Standard
   ========================================================= */

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

/* ---- Design Tokens (Israeli Government Design System) ---- */
:root {
  /* Official gov.il primary blue */
  --gov-blue:        #0038A8;
  --gov-blue-dark:   #002880;
  --gov-blue-hover:  #002E99;
  --gov-blue-light:  #EBF0FF;
  --gov-blue-mid:    #B3C6F5;

  --text-primary:    #1A1F36;
  --text-secondary:  #4B5563;
  --text-muted:      #6B7280;

  --bg-white:        #FFFFFF;
  --bg-light:        #F3F5F9;
  --bg-subtle:       #EAECF2;

  --border:          #CAD0DC;
  --border-light:    #E4E8EF;

  --success:         #0D7A3E;
  --success-bg:      #D1F0E0;
  --error:           #B91C1C;

  --radius-sm: 3px;
  --radius:    5px;
  --radius-md: 7px;
  --radius-lg: 10px;

  --font:      'Assistant', Arial, sans-serif;
  --ease:      0.18s ease;
  --font-base: 16px;
}

/* ---- Base ---- */
html {
  font-size: var(--font-base);
  scroll-behavior: smooth;
  direction: rtl;
}

body {
  font-family: var(--font);
  background: var(--bg-light);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Accessibility ---- */

/*
 * High-contrast mode is implemented by overriding CSS custom properties and
 * a small set of hardcoded colours.  We intentionally do NOT use
 * `filter: contrast()` on <body> because that creates a new CSS containing
 * block for `position:fixed` children, which makes the accessibility FAB and
 * panel scroll off-screen instead of staying fixed in the viewport.
 */
body.a11y-contrast {
  /* Re-map design tokens to high-contrast values */
  --text-primary:    #000000;
  --text-secondary:  #000000;
  --text-muted:      #111111;
  --bg-white:        #FFFFFF;
  --bg-light:        #FFFFFF;
  --bg-subtle:       #EEEEEE;
  --border:          #000000;
  --border-light:    #333333;
  --gov-blue:        #0000CC;
  --gov-blue-dark:   #00008B;
  --gov-blue-hover:  #000077;
  --gov-blue-light:  #E0E0FF;
  --gov-blue-mid:    #8888EE;
  --success:         #004400;
  --success-bg:      #CCFFCC;
  --error:           #880000;
}

/* Hero banner – uses mostly hardcoded colours */
body.a11y-contrast .hero-section              { background: #000066; }
body.a11y-contrast .hero-title,
body.a11y-contrast .hero-subtitle,
body.a11y-contrast .hero-bullets li           { color: #FFFFFF; }
body.a11y-contrast .hero-title .highlight,
body.a11y-contrast .stat-num,
body.a11y-contrast .bullet-check              { color: #AADDFF; }
body.a11y-contrast .hero-disclaimer           { color: rgba(255,255,255,0.85); }
body.a11y-contrast .stat-card                 { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.4); }
body.a11y-contrast .stat-desc                 { color: #FFFFFF; }
body.a11y-contrast .btn-hero                  { background: #FFFFFF !important; color: #000066 !important; border-color: #FFFFFF !important; }
body.a11y-contrast .btn-hero:hover,
body.a11y-contrast .btn-hero:focus-visible    { background: #E0E0FF !important; border-color: #E0E0FF !important; color: #000044 !important; }

/* a11y reset button – has hardcoded reddish palette */
body.a11y-contrast .a11y-reset               { background: #FFF0F0; border-color: #880000; color: #880000; }
body.a11y-contrast .a11y-reset:hover         { background: #FFE0E0; }
body.a11y-contrast .a11y-reset .a11y-option-icon { color: #880000; }

/* Ensure the accessibility FAB and panel are always clearly visible,
   independently of every other style change. */
body.a11y-contrast .a11y-fab {
  background: #00008B;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 2px #00008B, 0 2px 8px rgba(0,0,0,0.5);
}
body.a11y-contrast .a11y-fab:hover,
body.a11y-contrast .a11y-fab:focus-visible   { background: #0000CC; }
body.a11y-contrast .a11y-panel               { border: 2px solid #000000; }
body.a11y-contrast .a11y-panel-header        { background: #00008B; }
body.a11y-contrast .a11y-title               { color: #FFFFFF; }
body.a11y-contrast .a11y-close-btn           { color: rgba(255,255,255,0.9); }
body.a11y-contrast .a11y-section-label       { color: #111111; }
body.a11y-contrast .a11y-text-ctrl          { border-color: #000000; }
body.a11y-contrast .a11y-size-btn            { background: #EEEEEE; border-color: #000000; color: #000000; }
body.a11y-contrast .a11y-size-btn:hover,
body.a11y-contrast .a11y-size-btn:focus-visible { background: #E0E0FF; color: #000066; }
body.a11y-contrast .a11y-size-display        { background: #FFFFFF; border-color: #000000; color: #000000; }
body.a11y-contrast .a11y-option-btn          { background: #FFFFFF; border: 2px solid #000000; color: #000000; }
body.a11y-contrast .a11y-option-btn:hover,
body.a11y-contrast .a11y-option-btn:focus-visible { background: #E0E0FF; border-color: #0000CC; color: #000000; }
body.a11y-contrast .a11y-option-btn[aria-checked="true"],
body.a11y-contrast .a11y-option-btn.active   { background: #00008B; color: #FFFFFF; border-color: #00008B; }
body.a11y-contrast .a11y-option-btn[aria-checked="true"] .a11y-option-icon { color: #FFFFFF; }

/* Text scaling: must target html so rem units (relative to html) scale correctly */
html.a11y-text-lg  { font-size: calc(var(--font-base) * 1.15); }
html.a11y-text-xl  { font-size: calc(var(--font-base) * 1.30); }
body.a11y-links a  {
  outline: 2px solid var(--gov-blue) !important;
  text-decoration: underline !important;
}
body.a11y-no-anim *,
body.a11y-no-anim *::before,
body.a11y-no-anim *::after {
  animation-duration: 0.001ms !important;
  transition-duration: 0.001ms !important;
}

:focus-visible {
  outline: 2px solid var(--gov-blue);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--gov-blue);
  color: #fff;
  border-color: var(--gov-blue);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--gov-blue-hover);
  border-color: var(--gov-blue-hover);
}

.btn-outline {
  background: transparent;
  color: var(--gov-blue);
  border-color: var(--gov-blue);
}
.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--gov-blue-light);
}

.btn-large { padding: 14px 32px; font-size: 1.05rem; }
.btn-hero  {
  padding: 16px 38px;
  font-size: 1.15rem;
  font-weight: 800;
  background: #ffffff !important;
  color: var(--gov-blue) !important;
  border-color: #ffffff !important;
  box-shadow: 0 3px 14px rgba(0,0,0,0.22);
  letter-spacing: 0.02em;
}
.btn-hero:hover,
.btn-hero:focus-visible {
  background: #eef2ff !important;
  border-color: #eef2ff !important;
  color: var(--gov-blue-dark) !important;
}
.btn-arrow { font-size: 1.05em; }

/* ============================================================
   ACCESSIBILITY FAB & PANEL (gov.il standard)
   ============================================================ */
.a11y-fab {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  background: var(--gov-blue-dark);
  color: #fff;
  border: 2px solid transparent;
  border-radius: 50px;
  padding: 10px 18px 10px 14px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,56,168,0.30);
  transition: background var(--ease), box-shadow var(--ease);
}
.a11y-fab:hover,
.a11y-fab:focus-visible {
  background: var(--gov-blue);
  box-shadow: 0 4px 16px rgba(0,56,168,0.40);
}
.a11y-fab-icon { flex-shrink: 0; }
.a11y-fab-label { font-size: 0.875rem; }

.a11y-panel {
  position: fixed;
  bottom: 78px;
  left: 24px;
  z-index: 9998;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  width: 248px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.14);
  display: none;
  overflow: hidden;
}
.a11y-panel.open { display: block; }

/* Panel header – gov.il blue bar */
.a11y-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gov-blue-dark);
  color: #fff;
  padding: 11px 14px;
}
.a11y-header-icon { flex-shrink: 0; opacity: 0.9; }

.a11y-title {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.a11y-close-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--ease), background var(--ease);
  flex-shrink: 0;
}
.a11y-close-btn:hover,
.a11y-close-btn:focus-visible {
  color: #fff;
  background: rgba(255,255,255,0.2);
}

/* Panel body */
.a11y-panel-body { padding: 14px 14px 12px; }

/* Text-size section */
.a11y-section { margin-bottom: 12px; }
.a11y-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.a11y-text-ctrl {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-white);
}
.a11y-size-btn {
  flex: 0 0 44px;
  height: 38px;
  background: var(--bg-light);
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  transition: background var(--ease), color var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}
.a11y-size-btn:hover,
.a11y-size-btn:focus-visible {
  background: var(--gov-blue-light);
  color: var(--gov-blue);
}
.a11y-size-btn:focus-visible {
  outline: 2px solid var(--gov-blue);
  outline-offset: -2px;
}
.a11y-size-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.a11y-size-btn:disabled:hover { background: var(--bg-light); color: var(--text-primary); }

.a11y-size-display {
  flex: 1;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-right: 1.5px solid var(--border);
  border-left: 1.5px solid var(--border);
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-white);
}

/* Toggle options */
.a11y-options { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }

.a11y-option-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--bg-light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 12px;
  font-family: var(--font);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
  text-align: right;
  width: 100%;
}
.a11y-option-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  color: var(--text-secondary);
  transition: color var(--ease);
}
.a11y-option-btn:hover,
.a11y-option-btn:focus-visible {
  background: var(--gov-blue-light);
  border-color: var(--gov-blue);
}
.a11y-option-btn[aria-checked="true"],
.a11y-option-btn.active {
  background: var(--gov-blue);
  color: #fff;
  border-color: var(--gov-blue);
}
.a11y-option-btn[aria-checked="true"] .a11y-option-icon,
.a11y-option-btn.active .a11y-option-icon { color: #fff; }

.a11y-reset { background: #FFF5F5; border-color: #FECACA; color: var(--error); }
.a11y-reset:hover { background: #FEE2E2; }
.a11y-reset .a11y-option-icon { color: var(--error); }
.a11y-reset[aria-checked="true"],
.a11y-reset.active { background: var(--gov-blue); color: #fff; border-color: var(--gov-blue); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--bg-white);
  border-bottom: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.10);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 0;
  gap: 12px;
  position: relative;
}
.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-main {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gov-blue);
}
.logo-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  position: absolute;
  left: 20px;
}
.header-badge {
  background: var(--gov-blue-light);
  color: var(--gov-blue);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 11px;
  border-radius: var(--radius);
  border: 1px solid rgba(0,56,168,0.25);
}

/* Government logos in header */
.header-gov-logo {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-gov-logo-right {
  right: 20px;
}
.header-gov-logo-left {
  left: 20px;
}
.gov-logo-img {
  height: 54px;
  width: auto;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}
@media (max-width: 640px) {
  .gov-logo-img {
    height: 36px;
  }
  .header-gov-logo-right { right: 8px; }
  .header-gov-logo-left  { left: 8px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  background: var(--gov-blue);
  color: #fff;
  padding: 60px 0 52px;
}
.hero-section > .container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge { display: none; }

.hero-title {
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 18px;
}
.hero-title .highlight { color: #9EC8FF; }

.hero-subtitle {
  font-size: 1.18rem;
  color: rgba(255,255,255,0.9);
  margin: 0 auto 24px;
  line-height: 1.65;
  max-width: 550px;
}
.hero-bullets {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-bottom: 30px;
}
.hero-bullets li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.02rem;
  font-weight: 600;
  color: rgba(255,255,255,0.93);
}
.bullet-check { color: #9EC8FF; }
.hero-disclaimer {
  margin: 16px auto 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  max-width: 500px;
}

/* Hero stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}
.stat-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-md);
  padding: 18px 12px;
  text-align: center;
}
.stat-num {
  font-size: 1.55rem;
  font-weight: 800;
  color: #9EC8FF;
  line-height: 1.1;
}
.stat-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
  margin-top: 5px;
}

/* ============================================================
   QUESTIONNAIRE
   ============================================================ */
.questionnaire-section {
  padding: 48px 0;
  background: var(--bg-light);
}
.quiz-wrapper {
  max-width: 640px;
  margin: 0 auto;
}
.quiz-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gov-blue);
  border-radius: var(--radius-md);
  padding: 30px 28px;
}

/* Quiz header */
.quiz-header { margin-bottom: 22px; }

.quiz-badge {
  display: inline-block;
  background: var(--gov-blue-light);
  color: var(--gov-blue);
  font-size: 0.83rem;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: var(--radius);
  margin-bottom: 9px;
  border: 1px solid rgba(0,56,168,0.18);
}
.success-badge {
  background: var(--success-bg);
  color: var(--success);
  border-color: rgba(13,122,62,0.2);
}

.quiz-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gov-blue);
  margin-bottom: 14px;
}
.quiz-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: -8px;
  margin-bottom: 4px;
}

/* Progress bar */
.progress-bar-wrapper { display: flex; flex-direction: column; gap: 5px; }
.progress-bar-track {
  width: 100%;
  height: 5px;
  background: var(--bg-subtle);
  border-radius: 50px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--gov-blue);
  border-radius: 50px;
  transition: width 0.35s ease;
  width: 0%;
}
.progress-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-align: left;
}

/* Question */
.question-area { min-height: 130px; }
.question-block { animation: fadeInQuestion 0.22s ease; }
@keyframes fadeInQuestion {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.question-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Answer buttons */
.answer-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.answer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 14px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1.12rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid var(--border);
  background: var(--bg-white);
  color: var(--text-primary);
  transition: border-color var(--ease), background var(--ease), color var(--ease), opacity var(--ease);
  letter-spacing: 0.02em;
  min-height: 58px;
}
.answer-btn:focus-visible {
  border-color: var(--gov-blue);
  background: var(--gov-blue-light);
  color: var(--gov-blue);
}
.answer-btn:disabled { cursor: default; }

/* Hover ONLY on devices with real pointer (not touch) */
@media (hover: hover) {
  .answer-btn:hover {
    border-color: var(--gov-blue);
    background: var(--gov-blue-light);
    color: var(--gov-blue);
  }
  .answer-btn.yes-btn:hover {
    border-color: var(--success);
    background: var(--success-bg);
    color: var(--success);
  }
  .answer-btn.no-btn:hover {
    border-color: #6B7280;
    background: #F3F4F6;
    color: #374151;
  }
}

/* Selected states — shown briefly before advancing */
.answer-btn.yes-btn.selected {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
  opacity: 0.9;
}
.answer-btn.no-btn.selected {
  border-color: #4B5563;
  background: #4B5563;
  color: #fff;
  opacity: 0.9;
}

/* Hide emoji wrapper in answer buttons */
.answer-icon { display: none; }

/* Quiz nav */
.quiz-nav {
  margin-top: 16px;
  display: flex;
  justify-content: flex-start;
}
.btn-back { font-size: 0.88rem; padding: 9px 15px; }

/* ============================================================
   LEAD FORM
   ============================================================ */
.lead-form { display: flex; flex-direction: column; gap: 15px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}
.required { color: var(--error); margin-right: 2px; }
.optional  { font-size: 0.79rem; font-weight: 400; color: var(--text-muted); }

.form-input {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-white);
  transition: border-color var(--ease), box-shadow var(--ease);
  direction: rtl;
  text-align: right;
}
.form-input:focus {
  outline: none;
  border-color: var(--gov-blue);
  box-shadow: 0 0 0 3px rgba(0,56,168,0.10);
}
.form-input.error { border-color: var(--error); }
.form-input::placeholder { color: #9CA3AF; }

.field-error {
  font-size: 0.79rem;
  color: var(--error);
  font-weight: 600;
  min-height: 16px;
  display: block;
}

/* Consent */
.consent-group { display: flex; flex-direction: column; gap: 10px; }

/* White official-looking consent text box */
.consent-box {
  background: #fff;
  border: 2px solid var(--gov-blue);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  max-height: 130px;
  overflow-y: auto;
}

.consent-label { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; }
.consent-checkbox {
  width: 20px;
  height: 20px;
  min-width: 20px;
  accent-color: var(--gov-blue);
  margin-top: 1px;
  cursor: pointer;
  border: 2px solid var(--gov-blue);
}
.consent-text {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.consent-confirm-text {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}
.consent-link { color: var(--gov-blue); text-decoration: underline; }

/* Submit */
.btn-submit {
  width: 100%;
  padding: 15px 20px;
  font-size: 1.07rem;
  font-weight: 700;
  border-radius: var(--radius);
  white-space: nowrap;
  text-align: center;
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.btn-submit:disabled { opacity: 0.62; cursor: not-allowed; }

/* Trust row */
.form-trust-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: -4px;
}
.trust-item {
  font-size: 0.79rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

/* ============================================================
   THANK YOU
   ============================================================ */
.thankyou-card { text-align: center; }
.thankyou-icon {
  font-size: 3.2rem;
  margin-bottom: 11px;
  animation: popIn 0.3s ease;
}
@keyframes popIn {
  from { transform: scale(0.6); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.thankyou-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--gov-blue);
  margin-bottom: 11px;
}
.thankyou-text {
  font-size: 0.96rem;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 18px;
}
.thankyou-info-box {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--gov-blue-light);
  border: 1px solid rgba(0,56,168,0.2);
  border-radius: var(--radius-md);
  padding: 10px 17px;
  font-size: 0.91rem;
  font-weight: 600;
  color: var(--gov-blue);
  margin-bottom: 14px;
}
.thankyou-info-box--instant {
  background: #edfff3;
  border-color: #22c55e;
  color: #15803d;
}
.thankyou-small { font-size: 0.83rem; color: var(--text-muted); }

/* Free badge line in form-step header */
.free-badge-line { margin-top: 6px; margin-bottom: 6px; }
.free-badge {
  display: inline-block;
  background: #edfff3;
  color: #15803d;
  border: 1.5px solid #22c55e;
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.9rem;
  font-weight: 700;
}

/* Trust list below form-step header */
.form-trust-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-trust-list li {
  font-size: 0.87rem;
  color: var(--text-primary);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-weight: 500;
  line-height: 1.5;
  text-align: right;
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section {
  background: var(--bg-white);
  padding: 52px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.section-header { text-align: center; margin-bottom: 34px; }
.section-title {
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--gov-blue);
  margin-bottom: 7px;
  line-height: 1.3;
}
.section-subtitle { font-size: 0.95rem; color: var(--text-muted); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}
.stat-big-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gov-blue);
  border-radius: var(--radius-md);
  padding: 22px 16px;
  text-align: center;
}
.stat-big-card.highlight-card { background: var(--gov-blue-light); }
.stat-big-icon { font-size: 1.7rem; margin-bottom: 5px; }
.stat-big-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gov-blue);
  margin-bottom: 5px;
}
.stat-big-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.stats-cta { text-align: center; }

/* ============================================================
   REFUND SECTION
   ============================================================ */
.refund-section {
  padding: 52px 0;
  background: var(--bg-light);
}
.refund-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.refund-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-right: 3px solid var(--gov-blue);
  border-radius: var(--radius);
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
  transition: background var(--ease);
}
.refund-item:hover { background: var(--gov-blue-light); }
.refund-icon { font-size: 1.25em; flex-shrink: 0; }
.refund-label { flex: 1; }

/* ============================================================
   WHY US
   ============================================================ */
.why-section {
  background: var(--bg-white);
  padding: 52px 0;
  border-top: 1px solid var(--border-light);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}
.why-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  border-top: 3px solid transparent;
  transition: border-top-color var(--ease), background var(--ease);
}
.why-card:hover {
  border-top-color: var(--gov-blue);
  background: var(--gov-blue-light);
}
.why-icon { font-size: 1.75rem; margin-bottom: 7px; }
.why-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 5px;
}
.why-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Bonuses */
.bonuses-section {
  background: var(--gov-blue-light);
  border: 1px solid rgba(0,56,168,0.15);
  border-radius: var(--radius-md);
  padding: 26px 22px;
}
.bonuses-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--gov-blue);
  margin-bottom: 16px;
  text-align: center;
}
.bonuses-grid { display: flex; flex-direction: column; gap: 10px; }
.bonus-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 13px 15px;
  border: 1px solid var(--border-light);
}
.bonus-icon { font-size: 1.4em; flex-shrink: 0; margin-top: 1px; }
.bonus-item strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.94rem;
  margin-bottom: 2px;
}
.bonus-item p { font-size: 0.83rem; color: var(--text-secondary); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
  background: var(--bg-light);
  padding: 52px 0;
}
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--ease);
}
.faq-item:hover { border-color: var(--gov-blue); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  text-align: right;
  transition: background var(--ease);
}
.faq-question:hover,
.faq-question:focus-visible { background: var(--bg-light); }
.faq-question[aria-expanded="true"] {
  color: var(--gov-blue);
  background: var(--gov-blue-light);
}
.faq-arrow {
  font-size: 0.7rem;
  color: var(--gov-blue);
  transition: transform var(--ease);
  flex-shrink: 0;
}
.faq-question[aria-expanded="true"] .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  padding: 12px 20px 16px;
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.65;
  border-top: 1px solid var(--border-light);
}
.faq-answer[hidden] { display: none; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-section {
  background: var(--gov-blue);
  padding: 52px 0;
}
.pricing-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  border-top: 4px solid var(--gov-blue);
}
.pricing-badge {
  display: inline-block;
  background: var(--gov-blue-light);
  color: var(--gov-blue);
  font-size: 0.81rem;
  font-weight: 700;
  padding: 3px 13px;
  border-radius: var(--radius);
  margin-bottom: 9px;
  border: 1px solid rgba(0,56,168,0.18);
}
.pricing-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gov-blue);
  margin-bottom: 16px;
}
.pricing-main {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 20px;
}
.pricing-percent {
  font-size: 2.7rem;
  font-weight: 800;
  color: var(--gov-blue);
  line-height: 1;
}
.pricing-plus {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text-muted);
}
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  text-align: right;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}
.pricing-features li span { color: var(--success); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--gov-blue-dark);
  color: rgba(255,255,255,0.68);
  padding: 30px 0;
  border-top: 2px solid rgba(255,255,255,0.08);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  text-align: center;
}
.footer-logo { display: flex; align-items: center; gap: 8px; }
.footer-logo-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}
.footer-disclaimer {
  font-size: 0.77rem;
  line-height: 1.55;
  max-width: 580px;
  color: rgba(255,255,255,0.48);
}
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.32); }

/* ============================================================
   RESPONSIVE — Tablet (≤900px)
   ============================================================ */
@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
  }
  .why-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-stats {
    grid-template-columns: 1fr 1fr 1fr;
    max-width: 100%;
    margin: 0 auto;
  }
  .stat-num { font-size: 1.3rem; }
}

/* ≤768px: hero stats switch to 1 column to avoid cramping */
@media (max-width: 768px) {
  .hero-stats { grid-template-columns: 1fr; max-width: 320px; }
  .stat-num   { font-size: 1.5rem; }
}

/* ============================================================
   RESPONSIVE — Mobile (≤600px)
   ============================================================ */
@media (max-width: 600px) {
  :root { --font-base: 15px; }

  .header-badge { display: none; }

  .hero-section  { padding: 36px 0 30px; }
  .hero-title    { font-size: 1.75rem; }
  .hero-subtitle { font-size: 1rem; }
  .btn-hero      { padding: 14px 26px; font-size: 1rem; }
  .hero-stats    { grid-template-columns: 1fr; max-width: 300px; }

  .quiz-card     { padding: 20px 15px; }
  .quiz-title    { font-size: 1.12rem; }
  .question-text { font-size: 0.98rem; }
  .answer-btns   { grid-template-columns: 1fr; gap: 9px; }
  .answer-btn    { padding: 15px 12px; font-size: 1rem; }

  .refund-grid   { grid-template-columns: 1fr; }

  .pricing-card    { padding: 26px 16px; }
  .pricing-percent { font-size: 2.2rem; }

  .a11y-fab    { bottom: 16px; left: 16px; padding: 8px 14px 8px 12px; font-size: 0.82rem; }
  .a11y-panel  { left: 16px; bottom: 66px; width: 220px; }

  .faq-question { font-size: 0.9rem; padding: 13px 15px; }
  .faq-answer   { padding: 10px 15px 14px; }

  .btn-large { padding: 13px 24px; font-size: 0.97rem; }

  .why-grid   { max-width: 100%; }
  .stats-grid { max-width: 100%; }
  .hero-stats { max-width: 100%; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .a11y-fab, .a11y-panel, .site-header { display: none; }
}
