/* Paleta de Cores Púrpura */
:root {
    --primary-color: #7B42F6; 
    --primary-dark: #5A27B0;  
    --background-light: #f7f7f7; 
    --card-background: #ffffff; 
    --border-radius: 12px;   
    --shadow: rgba(0, 0, 0, 0.08); 
}

/* Estilo Básico do Corpo */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 40px 20px;
    background-color: var(--background-light);
    line-height: 1.6;
    color: #333;
}

/* Estilo das Seções */
section {
    max-width: 700px; 
    margin: 0 auto 30px auto;
    background: var(--card-background);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px var(--shadow); 
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.3s;
}
section:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Títulos */
h2, h3 {
    color: var(--primary-dark);
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-top: 0;
}
.instrucoes {
    font-weight: bold;
    color: #777;
    margin-bottom: 20px;
}

/* Estilo para Inputs e Selects */
#parteInicial form label:not(.inline-radio-group label) {
    width: 100%;
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
}
#parteInicial form input:not([type="radio"]), 
#parteInicial form select {
    width: 100%;
    padding: 12px;
    margin: 5px 0 10px 0;
    display: block;
    border: 1px solid #ccc;
    border-radius: 8px; 
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.inline-radio-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

/* Foco */
input:focus, select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(123, 66, 246, 0.2); 
    outline: none;
}
label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

/* Estilo para Botões */
button {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px; 
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    width: 100%; 
    transition: background-color 0.3s, transform 0.1s;
}
button:hover {
    background-color: var(--primary-dark);
}
button:active {
    transform: translateY(1px); 
}

/* Estilo das Perguntas */
.pergunta {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px; 
    background-color: #ffffff;
}
.pergunta p {
    font-weight: bold;
    margin-bottom: 10px;
    color: #444;
}

/* Estilo das Opções de Resposta */
.pergunta label {
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}
/* Estilo para o resultado final */
#respostasExibicao {
    white-space: pre-wrap; 
    word-wrap: break-word;
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 8px;
}