body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(180deg, #f0f9ff, #e0f2fe);
  color: #1b3b6f;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.quiz-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 64, 128, 0.2);
  width: 90%;
  max-width: 480px;
  padding: 30px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

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: 28px;
}

.icone-aviso {
  font-size: 22px;
  color: #f59e0b;
  display: inline-block;
  margin-bottom: 10px;
}

.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;
}

/* Campos maiores e harmônicos */
.form-group {
  text-align: left;
  margin-bottom: 20px;
}

.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; /* ✅ altura corrigida */
  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);
}


.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;
}

.whatsapp-btn {
  display: inline-block;
  margin-top: 20px;
  background-color: #25d366;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
  font-size: 15px;
}

.whatsapp-btn:hover {
  background-color: #1ebc57;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
