/* ════════════════════════════════════════════════════════════════════
   estilo.css – Cadastro de Contribuinte Municipal
   Modernizado: mantém identidade visual, adiciona semântica moderna
   ════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* ── Reset & base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #444;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
}

/* ── Links ──────────────────────────────────────────────────────── */
a                      { text-decoration: none; }
a:hover                { text-decoration: underline; }
a:visited, a:active    { text-decoration: none; }

/* ── Cabeçalho do site ──────────────────────────────────────────── */
.site-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    color: #fff;
    padding: 20px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.header-logo {
    max-height: 80px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.4));
}
.header-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin: 0;
}

/* ── Container principal ────────────────────────────────────────── */
.main-container {
    max-width: 1000px;
}

/* ── Indicador de passos ────────────────────────────────────────── */
.steps-bar {
    user-select: none;
}
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 120px;
}
.step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #dee2e6;
    color: #6c757d;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #dee2e6;
    transition: background .25s, border-color .25s, color .25s;
}
.step-item.active .step-circle {
    background: #1a56db;
    border-color: #1a56db;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(26,86,219,.2);
}
.step-item.done .step-circle {
    background: #198754;
    border-color: #198754;
    color: #fff;
}
.step-label {
    font-size: 11px;
    font-weight: 500;
    color: #6c757d;
    text-align: center;
}
.step-item.active .step-label  { color: #1a56db; font-weight: 700; }
.step-item.done .step-label    { color: #198754; font-weight: 600; }

.step-connector {
    flex: 1;
    height: 3px;
    background: #dee2e6;
    margin-bottom: 22px;
    min-width: 40px;
    max-width: 80px;
    border-radius: 2px;
    transition: background .25s;
}
.step-connector.done { background: #198754; }

/* ── Seção / card ───────────────────────────────────────────────── */
.section-card {
    background: #fff;
    border: 1px solid #dde2ea;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.section-header {
    display: flex;
    align-items: center;
    background: #808080;
    color: #fff;
    min-height: 38px;
    padding: 0;
}
.section-letter {
    width: 38px;
    min-width: 38px;
    background: #1a1a2e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    align-self: stretch;
}
.section-title {
    flex: 1;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .3px;
}
.step-badge {
    background: #1a1a2e;
    color: #fff;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    margin-right: 0;
    align-self: stretch;
    display: flex;
    align-items: center;
}

.section-body {
    padding: 16px 20px;
    background: #fafbfc;
}

/* ── Formulário ─────────────────────────────────────────────────── */
.form-label {
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-bottom: 4px;
}
.form-control,
.form-select {
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
    padding: 7px 10px;
    transition: border-color .2s, box-shadow .2s;
    background-color: #fff;
}
.form-control:focus,
.form-select:focus {
    border-color: #1a56db;
    box-shadow: 0 0 0 3px rgba(26,86,219,.15);
    outline: none;
}
.form-control::placeholder { color: #adb5bd; }

textarea.form-control { resize: vertical; min-height: 100px; }

.form-check-input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    border: 2px solid #adb5bd;
    cursor: pointer;
}
.form-check-input:checked {
    background-color: #1a56db;
    border-color: #1a56db;
}
.form-check-label {
    font-size: 13px;
    color: #444;
    cursor: pointer;
}

/* ── Botão avançar ──────────────────────────────────────────────── */
.btn-avancar {
    background: linear-gradient(135deg, #1a56db, #1142b8);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: .3px;
    padding: 12px 48px;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 3px 10px rgba(26,86,219,.3);
}
.btn-avancar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26,86,219,.4);
    background: linear-gradient(135deg, #1142b8, #0d35a0);
}
.btn-avancar:active { transform: translateY(0); }

/* ── Utilitários de cor (compatibilidade com código legado) ─────── */
.cor_black   { color: #000; }
.cor_branca  { color: #fff; font-size: 14px; }
.cor_blue    { color: #003399; }
.cor_red     { color: #990000; }
.cor_green   { color: #2b4520; }
.amarelo     { color: #f59e0b; }

/* ── Classes de link (compatibilidade) ─────────────────────────── */
.link_amarelo   { color: #f59e0b; }
.link_preto     { color: #000; }
.link_branco    { color: #fff; text-decoration: none; }
.link_azul      { color: #1a56db; text-decoration: none; }
.link_verde     { color: #2b4520; text-decoration: none; }
.link_alaranjado{ color: #f97316; text-decoration: none; }
.link_cinza     { color: #6c757d; text-decoration: none; }

/* ── Classes de título (compatibilidade) ────────────────────────── */
.titulo {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
}
.subtitulo {
    font-size: 15px;
    color: #1a1a2e;
}
.quadro_conteudo {
    font-size: 11px;
    color: #444;
}
.quadro_titulo1 { font-size: 20px; font-weight: 700; color: #2b4520; }
.quadro_titulo2 { font-size: 16px; color: #2b4520; }
.quadro_titulo3 { font-size: 18px; color: #444; }
.quadro_titulo4 { font-size: 25px; color: #2b4520; }
.titulo_verde   { font-size: 14px; color: #2b4520; }

/* ── Inputs legados (compatibilidade com código antigo) ─────────── */
.input_txt {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 4px 6px;
    font-size: 13px;
    font-family: 'Roboto', sans-serif;
    color: #333;
}
.input_txt:focus {
    border-color: #1a56db;
    outline: none;
}

/* ── TD legado (compatibilidade) ────────────────────────────────── */
td {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    color: #555;
}
.TD_x {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #fff;
    height: 35px;
}

/* ── Select legado ──────────────────────────────────────────────── */
select {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 13px;
    font-family: 'Roboto', sans-serif;
    background-color: #fff;
}

/* ── Responsividade básica ──────────────────────────────────────── */
@media (max-width: 768px) {
    .header-title { font-size: 15px; }
    .step-label   { font-size: 9px; }
    .step-connector { min-width: 20px; }
    .section-body { padding: 12px; }
    .btn-avancar  { width: 100%; }
    .main-container { padding-left: 8px; padding-right: 8px; }
}

/* ── AutoComplementa (compatibilidade) ─────────────────────────── */
.AutoComplementa_semCor  { background-color: #f3f4f6; }
.AutoComplementa_comCor  { background-color: #fef9c3; cursor: pointer; }
.AutoComplementa_sugestoes { position: absolute; background: #f3f4f6; }
.AutoComplementa_fechar  { font-size: 9px; background-color: #9ca3af; cursor: pointer; }
.AutoComplementa_aviso   { visibility: hidden; }

.caixaDivVisivel  { position: absolute; visibility: visible; display: block; }
.caixaDivInvisivel{ position: absolute; visibility: hidden;  display: none; }
