/* SUPORTE PAGE */
.page-header-suporte {
    background: linear-gradient(135deg, var(--azul) 0%, var(--azul-medio) 100%);
}

.suporte-content {
    background-color: var(--bg-primary);
    padding: 60px 20px;
}

/* GRID PRINCIPAL */
.suporte-grid {
    max-width: 1200px;
    margin: 0 auto 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.suporte-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.suporte-column .card {
    background: var(--bg-card);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
}

.suporte-column .card:hover {
    box-shadow: var(--shadow-md);
}

/* CARD HEADER */
.suporte-column .card-header {
    background-color: var(--bg-secondary);
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.suporte-column .card-header i.bi {
    font-size: 1.5em;
    color: #0073e6;
}

.suporte-column .card-header h2 {
    font-size: 1.2em;
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
}

.suporte-column .card-header h3 {
    font-size: 1.1em;
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
}

/* CARD BODY */
.suporte-column .card-body {
    padding: 25px;
}

/* FORMULÁRIO */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9em;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95em;
    transition: all 0.3s ease;
    font-family: inherit;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.form-control:focus {
    outline: none;
    border-color: #0073e6;
    box-shadow: 0 0 0 3px rgba(0, 115, 230, 0.1);
    background-color: var(--bg-card);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control-file {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-primary);
}

.text-muted {
    font-size: 0.8em;
    color: var(--text-muted);
    display: block;
    margin-top: 6px;
}

.checkbox-group {
    display: flex;
    justify-content: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
}

.checkbox-group input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.checkbox-group a {
    color: #0073e6;
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* BOTÃO SUPORTE */
.btn-suporte {
    background-color: #0073e6;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.btn-suporte:hover {
    background-color: #0052b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 230, 0.3);
}

.btn-full {
    width: 100%;
}

/* CANAIS DE SUPORTE */
.suporte-canal {
    display: flex;
    gap: 15px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-color);
    align-items: flex-start;
}

.suporte-canal:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.canal-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    flex-shrink: 0;
}

.suporte-canal:nth-child(1) .canal-icon {
    background-color: #e3f2fd;
    color: #0073e6;
}

.suporte-canal:nth-child(2) .canal-icon {
    background-color: #f3e5f5;
    color: #9c27b0;
}

.suporte-canal:nth-child(3) .canal-icon {
    background-color: #e8f5e9;
    color: #28a745;
}

.suporte-canal:nth-child(4) .canal-icon {
    background-color: #fff3e0;
    color: #ff9800;
}

.canal-info {
    flex: 1;
}

.canal-info h4 {
    font-size: 1em;
    margin-bottom: 4px;
    color: var(--text-primary);
    font-weight: 600;
}

.canal-valor {
    font-size: 0.9em;
    color: var(--text-secondary);
    font-weight: 600;
    margin: 0;
}

.canal-horario {
    font-size: 0.85em;
    color: var(--text-muted);
    margin: 4px 0 0 0;
}

/* CARD INFO SUPORTE */
.card-info-suporte {
    background-color: #e3f2fd !important;
    border-left: 4px solid #0073e6;
}

.card-info-suporte .card-header {
    background-color: transparent;
    border-bottom: 1px solid #bbdefb;
}

.card-info-suporte .card-header h3 {
    color: #0073e6;
}

.card-info-suporte .card-body {
    background-color: #e3f2fd;
}

.dicas-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dicas-list li {
    padding: 10px 0;
    color: #0073e6;
    font-weight: 500;
    position: relative;
    padding-left: 25px;
}

.dicas-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: bold;
    color: #28a745;
}



