:root {
  --navy: #0f2942;
  --navy-dark: #091b2c;
  --green: #16803c;
  --green-hover: #11662f;
  --green-soft: #ecfdf3;
  --bg: #f6f8fa;
  --card: #ffffff;
  --text: #1b2430;
  --muted: #5a6675;
  --border: #dfe5ec;
  --accent: #0b66c3;
  --warning-bg: #fff8e6;
  --warning-border: #f0d58c;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.top-bar {
  background: var(--navy);
  color: #fff;
  padding: 12px 16px;
  border-bottom: 3px solid var(--green);
}

.top-bar-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.2px;
  color: #fff;
  text-decoration: none;
}

.brand span {
  color: #6ee7a0;
}

.pub-badge {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: rgba(255, 255, 255, 0.12);
  padding: 4px 8px;
  border-radius: 4px;
  color: #e2e8f0;
  white-space: nowrap;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 14px 40px;
}

.meta-line {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.meta-pill {
  background: #e6f0fa;
  color: var(--accent);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11.5px;
}

h1 {
  font-size: 25px;
  line-height: 1.24;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.subtitle {
  font-size: 15.5px;
  color: #344054;
  margin-bottom: 18px;
}

/* Quiz Card */
.quiz-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 18px;
  box-shadow: 0 8px 24px rgba(15, 41, 66, 0.07);
  margin-bottom: 22px;
}

.progress-wrap {
  margin-bottom: 16px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: #e9eef4;
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--green);
  width: 25%;
  transition: width 0.25s ease;
  border-radius: 99px;
}

.step-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 6px;
  line-height: 1.3;
}

.step-hint {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 14px;
}

.options-grid {
  display: grid;
  gap: 10px;
}

.opt-btn {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 15px 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s ease;
}

.opt-btn:hover, .opt-btn:focus-visible {
  border-color: var(--green);
  background: var(--green-soft);
  outline: none;
}

.opt-btn .arrow {
  color: var(--green);
  font-weight: 800;
  font-size: 18px;
}

.state-select {
  width: 100%;
  padding: 14px 12px;
  font-size: 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  margin-bottom: 12px;
}

.primary-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(22, 128, 60, 0.28);
  transition: background 0.15s ease, transform 0.1s ease;
}

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

.primary-btn:active {
  transform: scale(0.99);
}

.back-link {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
  cursor: pointer;
  text-decoration: underline;
}

.hidden {
  display: none !important;
}

/* Qualified Result Box */
.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 99px;
  margin-bottom: 10px;
}

.call-box {
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: 12px;
  padding: 18px 16px;
  text-align: center;
  margin: 14px 0;
}

.agent-status {
  font-size: 13px;
  font-weight: 600;
  color: #166534;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
}

.phone-number-display {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.4px;
}

.call-subnote {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 10px;
}

.hours-note {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12.5px;
  color: #6b4f0b;
  margin-top: 12px;
}

/* Editorial Content below quiz */
.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 18px;
  margin-bottom: 22px;
}

.article-card h2 {
  font-size: 18px;
  color: var(--navy-dark);
  margin-bottom: 10px;
}

.article-card p {
  font-size: 14.5px;
  color: #344054;
  margin-bottom: 12px;
}

.checklist {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 12px 0 6px;
}

.checklist li {
  font-size: 14.5px;
  color: #1f2937;
  padding-left: 24px;
  position: relative;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 800;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  text-align: center;
}

.trust-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
}

/* Unqualified screen */
.unqual-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 14px 36px;
  background: #eef2f6;
  color: var(--muted);
  font-size: 12px;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-disclaimer {
  line-height: 1.5;
  font-size: 11.5px;
  color: #667085;
}

@media (min-width: 600px) {
  h1 { font-size: 30px; }
  .quiz-card, .article-card { padding: 26px 24px; }
}
