* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-color: #ECEFF1;
    color: #333333;
}

/* --- TOPO SUPERIOR (Amarelo e Redes) --- */
.top-header {
    background-color: #FFFFFF;
    border-bottom: 1px solid #E0E0E0;
    padding: 8px 15px;
}

.top-header-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-title-yellow {
    font-size: 16px;
    font-weight: bold;
    color: #111111;
}

.social-icons {
    display: flex;
    gap: 10px;
    font-size: 12px;
}

.social-icons a {
    color: #666;
    text-decoration: none;
    font-weight: bold;
}

/* --- CABEÇALHO PRINCIPAL --- */
.main-header {
    background-color: #FFFFFF;
    border-bottom: 1px solid #CCCCCC;
    padding: 15px;
}

.main-header-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* Marca Preta - Logo */
.logo-area {
    display: flex;
    align-items: center;
}

.site-logo {
    max-height: 60px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-menu a {
    color: #444444;
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
}

/* --- CORPO E CONSULTA --- */
.page-body {
    padding: 20px 10px;
}

.content-card {
    max-width: 650px;
    margin: 0 auto;
    background: #F4F6F8;
    border-radius: 8px;
    padding: 25px 20px;
    border: 1px solid #E2E8F0;
}

.page-title {
    font-size: 18px;
    text-align: center;
    color: #222222;
    margin-bottom: 25px;
    font-weight: bold;
}

/* Formulário Central */
.search-form {
    margin-bottom: 25px;
}

.form-group-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-group-center label {
    font-size: 13px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.form-group-center input {
    width: 100%;
    max-width: 380px;
    padding: 8px 12px;
    border: 1px solid #B0BEC5;
    border-radius: 3px;
    font-size: 13px;
    margin-bottom: 12px;
    outline: none;
}

.button-group {
    display: flex;
    gap: 10px;
}

.btn-action {
    padding: 6px 20px;
    font-size: 13px;
    font-weight: bold;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-blue {
    background-color: #C5D9ED;
    color: #1C3B68;
    border: 1px solid #A3C2E0;
}

.btn-gray {
    background-color: #C5D9ED;
    color: #1C3B68;
    border: 1px solid #A3C2E0;
}

/* Bloco Onde Encontrar */
.where-to-find {
    background: #E8EEF5;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
}

.where-to-find h3 {
    font-size: 13px;
    color: #333;
    margin-bottom: 10px;
}

.qr-card {
    background: #FFF;
    border-radius: 6px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border: 1px dashed #B0BEC5;
}

.qr-box {
    width: 70px;
    height: 70px;
    background: #222;
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.qr-info {
    text-align: left;
}

.qr-label {
    font-size: 10px;
    color: #777;
    display: block;
}

.qr-code-number {
    font-size: 12px;
    font-weight: bold;
    border: 1px solid #333;
    padding: 4px 8px;
    border-radius: 12px;
    margin-top: 4px;
}

.qr-subtext {
    font-size: 10px;
    color: #666;
    text-align: center;
    margin-top: 10px;
}

/* Observações */
.footer-notes {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
}

.footer-notes h4 {
    font-size: 12px;
    color: #444;
    margin-bottom: 3px;
}

/* Estilos de Resultados */
.section-box {
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 15px;
    background: #FFF;
}

.section-box legend {
    font-size: 12px;
    font-weight: bold;
    color: #1E293B;
    padding: 0 5px;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
}

.data-item {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    padding: 6px 10px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
}

.data-item.full {
    grid-column: 1 / -1;
}

.data-item.highlight {
    background: #EFF6FF;
    border-color: #BFDBFE;
}

.lbl {
    font-size: 10px;
    color: #64748B;
}

.val {
    font-size: 12px;
    font-weight: bold;
    color: #0F172A;
}

.status-green {
    color: #166534;
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    padding: 10px;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
    margin-bottom: 15px;
}

.footer-links {
    text-align: center;
    padding: 15px;
    font-size: 12px;
    color: #666;
}

.footer-links a {
    color: #333;
    text-decoration: none;
}

/* --- AJUSTES PARA CELULAR (RESPONSIVO) --- */
@media (max-width: 600px) {
    .main-header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 6px;
    }

    .social-icons {
        font-size: 10px;
    }

    .top-title-yellow {
        font-size: 13px;
    }
}