/* Definição das Cores do Tema */
:root {
    --theme-background: #ffffff; /* Fundo branco */
    --theme-primary: #22C55E;     /* Verde principal (botões, detalhes) */
    --theme-primary-text: #ffffff; /* Texto dos botões (branco) */
    --theme-text-dark: #1f2937;   /* Texto escuro (perguntas) */
    --theme-text-light: #6b7280;  /* Texto claro (subtítulos) */
    --theme-border: #e5e7eb;      /* Cor da borda (inputs) */
    --theme-progress-bg: #f3f4f6; /* Fundo da barra de progresso */
}

/* Estilos Gerais */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--theme-background);
    color: var(--theme-text-dark);
    display: flex;
    flex-direction: column; /* Para empilhar o logo e o quiz */
    justify-content: flex-start; /* Alinha o conteúdo ao topo */
    align-items: center; /* Centraliza horizontalmente */
    min-height: 100vh;
    padding-top: 20px;
    margin: 0;
}

/* Estilo do Logo */
.logo {
    max-width: 150px; /* Tamanho máximo do logo */
    height: auto;
    margin-bottom: 30px; /* Espaço entre o logo e o quiz */
    display: block; 
    margin-left: auto;
    margin-right: auto;
}

.quiz-container {
    width: 100%;
    max-width: 420px; /* Largura máxima similar ao exemplo */
    margin: 0 auto;
    padding: 16px;
    box-sizing: border-box;
}

/* Barra de Progresso */
.quiz-header {
    width: 100%;
    margin-bottom: 24px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--theme-progress-bg);
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    width: 0%; /* Começa em 0, controlado por JS */
    height: 100%;
    background-color: var(--theme-primary);
    transition: width 0.3s ease-in-out;
}

/* Slides das Perguntas */
.question-slide {
    display: none; /* Escondido por padrão */
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.question-slide.active {
    display: flex; /* Visível quando ativo */
}

.question-image {
    width: 100%;
    max-width: 300px; /* Define um tamanho máximo para o GIF */
    height: auto;
    max-height: 250px; /* Evita que GIFs altos ocupem muito espaço */
    object-fit: contain; /* Garante que o GIF caiba, sem distorcer */
    border-radius: 16px; /* Borda arredondada */
    margin-bottom: 24px; /* Espaço entre o GIF e o título */
}

.question-title {
    font-size: 1.5rem; /* 24px */
    font-weight: 700;
    text-align: center;
    margin: 0 0 8px 0;
}

.question-title .highlight {
    color: var(--theme-primary); /* Destaque em verde */
}

.question-subtitle {
    font-size: 1rem; /* 16px */
    color: var(--theme-text-light);
    text-align: center;
    margin: 0 0 24px 0;
}

/* Botões de Opção */
.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
}

.option-btn {
    width: 100%;
    min-height: 56px;
    padding: 12px 16px;
    background-color: var(--theme-primary); /* Fundo verde */
    color: var(--theme-primary-text);      /* Texto branco */
    border: none;
    border-radius: 16px; /* Bordas arredondadas */
    font-size: 1rem;
    text-align: left; /* Alinha o texto (com emoji) à esquerda */
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-bottom: 6px solid rgba(0, 0, 0, 0.15); 
}

.option-btn:hover {
    transform: scale(1.02); 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.option-btn:active {
    transform: scale(0.98); 
    border-bottom-width: 4px;
    margin-top: 2px;
}

/* Estilos do Formulário (Último Slide) */
#quiz-form {
    width: 100%;
}

.form-group {
    margin-bottom: 16px;
    width: 100%;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--theme-text-light);
}

.form-group input {
    width: 100%;
    height: 48px;
    padding: 0 12px;
    font-size: 1rem;
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    box-sizing: border-box; /* Garante que o padding não afete a largura */
}

.form-group input:focus {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.submit-btn {
    width: 100%;
    min-height: 56px;
    padding: 12px 16px;
    background-color: var(--theme-primary);
    color: var(--theme-primary-text);
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    border-bottom: 6px solid rgba(0, 0, 0, 0.15);
}

.submit-btn:hover {
    transform: scale(1.02);
}

.submit-btn:active {
    transform: scale(0.98);
}