/* ── Google Fonts — Inter ───────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Variáveis CSS — Identidade Efeom (BRD Seção 4) ─────── */
:root {
  --color-primary:   #00ABA1;
  --color-primary-d: #008F86;
  --color-dark:      #0D1F22;
  --color-gray:      #4A5568;
  --color-bg:        #F7FAFA;
  --color-white:     #FFFFFF;
  --color-error:     #E53E3E;
  --color-warn:      #F6A623;
  --color-whatsapp:  #25D366;
  --color-verde-bg:     #D1FAF5;
  --color-verde-text:   #006B65;
  --color-amarelo-bg:   #FEF3C7;
  --color-amarelo-text: #92610A;
  --color-vermelho-bg:  #FEE2E2;
  --color-vermelho-text:#9B1C1C;
  --font-base:  'Inter', sans-serif;
  --radius:     12px;
  --shadow:     0 4px 20px rgba(0,171,161,0.12);
  --transition: 0.2s ease;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-base);
  background: var(--color-bg);
  color: var(--color-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px 60px;
}

/* ── Animação fadeInUp ──────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.4s ease both; }

/* ── Layout ─────────────────────────────────────────────── */
.quiz-wrapper { width: 100%; max-width: 480px; margin: 0 auto; }

/* ── Logo ───────────────────────────────────────────────── */
.quiz-header { text-align: center; padding: 32px 0 24px; }

.logo-efeom {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-efeom__mark {
  width: 38px; height: 38px;
  background: var(--color-primary);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.logo-efeom__text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-dark);
  letter-spacing: -0.03em;
}
.logo-efeom__text em {
  font-style: normal;
  color: var(--color-primary);
}

/* ── Card ───────────────────────────────────────────────── */
.card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  animation: fadeInUp 0.4s ease both;
}

/* ── Barra de progresso ─────────────────────────────────── */
.progress-wrap { margin-bottom: 20px; }
.progress-meta {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 8px;
}
.progress-label { font-size: 0.78rem; font-weight: 600; color: var(--color-gray); }
.progress-pct   { font-size: 0.78rem; font-weight: 700; color: var(--color-primary); }
.progress-bar   { height: 6px; background: #D1E8E6; border-radius: 99px; overflow: hidden; }
.progress-fill  {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-d));
  border-radius: 99px;
  transition: width 0.5s ease;
}

/* ── Pergunta ───────────────────────────────────────────── */
.question-indicator {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--color-primary); margin-bottom: 10px;
}
.question-text {
  font-size: 1.1rem; font-weight: 600; line-height: 1.55;
  color: var(--color-dark); margin-bottom: 22px;
}

