/* ===== CSS VARIABLES ===== */
:root {
  --green: #74c044;
  --green-dark: #5a9633;
  --green-light: #eef7e6;
  --green-mid: #8ecf62;
  --accent: #f0a500;
  --accent-light: #fff8e7;
  --text: #323232;
  --text-muted: #323232;
  --border: #c2e09e;
  --bg: #ffffff;
  --white: #ffffff;
  --red: #d94040;
  --red-light: #fdf0f0;
  --gray-light: #d4ddd0;
  --gray-mid: #8a9e84;
  --shadow: 0 2px 16px rgba(116,192,68,0.10);
  --shadow-card: 0 4px 24px rgba(116,192,68,0.13);
  --radius: 14px;
  --radius-sm: 8px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

h1, h2, h3, h4, h5, h6 { color: #323232; }

body {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--green-light);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(61,122,90,0.07);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--green);
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}

.header-nav { display: flex; gap: 24px; align-items: center; }
.header-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--green); }

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.breadcrumbs a { color: var(--green); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { color: var(--gray-light); }

/* ===== MAIN LAYOUT ===== */
.main-content {
  flex: 1;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ===== WELCOME PAGE ===== */
.welcome-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
}

.welcome-banner {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: linear-gradient(135deg, #d4ede1 0%, #a8d4bc 100%);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.welcome-banner-inner {
  text-align: center;
  padding: 32px;
}

.banner-emoji { font-size: 5rem; display: block; margin-bottom: 12px; }
.banner-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.welcome-info { padding: 8px 0; }

.page-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: #323232;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.page-title span { color: var(--green); }

.welcome-description {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.welcome-features {
  list-style: none;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.welcome-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 600;
}

.feature-icon {
  width: 28px;
  height: 28px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.warning-box {
  background: #fff8ee;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 0.85rem;
  color: #ff9900;
  line-height: 1.55;
  margin-bottom: 28px;
  text-align: center;
}

.warning-box strong { font-weight: 800; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 32px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(61,122,90,0.22);
}

.btn-primary:hover {
  background: var(--green-dark);
  box-shadow: 0 6px 24px rgba(61,122,90,0.30);
  transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--green);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 24px;
  border: 2px solid var(--green);
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--green-light);
}

.btn-secondary:disabled, .btn-secondary[disabled] {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #74c044;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 800;
  padding: 15px 36px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 4px 18px rgba(116,192,68,0.25);
}

.btn-accent:hover {
  background: #5a9633;
  box-shadow: 0 6px 24px rgba(116,192,68,0.35);
  transform: translateY(-1px);
}

/* ===== STEPPER ===== */
.stepper-wrap {
  margin-bottom: 32px;
}

.stepper-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.stepper-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}

.step-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--green-light);
  padding: 4px 12px;
  border-radius: 50px;
}

.stepper-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.step-track {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #D1D5DB;
  transition: background 0.3s;
}

.step-track.active { background: var(--text); }
.step-track.done { background: var(--green); }

/* ===== QUESTION CARD ===== */
.question-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 40px;
  margin-bottom: 24px;
  border: 1.5px solid var(--border);
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.question-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.question-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-light);
  padding: 3px 10px;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

.question-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 20px;
}

/* ===== INPUT FIELDS ===== */
.input-field {
  width: 100%;
  max-width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.input-field:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(61,122,90,0.12);
}

.input-field.error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(217,64,64,0.10);
}

.input-hint {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--red);
  font-weight: 600;
  display: none;
}

.input-hint.visible { display: block; }

/* ===== RADIO OPTIONS ===== */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
  user-select: none;
}

.option-label:hover {
  border-color: var(--green-mid);
  background: var(--green-light);
}

.option-label.selected {
  border-color: var(--green);
  background: var(--green-light);
  color: var(--green-dark);
}

.option-radio {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}

.option-label.selected .option-radio {
  border-color: var(--green);
  background: var(--green);
}

.option-label.selected .option-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

/* ===== NAV BUTTONS ===== */
.nav-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.nav-left { display: flex; gap: 12px; }

/* ===== PROGRESS INFO ===== */
.progress-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== RESULT PAGE ===== */
.result-hero {
  margin-bottom: 32px;
}


.result-check {
  font-size: 3.5rem;
  margin-bottom: 12px;
  display: block;
}

.result-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.result-subtitle {
  font-size: 1rem;
  opacity: 0.85;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

.result-program-name {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border-radius: 50px;
  padding: 6px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 16px;
  letter-spacing: 0.5px;
}

/* Section titles */
.section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-icon {
  width: 28px;
  height: 28px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}

.benefit-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}

.benefit-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

/* Products */
.products-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.product-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.product-card:hover { border-color: var(--green-mid); box-shadow: var(--shadow); }

.product-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid var(--green);
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--green);
  transition: background 0.2s, border-color 0.2s;
}

.product-checkbox.unchecked {
  background: transparent;
}

.product-checkbox svg { width: 14px; height: 14px; }

.product-icon {
  width: 48px;
  height: 48px;
  background: var(--green-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.product-info { flex: 1; }
.product-name {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.product-article {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.product-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--green);
  white-space: nowrap;
}

/* CTA block */
.cta-block {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.cta-total {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
}

.cta-total span {
  color: var(--green);
}

.cta-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 20px;
  border: 2px solid var(--border);
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-download:hover {
  border-color: var(--green);
  color: var(--green);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--white);
  border-top: 1.5px solid var(--border);
  text-align: center;
  padding: 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  .welcome-hero { grid-template-columns: 1fr; }
  .question-card { padding: 24px 20px; }
  .cta-block { flex-direction: column; align-items: flex-start; }
  .result-hero { margin-bottom: 24px; }
  .site-header { padding: 0 16px; }
  .main-content { padding: 24px 16px 60px; }
  .header-nav { display: none; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
}
