/* --- Configuração Geral --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

html {
  /* Faz a rolagem da página ser suave ao clicar em links (se houver) */
  scroll-behavior: smooth;
}

body {
  background-color: #f0f0f0; /* Cor de fundo caso algo falhe */
  color: #333;
  overflow-x: hidden; /* Evita rolagem horizontal */
}

/* --- 1. Seção Hero --- */
#hero {
  /* Usa a altura da tela do dispositivo */
  min-height: 100vh;
  width: 100%;

  /* Coloque o caminho para sua imagem de fundo aqui */
  background-image: url("../Public/img17.jpg");
  background-size: cover;
  background-position: center;
  /* background-attachment: fixed; */

  /* Alinhamento do conteúdo */
  display: flex;
  justify-content: center;
  align-items: end;
  text-align: center;
  color: white;
  padding: 20px;
}

.hero-content {
  /* Fundo levemente escuro para legibilidade */
  background: rgba(0, 0, 0, 0.4);
  padding: 1rem 1rem;
  border-radius: 15px;
  backdrop-filter: blur(5px); /* Efeito fosco leve */
}

#hero h1 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.name-capture label {
  font-size: 1.1rem;
  margin-bottom: 10px;
  display: block;
}

.name-capture input {
  width: 100%;
  max-width: 400px;
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #fff;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 8px;
}

.name-capture input::placeholder {
  color: #ddd;
}

/* --- 2. Seção Quiz --- */
#quiz {
  background: linear-gradient(to top, #01447b, #00049b);
  padding: 50px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px; /* Espaço entre as perguntas */
}

.question-container {
  width: 100%;
  max-width: 700px;
  padding: 25px;
  color: white;

  /* O EFEITO FOSCO / DISTORÇÃO */
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  -webkit-backdrop-filter: blur(10px); /* Suporte Safari */
  backdrop-filter: blur(10px); /* A distorção */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.question-container h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
}

.answers {
  display: grid;
  /* Em telas menores, fica 1 coluna. Em telas maiores, 3 colunas. */
  grid-template-columns: 1fr;
  gap: 15px;
}

/* Em telas maiores que 600px, os botões ficam lado a lado */
@media (min-width: 600px) {
  .answers {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.answer-btn {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  font-weight: 500;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;

  /* Fundo mais escuro, como solicitado */
  background: rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.answer-btn:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Classe que o JS vai adicionar quando um botão for clicado */
.answer-btn.selected {
  background-color: #25d366; /* Verde para indicar seleção */
  border-color: #25d366;
  transform: scale(1.02);
}

/* --- 3. Seção Revelar --- */
#reveal {
  min-height: 500px;
  background-image: url("../Public/imagem2.jpg");
  background-size: cover;
  background-position: center;
  /* background-attachment: fixed; */

  /* Alinhamento do botão */
  display: flex;
  justify-content: center;
  align-items: end;
  padding: 50px;
}

#reveal-btn {
  width: 100%;
  max-width: 600px; /* Ocupa a largura, mas com um limite */
  padding: 20px;
  font-size: 1.3rem;
  font-weight: bold;
  color: white;
  background-color: #25d366; /* Verde WhatsApp */
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

#reveal-btn:hover {
  background-color: #128c7e; /* Tom mais escuro */
  box-shadow: 0 6px 20px rgba(18, 140, 126, 0.5);
  transform: translateY(-2px);
}

/* Estilos para o alerta personalizado */
.custom-alert {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.custom-alert.show {
  opacity: 1;
}

.alert-content {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.custom-alert.show .alert-content {
  transform: translateY(0);
}

.alert-icon {
  font-size: 40px;
  margin-bottom: 15px;
  display: block;
}

.alert-message {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.4;
}

.alert-button {
  background: #25d366;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.alert-button:hover {
  background: #128c7e;
}

/* Classe para esconder/mostrar a seção */
.hidden {
  display: none;
  opacity: 0;
}

/* --- 4. Seção Resultado --- */
#result {
  background: linear-gradient(to bottom, #00049b, #0A508A);
  padding: 10px 10px 60px; 
  text-align: center;
  transition: all 0.5s ease;
}
/* 0A508A */
#result-message {
  text-align: center;
  padding: 10px;
}

.result-header {
  font-size: 1em;
  color: #6fd9ff;
  margin-bottom: 10px;
}

.result-title {
  font-size: 1em;
  margin-bottom: 20px;
  color: lightgray;
}

.result-type {
  font-size: 1.3em;
  margin-bottom: 15px;
  color: #51C6F0;
}

.result-description {
  font-size: 0.8em;
  line-height: 1.6;
  margin-bottom: 10px;
  color: lightgray;
}

.result-strong {
  font-size: 1.1em;
  color: #96E3E9;
  font-weight: 500;
  margin-top: 10px;
  margin-bottom: 20px;
}

.promo-message {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #d3d3d3;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.whatsapp-button {
  background-color: #25d366;
  color: white;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.2s;
}

.whatsapp-button:hover {
  background-color: #128c7e;
}

/* --- 5. Rodapé --- */
footer {
  background: #e9e4f0; /* Cor sólida mais clara (tom de roxo) */
  text-align: center;
  padding: 25px;
  color: #555;
  font-size: 0.9rem;
}
