/* ============================================= */
/* ANIMAÇÕES GLOBAIS */
/* ============================================= */

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 2s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================= */
/* SEÇÃO PROCEDIMENTO DE SUBMISSÃO */
/* ============================================= */

.procedimento-submissao {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 60px 20px;
    background-color: #fff;
    min-height: 500px;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.3s;
}

.procedimento-submissao .texto {
    max-width: 600px;
}

.procedimento-submissao .texto h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

.procedimento-submissao .texto p {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.botao-submeter {
    display: inline-block;
    background-color: #3399ff;
    color: #fff;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.botao-submeter:hover {
    transform: scale(1.03);
}

.pdf-link {
    text-align: center;
    max-width: 250px;
    text-decoration: none;
}

.pdf-link img.pdf-img {
    width: 100%;
    max-width: 180px;
    transition: transform 0.3s;
    cursor: pointer;
    animation: float 4s ease-in-out infinite;
}

.pdf-link img.pdf-img:hover {
    transform: translateY(-5px);
}

.pdf-link p {
    margin-top: 10px;
    color: #000;
    font-family: serif;
    font-size: 1rem;
}

/* ============================================= */
/* FORMULÁRIO DE SUBMISSÃO */
/* ============================================= */

.formulario-container {
    max-width: 1200px;
    margin: 60px auto;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.formulario-content {
    padding: 40px;
}

.formulario-content h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #003366;
    font-size: 2rem;
    font-weight: 600;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #4a4f63;
    font-size: 0.95rem;
}

.obrigatorio {
    color: #e74c3c;
    font-weight: bold;
}

.form-group input,
.form-group select {
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group input[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.form-botoes {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.btn-enviar {
    background-color: #2196F3;
    color: #fff;
    padding: 14px 40px;
    font-size: 1.1rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 200px;
}

.btn-enviar:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.btn-enviar:active {
    transform: translateY(0);
}

/* ============================================= */
/* SEÇÃO DE COMISSÕES */
/* ============================================= */

#secaoComissoes {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-top: 20px;
    border-left: 4px solid #3498db;
}

#secaoComissoes .form-group {
    margin-bottom: 15px;
}

.label-arquivo {
    font-weight: 600;
    margin-bottom: 8px;
    color: #4a4f63;
}

/* ============================================= */
/* MEDIA QUERIES - RESPONSIVIDADE */
/* ============================================= */

@media (max-width: 768px) {
    .formulario-container {
        margin: 30px 20px;
    }
    
    .formulario-content {
        padding: 25px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-group.full-width {
        grid-column: 1;
    }
    
    .btn-enviar {
        width: 100%;
        max-width: 300px;
    }

    .procedimento-submissao {
        flex-direction: column;
        text-align: center;
    }

    .procedimento-submissao .texto {
        max-width: 100%;
    }

    .pdf-link {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .formulario-content {
        padding: 20px;
    }
    
    .formulario-content h2 {
        font-size: 1.5rem;
    }
    
    .btn-enviar {
        padding: 12px 30px;
        font-size: 1rem;
    }
}