/* Reset e configurações base para garantir que os estilos sejam aplicados */
/* DEBUG: CSS Mobile Cards - Versão 2.0 - Otimizado para todos os tamanhos de tela */
* {
    box-sizing: border-box;
}

/* Garantir que o body tenha os estilos corretos */
body {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh !important;
    background-color: #f9fafb !important;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif !important;
}

/* Container geral */
.container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
}



/* Header com prioridade alta */
.header-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%) !important;
    color: white !important;
    padding: 1.5rem 0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.header-content {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.5rem !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.header-logo {
    flex-shrink: 0 !important;
    display: block !important;
    visibility: visible !important;
}

.logo-img {
    height: 80px !important;
    width: auto !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    transition: transform 0.3s ease !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-width: none !important;
    position: relative !important;
    z-index: 10 !important;
}



.logo-img:hover {
    transform: scale(1.05) !important;
}

.header-text {
    text-align: center !important;
    flex: 1 !important;
}

.header-title {
    color: white !important;
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    margin: 0 0 0.5rem 0 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    line-height: 1.2 !important;
}

.header-subtitle {
    color: #e0e7ff !important;
    margin-top: 0.25rem !important;
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
}

.header-subtitle-emphasis {
    font-weight: 600 !important;
    color: #fef3c7 !important;
    margin-top: 0.5rem !important;
}



/* Container principal */
.main-container {
    max-width: 64rem !important;
    margin: 0 auto !important;
    background-color: white !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    border-radius: 0.5rem !important;
    overflow: visible !important;
}

/* Critérios com design limpo e simples */
.criteria-section {
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.5rem !important;
    padding: 1.5rem !important;
    margin: 1.5rem 0 !important;
}

.criteria-section p {
    color: #374151 !important;
    margin-bottom: 1rem !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
}

.criteria-section ol {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.criteria-section li {
    color: #4b5563 !important;
    margin-bottom: 0.5rem !important;
    padding: 0.5rem 0 !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
}

.criteria-section li strong {
    color: #374151 !important;
    font-weight: 600 !important;
    margin-right: 0.5rem !important;
}

/* Seção de ajuda com design elegante */
.help-section {
    background-color: #fafafa !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.5rem !important;
    padding: 1.25rem !important;
    margin: 1.5rem 1rem 2rem 1rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.help-intro {
    margin: 0 !important;
    color: #4b5563 !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
}

.help-intro i.fas {
    color: #6b7280 !important;
    margin-right: 0.5rem !important;
    font-size: 1rem !important;
}

.help-intro strong {
    color: #374151 !important;
    font-weight: 600 !important;
    margin-right: 0.5rem !important;
}

/* Formulário */
.form-section {
    padding: 1.5rem !important;
}

.form-label {
    display: block !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #374151 !important;
    margin-bottom: 0.5rem !important;
}

.form-input {
    width: 100% !important;
    padding: 0.75rem !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.375rem !important;
    font-size: 1rem !important;
    background-color: white !important;
    color: #111827 !important;
}

/* Validação de CPF */
.cpf-valid {
    border-color: #10b981 !important;
    background-color: #f0fdf4 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

.cpf-invalid {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.cpf-valid:focus {
    border-color: #059669 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
}

.cpf-invalid:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

.form-input:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* Tabela */
.table-container {
    overflow-x: auto !important;
    margin: 1.5rem 0 !important;
}

.data-table {
    width: 100% !important;
    border-collapse: collapse !important;
    border: 1px solid #d1d5db !important;
    background-color: white !important;
    table-layout: fixed !important;
}

.table-header-cell {
    background-color: #f3f4f6 !important;
    border: 1px solid #d1d5db !important;
    padding: 0.75rem 1rem !important;
    text-align: center !important;
    font-weight: 600 !important;
    color: #111827 !important;
    font-size: 0.875rem !important;
}

.table-body-cell {
    border: 1px solid #d1d5db !important;
    padding: 0.75rem 1rem !important;
    background-color: white !important;
    color: #111827 !important;
    vertical-align: middle !important;
}

.table-body-cell.font-medium {
    font-weight: 500 !important;
}

.table-input {
    width: 100% !important;
    padding: 0.5rem !important;
    border: none !important;
    background-color: transparent !important;
    color: #111827 !important;
    font-size: 0.875rem !important;
}

.table-input:focus {
    outline: none !important;
    background-color: #f9fafb !important;
    border-radius: 0.25rem !important;
    box-shadow: inset 0 0 0 1px #3b82f6 !important;
}

.table-input::placeholder {
    color: #9ca3af !important;
    font-style: italic !important;
}

/* Larguras específicas das colunas da tabela */
/* CARGO: 20% | INDICAÇÃO: 33% | OBS: 30% | AUTO-INDICAÇÃO: 17% */
/* A coluna INDICAÇÃO (33%) é 10% maior que a coluna OBS (30%) */
.data-table th:nth-child(1),
.data-table td:nth-child(1) {
    width: 20% !important;
    min-width: 200px !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: ellipsis !important;
    position: relative !important;
}

/* Exceção para a célula do Conselho Fiscal que precisa de quebra de linha */
.data-table td:nth-child(1)[rowspan] {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    line-height: 1.3 !important;
}

.data-table th:nth-child(2),
.data-table td:nth-child(2) {
    width: 33% !important;
    min-width: 200px !important;
}

.data-table th:nth-child(3),
.data-table td:nth-child(3) {
    width: 30% !important;
    min-width: 180px !important;
}

.data-table th:nth-child(4),
.data-table td:nth-child(4) {
    width: 17% !important;
    min-width: 120px !important;
}

/* Layout fixo já definido na regra principal da tabela */

/* Ajustes responsivos para tablets grandes */
/* CARGO: 18% | INDICAÇÃO: 35% | OBS: 32% | AUTO-INDICAÇÃO: 15% */
/* A coluna INDICAÇÃO (35%) mantém-se 9.4% maior que a coluna OBS (32%) */
@media (min-width: 769px) and (max-width: 1200px) {
    .data-table th:nth-child(1),
    .data-table td:nth-child(1) {
        width: 18% !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: ellipsis !important;
        position: relative !important;
    }
    
    /* Exceção para a célula do Conselho Fiscal em tablets */
    .data-table td:nth-child(1)[rowspan] {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
        line-height: 1.3 !important;
    }
    
    .data-table th:nth-child(2),
    .data-table td:nth-child(2) {
        width: 35% !important;
    }
    
    .data-table th:nth-child(3),
    .data-table td:nth-child(3) {
        width: 32% !important;
    }
    
    .data-table th:nth-child(4),
    .data-table td:nth-child(4) {
        width: 15% !important;
        min-width: 110px !important;
    }
}

/* Toggle Switch Elegante */
.toggle-switch {
    position: relative !important;
    display: inline-block !important;
    width: 3rem !important;
    height: 1.5rem !important;
    cursor: pointer !important;
}

.toggle-switch input[type="checkbox"] {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
}

.toggle-slider {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: #e5e7eb !important;
    border: 2px solid #d1d5db !important;
    border-radius: 1.5rem !important;
    transition: all 0.3s ease !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.toggle-slider:before {
    position: absolute !important;
    content: "" !important;
    height: 1rem !important;
    width: 1rem !important;
    left: 0.125rem !important;
    bottom: 0.125rem !important;
    background-color: white !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #10b981 !important;
    border-color: #059669 !important;
    box-shadow: inset 0 1px 3px rgba(16, 185, 129, 0.2) !important;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(1.5rem) !important;
    background-color: white !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

.toggle-switch:hover .toggle-slider {
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.toggle-switch input:focus + .toggle-slider {
    outline: none !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
}

/* Texto indicativo do toggle */
.toggle-label {
    display: block !important;
    margin-left: 0 !important;
    font-size: 0.75rem !important;
    color: #6b7280 !important;
    text-align: center !important;
    transition: color 0.3s ease !important;
    line-height: 1.3 !important;
    max-width: 120px !important;
    word-wrap: break-word !important;
}

.toggle-switch input:checked ~ .toggle-label {
    color: #059669 !important;
    font-weight: 600 !important;
}

/* Container do toggle para centralizar */
.toggle-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0.5rem 0.25rem !important;
    min-width: auto !important;
}

/* Botões */
.btn-primary {
    background-color: #3b82f6 !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border: none !important;
    border-radius: 0.375rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    margin-right: 0.5rem !important;
    font-size: 1rem !important;
    transition: background-color 0.2s ease !important;
}

.btn-primary:hover {
    background-color: #2563eb !important;
}

.btn-primary:disabled {
    background-color: #9ca3af !important;
    cursor: not-allowed !important;
}

.btn-secondary {
    background-color: #6b7280 !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border: none !important;
    border-radius: 0.375rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    font-size: 1rem !important;
    transition: background-color 0.2s ease !important;
}

.btn-secondary:hover {
    background-color: #4b5563 !important;
}

/* Estados do formulário */
.loading {
    display: none;
}

.success-message {
    display: none;
    background-color: #d1fae5 !important;
    border: 1px solid #6ee7b7 !important;
    color: #047857 !important;
    padding: 1rem !important;
    border-radius: 0.375rem !important;
    margin: 1rem 0 !important;
}

.error-message {
    display: none;
    background-color: #fee2e2 !important;
    border: 1px solid #fca5a5 !important;
    color: #dc2626 !important;
    padding: 1rem !important;
    border-radius: 0.375rem !important;
    margin: 1rem 0 !important;
}

.required {
    color: #dc2626 !important;
}

/* Específico para o conselho fiscal com rowspan */
.conselho-fiscal-header {
    background-color: #f3f4f6 !important;
    border: 1px solid #d1d5db !important;
    padding: 0.75rem 1rem !important;
    text-align: center !important;
    font-weight: 600 !important;
    color: #111827 !important;
    vertical-align: middle !important;
}

/* Nota informativa */
.info-note {
    background-color: #fef3c7 !important;
    border: 1px solid #f59e0b !important;
    border-radius: 0.375rem !important;
    padding: 1rem !important;
    margin: 1.5rem 0 !important;
}

.info-note h3 {
    color: #92400e !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    margin: 0 0 0.5rem 0 !important;
}

.info-note p {
    color: #92400e !important;
    font-size: 0.875rem !important;
    margin: 0.5rem 0 !important;
    line-height: 1.5 !important;
}

/* Footer */
.footer {
    background-color: #1f2937 !important;
    color: white !important;
    padding: 1.5rem 0 !important;
    margin-top: 3rem !important;
    text-align: center !important;
}

.footer p {
    margin: 0.25rem 0 !important;
    color: #d1d5db !important;
}

.footer .text-gray-400 {
    color: #9ca3af !important;
}

/* Layout Mobile - Cards ao invés de tabela */
.mobile-card-layout {
    display: none;
}

/* DEBUG: Forçar visibilidade dos cards em todos os dispositivos mobile */
@media (max-width: 768px) {
    .mobile-card-layout {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 10 !important;
        width: 100% !important;
    }
}

.mobile-card {
    background-color: white !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 0.75rem !important;
    padding: 1rem !important;
    margin-bottom: 1.25rem !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease !important;
    display: block !important;
    width: 100% !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Cores alternadas sutis para melhor distinção */
.mobile-card:nth-child(odd) {
    background-color: #fafafa !important;
    border-color: #d1d5db !important;
}

.mobile-card:nth-child(even) {
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

/* Efeito hover para melhor interação */
.mobile-card:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    border-color: #9ca3af !important;
}

/* Garantir que os cards sejam visíveis em todos os dispositivos */
@media (max-width: 768px) {
    .mobile-card {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 1 !important;
    }
}

/* Dispositivos em orientação landscape */
@media (max-height: 500px) and (orientation: landscape) {
    .mobile-card {
        padding: 0.75rem !important;
        margin-bottom: 0.875rem !important;
    }
    
    .mobile-card-header {
        font-size: 0.8125rem !important;
        padding: 0.5rem 0.75rem !important;
        margin: -0.75rem -0.75rem 0.625rem -0.75rem !important;
    }
    
    .mobile-input-group {
        margin-bottom: 0.625rem !important;
    }
    
    .mobile-input-label {
        font-size: 0.8125rem !important;
    }
    
    .header-primary {
        padding: 0.5rem 0 !important;
    }
    
    .logo-img {
        height: 40px !important;
    }
    
    .header-title {
        font-size: 1rem !important;
    }
    
    .header-subtitle {
        font-size: 0.75rem !important;
    }
}

/* Regra final de segurança para garantir visibilidade dos cards */
@media screen and (max-width: 768px) {
    .mobile-card {
        min-height: 100px !important;
        border: 1.5px solid #d1d5db !important;
        background-color: white !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    }
    
    .mobile-card:nth-child(odd) {
        background-color: #fafafa !important;
    }
    
    .mobile-card:nth-child(even) {
        background-color: #f8fafc !important;
    }
    
    .mobile-card-header {
        background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%) !important;
        border-bottom: 2px solid #d1d5db !important;
        color: #1f2937 !important;
        font-weight: 600 !important;
    }
}

.mobile-card-header {
    font-weight: 600 !important;
    color: #1f2937 !important;
    margin-bottom: 0.75rem !important;
    padding: 0.5rem 0.75rem !important;
    margin: -1rem -1rem 0.75rem -1rem !important;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%) !important;
    border-bottom: 2px solid #d1d5db !important;
    border-radius: 0.75rem 0.75rem 0 0 !important;
    text-align: center !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.025em !important;
}

.mobile-input-group {
    margin-bottom: 0.75rem !important;
}

.mobile-input-label {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #374151 !important;
    margin-bottom: 0.25rem !important;
    display: block !important;
}

.mobile-toggle-group {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0.5rem 0 !important;
}

.mobile-toggle-group label {
    font-size: 0.875rem !important;
    color: #374151 !important;
    margin: 0 !important;
}

/* Responsividade */
@media (max-width: 768px) {
    /* Layout geral */
    body {
        overflow-x: hidden !important;
    }
    
    .container {
        padding: 0 0.75rem !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .main-container {
        margin: 0.5rem 0 !important;
        border-radius: 0.5rem !important;
        overflow: hidden !important;
    }
    
    .form-section {
        padding: 1rem !important;
    }
    
    /* Ocultar tabela em mobile */
    .table-container {
        display: none !important;
    }
    
    /* Mostrar layout de cards em mobile - Regra consolidada acima */
    
    /* Headers responsivos */
    .header-primary {
        padding: 1rem 0 !important;
        top: 0 !important;
    }
    
    .header-content {
        flex-direction: column !important;
        gap: 1rem !important;
        text-align: center !important;
    }
    
    .logo-img {
        height: 60px !important;
    }
    
    .header-text {
        text-align: center !important;
    }
    
    .header-title {
        font-size: 1.25rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.375rem !important;
    }
    
    .header-subtitle {
        font-size: 0.875rem !important;
        line-height: 1.3 !important;
    }
    
    .header-subtitle-emphasis {
        font-size: 0.875rem !important;
        margin-top: 0.375rem !important;
    }
    
    /* Formulário responsivo */
    .form-input {
        font-size: 1rem !important;
        padding: 0.875rem !important;
    }
    
    /* Critérios section responsiva */
    .criteria-section {
        padding: 1rem !important;
        margin: 1rem 0 !important;
    }
    
    .criteria-section p {
        font-size: 0.95rem !important;
        margin-bottom: 1rem !important;
    }
    
    .criteria-section li {
        font-size: 0.875rem !important;
        margin-bottom: 0.5rem !important;
        padding: 0.375rem 0 !important;
    }
    
    /* Help section responsiva */
    .help-section {
        padding: 1rem !important;
        margin: 1rem 0.5rem 1.5rem 0.5rem !important;
    }
    
    .help-intro {
        font-size: 0.875rem !important;
        line-height: 1.5 !important;
    }
    
    /* Nota informativa */
    .info-note {
        padding: 0.875rem !important;
        margin: 1rem 0 !important;
    }
    
    .info-note h3 {
        font-size: 0.8125rem !important;
    }
    
    .info-note p {
        font-size: 0.8125rem !important;
    }
    
    /* Botões responsivos */
    .btn-primary,
    .btn-secondary {
        width: 100% !important;
        margin: 0.25rem 0 !important;
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
    }
    
    /* Mensagens */
    .success-message,
    .error-message {
        padding: 0.875rem !important;
        margin: 0.875rem 0 !important;
    }
    
    .success-message h3,
    .error-message h3 {
        font-size: 0.875rem !important;
    }
    
    .success-message p,
    .error-message p {
        font-size: 0.8125rem !important;
    }
    
    /* Footer */
    .footer {
        padding: 1rem 0 !important;
        margin-top: 2rem !important;
    }
    
    .footer p {
        font-size: 0.875rem !important;
    }
}

/* Mobile muito pequeno (320px) */
/* Tablets pequenos e dispositivos intermediários */
@media (max-width: 640px) and (min-width: 481px) {
    .mobile-card {
        padding: 0.875rem !important;
        margin-bottom: 1rem !important;
        border-width: 1.5px !important;
    }
    
    .mobile-card-header {
        font-size: 0.875rem !important;
        padding: 0.625rem 0.875rem !important;
        margin: -0.875rem -0.875rem 0.75rem -0.875rem !important;
    }
    
    .mobile-input-label {
        font-size: 0.8125rem !important;
    }
    
    .mobile-toggle-group label {
        font-size: 0.8125rem !important;
    }
}

/* Smartphones padrão */
@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem !important;
    }
    
    .main-container {
        margin: 0.25rem 0 !important;
    }
    
    .form-section {
        padding: 0.75rem !important;
    }
    
    .mobile-card {
        padding: 0.75rem !important;
        margin-bottom: 1rem !important;
        border-width: 1.5px !important;
        border-radius: 0.75rem !important;
    }
    
    .mobile-card-header {
        font-size: 0.8125rem !important;
        padding: 0.5rem 0.75rem !important;
        margin: -0.75rem -0.75rem 0.75rem -0.75rem !important;
    }
    
    .mobile-input-label {
        font-size: 0.8125rem !important;
    }
    
    .mobile-toggle-group label {
        font-size: 0.8125rem !important;
    }
    
    .header-primary {
        top: 0 !important;
        padding: 0.75rem 0 !important;
    }
    
    .header-content {
        gap: 0.75rem !important;
    }
    
    .logo-img {
        height: 50px !important;
    }
    
    .header-title {
        font-size: 1.125rem !important;
        line-height: 1.25 !important;
    }
    
    .header-subtitle {
        font-size: 0.8125rem !important;
    }
    
    .header-subtitle-emphasis {
        font-size: 0.8125rem !important;
        margin-top: 0.25rem !important;
    }
}

/* Dispositivos muito pequenos */
@media (max-width: 320px) {
    .container {
        padding: 0 0.375rem !important;
    }
    
    .main-container {
        margin: 0.125rem 0 !important;
        border-radius: 0.375rem !important;
    }
    
    .form-section {
        padding: 0.625rem !important;
    }
    
    .mobile-card {
        padding: 0.625rem !important;
        margin-bottom: 0.875rem !important;
        border-width: 1px !important;
        border-radius: 0.625rem !important;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    }
    
    .mobile-card-header {
        font-size: 0.75rem !important;
        padding: 0.375rem 0.625rem !important;
        margin: -0.625rem -0.625rem 0.625rem -0.625rem !important;
        border-radius: 0.625rem 0.625rem 0 0 !important;
    }
    
    .mobile-input-group {
        margin-bottom: 0.625rem !important;
    }
    
    .mobile-input-label {
        font-size: 0.75rem !important;
        margin-bottom: 0.1875rem !important;
    }
    
    .mobile-toggle-group {
        padding: 0.375rem 0 !important;
    }
    
    .mobile-toggle-group label {
        font-size: 0.75rem !important;
    }
    
    .header-primary {
        padding: 0.625rem 0 !important;
    }
    
    .header-content {
        gap: 0.625rem !important;
    }
    
    .logo-img {
        height: 40px !important;
    }
    
    .header-title {
        font-size: 1rem !important;
        line-height: 1.2 !important;
    }
    
    .header-subtitle {
        font-size: 0.75rem !important;
    }
    
    .header-subtitle-emphasis {
        font-size: 0.75rem !important;
        margin-top: 0.1875rem !important;
    }
}

/* Estilos para campos bloqueados por auto-indicação */
.field-locked {
    background-color: #f9fafb !important;
    cursor: not-allowed !important;
    opacity: 0.8 !important;
}

.field-locked:focus {
    box-shadow: 0 0 0 2px rgba(156, 163, 175, 0.5) !important;
    border-color: #9ca3af !important;
}

/* Utilitários adicionais */
.flex {
    display: flex !important;
}

.flex-col {
    flex-direction: column !important;
}

.flex-1 {
    flex: 1 1 0% !important;
}

.items-center {
    align-items: center !important;
}

.justify-center {
    justify-content: center !important;
}

.text-center {
    text-align: center !important;
}

.space-y-4 > * + * {
    margin-top: 1rem !important;
}

.space-y-6 > * + * {
    margin-top: 1.5rem !important;
}

.gap-4 {
    gap: 1rem !important;
}

.hidden {
    display: none !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.py-8 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.pt-6 {
    padding-top: 1.5rem !important;
}

.mt-12 {
    margin-top: 3rem !important;
}

.text-xs {
    font-size: 0.75rem !important;
}

.font-normal {
    font-weight: 400 !important;
}

/* Estilos para desktop e tablets grandes */
@media (min-width: 769px) {
    .header-content {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 1.5rem !important;
        width: fit-content !important;
        margin: 0 auto !important;
    }
    
    .header-logo {
        display: flex !important;
        visibility: visible !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        height: auto !important;
        position: relative !important;
        z-index: 100 !important;
        background: none !important;
        clear: both !important;
        float: none !important;
        flex-shrink: 0 !important;
    }
    
    .logo-img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: 80px !important;
        width: auto !important;
        max-width: none !important;
        position: static !important;
        z-index: 101 !important;
        background: white !important;
        padding: 2px !important;
        border-radius: 8px !important;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    }
    
    .header-text {
        text-align: left !important;
        flex-shrink: 0 !important;
    }
    
    .header-title {
        text-align: left !important;
    }
    
    .header-subtitle {
        text-align: left !important;
    }
}

/* Média queries para dispositivos móveis */
@media (min-width: 640px) {
    .sm\:flex-row {
        flex-direction: row !important;
    }
}

/* Mensagem de sucesso em tela cheia */
.success-message-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeInSuccess 0.8s ease-out;
}

.success-message-fullscreen.hidden {
    display: none !important;
}

.success-content {
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: bounceIn 1s ease-out 0.3s both;
}

.success-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: slideInUp 0.8s ease-out 0.5s both;
}

.success-text {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    animation: slideInUp 0.8s ease-out 0.7s both;
}

.success-thank-you {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #fef3c7;
    animation: slideInUp 0.8s ease-out 0.9s both;
}

.success-decoration {
    font-size: 2rem;
    color: #fef3c7;
    animation: pulse 2s infinite 1.5s;
}

/* Animações */
@keyframes fadeInSuccess {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

/* Responsividade para a mensagem de sucesso */
@media (max-width: 768px) {
    .success-content {
        padding: 1.5rem;
    }
    
    .success-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    .success-title {
        font-size: 1.875rem;
        margin-bottom: 1rem;
    }
    
    .success-text {
        font-size: 1.125rem;
        margin-bottom: 1rem;
    }
    
    .success-thank-you {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .success-decoration {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .success-content {
        padding: 1rem;
    }
    
    .success-icon {
        font-size: 2.5rem;
    }
    
    .success-title {
        font-size: 1.5rem;
    }
    
    .success-text {
        font-size: 1rem;
    }
    
    .success-thank-you {
        font-size: 1.125rem;
    }
}

/* Estilos para o termo de consentimento */
.form-group {
    margin-bottom: 1.5rem !important;
}

.textarea-container {
    background-color: #f9fafb !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.375rem !important;
    padding: 1rem !important;
    max-height: 200px !important;
    overflow-y: auto !important;
    font-size: 0.875rem !important;
    line-height: 1.6 !important;
    color: #374151 !important;
    margin-bottom: 1rem !important;
}

.textarea-container::-webkit-scrollbar {
    width: 8px !important;
}

.textarea-container::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
    border-radius: 4px !important;
}

.textarea-container::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 4px !important;
}

.textarea-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
}

.textarea-container strong {
    color: #1f2937 !important;
    font-weight: 600 !important;
}

.textarea-container a {
    color: #3b82f6 !important;
    text-decoration: underline !important;
    word-break: break-all !important;
}

.textarea-container a:hover {
    color: #1d4ed8 !important;
}

.form-check {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    margin-bottom: 1.5rem !important;
}

.form-check-input {
    margin: 0 !important;
    width: 1rem !important;
    height: 1rem !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.25rem !important;
    accent-color: #3b82f6 !important;
    flex-shrink: 0 !important;
}

.form-check-label {
    font-size: 0.875rem !important;
    color: #374151 !important;
    cursor: pointer !important;
    line-height: 1.4 !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.instrucoes-termo {
    color: #374151 !important;
    font-size: 0.875rem !important;
    font-style: italic !important;
    margin-top: 0.25rem !important;
}

.titulo-termo {
    color: #1f2937 !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    margin-bottom: 0.5rem !important;
}

/* Responsividade para o termo de consentimento */
@media (max-width: 768px) {
    .textarea-container {
        font-size: 0.8rem !important;
        padding: 0.75rem !important;
    }
    
    .form-check-label {
        font-size: 0.8rem !important;
    }
    
    .textarea-container a {
        font-size: 0.75rem !important;
    }
    
    .instrucoes-termo {
        font-size: 0.8rem !important;
    }
    
    .titulo-termo {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .textarea-container {
        font-size: 0.75rem !important;
        padding: 0.5rem !important;
    }
    
    .form-check-label {
        font-size: 0.75rem !important;
    }
    
    .textarea-container a {
        font-size: 0.7rem !important;
    }
    
    .instrucoes-termo {
        font-size: 0.75rem !important;
    }
    
    .titulo-termo {
        font-size: 0.85rem !important;
    }
}

/* Estilos do Popup Elegante */
.popup-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999 !important;
    backdrop-filter: blur(4px) !important;
    transition: all 0.3s ease !important;
}

.popup-overlay.hidden {
    display: none !important;
}

.popup-container {
    background-color: white !important;
    border-radius: 16px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    max-width: 500px !important;
    width: 90% !important;
    max-height: 90vh !important;
    overflow: hidden !important;
    animation: popupSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    transform: scale(1) !important;
}

.popup-icon {
    padding: 2rem 2rem 1rem 2rem !important;
    text-align: center !important;
}

.popup-icon i {
    font-size: 3rem !important;
    color: #3b82f6 !important;
    margin-bottom: 1rem !important;
    animation: popupIconBounce 0.6s ease 0.2s both !important;
}

.popup-content {
    padding: 0 2rem 1.5rem 2rem !important;
    text-align: center !important;
}

.popup-content h3 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin-bottom: 1rem !important;
    animation: popupTextSlide 0.5s ease 0.3s both !important;
}

.popup-content p {
    font-size: 1rem !important;
    color: #6b7280 !important;
    line-height: 1.6 !important;
    margin-bottom: 0 !important;
    animation: popupTextSlide 0.5s ease 0.4s both !important;
    word-wrap: break-word !important;
    white-space: pre-line !important;
}

.popup-actions {
    padding: 1.5rem 2rem 2rem 2rem !important;
    text-align: center !important;
}

.popup-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0.875rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    animation: popupButtonSlide 0.5s ease 0.5s both !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.popup-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3) !important;
}

.popup-btn:active {
    transform: translateY(0) !important;
}

/* Variantes do popup para diferentes tipos */
.popup-info {
    border-top: 4px solid #06b6d4 !important;
}

.popup-info .popup-icon i {
    color: #06b6d4 !important;
}

.popup-info .popup-content h3 {
    color: #0891b2 !important;
}

.popup-info .popup-content p {
    color: #475569 !important;
}

.popup-info .popup-btn {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
}

.popup-info .popup-btn:hover {
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3) !important;
}

