/* --- ESTILOS PARA O FORMULÁRIO PÚBLICO DE INSCRIÇÃO --- */

/* Variáveis de Cor para fácil manutenção */
:root {
    --primary-color: #003366; /* Azul UESB */
    --secondary-color: #f0f4f8; /* Cinza claro para o fundo */
    --text-color: #333333;
    --border-color: #ced4da;
    --background-color: #ffffff;
    --success-color: #28a745;
    --header-footer-bg: #002244; /* Azul mais escuro */
    --accent-color: #d1a10d; /* Dourado */
}

/* Estilos Globais e do Cabeçalho/Rodapé */
body { font-family: Arial, sans-serif; margin: 0; background-color: var(--secondary-color); color: var(--text-color); line-height: 1.6; }
.main-header, .main-footer { background-color: var(--header-footer-bg); color: white; text-align: center; padding: 1rem; }
.main-header nav ul { list-style: none; padding: 0; margin: 0; }
.main-header nav ul li { display: inline; margin: 0 15px; }

/* Animação dos Links do Menu */
.main-header nav a { color: white; text-decoration: none; font-weight: bold; font-size: 1.1em; position: relative; padding-bottom: 5px; transition: color 0.3s ease; }
.main-header nav a::after { content: ''; position: absolute; width: 100%; transform: scaleX(0); height: 2px; bottom: 0; left: 0; background-color: var(--accent-color); transform-origin: bottom left; transition: transform 0.3s ease-out; }
.main-header nav a:hover { color: var(--accent-color); }
.main-header nav a:hover::after { transform: scaleX(1); transform-origin: bottom left; }

/* Logos no Cabeçalho */
.logo-container { display: flex; justify-content: center; align-items: center; gap: 2.5rem; padding: 1.5rem 0; flex-wrap: wrap; }
.logo-container img { height: 66px; width: auto; max-width: 100%; filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6)); }

/* Container Principal e Formulário */
.container { max-width: 800px; margin: 2rem auto; padding: 2rem; background-color: var(--background-color); box-shadow: 0 4px 12px rgba(0,0,0,0.1); border-radius: 8px; }
h1 { color: var(--primary-color); text-align: center; margin-top: 0; }
fieldset { border: 1px solid var(--border-color); border-radius: 5px; margin-bottom: 20px; padding: 20px; }
legend { font-size: 1.2em; font-weight: bold; color: var(--primary-color); padding: 0 10px; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: bold; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea { width: 100%; padding: 10px; border: 1px solid var(--border-color); border-radius: 4px; box-sizing: border-box; font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s; }
input:focus, select:focus, textarea:focus { border-color: var(--primary-color); box-shadow: 0 0 0 0.2rem rgba(0, 51, 102, 0.25); outline: none; }
.instrucoes { font-size: 0.9em; color: #555; background-color: #f8f9fa; border: 1px solid #e9ecef; padding: 10px 15px; margin-top: 10px; border-radius: 4px; }
.instrucoes ul { padding-left: 20px; margin: 5px 0; }
.form-group-checkbox { display: flex; align-items: center; margin-bottom: 10px; }
.form-group-checkbox input[type="checkbox"] { margin-right: 10px; width: 1.2em; height: 1.2em; cursor: pointer; }
.form-group-checkbox label { margin-bottom: 0; font-weight: normal; }
.btn-submit { display: block; width: 100%; padding: 15px; background-color: var(--success-color); color: white; border: none; border-radius: 5px; font-size: 1.2em; font-weight: bold; cursor: pointer; transition: background-color 0.3s; }
.btn-submit:hover { background-color: #218838; }
.aviso-encerrado { text-align: center; padding: 2rem; background-color: #fff3cd; border: 1px solid #ffeeba; border-radius: 8px; color: #856404; }
.aviso-encerrado h2 { margin-top: 0; }

/* --- ESTILOS CORRIGIDOS PARA BOTÃO DE UPLOAD NEON PULSANTE 3D --- */

.file-upload-wrapper {
    position: relative; /* Essencial para o input invisível */
    display: inline-block; /* Faz o wrapper se ajustar ao conteúdo */
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); /* Sombra 3D */
}

/* O texto/label que o usuário vê */
.file-upload-text {
    display: block;
    padding: 12px 25px;
    border: 2px solid; /* A cor será definida pela animação/classe */
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

/* O input de arquivo REAL, que fica invisível por cima de tudo */
.file-upload-wrapper input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

/* Animação Neon Pulsante */
.pulsate {
    animation: pulsate-neon 1.5s infinite alternate;
}

@keyframes pulsate-neon {
    from {
        border-color: #a30f17;
        box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2), 0 0 10px #00bcd4;
        color: #010b0c;
        text-shadow: 0 0 5px #00bcd4;
        background-color: #8d2a40; /* Verde */
    }
    to {
        border-color: #f5f11f; /* Cor neon mais clara */
        box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2), 0 0 20px #00f2ea, 0 0 30px #00f2ea;
        color: #021416;
        text-shadow: 0 0 10px #00f2ea;
         background-color: #eba2b2; /* Verde */
    }
}

/* Estilo Verde e Sólido para Arquivo Selecionado */
.file-selected {
    animation: none; /* Para a animação pulsante */
    background-color: #28a745; /* Verde */
    border-color: #1e7e34;
    color: white;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}
.file-selected .file-upload-text {
    color: white;
    text-shadow: none; /* Remove o brilho neon */
}
.file-selected .file-upload-text::before {
    content: '✓ '; /* Adiciona um ícone de "check" */
    font-weight: bold;
}

/* Responsividade para Telas Menores */
@media (max-width: 768px) {
    .container {
        margin: 1rem;
        padding: 1rem;
    }
    h1 {
        font-size: 1.5rem;
    }
}