body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(180deg, #f0f9ff, #e0f2fe);
  color: #1b3b6f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 22px 14px 26px;
  box-sizing: border-box;
  margin: 0;
}

.top-header {
  width: 90%;
  max-width: 480px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 12px;
}

.top-logo {
  max-width: 220px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.quiz-container {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  border-radius: 20px;
  border: 1px solid #dbeafe;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  width: 90%;
  max-width: 480px;
  padding: 30px 30px 24px;
  text-align: left;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.quiz-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1d4ed8, #2563eb, #60a5fa);
}

h1 {
  text-align: center;
  font-size: 22px;
  color: #0056cc;
  margin-bottom: 20px;
}

.barra-progresso {
  height: 8px;
  background-color: #e8f0ff;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}

.progresso {
  height: 8px;
  background-color: #0056cc;
  width: 0%;
  transition: width 0.4s ease;
}

.pergunta {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  display: none;
}

.pergunta.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.pergunta.saindo {
  opacity: 0;
  transform: translateY(-15px);
}

.pergunta h3 {
  font-weight: 600;
  margin-bottom: 16px;
  color: #111827;
  line-height: 1.4;
}

label {
  display: block;
  background-color: #e8f0ff;
  border: 1px solid #b5ceff;
  border-radius: 8px;
  padding: 10px;
  margin: 8px 0;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

input[type="radio"] {
  margin-right: 8px;
  accent-color: #0056cc;
}

label:hover {
  background-color: #d8e6ff;
  border-color: #0056cc;
}

button {
  display: block;
  width: 100%;
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 10px;
  text-align: center;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}

/* === Tela inicial === */
.form-inicial {
  text-align: center;
  padding: 20px;
  animation: fadeIn 0.5s ease;
}

/* Texto superior */
.form-header {
  margin-bottom: 24px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fbff;
  border: 1px solid #dbeafe;
}

.icone-aviso {
  font-size: 14px;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e0ecff;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.form-header h3 {
  color: #111827;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.form-header p {
  color: #4b5563;
  font-size: 14px;
  margin: 0;
  line-height: 1.4;
}

.acesso-escolha {
  display: grid;
  gap: 14px;
}

.acesso-botoes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.btn-escolha-principal {
  margin-top: 0;
  background: linear-gradient(90deg, #1d4ed8, #2563eb);
  min-height: 50px;
}

.btn-escolha-secundaria {
  margin-top: 0;
  background: #e2e8f0;
  color: #1e3a8a;
  border: 1px solid #cbd5e1;
  min-height: 50px;
}

.btn-escolha-secundaria:hover {
  background: #dbeafe;
  box-shadow: none;
}

.btn-voltar-escolha {
  width: auto;
  min-width: 86px;
  margin: 0 0 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  box-shadow: none;
  font-size: 14px;
}

.btn-voltar-escolha:hover {
  transform: none;
  box-shadow: none;
  background: #dbeafe;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.auth-tab {
  width: 50%;
  margin-top: 0;
  background: #dbeafe;
  color: #1e3a8a;
  box-shadow: none;
}

.auth-tab:hover {
  transform: none;
  box-shadow: none;
  background: #bfdbfe;
}

.auth-tab.active {
  background: linear-gradient(90deg, #1e3a8a, #2563eb);
  color: #fff;
}

/* Campos maiores e harmÃ´nicos */
.form-group {
  text-align: left;
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #1b3b6f;
  margin-bottom: 6px;
  font-size: 15px;
  background: none !important;
  border: none !important;
}

.form-group input {
  width: 100%;
  height: 48px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.8px solid #b5ceff;
  font-size: 16px;
  background-color: #f8fbff;
  transition: 0.25s;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.25);
  background-color: #ffffff;
}

/* BotÃ£o */
#btnIniciar {
  background: linear-gradient(90deg, #1e3a8a, #2563eb);
  color: #fff;
  border: none;
  padding: 14px 22px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  width: 100%;
  transition: 0.3s ease;
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.25);
  margin-top: 10px;
}

#btnIniciar:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
}

#btnEntrar {
  background: linear-gradient(90deg, #1e3a8a, #2563eb);
}

.painel-refazer {
  text-align: left;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  padding: 14px;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 36%),
    linear-gradient(180deg, #ffffff, #f8fbff);
}

.painel-refazer-topo {
  margin-bottom: 14px;
}

.painel-refazer-kicker {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1d4ed8;
  background: #dbeafe;
}

.painel-refazer-topo h3 {
  margin: 0;
  color: #111827;
  font-size: 20px;
}

.painel-refazer-subtitle {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: #475569;
}

.historico-vazio {
  border: 1px dashed #93c5fd;
  border-radius: 12px;
  background: #eff6ff;
  padding: 12px;
}

.historico-vazio strong {
  display: block;
  color: #1e3a8a;
}

.historico-vazio p {
  margin: 6px 0 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.4;
}

.historico-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.historico-kpi {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  border-radius: 12px;
  padding: 10px 8px;
}

.historico-kpi-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1e40af;
}

.historico-kpi-value {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}

.nivel-leve {
  color: #166534;
}

.nivel-moderada {
  color: #9a3412;
}

.nivel-grave {
  color: #991b1b;
}

.historico-timeline {
  display: grid;
  gap: 8px;
}

.historico-item {
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 10px;
  background: #ffffff;
}

.historico-item-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.historico-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.historico-badge.nivel-leve {
  background: #dcfce7;
  border: 1px solid #86efac;
}

.historico-badge.nivel-moderada {
  background: #ffedd5;
  border: 1px solid #fdba74;
}

.historico-badge.nivel-grave {
  background: #fee2e2;
  border: 1px solid #fca5a5;
}

.historico-data {
  font-size: 11px;
  color: #64748b;
}

.historico-item p {
  margin: 0;
  font-size: 13px;
  color: #334155;
}

.recomendacao-refazer {
  margin-top: 12px;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
}

.recomendacao-refazer h4 {
  margin: 0;
  font-size: 15px;
}

.recomendacao-refazer p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.45;
}

.recomendacao-refazer.leve {
  background: #f0fdf4;
  border-color: #86efac;
  color: #14532d;
}

.recomendacao-refazer.moderada {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}

.recomendacao-refazer.grave {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #7f1d1d;
}

#btnRefazerAgora {
  margin-top: 14px;
  background: linear-gradient(90deg, #1d4ed8, #2563eb);
}

.btn-voltar-refazer {
  margin-top: 8px;
  background: #e2e8f0;
  color: #1e293b;
}

.btn-voltar-refazer:hover {
  background: #cbd5e1;
  box-shadow: none;
}

.site-footer {
  width: 90%;
  max-width: 480px;
  border-top: 1px solid #dbeafe;
  padding-top: 12px;
  text-align: center;
}

.site-footer-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #1e3a8a;
}

