/* =========================================
   VARIÁVEIS E RESET (ALINHADO COM A LP)
   ========================================= */
:root {
  --color-gold: #f2b705;
  --color-gold-hover: #ffd84d;
  --color-bg: #050505; /* Fundo super escuro */
  --color-surface: #111111; /* Fundo dos cards */
  --color-text-white: #ffffff;
  --color-text-gray: #a1a1a1;
  --color-green: #27c95a;
  --color-red: #ff3b30;
  --font-heading: "Bebas Neue", sans-serif;
  --font-body: "Inter", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text-white);
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* =========================================
   CONTAINER PRINCIPAL E TELAS
   ========================================= */
.quiz-wrapper {
  width: 100%;
  max-width: 600px; /* Mais estreito que a LP para manter foco */
  padding: 2rem 1.5rem;
  margin: 0 auto;
  position: relative;
}

.quiz-screen {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.quiz-screen.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hidden {
  display: none !important;
}

/* =========================================
   HEADER E BARRA DE PROGRESSO
   ========================================= */
.quiz-header {
  text-align: center;
  margin-bottom: 2rem;
}

.quiz-logo {
  height: 75px;
  margin-bottom: 1.5rem;
}

.progress-wrapper {
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 8px;
}

.progress-text {
  font-size: 0.85rem;
  color: var(--color-text-gray);
  margin-bottom: 0.5rem;
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--color-gold);
  width: 0%;
  transition: width 0.3s ease;
}

/* =========================================
   TELA 1: CAPA
   ========================================= */
.badge-alert {
  display: inline-block;
  background: rgba(242, 183, 5, 0.1);
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.quiz-headline {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.highlight-gold {
  color: var(--color-gold);
}

.quiz-subhead {
  color: var(--color-text-gray);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.quiz-benefits {
  list-style: none;
  margin-bottom: 2.5rem;
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
}

.quiz-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.quiz-benefits li:last-child {
  margin-bottom: 0;
}

.quiz-benefits svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* =========================================
   BOTÕES GERAIS
   ========================================= */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background-color: var(--color-gold);
  color: #000;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  padding: 1.2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition:
    transform 0.2s,
    background 0.3s;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-color: var(--color-gold-hover);
}

.btn-primary svg {
  width: 24px;
  height: 24px;
}

.btn-green {
  background-color: var(--color-green);
  color: #fff;
  box-shadow: 0 4px 20px rgba(39, 201, 90, 0.3);
}

.btn-green:hover {
  background-color: #21b34e;
}

/* =========================================
   TELA 2: PERGUNTAS
   ========================================= */
.question-text {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.options-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.option-btn {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  color: var(--color-text-white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.option-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.option-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Estado de seleção no clique (JS vai adicionar esta classe rapidamente) */
.option-btn.selected {
  border-color: var(--color-gold);
  background: rgba(242, 183, 5, 0.1);
}
.option-btn.selected .option-letter {
  background: var(--color-gold);
  color: #000;
}

/* =========================================
   TELA 3: FORMULÁRIO LEAD
   ========================================= */
.lead-headline {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  text-align: center;
}

.lead-subhead {
  color: var(--color-text-gray);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.input-group label {
  font-size: 0.85rem;
  color: var(--color-text-gray);
  font-weight: 600;
}

.input-group input {
  width: 100%;
  padding: 1.2rem 1rem;
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s;
}

.input-group input:focus {
  outline: none;
  border-color: var(--color-gold);
}

.error-msg {
  color: var(--color-red);
  font-size: 0.75rem;
  display: none;
}

.opt-in-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.75rem;
  color: #888;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.opt-in-checkbox input {
  margin-top: 3px;
  accent-color: var(--color-gold);
}

/* Autocomplete API Cidades */
.suggestions-box {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 8px 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
}

.suggestion-item {
  padding: 1rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.suggestion-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* =========================================
   TELA 4: RESULTADO
   ========================================= */
.result-score-box {
  text-align: center;
  margin-bottom: 2rem;
}

.result-score-box span {
  font-size: 1rem;
  color: var(--color-text-gray);
  letter-spacing: 2px;
  font-weight: 600;
}

.score-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--color-text-white);
}

.score-number strong {
  font-size: 6rem;
  /* A cor vai mudar via JS (Vermelho, Amarelo ou Verde) */
}

.result-message-box {
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.result-footer p {
  text-align: center;
  color: var(--color-text-gray);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}
