:root {
  --primary: #8B1524;
  --primary-dark: #630A16;
  --primary-light: #AD2033;
  --accent: #D4AF37;
  --green: #16A34A;
  --green-dark: #15803D;
  --bg-cream: #FDFBF7;
  --bg-card: #FFFFFF;
  --text-main: #1C1917;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 40px -10px rgba(139, 21, 36, 0.15);
}

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

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

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

/* TOP BANNER */
.top-banner {
  background-color: var(--primary);
  color: #fff;
  padding: 10px 14px;
  font-size: 0.85rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.top-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #22C55E;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-green 1.8s infinite;
  flex-shrink: 0;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* QUIZ WRAPPER */
.quiz-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
}

.quiz-container {
  width: 100%;
  max-width: 620px;
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 35px 28px;
  position: relative;
  overflow: hidden;
}

/* PROGRESS BAR */
.progress-section {
  margin-bottom: 25px;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.progress-percent {
  color: var(--primary);
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: #F3F4F6;
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--green) 100%);
  border-radius: 10px;
  transition: width 0.4s ease;
}

/* STEPS */
.quiz-step {
  display: none;
  animation: fadeIn 0.35s ease forwards;
}

.quiz-step.active {
  display: block;
}

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

.badge-pill {
  display: inline-block;
  background: #FEF2F2;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.question-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  line-height: 1.3;
  color: var(--text-main);
  margin-bottom: 8px;
}

.question-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

/* OPTIONS GRID */
.options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #FFFFFF;
  border: 2px solid #E5E7EB;
  border-radius: 14px;
  padding: 16px 18px;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font-sans);
  position: relative;
}

.option-btn:hover {
  border-color: var(--primary);
  background: #FDF2F4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 21, 36, 0.1);
}

.option-btn.selected {
  border-color: var(--primary);
  background: #FDF2F4;
  box-shadow: 0 0 0 2px rgba(139, 21, 36, 0.2);
}

.option-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.option-info {
  flex: 1;
}

.option-info strong {
  display: block;
  font-size: 1rem;
  color: #111827;
  margin-bottom: 2px;
  font-weight: 700;
}

.option-info small {
  font-size: 0.82rem;
  color: #6B7280;
  line-height: 1.25;
}

.arrow-select {
  font-size: 1.2rem;
  color: #9CA3AF;
  transition: transform 0.2s ease, color 0.2s ease;
}

.option-btn:hover .arrow-select {
  color: var(--primary);
  transform: translateX(3px);
}

/* STEP LOADING ANIMATION */
.loader-content {
  text-align: center;
  padding: 30px 10px;
}

.spinner-radar {
  width: 55px;
  height: 55px;
  border: 4px solid #FEE2E2;
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 1s infinite linear;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.loading-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.loading-checklist {
  max-width: 380px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #4B5563;
  padding: 8px 12px;
  border-radius: 8px;
  background: #F9FAFB;
  transition: all 0.3s ease;
}

.check-item.done {
  color: #15803D;
  background: #DCFCE7;
}

.check-item.done .check-icon {
  color: #15803D;
}

/* STEP UNLOCK & VOUCHER */
.result-header {
  text-align: center;
  margin-bottom: 22px;
}

.trophy-badge {
  display: inline-block;
  background: #FEF9C3;
  color: #854D0E;
  border: 1px solid #FDE047;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.result-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  line-height: 1.3;
  color: #111827;
  margin-bottom: 10px;
}

.profit-highlight {
  color: var(--green);
  display: block;
  font-size: 1.8rem;
}

.result-desc {
  font-size: 0.92rem;
  color: #4B5563;
  max-width: 520px;
  margin: 0 auto;
}

/* ANCHOR VOUCHER CARD */
.anchor-voucher-card {
  background: #FFFDF9;
  border: 2px dashed #F87171;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 22px;
  position: relative;
}

.voucher-top-tag {
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 14px;
}

.voucher-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.v-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: #374151;
}

.crossed-old {
  text-decoration: line-through;
  color: #9CA3AF;
  font-size: 1.05rem;
}

.discount-highlight {
  color: var(--green-dark);
  font-weight: 700;
}

.save-tag {
  background: #DCFCE7;
  color: var(--green-dark);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.88rem;
}

.v-divider {
  height: 1px;
  background: #E5E7EB;
  margin: 6px 0;
}

.v-final-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.total-label {
  font-weight: 800;
  color: var(--primary);
  font-size: 0.98rem;
}

.final-tag-price {
  display: flex;
  align-items: baseline;
  color: var(--primary);
  font-family: var(--font-serif);
}

.final-tag-price .curr {
  font-size: 1.15rem;
  font-weight: 700;
  margin-right: 2px;
}

.final-tag-price .val {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}

.final-tag-price .cents {
  font-size: 1.3rem;
  font-weight: 800;
}

/* LEAD UNLOCK FORM */
.lead-unlock-box {
  background: #F9FAFB;
  border-radius: 14px;
  border: 1px solid #E5E7EB;
  padding: 22px;
}

.unlock-title h3 {
  font-size: 1.15rem;
  color: #111827;
  margin-bottom: 6px;
  text-align: center;
}

.unlock-title p {
  font-size: 0.88rem;
  color: #6B7280;
  margin-bottom: 18px;
  text-align: center;
}

.unlock-form .form-group {
  margin-bottom: 14px;
}

.unlock-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 5px;
}

.unlock-form input {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid #D1D5DB;
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s ease;
}

.unlock-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 21, 36, 0.1);
}

.btn-cakto {
  background: linear-gradient(135deg, #16A34A 0%, #15803D 100%);
  color: #FFFFFF;
  padding: 16px 20px;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.35);
  margin-top: 8px;
  line-height: 1.3;
}

.btn-cakto:hover {
  background: linear-gradient(135deg, #15803D 0%, #166534 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.45);
}

.pulse-btn {
  animation: pulse-button 2.5s infinite;
}

@keyframes pulse-button {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.guarantee-micro {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.75rem;
  color: #6B7280;
  margin-top: 14px;
}

.footer {
  text-align: center;
  padding: 15px;
  font-size: 0.8rem;
  color: #9CA3AF;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .quiz-container {
    padding: 24px 16px;
    border-radius: 16px;
  }
  .question-title {
    font-size: 1.35rem;
  }
  .option-btn {
    padding: 14px 14px;
  }
  .option-icon {
    font-size: 1.4rem;
  }
  .result-title {
    font-size: 1.35rem;
  }
  .profit-highlight {
    font-size: 1.55rem;
  }
  .final-tag-price .val {
    font-size: 2.2rem;
  }
  .btn-cakto {
    font-size: 0.95rem;
    padding: 14px 16px;
  }
}