/* SEÇÃO FAQ SUPORTE */
.faq-suporte-section {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.section-title {
    font-size: 1.6em;
    margin-bottom: 40px;
    color: var(--text-primary);
    font-weight: 600;
    text-align: center;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #0073e6;
    box-shadow: 0 2px 8px rgba(0, 115, 230, 0.1);
}

.faq-header {
    width: 100%;
    padding: 18px 20px;
    background: var(--bg-card);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95em;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.faq-header:hover {
    background-color: var(--bg-secondary);
}

.faq-header.active {
    background-color: var(--accent-light);
    color: #0073e6;
}

.faq-header i.bi {
    transition: transform 0.3s ease;
    color: #0073e6;
    font-size: 0.9em;
}

.faq-header.active i.bi {
    transform: rotate(180deg);
}

.faq-content {
    display: none;
    padding: 20px;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95em;
}

.faq-content p {
    margin: 0;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .suporte-content {
        padding: 40px 20px;
    }

    .suporte-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 40px;
    }

    .faq-suporte-section {
        padding: 25px;
        margin-top: 40px;
    }

    .section-title {
        font-size: 1.3em;
        margin-bottom: 30px;
    }

    .faq-header {
        padding: 15px;
        font-size: 0.9em;
    }

    .faq-content {
        padding: 15px;
        font-size: 0.9em;
    }

    .suporte-canal {
        padding: 15px 0;
        gap: 12px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .page-header-suporte .page-header-content h1 {
        font-size: 1.8em;
    }
}

/* ===== DARK MODE - SUPORTE ===== */
body.dark .page-header-suporte {
    background: linear-gradient(135deg, #0a0c30 0%, #151850 100%);
}

body.dark .suporte-canal:nth-child(1) .canal-icon {
    background-color: #1a3050;
    color: #5b9bd5;
}

body.dark .suporte-canal:nth-child(2) .canal-icon {
    background-color: #2d1a3d;
    color: #b87dd8;
}

body.dark .suporte-canal:nth-child(3) .canal-icon {
    background-color: #1a3020;
    color: #5cc66a;
}

body.dark .suporte-canal:nth-child(4) .canal-icon {
    background-color: #3d2a1a;
    color: #e8a84c;
}

body.dark .card-info-suporte {
    background-color: var(--bg-card) !important;
    border-left-color: #5b9bd5;
}

body.dark .card-info-suporte .card-header {
    background-color: transparent;
    border-bottom-color: var(--border-color);
}

body.dark .card-info-suporte .card-header h3 {
    color: #5b9bd5;
}

body.dark .card-info-suporte .card-body {
    background-color: var(--bg-card);
}

body.dark .dicas-list li {
    color: var(--text-secondary);
}

/* Suporte - tela de escolha (Cidadão / Servidor) */
.suporte-escolha-section {
    padding: 60px 20px;
}
.suporte-escolha-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}
.suporte-escolha-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 32px;
    border-radius: 12px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e3e8f0);
    text-decoration: none;
    color: inherit;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.suporte-escolha-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(17, 20, 82, 0.12);
    border-color: #111452;
}
.suporte-escolha-card .escolha-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #111452;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}
.suporte-escolha-card h2 {
    margin: 0;
    font-size: 1.4rem;
    color: #111452;
}
.suporte-escolha-card p {
    margin: 0;
    color: var(--text-secondary, #4a5568);
    line-height: 1.5;
}
.suporte-escolha-card .escolha-cta {
    margin-top: auto;
    padding-top: 8px;
    font-weight: 600;
    color: #111452;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.suporte-escolha-card--disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
body.dark .suporte-escolha-card {
    background: #1f2d44;
    border-color: #2e425f;
    color: #e6edf8;
}
body.dark .suporte-escolha-card h2,
body.dark .suporte-escolha-card .escolha-cta {
    color: #e6edf8;
}
body.dark .suporte-escolha-card p {
    color: #c9d3e6;
}
body.dark .suporte-escolha-card .escolha-icon {
    background: #2e3f7a;
}

/* Documentos - Consulta Portal Cidadão */
.consulta-docs-section {
    margin-bottom: 32px;
}
.consulta-docs-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px;
    border-radius: 12px;
    background: linear-gradient(135deg, #111452 0%, #1d2680 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(17, 20, 82, 0.18);
}
.consulta-docs-info h2 {
    margin: 0 0 6px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.consulta-docs-info p {
    margin: 0;
    opacity: 0.92;
    line-height: 1.45;
    max-width: 640px;
}
.btn-consulta-docs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 8px;
    background: #fff;
    color: #111452;
    font-weight: 600;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
    white-space: nowrap;
}
.btn-consulta-docs:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}
.btn-consulta-docs--disabled {
    background: rgba(255,255,255,0.25);
    color: #fff;
    cursor: not-allowed;
}
body.dark .consulta-docs-card {
    background: linear-gradient(135deg, #1a2538 0%, #2e3f7a 100%);
}
@media (max-width: 640px) {
    .consulta-docs-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Guia Rápido SEI */
.guia-content {
    padding: 48px 20px;
}
.guia-passos {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 880px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.guia-passo {
    display: flex;
    gap: 20px;
    padding: 24px;
    border-radius: 12px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e3e8f0);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.guia-passo-numero {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #111452;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}
.guia-passo-corpo h2 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    color: #111452;
}
.guia-passo-corpo p {
    margin: 0 0 12px;
    color: var(--text-secondary, #4a5568);
    line-height: 1.55;
}
.guia-passo-img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 8px;
    border: 1px solid var(--border-color, #e3e8f0);
}
body.dark .guia-passo {
    background: #1f2d44;
    border-color: #2e425f;
}
body.dark .guia-passo-corpo h2 {
    color: #e6edf8;
}
body.dark .guia-passo-corpo p {
    color: #c9d3e6;
}
body.dark .guia-passo-numero {
    background: #2e3f7a;
}
@media (max-width: 560px) {
    .guia-passo {
        flex-direction: column;
    }
}

/* Home - Cards de Serviços (T4 redesign) */
.section-servicos {
    padding: 32px 20px;
}
.servicos-wrap {
    max-width: 1200px;
    margin: 0 auto;
}
.servicos-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    color: #111452;
    font-size: 1.5rem;
}
.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.servico-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 22px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e3e8f0;
    text-decoration: none;
    color: inherit;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    min-height: 180px;
}
.servico-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(17, 20, 82, 0.14);
    border-color: #111452;
}
.servico-card-icone {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(17, 20, 82, 0.08);
    color: #111452;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.servico-card-titulo {
    margin: 0;
    font-size: 1.05rem;
    color: #111452;
    font-weight: 700;
    line-height: 1.3;
}
.servico-card-desc {
    margin: 0;
    color: #4a5568;
    font-size: 0.92rem;
    line-height: 1.5;
}
.servico-card-cta {
    margin-top: auto;
    padding-top: 8px;
    font-weight: 600;
    color: #111452;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
}
.servico-card:hover .servico-card-cta i {
    transform: translateX(3px);
    transition: transform .18s ease;
}
body.dark .servicos-title,
body.dark .servico-card-titulo,
body.dark .servico-card-cta {
    color: #e6edf8;
}
body.dark .servico-card {
    background: #1f2d44;
    border-color: #2e425f;
    color: #e6edf8;
}
body.dark .servico-card:hover {
    border-color: #4a5fa8;
    box-shadow: 0 10px 24px rgba(0,0,0,0.4);
}
body.dark .servico-card-icone {
    background: rgba(255,255,255,0.08);
    color: #c9d3e6;
}
body.dark .servico-card-desc {
    color: #c9d3e6;
}

/* ===========================================================
   Navbar — Hamburger real (sobrescreve fallback do style.css)
   =========================================================== */
@media (max-width: 900px) {
    .navbar-content {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        height: 64px !important;
        padding: 0 1rem !important;
        gap: 0.5rem !important;
        position: relative;
    }
    .navbar-brand {
        gap: 0.5rem;
    }
    .menu-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 0;
        color: var(--navbar-text, #fff);
        font-size: 1.6rem;
        padding: 6px 10px;
        cursor: pointer;
        z-index: 110;
    }
    .navbar .nav-links {
        display: none !important;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column !important;
        align-items: stretch !important;
        background: var(--navbar-bg, #111452);
        padding: 8px 0 14px !important;
        gap: 0 !important;
        box-shadow: 0 8px 16px rgba(0,0,0,0.25);
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    }
    .navbar .nav-links.open {
        display: flex !important;
    }
    .navbar .nav-links li {
        width: 100%;
    }
    .navbar .nav-links li a {
        display: block;
        padding: 12px 20px !important;
        border-radius: 0 !important;
        font-size: 1rem !important;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .navbar .nav-links li:last-child a {
        border-bottom: 0;
    }
    .theme-toggle {
        margin: 10px 20px 0;
    }
    .logo-pref { height: 36px !important; }
    .logo-sei { height: 40px !important; }
}

/* Guia Rápido - polimento header + mobile */
.page-header-guia {
    background: linear-gradient(135deg, #111452 0%, #1d2680 100%);
}
.guia-content .content-container {
    max-width: 900px;
    margin: 0 auto;
}
.guia-passos {
    counter-reset: passo;
}
.guia-passo {
    position: relative;
}
.guia-passo:hover {
    box-shadow: 0 8px 20px rgba(17, 20, 82, 0.10);
    border-color: #c5cce0;
}
@media (max-width: 640px) {
    .guia-content {
        padding: 28px 14px;
    }
    .guia-passo {
        padding: 18px;
        gap: 14px;
    }
    .guia-passo-numero {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        font-size: 1rem;
    }
    .guia-passo-corpo h2 {
        font-size: 1.05rem;
    }
}

/* Suporte escolha - mobile */
@media (max-width: 640px) {
    .suporte-escolha-section {
        padding: 32px 14px;
    }
    .suporte-escolha-card {
        padding: 22px;
    }
    .suporte-escolha-card h2 {
        font-size: 1.2rem;
    }
}

/* Sticky footer — empurra rodapé pro fim quando conteúdo é curto */
html, body {
    height: 100%;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.footer {
    margin-top: auto;
}

/* Acesso Externo / Interno - lado a lado em desktop, compacto */
.section-acessos {
    flex-wrap: nowrap;
    justify-content: center;
}
.section-acessos .acesso-externo,
.section-acessos .acesso-interno {
    flex: 1 1 0;
    max-width: 560px;
}
@media (max-width: 760px) {
    .section-acessos {
        flex-wrap: wrap;
    }
    .section-acessos .acesso-externo,
    .section-acessos .acesso-interno {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

