/* =========================
   RESET BÁSICO
========================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Times New Roman, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #000000; /* fundo preto */
  min-height: 100vh;
  color: #157d5c;
}

/* =========================
   CONTAINER PRINCIPAL
========================= */
.quiz-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

/* =========================
   TÍTULOS
========================= */
.quiz-container h1 {
  text-align: center;
  font-size: 1.8rem;
  color: #157d5c;
  margin-bottom: 6px;
}

.quiz-container h4 {
  text-align: center;
  color: #22c55e;
  font-weight: 400;
  margin-bottom: 32px;
}

/* =========================
   FORM
========================= */
#quizForm {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* =========================
   CARDS PREMIUM MULTI-VERDE
========================= */
.question {
  border-radius: 20px;
  padding: 25px 22px;
  margin-bottom: 20px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.8), inset 0 0 20px rgba(34,197,94,0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: fadeUp 0.5s ease forwards;
}

/* GRADIENTE DIFERENTE POR PERGUNTA */
.question:nth-child(1)  { background: linear-gradient(135deg, #064e3b, #10b981); }
.question:nth-child(2)  { background: linear-gradient(135deg, #065f46, #22c55e); }
.question:nth-child(3)  { background: linear-gradient(135deg, #047857, #34d399); }
.question:nth-child(4)  { background: linear-gradient(135deg, #065f46, #10b981); }
.question:nth-child(5)  { background: linear-gradient(135deg, #047857, #22c55e); }
.question:nth-child(6)  { background: linear-gradient(135deg, #064e3b, #34d399); }
.question:nth-child(7)  { background: linear-gradient(135deg, #065f46, #22c55e); }
.question:nth-child(8)  { background: linear-gradient(135deg, #047857, #10b981); }
.question:nth-child(9)  { background: linear-gradient(135deg, #064e3b, #22c55e); }
.question:nth-child(10) { background: linear-gradient(135deg, #065f46, #34d399); }
.question:nth-child(11) { background: linear-gradient(135deg, #047857, #22c55e); }
.question:nth-child(12) { background: linear-gradient(135deg, #064e3b, #10b981); }
.question:nth-child(13) { background: linear-gradient(135deg, #065f46, #22c55e); }
.question:nth-child(14) { background: linear-gradient(135deg, #047857, #34d399); }
.question:nth-child(15) { background: linear-gradient(135deg, #064e3b, #22c55e); }
.question:nth-child(16) { background: linear-gradient(135deg, #065f46, #10b981); }
.question:nth-child(17) { background: linear-gradient(135deg, #047857, #34d399); }
.question:nth-child(18) { background: linear-gradient(135deg, #064e3b, #22c55e); }
.question:nth-child(19) { background: linear-gradient(135deg, #065f46, #10b981); }
.question:nth-child(20) { background: linear-gradient(135deg, #047857, #22c55e); }

/* HOVER ANIMADO */
.question:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 45px rgba(0,0,0,0.9), inset 0 0 25px rgba(34,197,94,0.3);
}

/* PERGUNTA */
.question p {
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 1rem;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* =========================
   OPÇÕES BRANCAS COM HOVER GLOW
========================= */
.question label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  color: #ffffff;
  cursor: pointer;
  border: 1px solid rgba(34,197,94,0.3);
  transition: all 0.3s ease;
  position: relative;
}

.question label:hover {
  background: rgba(34,197,94,0.25);
  box-shadow: 0 0 12px #22c55e, 0 0 24px #16a34a;
}

.question input[type="radio"] {
  accent-color: #22c55e;
  transform: scale(1.2);
  transition: all 0.2s ease;
}

/* =========================
   BOTÃO PREMIUM
========================= */
button[type="submit"] {
  margin-top: 30px;
  align-self: center;
  padding: 16px 36px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(90deg, #22c55e, #16a34a, #22c55e);
  background-size: 200% 200%;
  animation: buttonGradient 4s ease infinite;
  box-shadow: 0 10px 25px rgba(34,197,94,0.4);
  transition: all 0.3s ease;
}

button[type="submit"]:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 15px #22c55e, 0 0 25px #16a34a, 0 0 35px #10b981;
}

/* =========================
   RESULTADO PREMIUM
========================= */
.result {
  margin-top: 40px;
  padding: 30px;
  border-radius: 20px;
  background: linear-gradient(135deg, #065f46, #10b981);
  box-shadow: 0 15px 40px rgba(0,0,0,0.8), inset 0 0 30px rgba(34,197,94,0.25);
  animation: fadeUp 0.6s ease both;
  color: #d1fae5;
}

.result h1 {
  margin-top: 0;
  color: #d1fae5;
}

.result ul {
  padding-left: 20px;
}

.result li {
  margin-bottom: 8px;
}

/* CTA PREMIUM */
.cta-button {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #16a34a, #22c55e);
  background-size: 200% 200%;
  animation: buttonGradient 4s ease infinite;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(34,197,94,0.4);
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 15px #22c55e, 0 0 25px #16a34a, 0 0 35px #10b981;
}

/* =========================
   ANIMAÇÕES
========================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes buttonGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* =========================
   RESPONSIVO
========================= */
@media (min-width: 768px) {
  .quiz-container {
    padding: 40px 20px 80px;
  }

  .quiz-container h1 {
    font-size: 2.4rem;
  }

  .question p {
    font-size: 1.05rem;
  }
}
