/* ========================================
   FORMULÁRIO DE CANDIDATURA - CSS COMPLETO
   ======================================== */

/* Container Principal */
.fc-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Barra de Progresso */
.fc-progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.fc-progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.fc-progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.fc-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.fc-progress-step.active .fc-step-number {
    background: #1A56C9;
    color: white;
    transform: scale(1.1);
}

.fc-progress-step.completed .fc-step-number {
    background: #28a745;
    color: white;
}

.fc-step-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

/* Formulário */
#fc-formulario {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.fc-step {
    display: none;
}

.fc-step.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Títulos */
.fc-title {
    color: #1A56C9;
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.fc-subtitle {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Grid de Formulário */
.fc-form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.fc-form-group {
    grid-column: span 2;
}

.fc-form-group.fc-full-width {
    grid-column: span 4;
}

.fc-form-group.fc-span-3 {
    grid-column: span 3;
}

.fc-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.fc-required {
    color: #1A56C9;
    font-weight: bold;
}

.fc-optional {
    color: #dc3545;
    font-weight: bold;
    font-size: 11px;
    text-transform: uppercase;
}

/* Inputs */
.fc-form-group input[type="text"],
.fc-form-group input[type="email"],
.fc-form-group input[type="tel"],
.fc-form-group input[type="password"],
.fc-form-group input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #1A56C9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.fc-form-group input:focus {
    outline: none;
    border-color: #3B7BE0;
    box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}

.fc-form-group input[readonly] {
    background: #f5f5f5;
    cursor: not-allowed;
}

.fc-form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

.fc-camera-hint {
    color: #1A56C9 !important;
    font-weight: 500;
}

.fc-loading-cep {
    display: inline-block;
    margin-left: 10px;
    color: #1A56C9;
    font-size: 12px;
}

/* Boxes */
.fc-terms-box,
.fc-info-box {
    background: #f8f9fa;
    border-left: 4px solid #1A56C9;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 5px;
    line-height: 1.8;
}

.fc-terms-box ul,
.fc-info-box ul {
    margin: 10px 0;
    padding-left: 20px;
}

.fc-terms-box li,
.fc-info-box li {
    margin: 5px 0;
}

/* Checkbox */
.fc-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    margin-top: 20px;
}

.fc-checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

/* Botões */
.fc-button-group {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    flex-wrap: wrap;
}

