/* ==========================================================================
   APROVAPDF — Estilos do chat (/chat/)
   Cores da marca: azul-marinho #0b1d3a, laranja #ff6b00, dourado #ffbe1a.
   Fonte: Josefin Sans (a mesma da inicial).
   ========================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Josefin Sans', sans-serif;
    background: #f4f7fb;
    color: #1e293b;
    line-height: 1.6;
    min-height: 100vh;
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* Topo simples, sem menu de navegação */
.chat-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 760px;
    margin: 0 auto;
    padding: 14px 20px;
}

/* Mesmo corte do topo/rodapé: a logo ocupa só a faixa central da
   imagem 500x500, então 36px de altura deixava o desenho minúsculo. */
.chat-logo img { width: 150px; height: 40px; object-fit: cover; object-position: center; display: block; }

.chat-voltar {
    color: #0b1d3a;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.chat-voltar:hover { color: #ff6b00; }

.chat-pagina {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 16px 32px;
}

.chat-caixa {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(11, 29, 58, 0.10);
    overflow: hidden;
}

.chat-cabecalho {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #0b1d3a 0%, #162b4d 100%);
    color: #f8fafc;
}

.chat-avatar {
    width: 48px; height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #ff6b00;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    overflow: hidden;
}
.chat-avatar svg { width: 38px; height: 38px; display: block; }

.chat-cabecalho h1 { font-size: 1.25rem; line-height: 1.3; }
.chat-cabecalho p { font-size: 0.88rem; color: rgba(248, 250, 252, 0.8); }

.chat-status {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.5);
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.chat-status.offline {
    background: rgba(255, 190, 26, 0.15);
    color: #ffbe1a;
    border-color: rgba(255, 190, 26, 0.5);
}

.chat-mensagens {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 320px;
    max-height: 55vh;
    overflow-y: auto;
}

.chat-balao {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.98rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.chat-bot {
    align-self: flex-start;
    background: #f1f5f9;
    color: #1e293b;
    border-bottom-left-radius: 4px;
}

.chat-voce {
    align-self: flex-end;
    background: #0b1d3a;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-perguntas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chat-perguntas button {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 7px 13px;
    border-radius: 20px;
    border: 1.5px solid #ff6b00;
    background: #fff;
    color: #ff6b00;
    cursor: pointer;
}

.chat-perguntas button:hover { background: #ff6b00; color: #fff; }

.chat-whats-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 24px;
    font-size: 0.92rem;
}

.chat-whats-btn:hover { background: #1eb35a; }

/* Botão de WhatsApp discreto, no fim do chat, abaixo do aviso. */
.chat-atendente-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    margin: 0 auto 16px;
    padding: 4px 8px;
    border: none;
    background: none;
    color: #94a3b8;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

.chat-atendente-btn:hover { color: #64748b; background: none; }

.chat-form {
    display: flex;
    gap: 8px;
    padding: 0 20px 14px;
}

.chat-form input {
    flex: 1;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1rem;
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
}

.chat-form input:focus { border-color: #ff6b00; }

.chat-form button {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    padding: 0 18px;
    border: none;
    border-radius: 12px;
    background: #ff6b00;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.chat-form button:hover { background: #e05d00; }

.chat-aviso {
    padding: 0 20px 18px;
    font-size: 0.82rem;
    color: #64748b;
    text-align: center;
}

@media (max-width: 600px) {
    .chat-cabecalho h1 { font-size: 1.1rem; }
    .chat-cabecalho p { font-size: 0.82rem; }
    .chat-mensagens { min-height: 280px; max-height: 60vh; padding: 16px; }
    .chat-balao { max-width: 92%; }
    .chat-form button { padding: 0 12px; }
}

/* Rodapé (mesmo padrão das outras páginas, abaixo da caixa do chat) */
.main-footer {
    background: #0b1d3a;
    color: rgba(255, 255, 255, 0.9);
    padding: 36px 0 28px;
    margin-top: 8px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    padding: 0 20px;
}

.footer-logo .logo-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 8px 16px;
    display: inline-flex;
}

.footer-logo .footer-img {
    width: 150px;
    height: 40px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.footer-logo p {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 10px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
}

.footer-links a:hover { color: #ffbe1a; }

/* PADRÃO DO RODAPÉ — redes sociais: ícones vetoriais (Font Awesome
   fa-brands) em círculo, discretos, mesmo tamanho e espaçamento em
   todas as páginas. Hover laranja da marca. */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
    background: #ff6b00;
    color: #fff;
}

.footer-disclaimer {
    max-width: 760px;
    font-size: 0.82rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
}

.footer-disclaimer p { margin: 4px 0; }
