@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --primary-color: #4A90E2; /* Azul */
    --secondary-color: #50E3C2; /* Verde-água */
    --background-color: #f4f7f6;
    --text-color: #333;
    --card-bg-color: #ffffff;
    --danger-color: #e24a4a;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.container {
    background-color: var(--card-bg-color);
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
}

/* --- Estilos para a Logo --- */
.logo-container {
    text-align: center; /* Centraliza a logo */
    margin-bottom: 20px; /* Adiciona um espaço abaixo da logo */
}

.logo {
    max-width: 150px;  /* Define a largura máxima da logo. Ajuste conforme precisar. */
    height: auto;      /* Mantém a proporção da imagem */
}

.step {
    display: flex;
    flex-direction: column;
}

.hidden {
  display: none !important;
  visibility: hidden;
  height: 0;
  overflow: hidden;
}

h1, h2 {
    color: var(--primary-color);
    text-align: center;
    margin-top: 0;
}

p {
    text-align: center;
    line-height: 1.6;
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input[type="text"], input[type="email"], input[type="tel"] {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
}

button, .whatsapp-button {
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    text-decoration: none;
}

button:hover, .whatsapp-button:hover {
    background-color: #357ABD;
}

.progress-bar-container {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    margin: 20px 0;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--secondary-color);
    border-radius: 5px;
    transition: width 0.4s ease;
}

.question-group {
    margin-bottom: 25px;
    border-left: 3px solid var(--secondary-color);
    padding-left: 15px;
}

.question-group legend {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 10px;
}

.radio-options {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.radio-options label {
    display: block;
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-options input[type="radio"] {
    display: none;
}

/* ESTE É O NOVO CÓDIGO, QUE ADICIONA AS CORES CONDICIONAIS */

/* Colore o botão de verde se for a opção "OK" */
.radio-options input[id$="-ok"]:checked + label {
    background-color: var(--secondary-color); /* Cor verde-água */
    color: white;
    border-color: var(--secondary-color);
}

/* Colore o botão de vermelho se for a opção de "Atenção" (bad) */
.radio-options input[id$="-bad"]:checked + label {
    background-color: var(--danger-color); /* Cor vermelha que já definimos */
    color: white;
    border-color: var(--danger-color);
}

.result-message {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 5px solid;
}

#result-high-score {
    background-color: #e8f5e9;
    border-color: #4caf50;
}

#result-low-score {
    background-color: #ffebee;
    border-color: var(--danger-color);
}

/* --- Estilos para a tela de resultado (Etapa 3) --- */
#step-3 {
  flex-direction: column;
  justify-content: center; 
  align-items: center;
  min-height: 100vh;
  text-align: center;
}


#step-3.active {
  display: flex;
}


#step-3 .whatsapp-button {
    /* Adiciona um espaço entre a mensagem de resultado e o botão */
    margin-top: 30px; 
}



/* --- Estilos para Telas Pequenas (Responsivo) --- */
@media (max-width: 600px) {
    body {
        /* Remove o padding para dar mais espaço ao container */
        padding: 0;
        align-items: flex-start; /* Alinha o card no topo em telas pequenas */
    }

    .container {
        /* Remove a sombra e bordas para um look mais nativo */
        box-shadow: none;
        border-radius: 0;
        min-height: 100vh;
        padding: 20px 15px; /* Ajusta o espaçamento interno */
    }

    h1 {
        font-size: 22px; /* Diminui um pouco o título principal */
    }

    .question-group legend {
        font-size: 16px; /* Diminui o texto da pergunta */
    }

    .radio-options {
        flex-direction: column; /* <<< A MUDANÇA PRINCIPAL: Coloca os botões um em cima do outro */
        width: 100%;
    }

    .radio-options label {
        width: 100%;
        box-sizing: border-box; /* Garante que o padding não quebre o layout */
        text-align: center;   /* Centraliza o texto nos botões */
    }
}

.install-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
  text-align: center;
}

.install-banner p {
  margin: 0 0 12px;
}

.install-banner .buttons button {
  margin: 0 8px;
  padding: 10px 20px;
  border: none;
  background-color: #4A90E2;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.install-banner .buttons button:hover {
  background-color: #357ABD;
}
