/* Resetando margens e padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Corpo da página */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Estilo do cabeçalho */
header {
    background-color: #73ccd4;
    color: white;
    text-align: center;
    padding: 20px 0;
}

header h1 {
    margin: 0;
    font-size: 2em;
}

/* Container para o formulário de anamnese */
.form-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #73ccd4;
}

/* Estilo para o formulário */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Estilo para os grupos de campos */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-size: 1.1em;
    color: #555;
}

input, select, textarea {
    padding: 12px;
    font-size: 1em;
    border-radius: 8px;
    border: 1px solid #ddd;
}

input[type="text"], input[type="email"], input[type="number"], select, textarea {
    width: 100%;
}

/* Estilo para os botões */
button {
    background-color: #73ccd4;
    color: white;
    font-size: 1.1em;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #73ccd4;
}

/* Estilo para o botão de "voltar" */
.btn-voltar {
    background-color: #6c757d;
    color: white;
    font-size: 1.1em;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-voltar:hover {
    background-color: #5a6268;
}

/* Estilo para a seção de perguntas */
textarea {
    height: 150px;
    resize: vertical;
}

select, input[type="radio"], input[type="checkbox"] {
    margin-top: 8px;
}

/* Estilo para os campos obrigatórios */
.required {
    color: red;
    font-size: 0.9em;
}

/* Estilo para o rodapé */
footer {
    background-color: #73ccd4;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: auto;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5em;
    }

    .form-container {
        width: 90%;
        padding: 15px;
    }

    button {
        font-size: 1em;
    }

    .form-group {
        gap: 12px;
    }

    .required {
        font-size: 0.8em;
    }
}
