/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  /* Faz a rolagem ser suave ao usar âncoras (links internos) */
  scroll-behavior: smooth; 
}

/* Corpo base */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fafafa;
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth; 
}

/* Corpo base */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fafafa;
}

/* Cabeçalho (Manutenção de estilos existentes) */
.site-header {
  background-image:url(/img/fundo4.jpeg);
  border-bottom: 1px solid #6c00f8;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

/* CONTAINER PRINCIPAL (Ajustado para maior proporção em desktop e flexibilidade total em mobile) */
.container_test {
  width: 90%; 
  max-width: 950px; /* Mais largo para desktop */
  margin: 0 auto;
  padding: 2rem;
  color: #3b3326;
  font-family: Arial, sans-serif;
}

.teste-section h1 {
  text-align: center;
  color: #3b3326;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.intro {
  text-align: center;
  color: #193529;
  margin-bottom: 2rem;
}

/* CARD DO TESTE (Ajustado para evitar estreitamento excessivo) */
.teste-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center;
}

.teste-card h2 {
  color: #093829; /* verde escuro */
  margin-bottom: 1rem;
}

.pergunta p {
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Alinhamento das respostas */
.pergunta label {
  display: block;
  margin-bottom: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  text-align: left; 
  padding: 0 10%; /* Espaço nas laterais para melhor leitura */
}


/* CONTÊINER DE BOTÕES (Flexível para desktop/tablet) */
.botoes-navegacao {
  margin-top: 1.5rem;
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  /* Garante que o contêiner dos botões se ajuste à largura do card */
  padding: 0; 
}

.btn-teste {
  background: #006644; 
  color: #ffffff;
  border: none;
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s;
  flex-grow: 0; 
  /* Adiciona uma pequena margem para separar os botões em telas pequenas (caso não empilhem) */
  margin: 0 0.5rem; 
  white-space: nowrap; /* Evita que o texto "Ver resultado" quebre em duas linhas */
}

.btn-teste:hover {
  background: #004d33;
}

/* Botão Anterior (Cinza) */
.btn-voltar {
  background: #6c757d; 
}

.btn-voltar:hover {
  background: #5a6268;
}

/* Botão de Resultado (Azul) */
.btn-resultado {
  background: #007bff; 
}

.btn-resultado:hover {
  background: #0056b3;
}


/* resultado final */
.resultado-box {
  /* Mantendo as variáveis de cor para flexibilidade (vermelho/verde/amarelo) */
  margin-top: 1.5rem; /* Aumenta a distância do resultado para a seção de introdução */
  margin-bottom: 2rem;
  background-color: #ffffff;
  border-left: 5px solid #045214;
  padding: 1.5rem;
  border-radius: 1rem;
  margin-top: 1rem;
  text-align: left;
}

.resultado-box h3 {
  margin-bottom: 0.5rem;
  color: #006644;
}

/* eBook */
.ebook-section {
  margin-top: 2rem;
  padding: 2rem;
  margin-bottom: 3rem;
  background: #f4f4f4;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.ebook-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.ebook-img {
  max-width: 200px;
  border-radius: 1rem;
}

.ebook-info {
  flex: 1;
}

.ebook-info h2 {
  color: #006644;
  margin-bottom: .8rem;
}

.ebook-info ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.ebook-info li::before {
  content: "✔ ";
  color: #006644;
}

.btn-comprar {
  display: inline-block;
  background: #006644;
  color: white;
  text-decoration: none;
  padding: .9rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  transition: background 0.3s;
}

.btn-comprar:hover {
  background: #004d33;
}
/* ... código CSS anterior ... */

/* RESPONSIVIDADE - Ajustes para telas menores */
@media (max-width: 500px) {
  /* 1. O CARD FICA MAIS LARGO (USA QUASE A TELA TODA) */
  .container_test {
    width: 100%;
    padding: 1rem;
  }

  .teste-card {
    padding: 1rem;
  }
  
  .pergunta label {
    padding: 0 5%;
  }

  /* 2. OS BOTÕES SE EMPILHAM E AGORA INVERTEM A ORDEM */
  .botoes-navegacao {
    flex-direction: column; 
    gap: 1rem; 
  }
  
  .btn-teste {
    width: 100%; 
    max-width: 300px;
    margin: 0; 
  }

  /* REVERSÃO DA ORDEM: */
  /* Botão Próximo/Resultado deve ficar em cima (Ordem: 1) */
  .botoes-navegacao .btn-teste {
    order: 1;
  }

  /* Botão Voltar deve ficar embaixo (Ordem: 2) */
  .botoes-navegacao .btn-voltar {
    order: 2;
  }
}