/* ==========================================================================
   CONFIGURAÇÕES GERAIS E VARIÁVEIS
   ========================================================================== */
:root {
    --primary-color: #2b6cb0;    /* Azul Real - Ação */
    --primary-dark: #1a365d;     /* Azul Marinho - Confiança */
    --secondary-color: #4a5568;  /* Cinza Corporativo */
    --accent-color: #38a169;     /* Verde - Segurança */
    --bg-light: #f7fafc;         /* Fundo leve */
    --white: #ffffff;
    --text-main: #2d3748;
    --text-muted: #718096;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
    background-color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.logo i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2a4365 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-text p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* ==========================================================================
   ACTION CARDS (BOTÕES DE DENÚNCIA)
   ========================================================================== */
.action-section {
    margin-top: -60px; /* Sobrepõe levemente o Hero */
    margin-bottom: 60px;
}

.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.card p {
    color: var(--text-muted);
    margin-bottom: 25px;
    flex-grow: 1;
}

/* BOTÕES */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    width: 100%;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #2c5282;
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ==========================================================================
   AWARENESS SECTION (SEGURANÇA)
   ========================================================================== */
.awareness-section {
    padding: 80px 0;
    background-color: var(--white);
}

.awareness-header {
    text-align: center;
    margin-bottom: 50px;
}

.awareness-header h2 {
    font-size: 2rem;
    color: var(--primary-dark);
}

.line {
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
}

.feature-item i {
    font-size: 2rem;
    color: var(--accent-color);
    background: #f0fff4;
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.feature-item h4 {
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    padding: 40px 0;
    background: #edf2f7;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.admin-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.admin-link:hover {
    color: var(--primary-color);
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    .hero-text h1 { font-size: 1.8rem; }
    .action-section { margin-top: 20px; }
    .footer-content { justify-content: center; text-align: center; }
}

/* Estilos Específicos do Formulário */
.header-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-back {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    background: #edf2f7;
    transition: var(--transition);
}

.btn-back:hover {
    background: #e2e8f0;
}

.form-intro {
    text-align: center;
    padding: 40px 0;
}

.badge {
    display: inline-block;
    background: #f0fff4;
    color: var(--accent-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    border: 1px solid #c6f6d5;
}

.form-container {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    max-width: 850px;
    margin: 0 auto 60px;
}

.form-section {
    border: none;
    margin-bottom: 40px;
    padding: 0;
}

.form-section legend {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.1);
}

.required {
    color: #e53e3e;
}

/* Radio Cards Customizados */
.radio-card-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.radio-card {
    cursor: pointer;
}

.radio-card input {
    display: none;
}

.radio-content {
    border: 2px solid #e2e8f0;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
}

.radio-card input:checked + .radio-content {
    border-color: var(--primary-color);
    background: #f0f7ff;
}

.radio-content i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.radio-card input:checked + .radio-content i {
    color: var(--primary-color);
}

.radio-content span {
    font-weight: 700;
    display: block;
}

.radio-content small {
    color: var(--text-muted);
}

/* Utilitários */
.field-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.field-half { flex: 1; }

.mt-2 { margin-top: 10px; }
.mt-4 { margin-top: 25px; }
.mb-3 { margin-bottom: 15px; }
.ml-10 { margin-left: 15px; }

.highlight-bg {
    background: #f8fafc;
    padding: 30px;
    border-radius: 12px;
}

.info-alert {
    background: #ebf8ff;
    color: #2b6cb0;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.checkbox-container {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 25px;
    font-size: 0.95rem;
}

.checkbox-container input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
}

.btn-large {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Responsividade do Formulário */
@media (max-width: 600px) {
    .field-row { flex-direction: column; gap: 0; }
    .radio-card-group { grid-template-columns: 1fr; }
    .form-container { padding: 20px; }
}

/* Específicos da Página de Consulta */
.search-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px !important;
}

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input-wrapper input {
    padding-left: 45px;
    font-family: 'Courier New', Courier, monospace; /* Estilo de código para protocolo */
    font-weight: 600;
    letter-spacing: 1px;
}

/* Painel de Resultados */
.consulta-resultado {
    background: var(--white);
    border-radius: var(--radius);
    padding: 0; /* Container interno cuidará do padding */
    overflow: hidden;
    margin-bottom: 50px;
}

.result-header {
    background: #f8fafc;
    padding: 30px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.status-box-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    background: #e2e8f0; /* Default */
}

/* Cores de Status (O JS pode aplicar estas classes ou você pode estilizar via ID) */
#statusAtual {
    background: var(--primary-color);
    color: white;
}

.denuncia-detalhes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 30px;
    background: white;
}

.detail-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.detail-item i {
    color: var(--primary-color);
    margin-top: 4px;
}

.detalhe-descricao-container {
    padding: 0 30px 30px;
}

.description-header {
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.denuncia-descricao {
    background: #f1f5f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    font-style: italic;
    color: #475569;
}

/* Timeline Stylized */
.timeline-section {
    padding: 30px;
    background: #ffffff;
    border-top: 1px solid #eee;
}

.timeline {
    list-style: none;
    position: relative;
    padding-left: 30px;
    margin-top: 25px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.timeline li {
    position: relative;
    margin-bottom: 30px;
}

.timeline li::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--primary-color);
    z-index: 1;
}

.timeline-date {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    display: block;
    margin-bottom: 5px;
}

.timeline-content {
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .result-header { flex-direction: column; align-items: flex-start; }
    .status-box-wrapper { width: 100%; justify-content: space-between; }
}