/* Estilos Gerais */
.bprs-container {
    font-family: 'Arial', sans-serif;
    max-width: 800px;
    margin: 30px auto;
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #333;
}

.bprs-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.bprs-title {
    font-size: 2.2em;
    color: #4CAF50; /* Verde para um tom mais clínico */
    margin-bottom: 10px;
}

.bprs-subtitle {
    font-size: 1.1em;
    color: #666;
}

/* Formulário */
.bprs-form {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-section, .questions-section {
    margin-bottom: 30px;
}

.section-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.section-header h2 {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 5px;
}

.section-header p {
    color: #777;
    font-size: 0.95em;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"] {
    width: calc(100% - 20px);
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

/* Perguntas e Opções */
.question-group {
    background-color: #fefefe;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.question-group:hover {
    border-color: #c8e6c9; /* Light green on hover */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.question-text {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #444;
}

.options label {
    display: block;
    margin-bottom: 10px;
    padding: 12px 15px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95em;
}

.options label:hover {
    background-color: #e8f5e9; /* Very light green */
    border-color: #a5d6a7; /* Medium green */
}

.options input[type="radio"] {
    margin-right: 10px;
    accent-color: #4CAF50; /* Green accent for radio buttons */
}

.options input[type="radio"]:checked + span {
    font-weight: bold;
    color: #2e7d32; /* Darker green for checked text */
}

/* Estilo para opção selecionada */
.options input[type="radio"]:checked + span::before {
    content: '✔ ';
    color: #4CAF50;
}

/* Botão de Submissão */
.form-actions {
    text-align: center;
    margin-top: 30px;
}

.form-actions button {
    background-color: #4CAF50; /* Green */
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.form-actions button:hover {
    background-color: #43A047; /* Darker green */
    transform: translateY(-2px);
}

.form-actions button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Seção de Carregamento */
.bprs-section.active {
    display: block;
}

.bprs-section {
    display: none;
}

.loading-content {
    text-align: center;
    padding: 50px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.loading-content h2 {
    color: #4CAF50;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.loading-content p {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 30px;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #4CAF50;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilos para a página de resultados */
.result-container {
    font-family: 'Arial', sans-serif;
    max-width: 900px;
    margin: 30px auto;
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #333;
}

.result-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #4CAF50;
}

.result-header h1 {
    font-size: 2.5em;
    color: #4CAF50;
    margin-bottom: 10px;
}

.result-header p {
    font-size: 1.2em;
    color: #666;
}

.result-section {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.result-section h2 {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.result-section p {
    font-size: 1.05em;
    line-height: 1.6;
    margin-bottom: 15px;
}

.score-summary ul {
    list-style: none;
    padding: 0;
}

.score-summary li {
    background-color: #e8f5e9;
    margin-bottom: 10px;
    padding: 12px 15px;
    border-left: 5px solid #4CAF50;
    border-radius: 5px;
    font-size: 1.1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score-summary li strong {
    color: #2e7d32;
}

.score-summary li span {
    font-weight: bold;
    color: #4CAF50;
}

.chart-container {
    width: 100%;
    max-width: 700px;
    margin: 20px auto;
}

/* Responsividade */
@media (max-width: 768px) {
    .bprs-container, .result-container {
        margin: 15px;
        padding: 15px;
    }

    .bprs-title {
        font-size: 1.8em;
    }

    .bprs-subtitle {
        font-size: 1em;
    }

    .section-header h2 {
        font-size: 1.5em;
    }

    .form-group input[type="text"] {
        width: calc(100% - 10px);
    }

    .options label {
        padding: 10px;
        font-size: 0.9em;
    }

    .form-actions button {
        padding: 12px 25px;
        font-size: 1.1em;
    }

    .result-header h1 {
        font-size: 2em;
    }

    .result-header p {
        font-size: 1.1em;
    }

    .result-section h2 {
        font-size: 1.6em;
    }

    .score-summary li {
        flex-direction: column;
        align-items: flex-start;
    }

    .score-summary li span {
        margin-top: 5px;
    }
}


