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;
}

.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;
}

.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);
}

.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: linear-gradient(90deg, #22c55e, #16a34a);
  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: linear-gradient(90deg, #16a34a, #15803d);
  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;
}

@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;
  }

  .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;
  }

  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;
  }
}