.popup-warning .popup-icon i {
    color: #f59e0b !important;
}

.popup-error .popup-icon i {
    color: #ef4444 !important;
}

/* Animações */
@keyframes popupSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes popupSlideOut {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) translateY(-30px);
    }
}

@keyframes popupIconBounce {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    50% {
        transform: scale(1.1) rotate(-90deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

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

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

/* Responsividade do popup */
@media (max-width: 768px) {
    .popup-container {
        width: 95% !important;
        margin: 1rem !important;
    }
    
    .popup-icon {
        padding: 1.5rem 1.5rem 1rem 1.5rem !important;
    }
    
    .popup-icon i {
        font-size: 2.5rem !important;
    }
    
    .popup-content {
        padding: 0 1.5rem 1rem 1.5rem !important;
    }
    
    .popup-content h3 {
        font-size: 1.25rem !important;
    }
    
    .popup-content p {
        font-size: 0.9rem !important;
    }
    
    .popup-actions {
        padding: 1rem 1.5rem 1.5rem 1.5rem !important;
    }
    
    .popup-btn {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .popup-container {
        width: 98% !important;
        margin: 0.5rem !important;
    }
    
    .popup-icon i {
        font-size: 2rem !important;
    }
    
    .popup-content h3 {
        font-size: 1.125rem !important;
    }
    
    .popup-content p {
        font-size: 0.85rem !important;
    }
} 