.site-footer-text {
  margin: 6px 0 10px;
  font-size: 12px;
  line-height: 1.45;
  color: #475569;
}

.site-trust-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.site-trust-tags span {
  font-size: 11px;
  font-weight: 600;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 5px 10px;
}


.loading-container {
  display: none;
  text-align: center;
}

.loading-text {
  font-size: 16px;
  color: #1b3b6f;
  margin-top: 10px;
}

.resultado {
  display: none;
  text-align: center;
}

.resultado h2 {
  color: #0056cc;
  margin: 0 0 12px;
}

.whatsapp-btn {
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 14px;
  background-color: #25d366;
  color: white;
  padding: 13px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.3s, transform 0.2s ease;
  font-size: 15px;
}

.whatsapp-btn:hover {
  background-color: #1ebc57;
  transform: translateY(-1px);
}

.btn-agendar-destaque:not(:disabled) {
  animation: pulse-agendar 1.6s ease-in-out infinite;
}

.whatsapp-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@keyframes pulse-agendar {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.resultado-shell {
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 14px 12px 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.resultado-nivel-badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2px;
  margin-bottom: 12px;
}

.resultado-nivel-badge.nivel-leve {
  background: #e8f7ee;
  color: #166534;
  border: 1px solid #a7f3d0;
}

.resultado-nivel-badge.nivel-moderada {
  background: #fff4e6;
  color: #b45309;
  border: 1px solid #fed7aa;
}

.resultado-nivel-badge.nivel-grave {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.resultado-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.kpi-item {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 10px 8px;
}

.kpi-label {
  display: block;
  font-size: 12px;
  color: #1e40af;
  margin-bottom: 4px;
}

.kpi-value {
  font-size: 18px;
  color: #0f172a;
}

.resultado-meta {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

.resultado-alert {
  margin-top: 12px;
  border-radius: 12px;
  padding: 12px;
  text-align: left;
}

.resultado-alert p {
  margin: 0;
  line-height: 1.45;
  font-weight: 700;
  text-align: justify;
  text-indent: 1.2em;
}

.resultado-alert p + p {
  margin-top: 10px;
}

.sintomas-box {
  margin-top: 10px;
  font-size: 14px;
}

.sintomas-box strong {
  display: block;
  margin-bottom: 4px;
}

.sintomas-box ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.45;
}

.horario-select {
  width: 100%;
  height: 48px;
  border: 1.8px solid #b5ceff;
  border-radius: 10px;
  background: #f8fbff;
  color: #1b3b6f;
  font-size: 16px;
  padding: 10px 14px;
  box-sizing: border-box;
}

.horario-select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.2);
  background: #ffffff;
}

