/* CSS completo para o plugin DR Testes */

/* Estilos gerais */
.dr-teste-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Barra de progresso */
.dr-teste-progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dr-teste-progress-bar {
    height: 100%;
    background-color: #1e73be; /* Tom azul */
    width: 0%; /* Será alterado via JavaScript */
    border-radius: 4px;
    transition: width 0.3s ease-in-out;
}

/* Aviso inicial/disclaimer */
.dr-teste-aviso-inicial {
    background-color: #f0f7ff;
    border: 1px solid #d0e3ff;
    border-left: 4px solid #1e73be; /* Tom azul */
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 6px;
}

.dr-teste-aviso-inicial h3 {
    color: #1e73be; /* Tom azul */
    margin-top: 0;
    margin-bottom: 15px;
}

/* Adiciona espaço entre o texto do aviso e o botão */
.dr-teste-aviso-inicial div {
    margin-bottom: 25px; /* Espaço abaixo do texto do aviso */
}

/* Cabeçalho e informações de progresso */
.dr-teste-progresso {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
    font-weight: 500;
}

.dr-teste-pontuacao-valor {
    font-weight: bold;
    color: #1e73be; /* Tom azul */
}

/* Perguntas */
.dr-teste-questao-container {
    margin-bottom: 30px;
    animation: fadeIn 0.4s ease-out;
}

.dr-teste-questao-texto {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Opções de resposta */
.dr-teste-opcoes-container {
    margin-bottom: 25px;
}

.dr-teste-opcao-btn {
    display: block;
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 12px;
    text-align: left;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.05em;
    transition: all 0.2s ease;
    color: #333 !important; /* Cor do texto preta */
}

.dr-teste-opcao-btn:hover {
    background-color: #f0f0f0;
    border-color: #bbb;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dr-teste-opcao-btn.selecionada {
    background-color: #1e73be; /* Tom azul */
    color: white !important; /* Texto branco quando selecionado */
    border-color: #1e73be; /* Tom azul */
    box-shadow: 0 2px 4px rgba(30, 115, 190, 0.3);
    transform: translateY(-1px);
}

/* Botões de navegação */
.dr-teste-botoes {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.dr-teste-btn-concordo,
.dr-teste-btn-avancar,
.dr-teste-btn-enviar {
    background-color: #1e73be; /* Tom azul */
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dr-teste-btn-concordo:hover,
.dr-teste-btn-avancar:hover,
.dr-teste-btn-enviar:hover {
    background-color: #1a65a8; /* Tom azul mais escuro */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.dr-teste-btn-voltar {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dr-teste-btn-voltar:hover {
    background-color: #e5e5e5;
    transform: translateY(-2px);
}

/* Formulário de contato */
.dr-teste-email-form {
    margin-bottom: 25px;
    animation: fadeIn 0.5s ease;
}

.dr-teste-email-form h3 {
    margin-bottom: 20px;
    color: #333;
}

.dr-teste-nome-input,
.dr-teste-email-input,
.dr-teste-whatsapp-input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    transition: all 0.2s ease;
}

.dr-teste-nome-input:focus,
.dr-teste-email-input:focus,
.dr-teste-whatsapp-input:focus {
    outline: none;
    border-color: #1e73be; /* Tom azul */
    box-shadow: 0 0 0 2px rgba(30, 115, 190, 0.2);
}

.dr-teste-whatsapp-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.dr-teste-whatsapp-prefixo {
    padding: 12px 15px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
    color: #555;
}

.dr-teste-whatsapp-input {
    margin-bottom: 0;
    border-radius: 0 4px 4px 0;
}

.dr-teste-erro {
    color: #d32f2f;
    font-size: 0.9em;
    margin-top: -10px;
    margin-bottom: 15px;
}

/* Resultado final */
.dr-teste-resultado {
    text-align: center;
    padding: 30px 20px;
    background-color: #f0f7ff;
    border-radius: 8px;
    border: 1px solid #d0e3ff;
    animation: revealResult 0.6s ease-out;
}

.dr-teste-resultado h2 {
    color: #1e73be; /* Tom azul */
    margin-bottom: 15px;
}

/* Estilo para o botão CTA na página final */
.dr-teste-cta-btn-final {
    display: inline-block;
    background-color: #1e73be; /* Tom azul */
    color: white !important; /* Branco com importante para sobrepor estilos padrão */
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.dr-teste-cta-btn-final:hover {
    background-color: #155a9c; /* Tom azul mais escuro no hover */
    text-decoration: none;
}

.dr-teste-cta-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes revealResult {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

/* Indicador de carregamento */
.dr-teste-loading {
    text-align: center;
    padding: 20px;
    color: #777;
    font-style: italic;
}

/* Responsividade */
@media (max-width: 768px) {
    .dr-teste-container {
        padding: 15px;
        margin: 0 10px;
    }
    
    .dr-teste-questao-texto {
        font-size: 1.2em;
    }
    
    .dr-teste-opcao-btn {
        padding: 12px 15px;
    }
    
    .dr-teste-btn-concordo,
    .dr-teste-btn-avancar,
    .dr-teste-btn-enviar,
    .dr-teste-btn-voltar {
        padding: 10px 20px;
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .dr-teste-container {
        padding: 12px;
        margin: 0 5px;
    }
    
    .dr-teste-progresso {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .dr-teste-questao-texto {
        font-size: 1em;
    }
    
    .dr-teste-botoes {
        flex-direction: column-reverse; /* Botão 'Próxima' em cima e 'Voltar' embaixo */
        gap: 10px;
    }
    
    .dr-teste-btn-concordo,
    .dr-teste-btn-avancar,
    .dr-teste-btn-enviar,
    .dr-teste-btn-voltar {
        width: 100%;
    }
}