/* ---- RESET BÁSICO E ESTILOS GLOBAIS ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- CABEÇALHO ---- */
header {
    background-color: #ffffff;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Espaço entre o logo e os títulos */
}

.logo-ace {
    max-height: 60px;
    width: auto;
}

.header-titles {
    text-align: left;
}

.header-titles h1 {
    font-size: 1.8rem;
    color: #076943;
    font-weight: 700;
    line-height: 1.2;
}

.header-titles p {
    font-size: 1rem;
    color: #555;
}

/* ---- SEÇÃO HERO (PRINCIPAL) ---- */
.hero {
    background-color: #076943;
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-button {
    display: inline-block;
    background-color: #ffc107;
    color: #333;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #ffca28;
    transform: translateY(-3px);
}

/* ---- SEÇÃO DO FORMULÁRIO ---- */
.form-section {
    padding: 60px 0;
}

.form-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.form-container h3 {
    text-align: center;
    margin-bottom: 10px;
    color: #019e54;
}

.form-container p {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.input-group input:focus {
    outline: none;
    border-color: #019e54;
    box-shadow: 0 0 5px rgba(13, 71, 161, 0.2);
}

.input-group-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.input-group-checkbox input {
    margin-right: 10px;
}

.input-group-checkbox label a {
    color: #076943;
    text-decoration: none;
    font-weight: 600;
}

.input-group-checkbox label a:hover {
    text-decoration: underline;
}

/* NOVO: Estilo para a nota informativa do formulário */
.form-note {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    margin-top: -10px; /* Puxa o texto para mais perto do checkbox */
    margin-bottom: 25px; /* Garante espaço antes do botão */
    line-height: 1.4;
}

form button {
    width: 100%;
    padding: 15px;
    background-color: #076943;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* ... (o resto do CSS continua normalmente) ... */

form button:hover {
    background-color: #019e54;
}

form button:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

/* ---- MENSAGENS DE RETORNO ---- */
#mensagem-retorno {
    text-align: center;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: 600;
    display: none;
}

#mensagem-retorno.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    display: block;
}

#mensagem-retorno.error {
    background-color: #ffebee;
    color: #c62828;
    display: block;
}

/* ---- RODAPÉ ---- */
footer {
    background-color: #ffffff;
    color: #076943;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.logo-ace-footer {
    max-height: 50px;
    width: auto;
}

.logo-ifsuldeminas {
    max-height: 45px;
    width: auto;
}

footer p {
    font-size: 0.9em;
    margin-top: 10px;
}


/* ---- RESPONSIVIDADE (PARA CELULARES) ---- */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column; /* Coloca o logo acima dos títulos */
        gap: 5px; /* Diminui o espaço */
    }

    .header-titles {
        text-align: center; /* Centraliza os títulos */
    }
    
    .header-titles h1 {
        font-size: 1.5rem;
    }

    .header-titles p {
        font-size: 0.9rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .form-container {
        padding: 25px;
    }

    .logo-ace {
        max-height: 50px; 
    }

    .logo-ace-footer,
    .logo-ifsuldeminas {
        max-height: 40px;
    }

    .footer-logos {
        gap: 15px; 
    }
}

@media (max-width: 480px) {
    .header-titles h1 {
        font-size: 1.3rem;
    }
    
    .logo-ace {
        max-height: 45px;
    }
    .logo-ace-footer,
    .logo-ifsuldeminas {
        max-height: 35px;
    }
}

/* ---- ESTILOS DO MODAL (NOVO) ---- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* Começa escondido */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex; /* Torna-se visível quando a classe 'active' é adicionada */
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #076943;
}

.modal-content p {
    font-size: 1rem;
    line-height: 1.6;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

/* ---- NOVO: ANIMAÇÃO DE ENTRADA ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-load {
    /* Começa invisível para a animação funcionar */
    opacity: 0; 
    
    /* Aplica a animação definida acima */
    animation: fadeInUp 0.8s ease-out forwards;
}