.fc-btn {
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.fc-btn-primary {
    background: #1A56C9;
    color: white;
}

.fc-btn-primary:hover {
    background: #3B7BE0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}

.fc-btn-secondary {
    background: #6c757d;
    color: white;
}

.fc-btn-secondary:hover {
    background: #5a6268;
}

.fc-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.fc-btn.loading .fc-btn-text {
    opacity: 0.5;
}

.fc-btn.loading .fc-spinner {
    display: inline-block !important;
}

.fc-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   ETAPA 4 - GOV.BR STYLE (CORRIGIDO)
   ======================================== */

/* Caixa Entenda */
.fc-entenda-box {
    background: #f0f0f0;
    border-radius: 8px;
    margin-bottom: 30px;
    overflow: hidden;
}

.fc-entenda-header {
    padding: 15px 20px;
    background: #e0e0e0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background 0.3s ease;
}

.fc-entenda-header:hover {
    background: #d0d0d0;
}

.fc-entenda-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.fc-entenda-content.active {
    padding: 20px;
    max-height: 500px;
}

.fc-entenda-icon {
    transition: transform 0.3s ease;
}

.fc-entenda-content.active ~ .fc-entenda-header .fc-entenda-icon {
    transform: rotate(180deg);
}

/* Telas de Vínculo */
.fc-vinculo-screen {
    display: none;
}

.fc-vinculo-screen.active {
    display: block;
}

.fc-govbr-logo-small {
    text-align: center;
    margin: 20px 0 30px 0;
}

.fc-govbr-logo-small img {
    max-width: 180px;
    height: auto;
}

.fc-vinculo-title {
    color: #333;
    font-size: 22px;
    text-align: center;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.fc-vinculo-subtitle {
    text-align: center;
    color: #666;
    font-size: 18px;
    margin: 10px 0;
}

.fc-vinculo-instruction {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-bottom: 30px;
}

/* Form Group Vínculo */
.fc-form-group-vinculo {
    margin: 20px 0;
}

.fc-form-group-vinculo label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.fc-input-govbr {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.fc-input-govbr:focus {
    border-color: #1351B4;
    outline: none;
    box-shadow: 0 0 0 3px rgba(19, 81, 180, 0.1);
}

/* Botões Gov.br - CORRIGIDOS */
.fc-btn-govbr {
    background: #1351B4;
    color: white;
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: block;
    margin: 30px auto;
    min-width: 180px;
    transition: background 0.3s ease;
}

.fc-btn-govbr:hover {
    background: #0c3e8a;
}

.fc-btn-cancelar {
    background: #f5f5f5;
    color: #666;
    padding: 12px 32px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: block;
    margin: 10px auto;
    min-width: 180px;
    transition: all 0.3s ease;
}

.fc-btn-cancelar:hover {
    background: #e0e0e0;
    border-color: #999;
}

/* Container de botões lado a lado */
.fc-vinculo-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.fc-vinculo-buttons .fc-btn-govbr,
.fc-vinculo-buttons .fc-btn-cancelar {
    margin: 0;
    flex: 0 0 auto;
}

/* Tela de Sucesso */
.fc-success-screen {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.fc-success-screen.active {
    display: block;
}

.fc-success-icon {
    width: 80px;
    height: 80px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 30px auto;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* Acompanhamento */
.fc-acomp-screen {
    display: none;
}

.fc-acomp-screen.active {
    display: block;
}

.fc-acomp-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.fc-status-aguardando {
    padding: 30px;
    background: #fff3cd;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.fc-status-confirmado {
    padding: 30px;
    background: #d4edda;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.fc-status-despacho {
    padding: 30px;
    background: #d1ecf1;
    border-radius: 8px;
    text-align: center;
}

.fc-status-despacho input {
    max-width: 300px;
    margin: 20px auto;
    display: block;
    padding: 12px;
    border: 2px solid #0c5460;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    font-family: monospace;
}

/* Checklist */
.fc-checklist {
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.fc-checklist-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.3s ease;
}

.fc-checklist-item:last-child {
    border-bottom: none;
}

.fc-checklist-item:hover {
    background: #f8f9fa;
}

.fc-checklist-icon {
    width: 30px;
    height: 30px;
    margin-right: 15px;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fc-checklist-icon.correto {
    color: #28a745;
}

.fc-checklist-icon.incorreto {
    color: #dc3545;
}

.fc-checklist-content {
    flex: 1;
}

.fc-checklist-content strong {
    display: block;
    margin-bottom: 5px;
}

.fc-checklist-content small {
    color: #dc3545;
    font-size: 13px;
    line-height: 1.4;
}

/* ========================================
   MODAL
   ======================================== */

.fc-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    animation: fadeIn 0.3s ease;
}

.fc-modal.active {
    display: block;
}

.fc-modal-content {
    background: white;
    margin: 5% auto;
    padding: 40px;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fc-modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
    line-height: 1;
}

.fc-modal-close:hover {
    color: #333;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .fc-container {
        padding: 10px;
    }
    
    #fc-formulario {
        padding: 20px;
    }
    
    .fc-form-grid {
        grid-template-columns: 1fr;
    }
    
    .fc-form-group,
    .fc-form-group.fc-full-width,
    .fc-form-group.fc-span-2,
    .fc-form-group.fc-span-3 {
        grid-column: span 1;
    }
    
    .fc-button-group {
        flex-direction: column;
    }
    
    .fc-btn {
        width: 100%;
    }
    
    .fc-vinculo-buttons {
        flex-direction: column;
    }
    
    .fc-btn-cancelar,
    .fc-btn-govbr {
        width: 100%;
    }
    
    .fc-progress-bar {
        margin-bottom: 20px;
    }
    
    .fc-step-label {
        font-size: 10px;
    }
    
    .fc-modal-content {
        padding: 20px;
        margin: 10% auto;
    }
}

/* ========================================
   UTILITÁRIOS
   ======================================== */

.fc-text-center {
    text-align: center;
}

.fc-mt-20 {
    margin-top: 20px;
}

.fc-mb-20 {
    margin-bottom: 20px;
}

.fc-hidden {
    display: none !important;
}

/* ========================================
   VALIDAÇÃO VISUAL DE CAMPOS - v2.1.1
   ======================================== */

/* Campo válido (preenchido corretamente) */
input.field-valid,
textarea.field-valid,
select.field-valid {
    border-color: #28a745 !important;
    background-color: #f0fff4 !important;
}

/* Campo inválido (erro ou vazio quando required) */
input.field-invalid,
textarea.field-invalid,
select.field-invalid {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
}

/* Campo vazio (estado padrão - mantém laranja) */
input.field-empty,
textarea.field-empty,
select.field-empty {
    border-color: #1A56C9 !important;
}

/* Destaque especial para campos que precisam correção */
input.field-invalid-highlight,
textarea.field-invalid-highlight,
select.field-invalid-highlight {
    border-color: #dc3545 !important;
    border-width: 3px !important;
    background-color: #fff5f5 !important;
    animation: pulseError 2s infinite;
}

@keyframes pulseError {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
}

/* Alerta de correção */
.fc-alerta-correcao {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    animation: slideDownAlert 0.3s ease;
}

@keyframes slideDownAlert {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fc-alerta-correcao strong {
    color: #856404;
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

/* File input válido */
input[type="file"].field-valid {
    border-color: #28a745 !important;
    background-color: #f0fff4 !important;
}

input[type="file"].field-invalid {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
}

/* Checkbox label válido/inválido */
.fc-checkbox-label.field-valid {
    color: #28a745;
    font-weight: bold;
}

.fc-checkbox-label.field-invalid {
    color: #dc3545;
    font-weight: bold;
}

/* ========================================
   MELHORIAS NO STATUS DE ACOMPANHAMENTO
   ======================================== */

/* Status em processamento */
.fc-status-processamento {
    padding: 30px;
    background: #d1ecf1;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #0c5460;
}

.fc-status-processamento h3 {
    color: #0c5460;
    margin: 10px 0;
    font-size: 22px;
}

.fc-status-processamento p {
    color: #0c5460;
    font-size: 16px;
    line-height: 1.6;
}

.fc-status-icon-large {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

/* ========================================
   MELHORIAS NOS BOTÕES
   ======================================== */

/* Botão de correção destacado */
#fc-btn-tentar-novamente {
    background: #ffc107 !important;
    color: #000 !important;
    font-weight: bold;
    padding: 15px 30px;
    font-size: 18px;
    animation: pulseBounce 2s infinite;
}

#fc-btn-tentar-novamente:hover {
    background: #ffca2c !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

@keyframes pulseBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ========================================
   RESPONSIVIDADE ADICIONAL
   ======================================== */

@media (max-width: 768px) {
    .fc-alerta-correcao {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .fc-status-processamento {
        padding: 20px 15px;
    }
    
    .fc-status-icon-large {
        font-size: 36px;
    }
    
    #fc-btn-tentar-novamente {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }
}

/* ========================================
   MODO CORREÇÃO - ESTILOS NOVOS v2.2
   ======================================== */

/* Badge de arquivo aprovado (verde) */
.fc-arquivo-aprovado {
    background: #d4edda;
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    color: #155724;
    font-size: 14px;
    line-height: 1.6;
    animation: slideInDown 0.4s ease;
}

.fc-arquivo-aprovado strong {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
}

.fc-arquivo-aprovado small {
    color: #155724;
    font-size: 12px;
    opacity: 0.8;
}

/* Alerta de rejeição (vermelho) */
.fc-alerta-rejeicao {
    background: #f8d7da;
    border: 2px solid #dc3545;
    border-left-width: 5px;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    color: #721c24;
    font-size: 14px;
    line-height: 1.6;
    animation: shakeAlert 0.5s ease;
}

@keyframes shakeAlert {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.fc-alerta-rejeicao strong {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    color: #721c24;
}

/* Container de campo aprovado */
.campo-aprovado {
    opacity: 0.8;
    position: relative;
}

.campo-aprovado input[type="file"] {
    display: none !important;
}

.campo-aprovado label {
    opacity: 0.7;
}

/* Botão de enviar correção */
.fc-btn-finalizar-correcao {
    background: #28a745;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    animation: pulseBounce 2s infinite;
}

.fc-btn-finalizar-correcao:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.fc-btn-finalizar-correcao:disabled {
    background: #6c757d;
    cursor: not-allowed;
    animation: none;
    opacity: 0.6;
}

.fc-btn-finalizar-correcao:active {
    transform: translateY(0);
}

/* Animação para inputs em modo correção */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Destaque extra para campos que precisam atenção */
input.field-invalid-highlight:focus,
textarea.field-invalid-highlight:focus,
select.field-invalid-highlight:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.25) !important;
}

/* Badge de correção no topo do formulário */
.fc-badge-modo-correcao {
    background: #ffc107;
    color: #000;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 30px;
    border: 2px solid #ffca2c;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    animation: pulseBounce 2s infinite;
}

.fc-badge-modo-correcao span {
    font-size: 24px;
    margin-right: 10px;
}

/* Alerta especial para vínculo incorreto */
.fc-alerta-vinculo {
    background: #fff3cd !important;
    border-color: #ffc107 !important;
    color: #856404 !important;
}

.fc-alerta-vinculo strong {
    color: #856404 !important;
}

/* Loading state do botão de correção */
.fc-btn-finalizar-correcao .fc-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.fc-btn-finalizar-correcao.loading .fc-spinner {
    display: inline-block;
}

/* Responsividade para modo correção */
@media (max-width: 768px) {
    .fc-arquivo-aprovado,
    .fc-alerta-rejeicao {
        padding: 12px;
        font-size: 13px;
    }
    
    .fc-btn-finalizar-correcao {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .fc-badge-modo-correcao {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* ═══════════════════════════════════════════════════════════
   MODAL DE CORREÇÃO - v2.2
   Sistema de modal em tela cheia para correção de campos
   ═══════════════════════════════════════════════════════════ */

/* Modal de Correção - Overlay */
#fc-modal-reenvio {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    overflow-y: auto;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal Content - Container */
.fc-modal-correcao {
    position: relative;
    max-width: 900px;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header do Modal */
.fc-modal-header {
    background: linear-gradient(135deg, #1A56C9 0%, #f7931e 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.fc-modal-header h2 {
    margin: 0 0 10px 0;
    font-size: 26px;
    font-weight: 700;
}

.fc-modal-header p {
    margin: 0;
    font-size: 15px;
    opacity: 0.95;
}

/* Botão Fechar */
#fc-modal-reenvio-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    font-size: 28px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

#fc-modal-reenvio-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Seções do Modal */
.fc-modal-section {
    padding: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.fc-modal-section:last-of-type {
    border-bottom: none;
}

.fc-modal-section h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Texto informativo */
.fc-info-text {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.6;
}

.fc-info-text strong {
    color: #856404;
    display: block;
    margin-bottom: 5px;
}

/* Campos Aprovados (disabled) */
.fc-field-approved {
    background: #f0fff4 !important;
    border: 2px solid #28a745 !important;
    color: #155724 !important;
    cursor: not-allowed !important;
}

.fc-approved-badge {
    display: inline-block;
    background: #d4edda;
    color: #155724;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 13px;
    margin-top: 5px;
    font-weight: 500;
}

/* Containers de campos aprovados */
.fc-field-approved-container {
    background: #f0fff4;
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

/* Badge Verde de Aprovação */
.fc-badge-approved {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
}

.fc-badge-approved strong {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
}

.fc-badge-approved small {
    display: block;
    font-size: 13px;
    opacity: 0.8;
    margin-top: 5px;
}

/* Containers de campos rejeitados */
.fc-field-rejected {
    background: #fff5f5;
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

/* Alerta de Rejeição */
.fc-alert-rejection {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
}

.fc-alert-rejection strong {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
}

/* Inputs dentro do modal */
#fc-form-correcao-modal input[type="text"],
#fc-form-correcao-modal input[type="email"],
#fc-form-correcao-modal input[type="tel"],
#fc-form-correcao-modal input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
}

#fc-form-correcao-modal input:focus {
    border-color: #1A56C9;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* File inputs dentro do modal */
#fc-form-correcao-modal input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px dashed #ddd;
    border-radius: 6px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

#fc-form-correcao-modal input[type="file"]:hover {
    border-color: #1A56C9;
    background: #fff5f2;
}

/* Form Grid dentro do modal */
#fc-form-correcao-modal .fc-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

#fc-form-correcao-modal .fc-form-group.fc-full-width {
    grid-column: 1 / -1;
}

#fc-form-correcao-modal .fc-form-group.fc-span-3 {
    grid-column: span 1;
}

/* Labels */
#fc-form-correcao-modal label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

#fc-form-correcao-modal small {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

/* Botões de Ação */
.fc-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding: 25px 30px;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.fc-modal-actions .fc-btn {
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.fc-modal-actions .fc-btn-secondary {
    background: #6c757d;
    color: white;
}

.fc-modal-actions .fc-btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.fc-modal-actions .fc-btn-primary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.fc-modal-actions .fc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.4);
}

/* Loading Overlay dentro do Modal */
#fc-modal-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 10;
}

.fc-loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #1A56C9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#fc-loading-text {
    margin-top: 20px;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVO - MOBILE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    #fc-modal-reenvio {
        padding: 10px;
    }
    
    .fc-modal-correcao {
        margin: 10px auto;
        border-radius: 8px;
    }
    
    .fc-modal-header {
        padding: 20px 15px;
        border-radius: 8px 8px 0 0;
    }
    
    .fc-modal-header h2 {
        font-size: 20px;
        padding-right: 40px;
    }
    
    .fc-modal-header p {
        font-size: 14px;
    }
    
    #fc-modal-reenvio-close {
        width: 35px;
        height: 35px;
        font-size: 24px;
        top: 12px;
        right: 12px;
    }
    
    .fc-modal-section {
        padding: 20px 15px;
    }
    
    .fc-modal-section h3 {
        font-size: 18px;
    }
    
    #fc-form-correcao-modal .fc-form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    #fc-form-correcao-modal .fc-form-group.fc-span-3 {
        grid-column: span 1;
    }
    
    .fc-modal-actions {
        flex-direction: column;
        padding: 20px 15px;
    }
    
    .fc-modal-actions .fc-btn {
        width: 100%;
        padding: 12px;
    }
    
    .fc-info-text {
        font-size: 13px;
        padding: 12px;
    }
}

/* ═══════════════════════════════════════════════════════════
   FIM DOS ESTILOS DO MODAL DE CORREÇÃO
   ═══════════════════════════════════════════════════════════ */
