/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a4f8a;
  --primary-dark: #0f3260;
  --primary-light: #e8f0fb;
  --accent: #e85c2a;
  --accent-dark: #c44a1e;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --text: #1a1a2e;
  --text-muted: #5a6480;
  --border: #dde3ef;
  --bg: #f7f9fc;
  --white: #ffffff;
  --card-shadow: 0 2px 16px rgba(26,79,138,0.10);
  --radius: 12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.18s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-secondary { background: var(--white); color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary-light); }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-large { padding: 0.9rem 2.2rem; font-size: 1.1rem; border-radius: 10px; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.9rem; }

/* ===== HEADER ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
}
.logo-icon { font-size: 1.6rem; }
.logo-text { font-size: 1.15rem; font-weight: 600; color: var(--primary); }
.logo-text strong { color: var(--accent); }
.header-nav { display: flex; gap: 1.5rem; }
.header-nav a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.header-nav a:hover { color: var(--primary); text-decoration: none; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #2563ab 100%);
  color: #fff;
  padding: 4rem 0 3.5rem;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 0.3rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}
.hero h1 { color: #fff; margin-bottom: 1rem; }
.highlight { color: #fbbf24; }
.hero-sub { font-size: 1.1rem; opacity: 0.92; max-width: 640px; margin: 0 auto 2rem; }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 1.7rem; font-weight: 800; color: #fbbf24; }
.stat-label { font-size: 0.82rem; opacity: 0.8; }
.disclaimer-mini { margin-top: 0.75rem; font-size: 0.82rem; opacity: 0.72; }

/* ===== AD WRAPPERS ===== */
.ad-wrapper { margin: 1.5rem auto; }
.ad-label { font-size: 0.7rem; color: #aaa; text-align: center; margin-bottom: 0.25rem; letter-spacing: 0.05em; text-transform: uppercase; }
.ad-banner { min-height: 90px; background: #f1f3f7; border-radius: 6px; }

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header p { color: var(--text-muted); margin-top: 0.5rem; font-size: 1.05rem; }

/* ===== WIZARD SECTION ===== */
.wizard-section { padding: 3.5rem 0; }

.wizard-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 2.5rem;
  border: 1px solid var(--border);
}

/* Progress bar */
.progress-bar-wrap { margin-bottom: 2rem; }
.progress-bar-track {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
  transition: width 0.35s ease;
}
.progress-label { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }

/* Questions */
.question { display: none; }
.question.active { display: block; }
.question h3 { margin-bottom: 0.5rem; color: var(--text); }
.q-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  background: #fffbeb;
  border-left: 3px solid var(--warning);
  padding: 0.5rem 0.75rem;
  border-radius: 0 6px 6px 0;
  margin-bottom: 1.5rem;
}

/* Option cards */
.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
}
.options-2 { grid-template-columns: repeat(2, 1fr); }

.option-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  background: var(--white);
}
.option-card:hover { border-color: var(--primary); background: var(--primary-light); }
.option-card input[type="radio"] { display: none; }
.option-card.selected { border-color: var(--primary); background: var(--primary-light); }
.option-card.selected .card-icon { transform: scale(1.15); }
.card-icon { font-size: 1.4rem; flex-shrink: 0; }
.card-text { font-size: 0.95rem; font-weight: 500; line-height: 1.3; }

/* Wizard nav */
.wizard-nav { display: flex; gap: 1rem; justify-content: flex-end; margin-top: 0.5rem; }

/* ===== RESULTS ===== */
.results-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-top: 2rem;
}

.results-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  flex-wrap: wrap;
}

.score-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex-shrink: 0;
  font-size: 1.8rem;
  font-weight: 800;
  background: rgba(255,255,255,0.12);
}
.score-denom { font-size: 0.75rem; font-weight: 400; opacity: 0.7; }
.score-label { font-size: 0.9rem; font-weight: 600; margin-top: 0.25rem; opacity: 0.85; text-align: center; }