.resultado-alert.leve {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}

.resultado-alert.moderada {
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
}

.resultado-alert.grave {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.btn-secundario {
  margin-top: 12px;
  background: linear-gradient(90deg, #1d4ed8, #2563eb);
}

.btn-secundario:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Tema verde baseado na logo */
body {
  background: linear-gradient(180deg, #eef6f0, #deebe2);
  color: #1d4f3c;
}

.quiz-container {
  border-color: #c8dfd0;
}

.quiz-container::before {
  background: linear-gradient(90deg, #2f7d5f, #256b52, #5aa07f);
}

h1,
.resultado h2 {
  color: #256b52;
}

.barra-progresso,
label,
.kpi-item,
.historico-kpi,
.recomendacao-refazer,
.site-trust-tags span {
  background-color: #e9f4ee;
}

.progresso,
button,
#btnIniciar,
#btnEntrar,
#btnRefazerAgora,
.btn-secundario,
.btn-escolha-principal {
  background: linear-gradient(90deg, #2f7d5f, #256b52);
}

input[type="radio"] {
  accent-color: #2f7d5f;
}

label,
.form-group input,
.horario-select,
.form-header,
.painel-refazer,
.resultado-shell,
.site-footer,
.site-trust-tags span,
.kpi-item,
.historico-kpi {
  border-color: #b7d4c2 !important;
}

label:hover {
  background-color: #ddedE4;
  border-color: #2f7d5f;
}

.form-group input,
.horario-select,
.form-header,
.historico-vazio,
.resultado-shell,
.quiz-container {
  background: #f7fcf9;
}

.form-group input:focus,
.horario-select:focus {
  border-color: #2f7d5f;
  box-shadow: 0 0 8px rgba(47, 125, 95, 0.22);
}

.icone-aviso,
.painel-refazer-kicker {
  color: #256b52;
  background: #dceee4;
}

.site-footer-title,
.kpi-label,
.historico-kpi-label,
.btn-voltar-escolha,
.site-trust-tags span {
  color: #256b52;
}

.btn-escolha-secundaria {
  background: #e4ede8;
  color: #1f5b45;
  border-color: #c6dbce;
}

.btn-escolha-secundaria:hover,
.btn-voltar-escolha:hover {
  background: #d5e8dc;
}

.btn-voltar-escolha {
  background: #e9f4ee;
  border-color: #b7d4c2;
}

.resultado-meta,
.site-footer-text,
.form-header p,
.historico-data {
  color: #4c6a5d;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
  body {
    padding: 10px 10px 18px;
    justify-content: flex-start;
  }

  .top-header {
    width: 100%;
    max-width: 100%;
    margin-bottom: 10px;
  }

  .top-logo {
    max-width: 180px;
  }

  .quiz-container {
    width: 100%;
    max-width: 100%;
    border-radius: 14px;
    padding: 18px 14px 16px;
    margin-bottom: 12px;
  }

  .form-inicial {
    padding: 12px 6px;
  }

  .form-header {
    padding: 10px 10px;
    margin-bottom: 14px;
  }

  .auth-tabs {
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
  }

  .auth-tab {
    width: 100%;
  }

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

  .form-group input {
    height: 46px;
    font-size: 16px;
  }

  .historico-kpis {
    grid-template-columns: 1fr;
  }

  .painel-refazer-topo h3 {
    font-size: 18px;
  }

  .historico-item-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-voltar-escolha {
    width: 100%;
  }

  button {
    padding: 12px 16px;
    font-size: 15px;
  }

  .site-footer {
    width: 100%;
    max-width: 100%;
    padding-top: 10px;
  }

  .site-trust-tags {
    gap: 6px;
  }

  .site-trust-tags span {
    font-size: 10px;
    padding: 4px 8px;
  }

  .resultado-kpis {
    grid-template-columns: 1fr;
  }
}
