/* Quiz Personalizável - Estilos */

.quiz-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.quiz-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.quiz-content {
    flex: 1;
}

.quiz-titulo {
    color: #333;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.quiz-descricao {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
}

.quiz-imagem {
    flex-shrink: 0;
    width: 200px;
}

.quiz-imagem img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.quiz-info-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007cba;
    margin-bottom: 30px;
}

.quiz-info-box h3 {
    color: #007cba;
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.quiz-info-box p {
    color: #555;
    margin: 0;
    line-height: 1.5;
}

.quiz-questao {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.quiz-questao.ativa {
    display: block;
}

.quiz-questao:first-child {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.quiz-questao h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.questao-separador {
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #8bc34a, #4caf50);
    border-radius: 2px;
    margin-bottom: 20px;
}

.questao-texto {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 30px 0;
    font-weight: 400;
}

/* Container principal da escala */
.escala-likert {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    margin-bottom: 25px;
}

/* Container das cores (horizontal) */
.escala-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

/* Container dos botões (horizontal, embaixo) */
.quiz-navegacao {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.escala-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    min-width: 60px;
}

.escala-opcoes {
    display: flex;
    gap: 8px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.escala-opcao {
    cursor: pointer;
    display: block;
}

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

.escala-visual {
    display: block;
    width: 40px;
    height: 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.escala-visual:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Cores da escala - do vermelho ao verde */
.escala-1 { background: #e53e3e; }
.escala-2 { background: #fd7f28; }
.escala-3 { background: #fbb042; }
.escala-4 { background: #9bd13a; }
.escala-5 { background: #68d391; }

/* Pré-selecionar opção central por padrão */
.escala-opcao input[value="3"] {
    /* Marcar como checked por padrão via CSS não funciona, usaremos JS */
}

/*
.escala-opcao input[value="3"] + .escala-visual {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2), 0 0 0 2px #007cba;
}
*/

.escala-opcao input[type="radio"]:checked + .escala-visual {
    transform: scale(1.2) translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.escala-opcao input[type="radio"]:checked + .escala-visual::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Estilos dos botões */
.btn-anterior,
.btn-proximo {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-anterior {
    background: #6c757d;
}

.btn-anterior:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-proximo {
    background: #28a745;
}

.btn-proximo:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-proximo:disabled,
.btn-anterior:disabled {
    background: #6c757d;
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-anterior:active,
.btn-proximo:active {
    transform: translateY(0);
}

.quiz-resultado {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-top: 30px;
}

.quiz-resultado h3 {
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
}

.resultado-pontuacao {
    font-size: 48px;
    font-weight: 700;
    color: #007cba;
    margin: 20px 0;
}

.resultado-descricao {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsividade - MOBILE */
@media (max-width: 768px) {
    .quiz-container {
        padding: 15px;
        margin: 10px;
    }
    
    .quiz-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .quiz-imagem {
        width: 150px;
        align-self: center;
    }
    
    .quiz-titulo {
        font-size: 24px;
    }
    
    /* Mobile: Manter layout vertical */
    .escala-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .quiz-navegacao {
        flex-direction: column;
        gap: 15px;
    }
    
    .escala-label {
        min-width: auto;
    }
    
    .escala-visual {
        width: 50px;
        height: 15px;
    }
    
    .btn-anterior,
    .btn-proximo {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .quiz-titulo {
        font-size: 20px;
    }
    
    .escala-opcoes {
        justify-content: center;
    }
    
    .escala-visual {
        width: 35px;
        height: 12px;
    }
}