.results-intro h2 { color: #fff; margin-bottom: 0.5rem; }
.results-intro p { opacity: 0.9; font-size: 0.95rem; }

.fine-exposure-box {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(220,38,38,0.18);
  border: 1px solid rgba(220,38,38,0.5);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.fine-label { font-size: 0.88rem; }
.fine-amount { font-size: 1.5rem; font-weight: 800; color: #fca5a5; }

/* Checklist */
.checklist-wrap { padding: 2rem 2.5rem; }
.checklist-group { margin-bottom: 1.75rem; }
.checklist-group-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  border: 1px solid var(--border);
}
.checklist-item.ok { background: #f0fdf4; border-color: #bbf7d0; }
.checklist-item.warn { background: #fffbeb; border-color: #fde68a; }
.checklist-item.fail { background: #fef2f2; border-color: #fecaca; }
.item-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 0.1rem; }
.item-content { flex: 1; }
.item-title { font-weight: 600; font-size: 0.95rem; }
.item-desc { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.2rem; }
.item-fine { font-size: 0.8rem; font-weight: 700; color: var(--danger); margin-top: 0.2rem; }
.item-action { font-size: 0.82rem; color: var(--primary); font-weight: 500; margin-top: 0.3rem; }

/* Affiliate section */
.affiliate-section { padding: 1.5rem 2.5rem; background: var(--bg); border-top: 1px solid var(--border); }
.affiliate-section h3 { margin-bottom: 0.5rem; }
.affiliate-section > p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1.25rem; }
.affiliate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 0.75rem; }
.affiliate-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}
.affiliate-card-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.3rem; }
.affiliate-card-desc { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.affiliate-disclaimer { font-size: 0.75rem; color: var(--text-muted); font-style: italic; }

/* Email capture */
.email-capture { padding: 2rem 2.5rem; background: linear-gradient(135deg, #1e3a6e 0%, var(--primary) 100%); color: #fff; }
.email-capture h3 { color: #fff; margin-bottom: 0.5rem; }
.email-capture p { opacity: 0.88; font-size: 0.92rem; margin-bottom: 1.25rem; }
.email-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.email-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
}
.email-legal { font-size: 0.78rem; opacity: 0.65; margin-top: 0.6rem; }

/* Results actions */
.results-actions {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 2.5rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.disclaimer-box {
  margin: 0 2.5rem 1.5rem;
  padding: 1rem 1.25rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #78350f;
  line-height: 1.5;
}

/* ===== PENALTY CALCULATOR ===== */
.penalty-section {
  background: var(--white);
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
}
.calc-card {
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
.calc-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.12s;
}
.calc-row:hover { background: var(--primary-light); }
.calc-row:last-child { border-bottom: none; }
.calc-check { width: 20px; height: 20px; cursor: pointer; accent-color: var(--danger); flex-shrink: 0; }
.calc-item-name { flex: 1; font-size: 0.95rem; font-weight: 500; }
.calc-fine { font-size: 0.88rem; font-weight: 700; color: var(--danger); white-space: nowrap; }
.calc-total-wrap {
  background: #1a1a2e;
  color: #fff;
  padding: 1.5rem 2rem;
  text-align: center;
}
.calc-total-label { font-size: 0.95rem; opacity: 0.8; margin-bottom: 0.3rem; }
.calc-total-amount { font-size: 2.8rem; font-weight: 800; color: #fca5a5; }
.calc-note { font-size: 0.8rem; opacity: 0.6; margin-top: 0.75rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ===== FAQ ===== */
.faq-section { padding: 3.5rem 0; }
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-item summary {
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.97rem;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--primary); font-weight: 400; flex-shrink: 0; margin-left: 1rem; }
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { color: var(--primary); border-bottom: 1px solid var(--border); }
.faq-body { padding: 1rem 1.25rem; font-size: 0.93rem; color: var(--text-muted); line-height: 1.7; }
.faq-body ul { padding-left: 1.25rem; margin-top: 0.5rem; }
.faq-body li { margin-bottom: 0.35rem; }
.faq-body a { color: var(--primary); }

/* ===== RESOURCES ===== */
.resources-section {
  background: var(--white);
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
}
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1rem;
}
.resource-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: relative;
  transition: box-shadow 0.15s;
}
.resource-card:hover { box-shadow: var(--card-shadow); }
.resource-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
  background: var(--primary-light);
  color: var(--primary);
}
.affiliate-badge { background: #fef3c7; color: #92400e; }
.resource-card h4 { margin-bottom: 0.4rem; font-size: 0.97rem; }
.resource-card p { font-size: 0.86rem; color: var(--text-muted); margin-bottom: 0.9rem; }

/* ===== EMAIL SECTION ===== */
.email-section {
  background: linear-gradient(135deg, #0f3260 0%, var(--primary) 100%);
  padding: 3rem 0;
  color: #fff;
  text-align: center;
}
.email-section-inner { max-width: 560px; margin: 0 auto; }
.email-section h2 { color: #fff; margin-bottom: 0.75rem; }
.email-section p { opacity: 0.88; margin-bottom: 1.5rem; }
.email-form-large { justify-content: center; }
.email-form-large input[type="email"] { max-width: 340px; }

/* ===== FOOTER ===== */
.site-footer {
  background: #0f1729;
  color: #a0aec0;
  padding-top: 2.5rem;
}
.footer-inner {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { flex: 1; min-width: 180px; }
.footer-brand .logo-text { color: #fff; }
.footer-brand p { font-size: 0.85rem; margin-top: 0.5rem; color: #6b7a99; }
.footer-links { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.footer-links h5 { color: #fff; font-size: 0.88rem; margin-bottom: 0.6rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.35rem; }
.footer-links a { color: #6b7a99; font-size: 0.85rem; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  padding: 1.25rem 1.25rem;
  font-size: 0.8rem;
  color: #4a5568;
  text-align: center;
}
.footer-bottom a { color: #6b7a99; }

/* ===== RESPONSIVE ===== */
@media (max-width: 680px) {
  .header-nav { display: none; }
  .hero { padding: 2.5rem 0 2rem; }
  .hero-stats { gap: 1.5rem; }
  .options-grid { grid-template-columns: 1fr; }
  .options-2 { grid-template-columns: 1fr; }
  .wizard-card { padding: 1.5rem; }
  .checklist-wrap { padding: 1.5rem; }
  .affiliate-section { padding: 1.5rem; }
  .affiliate-grid { grid-template-columns: 1fr; }
  .email-capture { padding: 1.5rem; }
  .results-actions { padding: 1.25rem 1.5rem; }
  .disclaimer-box { margin: 0 1.5rem 1.5rem; }
  .resources-grid { grid-template-columns: 1fr; }
  .results-header { padding: 1.5rem; gap: 1.25rem; }
  .calc-row { flex-wrap: wrap; }
  .footer-inner { flex-direction: column; gap: 1.5rem; }
  .footer-links { gap: 1.5rem; }
}

@media (max-width: 480px) {
  .hero-stats .stat-num { font-size: 1.3rem; }
  .score-circle { width: 72px; height: 72px; font-size: 1.4rem; }
  .fine-amount { font-size: 1.2rem; }
}

/* ===== EMAILOCTOPUS FORM OVERRIDES ===== */
.emailoctopus-form-wrapper { margin: 0 auto 0.5rem; }
.emailoctopus-form-wrapper .emailoctopus-form { background: transparent !important; padding: 0 !important; }
.emailoctopus-form-wrapper input[type="email"] {
  border: 1.5px solid rgba(255,255,255,0.4) !important;
  border-radius: 8px !important;
  font-size: 0.95rem !important;
  padding: 12px 16px !important;
  background: rgba(255,255,255,0.12) !important;
  color: #fff !important;
}
.emailoctopus-form-wrapper input[type="email"]::placeholder { color: rgba(255,255,255,0.6) !important; }
.emailoctopus-form-wrapper button[type="submit"] {
  background: var(--accent) !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  padding: 12px 20px !important;
  cursor: pointer !important;
  color: #fff !important;
}
.emailoctopus-form-wrapper button[type="submit"]:hover { background: var(--accent-dark) !important; }
.emailoctopus-form-wrapper .emailoctopus-form--footer { color: rgba(255,255,255,0.55) !important; font-size: 0.78rem !important; }
/* Light variant (inside results card on white bg) */
.eo-inline input[type="email"] {
  border-color: var(--border) !important;
  background: var(--white) !important;
  color: var(--text) !important;
}
.eo-inline input[type="email"]::placeholder { color: var(--text-muted) !important; }
.eo-inline .emailoctopus-form--footer { color: var(--text-muted) !important; }

/* ===== PRINT ===== */
@media print {
  .site-header, .hero, .ad-wrapper, .penalty-section, .faq-section, .resources-section,
  .email-section, .email-capture, .affiliate-section, .results-actions, .site-footer,
  .wizard-card { display: none !important; }
  .results-card { display: block !important; box-shadow: none; border: 1px solid #ccc; }
  .results-header { background: #1a4f8a !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #fff; }
}