/* ── Cards de opção ─────────────────────────────────────── */
.options-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.option-card {
  display: flex; align-items: flex-start; gap: 14px;
  width: 100%; padding: 14px 18px;
  background: var(--color-bg);
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-base); font-size: 0.9rem; font-weight: 500;
  color: var(--color-dark); cursor: pointer; text-align: left;
  transition: var(--transition); outline: none;
}
.option-card:hover  { border-color: var(--color-primary); background: rgba(0,171,161,0.04); }
.option-card.selected { border-color: var(--color-primary); background: rgba(0,171,161,0.06); }
.option-letter {
  flex-shrink: 0; width: 26px; height: 26px; margin-top: 1px;
  border-radius: 50%; background: #D1E8E6; color: var(--color-primary-d);
  font-size: 0.72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.option-card:hover .option-letter,
.option-card.selected .option-letter { background: var(--color-primary); color: #fff; }

/* ── Navegação ──────────────────────────────────────────── */
.btn-nav { display: flex; gap: 12px; align-items: center; }
.btn-primary {
  flex: 1; padding: 14px 20px;
  background: var(--color-primary); color: var(--color-white);
  border: none; border-radius: 50px;
  font-family: var(--font-base); font-size: 0.95rem; font-weight: 700;
  cursor: pointer; transition: var(--transition);
  text-align: center; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-primary:hover:not(:disabled) {
  background: var(--color-primary-d); transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,171,161,0.3);
}
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-back {
  padding: 14px 18px; background: transparent; color: var(--color-gray);
  border: 1.5px solid #D1E8E6; border-radius: 50px;
  font-family: var(--font-base); font-size: 0.88rem; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  text-decoration: none; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
}
.btn-back:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* ── Transição ──────────────────────────────────────────── */
.transition-card { text-align: center; padding: 60px 28px; }
.spinner {
  width: 52px; height: 52px;
  border: 5px solid #D1E8E6; border-top-color: var(--color-primary);
  border-radius: 50%; margin: 0 auto 28px;
  animation: spin 0.85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.transition-title { font-size: 1.25rem; font-weight: 700; color: var(--color-dark); margin-bottom: 10px; }
.transition-sub   { font-size: 0.88rem; color: var(--color-gray); line-height: 1.6; }

/* ── WhatsApp ───────────────────────────────────────────── */
.wa-icon-wrap {
  width: 64px; height: 64px; background: #DCFCE7; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 22px;
}
.whatsapp-title {
  font-size: 1.35rem; font-weight: 800; color: var(--color-dark);
  line-height: 1.35; margin-bottom: 10px; text-align: center;
}
.whatsapp-sub {
  font-size: 0.9rem; color: var(--color-gray); line-height: 1.65;
  text-align: center; margin-bottom: 28px;
}
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block; font-size: 0.78rem; font-weight: 600;
  color: var(--color-gray); margin-bottom: 6px;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.form-group input {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid #D1E8E6; border-radius: var(--radius);
  font-family: var(--font-base); font-size: 1rem; font-weight: 500;
  color: var(--color-dark); background: var(--color-white);
  transition: var(--transition); outline: none;
}
.form-group input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,171,161,0.12);
}
.form-group input::placeholder { color: #A0AEC0; }
.btn-whatsapp {
  width: 100%; padding: 15px;
  background: var(--color-whatsapp); color: var(--color-white);
  border: none; border-radius: 50px;
  font-family: var(--font-base); font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px;
}
.btn-whatsapp:hover { background: #1eb957; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,0.35); }
.error-msg {
  background: #FEE2E2; color: var(--color-error);
  border-radius: var(--radius); padding: 12px 16px;
  font-size: 0.86rem; font-weight: 500; margin-bottom: 14px;
  display: flex; gap: 8px; align-items: flex-start;
}
.skip-link {
  display: block; text-align: center; margin-top: 14px;
  font-size: 0.8rem; color: var(--color-gray); text-decoration: underline;
  cursor: pointer; background: none; border: none;
  font-family: var(--font-base); width: 100%;
}
.skip-link:hover { color: var(--color-primary); }

/* ── Resultado ──────────────────────────────────────────── */
.result-header { text-align: center; margin-bottom: 24px; }
.result-profile-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 18px; border-radius: 50px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; margin-bottom: 14px;
}
.result-profile-badge.verde    { background: var(--color-verde-bg);    color: var(--color-verde-text); }
.result-profile-badge.amarelo  { background: var(--color-amarelo-bg);  color: var(--color-amarelo-text); }
.result-profile-badge.vermelho { background: var(--color-vermelho-bg); color: var(--color-vermelho-text); }
.result-score  { font-size: 0.78rem; font-weight: 500; color: var(--color-gray); margin-bottom: 12px; }
.result-title  { font-size: 1.4rem; font-weight: 800; color: var(--color-dark); line-height: 1.3; margin-bottom: 14px; }
.result-desc   { font-size: 0.93rem; color: var(--color-gray); line-height: 1.7; }

/* Seção educativa */
.edu-section {
  margin: 24px 0;
  padding: 22px 20px;
  background: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid #D1E8E6;
}
.edu-section__title {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--color-primary); margin-bottom: 16px;
}
.edu-block { margin-bottom: 18px; }
.edu-block:last-child { margin-bottom: 0; }
.edu-block__heading {
  font-size: 0.92rem; font-weight: 700; color: var(--color-dark);
  margin-bottom: 5px; display: flex; align-items: center; gap: 7px;
}
.edu-block__text { font-size: 0.85rem; color: var(--color-gray); line-height: 1.65; }

/* Pilares */
.pillars-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.pillar {
  background: var(--color-white); border: 1px solid #D1E8E6;
  border-radius: var(--radius); padding: 14px 10px; text-align: center;
}
.pillar__icon  { font-size: 1.4rem; margin-bottom: 6px; }
.pillar__label { font-size: 0.8rem; font-weight: 700; color: var(--color-dark); line-height: 1.3; }
.pillar__text  { font-size: 0.72rem; color: var(--color-gray); line-height: 1.4; margin-top: 3px; }

/* CTAs */
.result-ctas { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.btn-cta-secondary {
  width: 100%; padding: 13px 20px;
  background: transparent; color: var(--color-primary);
  border: 1.5px solid var(--color-primary); border-radius: 50px;
  font-family: var(--font-base); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  text-align: center; text-decoration: none; display: block;
}
.btn-cta-secondary:hover { background: rgba(0,171,161,0.06); transform: translateY(-2px); }

/* Compartilhar */
.share-row { display: flex; align-items: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.share-label { font-size: 0.8rem; font-weight: 600; color: var(--color-gray); flex-shrink: 0; }
.btn-share-wa {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; background: var(--color-whatsapp); color: var(--color-white);
  border: none; border-radius: 50px;
  font-family: var(--font-base); font-size: 0.85rem; font-weight: 700;
  cursor: pointer; text-decoration: none; transition: var(--transition);
}
.btn-share-wa:hover { background: #1eb957; transform: translateY(-2px); }

/* Aviso legal */
.legal-notice {
  margin-top: 24px; padding: 13px 16px;
  background: #F0FDF9;
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.77rem; color: var(--color-gray); line-height: 1.55;
}

/* Divisor */
.divider { height: 1px; background: #D1E8E6; margin: 22px 0; }

/* ── Footer ─────────────────────────────────────────────── */
.quiz-footer { text-align: center; margin-top: 28px; font-size: 0.72rem; color: #A0AEC0; line-height: 1.5; }

/* ── Breakpoints ─────────────────────────────────────────── */
@media (min-width: 768px) {
  .quiz-wrapper { max-width: 520px; }
  .card { padding: 40px 36px; }
  .question-text { font-size: 1.18rem; }
  .whatsapp-title { font-size: 1.55rem; }
  .result-title { font-size: 1.6rem; }
}
@media (min-width: 1280px) {
  body { padding: 0 24px 80px; }
  .quiz-wrapper { max-width: 540px; }
}

/* ── Logo imagem ─────────────────────────────────────────── */
.logo-img {
  width: 250px;
  height: auto;
  display: block;
  margin: 0 auto;
}
@media (max-width: 600px) {
  .logo-img { width: 200px; }
}

/* ── Hero do resultado ───────────────────────────────────── */
.result-hero {
  border-radius: var(--radius);
  padding: 36px 28px 32px;
  text-align: center;
  margin-bottom: 16px;
  animation: fadeInUp 0.4s ease both;
  border: 2px solid transparent;
}

.result-hero--verde {
  background: linear-gradient(135deg, #e8fdf8 0%, #c8f7ef 100%);
  border-color: #5ecfbe;
}
.result-hero--amarelo {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #f6c443;
}
.result-hero--vermelho {
  background: linear-gradient(135deg, #fff5f5 0%, #fee2e2 100%);
  border-color: #f87171;
}

.result-hero__emoji {
  font-size: 3.5rem;
  margin-bottom: 14px;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.12));
}

.result-hero__badge {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.result-hero--verde   .result-hero__badge { background: #00ABA1; color: #fff; }
.result-hero--amarelo .result-hero__badge { background: #d97706; color: #fff; }
.result-hero--vermelho .result-hero__badge { background: #dc2626; color: #fff; }

.result-hero__headline {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 14px;
}

.result-hero--verde   .result-hero__headline { color: #065f46; }
.result-hero--amarelo .result-hero__headline { color: #78350f; }
.result-hero--vermelho .result-hero__headline { color: #7f1d1d; }

.result-hero__score {
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0.7;
}

.result-hero--verde   .result-hero__score { color: #065f46; }
.result-hero--amarelo .result-hero__score { color: #78350f; }
.result-hero--vermelho .result-hero__score { color: #7f1d1d; }

/* ── Card LL1 ────────────────────────────────────────────── */
.ll1-card {
  background: linear-gradient(135deg, #0D1F22 0%, #1a3a3f 100%);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 16px;
  border: 1px solid #2a5560;
}

.ll1-card__tag {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.ll1-card__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 12px;
}

.ll1-card__text {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 20px;
}

.ll1-card__text em {
  color: #5eead4;
  font-style: italic;
}

.ll1-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50px;
  font-family: var(--font-base);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  width: 100%;
  justify-content: center;
  text-align: center;
}

.ll1-card__cta:hover {
  background: var(--color-primary-d);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,171,161,0.4);
}

/* ── Resultado desc e ctas ───────────────────────────────── */
.result-desc {
  font-size: 0.95rem;
  color: var(--color-gray);
  line-height: 1.7;
  margin-bottom: 22px;
}

.result-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

