/* =============================================== */
/* ESTILO GOOGLE FORMS PARA FICHA PÚBLICA          */
/* =============================================== */

/* --- Importando a fonte Roboto --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* --- Configurações Gerais --- */
body {
    background-color: #f0f2f5; /* Um cinza suave, padrão do Google */
    font-family: 'Roboto', sans-serif;
    color: #3c4043;
    line-height: 1.6;
}

/* --- Container Principal --- */
.form-wrapper {
    max-width: 770px;
    margin: 30px auto;
}

.form-header {
    background-color: #fff;
    border: 1px solid #dadce0;
    border-top: 10px solid #003366; /* Cor primária, como no Google Forms */
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 12px;
    text-align: center;
}

.logo {
    max-width: 280px;
    height: auto;
    margin-bottom: 20px;
    /* A ficha pública tem fundo BRANCO: logos claras/douradas sumiam.
       Aqui a logo é sempre desenhada em cinza-escuro (mesmo formato,
       só muda a cor), legível em qualquer clínica. */
    filter: brightness(0) invert(0.28);
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 500;
    color: #202124;
}

/* --- Cartão de Pergunta (a mágica acontece aqui) --- */
.form-question-card {
    background-color: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 12px;
    transition: box-shadow 0.2s ease-in-out;
}

.form-question-card:focus-within {
    border-color: #003366;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.form-question-card .form-label {
    font-size: 1rem;
    font-weight: 500;
    color: #202124;
    margin-bottom: 15px;
}

/* --- Estilo dos Inputs (efeito de linha) --- */
.form-control, .form-select {
    border: none;
    border-bottom: 1px solid #ccc;
    border-radius: 0;
    padding: 8px 0;
    background-color: transparent;
    box-shadow: none !important;
    position: relative;
    transition: border-color 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #003366;
}

.form-control[readonly] {
    background-color: transparent;
    color: #80868b;
    cursor: not-allowed;
    border-bottom: 1px dotted #ccc;
}

/* --- Botão de Envio --- */
.submit-container {
    padding: 24px;
    text-align: center;
}

.btn-submit {
    background-color: #003366;
    color: #fff;
    border: none;
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.btn-submit:hover {
    background-color: #002244;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* =============================================== */
/* ESTILO PARA OS TERMOS DE CONSENTIMENTO          */
/* =============================================== */

.form-check-label {
    text-align: justify;
    line-height: 1.5; /* Melhora a legibilidade */
}

/* --- Responsividade --- */
@media (max-width: 768px) {
    .form-wrapper {
        margin: 15px auto;
    }
    .form-header, .form-question-card {
        padding: 20px;
    }
    .form-header h2 {
        font-size: 1.5rem;
    }
}