:root {
  --primary: #1e3a5f;
  --primary-light: #2b5282;
  --primary-dark: #13243b;
  --accent: #2e8b57;
  --accent-light: #e8f5e9;
  --accent-hover: #246e45;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #1f2937;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-focus: #3b82f6;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

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

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
}

.site-nav {
  display: flex;
  gap: 20px;
}

.site-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.site-nav a:hover, .site-nav a.active {
  color: var(--primary);
  text-decoration: none;
}

/* Notice Banner */
.disclaimer-banner {
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 8px 0;
  text-align: center;
}

/* Hero Section */
.hero {
  padding: 48px 0 24px;
  text-align: center;
}

.badge-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: 2.2rem;
  color: var(--primary-dark);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

/* Quiz Container */
.quiz-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 36px 32px;
  margin: 32px auto 48px;
  max-width: 740px;
}

/* Progress bar */
.quiz-progress-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.progress-track {
  flex: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 60px;
  text-align: right;
}

/* Question Section */
.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.question-title {
  font-size: 1.35rem;
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 8px;
}

.question-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.option-card {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
  user-select: none;
}

.option-card:hover {
  border-color: var(--primary-light);
  background: #f8fafc;
}

.option-card.selected {
  border-color: var(--accent);
  background: #f0fdf4;
}

.option-card input[type="radio"],
.option-card input[type="checkbox"] {
  margin-right: 14px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.option-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
  flex: 1;
}

.quiz-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.btn-secondary {
  background: #e2e8f0;
  color: var(--text-main);
}

.btn-secondary:hover {
  background: #cbd5e1;
  text-decoration: none;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Lead Form */
.lead-form-group {
  margin-bottom: 18px;
}

.lead-form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

.lead-form-group input[type="text"],
.lead-form-group input[type="email"],
.lead-form-group input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.lead-form-group input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-legal-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.4;
}

/* Informational Cards & Grid */
.features-section {
  padding: 32px 0 60px;
}

.section-title {
  text-align: center;
  font-size: 1.6rem;
  color: var(--primary-dark);
  margin-bottom: 28px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Content Pages Layout */
.content-page {
  padding: 40px 0 60px;
  max-width: 840px;
  margin: 0 auto;
}

.content-page h1 {
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.content-page h2 {
  font-size: 1.35rem;
  color: var(--primary);
  margin: 28px 0 12px;
}

.content-page p, .content-page ul {
  margin-bottom: 16px;
  font-size: 0.98rem;
  color: #334155;
}

.content-page ul {
  padding-left: 20px;
}

.content-page li {
  margin-bottom: 6px;
}

.card-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 20px 0;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 0 24px;
  border-top: 1px solid #1e293b;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 {
  color: #f8fafc;
  font-size: 1rem;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #94a3b8;
}

.footer-col ul li a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #1e293b;
  text-align: center;
  font-size: 0.8rem;
}

.footer-disclaimer {
  max-width: 760px;
  margin: 0 auto 16px;
  color: #64748b;
  line-height: 1.4;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 2px solid var(--accent);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
  padding: 16px 20px;
  z-index: 1000;
  display: none;
}

.cookie-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-text {
  font-size: 0.88rem;
  color: var(--text-main);
  flex: 1;
  min-width: 280px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 14px 0;
    gap: 12px;
  }
  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  .quiz-wrapper {
    padding: 24px 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
