/*
 * Ferramenta gratis "Lista de empresas por CNAE" (app/View/site/listaEmpresasCnae.php).
 * Base do site em site.css (.st-root, prefixo st-); aqui so o prefixo fc-.
 * O style.css global pinta p, span, a, li e label de #111 com !important:
 * as cores daqui tambem levam !important (mesmo motivo do site.css).
 */

/* ------------------------------------------------------------------ topo */
.fc-topo { padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0 1.5rem; }
.st-root .fc-topo .st-h1 .st-gradiente {
    background: linear-gradient(90deg, var(--st-marca), var(--st-ceu));
    -webkit-background-clip: text; background-clip: text;
    color: transparent !important;
}

/* -------------------------------------------------------------- formulario */
.fc-form {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--st-sup);
    border: 1px solid var(--st-borda);
    border-radius: var(--st-raio);
    box-shadow: var(--st-sombra);
}
.fc-campos { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 1rem; }
.fc-campo { position: relative; display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.st-root .fc-campo label { font-weight: 600; font-size: .95rem; }
.st-root .fc-opcional { font-weight: 400; color: var(--st-apagado) !important; }
.fc-input {
    width: 100%;
    padding: .75rem .9rem;
    font-size: 1rem;
    color: var(--st-tinta);
    background: #fff;
    border: 1px solid var(--st-borda);
    border-radius: 12px;
}
.fc-input:focus { outline: 3px solid color-mix(in srgb, var(--st-marca) 25%, transparent); border-color: var(--st-marca); }
.fc-input:disabled { background: var(--st-fundo); }

.fc-lista {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    max-height: 18rem;
    margin: .25rem 0 0;
    padding: .35rem;
    overflow-y: auto;
    list-style: none;
    background: #fff;
    border: 1px solid var(--st-borda);
    border-radius: 12px;
    box-shadow: var(--st-sombra-g);
}
.st-root .fc-lista li { padding: .55rem .7rem; font-size: .92rem; line-height: 1.35; border-radius: 8px; cursor: pointer; }
.st-root .fc-lista li b { color: var(--st-marca) !important; margin-right: .35rem; }
.fc-lista li:hover, .fc-lista li.ativo { background: var(--st-marca-wash); }

.fc-rodape-form { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; }
.fc-rodape-form .cf-turnstile { min-width: 300px; }
.st-root .fc-nota { margin: 1rem 0 0; font-size: .88rem; color: var(--st-apagado) !important; }

/* --------------------------------------------------------------- resultado */
.fc-resultado-secao { padding-bottom: 1rem; }
.fc-resumo h2 { font-size: clamp(1.25rem, 1.1rem + .8vw, 1.7rem); font-weight: 800; margin: 0 0 .35rem; }
.st-root .fc-resumo h2 b { color: var(--st-marca) !important; }
.st-root .fc-resumo p { color: var(--st-tinta-2) !important; margin: 0 0 1rem; }

.fc-tabela-caixa { overflow-x: auto; background: var(--st-sup); border: 1px solid var(--st-borda); border-radius: var(--st-raio); }
.fc-tabela { width: 100%; border-collapse: collapse; font-size: .92rem; }
.fc-tabela th { padding: .75rem .9rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--st-apagado); text-align: left; border-bottom: 1px solid var(--st-borda); white-space: nowrap; }
.fc-tabela td { padding: .7rem .9rem; border-bottom: 1px solid var(--st-borda); vertical-align: top; }
.fc-tabela tbody tr:last-child td { border-bottom: 0; }
.st-root .fc-td-nome span { display: block; font-size: .82rem; color: var(--st-apagado) !important; }
.st-root .fc-oculto { color: var(--st-apagado) !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
.st-root .fc-selo { font-style: normal; font-size: .7rem; font-weight: 700; padding: .1rem .4rem; border-radius: 6px; color: #92400e !important; background: #fef3c7; }

.fc-aviso { padding: 1rem 1.25rem; margin-bottom: 1rem; border-radius: 12px; background: #fff7ed; border: 1px solid #fed7aa; }
.st-root .fc-aviso, .st-root .fc-aviso * { color: #9a3412 !important; }
.fc-aviso.limite { background: var(--st-marca-wash); border-color: #bfdbfe; }
.st-root .fc-aviso.limite, .st-root .fc-aviso.limite * { color: var(--st-marca-escura) !important; }

.fc-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: var(--st-marca-wash);
    border: 1px solid #bfdbfe;
    border-radius: var(--st-raio);
}
.st-root .fc-cta b { display: block; font-size: 1.05rem; }
.st-root .fc-cta span { color: var(--st-tinta-2) !important; font-size: .92rem; }

.fc-girando { display: inline-block; width: 1rem; height: 1rem; margin-right: .5rem; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%; animation: fc-gira .8s linear infinite; vertical-align: -2px; }
@keyframes fc-gira { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- conteudo */
.fc-conteudo { padding: 2.5rem 0 4rem; }
.fc-texto { max-width: 48rem; }
.fc-texto h2 { margin: 2.25rem 0 .75rem; }
.st-root .fc-texto p, .st-root .fc-texto li { font-size: 1.05rem; line-height: 1.75; color: var(--st-tinta-2) !important; }
.fc-texto ul { padding-left: 1.2rem; }
.fc-faq { max-width: 48rem; margin-top: 3rem; }
.fc-pergunta { padding: 1rem 1.25rem; margin-bottom: .75rem; background: var(--st-sup); border: 1px solid var(--st-borda); border-radius: 14px; }
.fc-pergunta summary { font-weight: 700; cursor: pointer; }
.st-root .fc-pergunta p { margin: .6rem 0 0; color: var(--st-tinta-2) !important; line-height: 1.7; }
.fc-cta-final { margin-top: 3.5rem; text-align: center; }
.fc-cta-final .st-lead { margin-left: auto; margin-right: auto; }
.fc-botoes-centro { justify-content: center; }

/* ----------------------------------------------------------------- celular */
@media (max-width: 991.98px) {
    .fc-campos { grid-template-columns: 1fr 1fr; }
    .fc-campo-cnae { grid-column: 1 / -1; }
}

@media (max-width: 767.98px) {
    .fc-form { padding: 1rem; }
    .fc-campos { grid-template-columns: 1fr; }
    .fc-rodape-form .cf-turnstile { min-width: 0; width: 100%; }
    .fc-rodape-form .st-btn { width: 100%; }

    /* Tabela vira cartao: o nome no topo e "rotulo ... valor" nas linhas */
    .fc-tabela-caixa { background: transparent; border: 0; overflow: visible; }
    .fc-tabela thead { display: none; }
    .fc-tabela, .fc-tabela tbody, .fc-tabela tr, .fc-tabela td { display: block; width: 100%; }
    .fc-tabela tr { padding: .9rem 1rem; margin-bottom: .75rem; background: var(--st-sup); border: 1px solid var(--st-borda); border-radius: 14px; }
    .fc-tabela td { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; border: 0; text-align: right; }
    .fc-tabela td::before { content: attr(data-label); flex-shrink: 0; font-size: .8rem; color: var(--st-apagado); text-align: left; }
    .fc-tabela td.fc-td-nome { display: block; text-align: left; padding-bottom: .4rem; }
    .fc-tabela td.fc-td-nome::before { content: none; }
    .fc-cta { flex-direction: column; align-items: stretch; text-align: center; }
}
