/* =========================================
   ARQUIVO: denuncia.css
   ESTILOS DA PÁGINA DE DENÚNCIA SIGILOSA
   ========================================= */

/* Cabeçalho Interno (Reaproveitado das outras páginas) */
.page-header {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 80px 20px;
    text-align: center;
    color: white;
}

.page-header-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-width);
    margin: 0 auto;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 1.1rem;
    color: #e8f2ef;
}

/* Badge (Pílula superior) */
.badge-danger {
    display: inline-block;
    background-color: #fee2e2;
    color: #ef4444; /* Vermelho alerta */
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
    margin-bottom: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* =========================================
   CONTEÚDO E SPLIT LAYOUT
   ========================================= */
.report-section {
    padding: 80px 20px;
    background-color: var(--bg-light);
}

.content-container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

@media (max-width: 900px) {
    .split-layout { grid-template-columns: 1fr; gap: 40px; }
}

/* --- Lado Esquerdo (Informações) --- */
.info-side h2 {
    font-size: 2rem;
    color: var(--brand-dark);
    margin-bottom: 24px;
    line-height: 1.3;
}

.info-side > p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 32px;
}

.security-box {
    background-color: white;
    border-left: 4px solid #10b981; /* Verde confirmação */
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 48px;
}

.security-box i {
    font-size: 2rem;
    color: #10b981;
}

.security-box h4 {
    color: var(--brand-dark);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.security-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.info-side h3 {
    font-size: 1.25rem;
    color: var(--brand-dark);
    margin-bottom: 16px;
}

.report-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.report-checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 1rem;
}

.report-checklist i {
    color: #ef4444; /* Vermelho para itens de alerta */
    font-size: 1.1rem;
}

/* --- Lado Direito (Formulário) --- */
.form-card {
    background-color: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.form-card h3 {
    font-size: 1.5rem;
    color: var(--brand-dark);
    margin-bottom: 8px;
}

.form-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.report-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-dark);
    margin-bottom: 8px;
}

.required {
    color: #ef4444;
}

.input-group input[type="text"],
.input-group textarea,
.select-wrapper select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    background-color: #f9fafb;
    font-family: inherit;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '\f107'; /* Ícone de seta do FontAwesome */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.select-wrapper select {
    appearance: none;
    padding-right: 40px;
    cursor: pointer;
}

.input-group input:focus,
.input-group textarea:focus,
.select-wrapper select:focus {
    border-color: var(--brand-primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(24, 73, 56, 0.1);
}

.input-group textarea {
    resize: vertical;
}

.file-input {
    width: 100%;
    padding: 10px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background-color: #f8fafc;
    cursor: pointer;
}

.file-help {
    display: block;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 6px;
}

.btn-submit-report {
    background-color: #ef4444; /* Vermelho para botão de denúncia */
    color: white;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-submit-report:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* =========================================
   RODAPÉ EXTRA (CONTATOS)
   ========================================= */
.contact-footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-footer-list li {
    color: #cbd5e1;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-footer-list i {
    color: var(--brand-primary);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* ==========================================================================
   MODAL DE SUCESSO - SITE PÚBLICO
   ========================================================================== */

/* Fundo escuro do modal */
.site-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* Escondido por padrão */
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.site-modal-overlay.active {
    display: flex;
}

/* Card Branco do Modal */
.site-modal-card {
    background-color: #ffffff;
    width: 100%;
    max-width: 450px;
    border-radius: 16px;
    padding: 32px 24px;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    animation: modalSlideUp 0.3s ease-out forwards;
}

/* Animação de entrada */
@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Botão de Fechar (X) */
.site-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
}

.site-modal-close:hover {
    color: #475569;
}

/* Tipografia e Ícones */
.site-modal-icon {
    font-size: 3rem;
    color: #10b981; /* Verde sucesso */
    margin-bottom: 16px;
}

.site-modal-title {
    color: #0f172a;
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.site-modal-text {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 24px;
}

/* Call to Action do WhatsApp */
.site-modal-zap-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
}

.site-modal-zap-box p {
    font-size: 0.85rem;
    color: #334155;
    margin-bottom: 16px;
    line-height: 1.4;
}

.btn-whatsapp-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background-color: #128c7e; /* Cor oficial do WhatsApp */
    color: #ffffff;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.2s;
}

.btn-whatsapp-modal:hover {
    background-color: #1ebc5a;
}

/* Feedback CNPJ da API */
.cnpj-feedback {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.text-success { color: #10b981; }
.text-danger { color: #ef4444; }
.text-muted { color: #64748b; }

/* Estado Desabilitado do Botão */
.btn-submit-report:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mensagem de erro de anexo */
.anexo-error-msg {
    color: #ef4444;
    font-size: 13px;
    margin-top: 5px;
    font-weight: bold;
    display: none; /* Escondido por padrão */
}

/* Classe que o JS vai injetar para mostrar o erro */
.anexo-error-msg.active {
    display: block;
}

/* =========================================
   CONTADOR DE CARACTERES
   ========================================= */
.char-counter {
    text-align: right;
    font-size: 0.8rem;
    color: #94a3b8; /* Cor neutra, combinando com os helps text */
    margin-top: 6px;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Estado de alerta injetado via JS quando o limite é atingido */
.char-counter.limit-reached {
    color: #ef4444;
    font-weight: bold;
    animation: shake 0.3s ease-in-out;
}

/* RESET DO SELECT: Remove qualquer cor azul ou decoração de link */
.select-wrapper select, 
.select-wrapper select option {
    color: var(--text-main) !important;
    text-decoration: none !important;
    -webkit-text-fill-color: var(--text-main); /* Força no iOS */
}

/* Garante que o placeholder (Selecione uma opção...) fique cinza */
.select-wrapper select:invalid,
.select-wrapper select option[value=""] {
    color: #9ca3af !important;
}