/* ============================================================
   SIMULADOR_CLIENTE.CSS — ESTRUTURA
   Página pública do Simulador Habitacional.
   Zero valores de cor. Cores em simulador_cliente_colors.css
   ============================================================ */

.sc-oculto { display: none !important; }

html, body.sc-body {
    margin: 0;
    min-height: 100%;
    font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

/* ── Tela de acesso / erro ───────────────────────────────── */
.sc-entrada-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.sc-entrada-card {
    width: 100%;
    max-width: 420px;
    padding: 32px 28px 24px;
    border-radius: 14px;
    border-top: 5px solid transparent;
    text-align: center;
}

.sc-logo {
    display: block;
    max-width: 180px;
    max-height: 110px;
    margin: 0 auto 16px;
    object-fit: contain;
}

.sc-logo-placeholder {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.sc-entrada-titulo {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
}

.sc-entrada-sub {
    font-size: 0.85rem;
    margin: 0 0 18px;
}

.sc-entrada-rodape {
    font-size: 0.72rem;
    margin: 16px 0 0;
}

.sc-entrada-erro {
    text-align: left;
    font-size: 0.8rem;
    padding: 10px 12px;
    margin-bottom: 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    line-height: 1.5;
}

.sc-form { text-align: left; }

.sc-campo { margin-bottom: 12px; }

.sc-campo label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.sc-obrigatorio { margin-left: 2px; }

.sc-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.9rem;
    border: 1px solid transparent;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sc-btn-entrar {
    width: 100%;
    margin-top: 6px;
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: filter 0.15s ease;
}

.sc-btn-entrar:disabled { cursor: not-allowed; }

/* ── Tela do simulador ───────────────────────────────────── */
.sc-pagina {
    min-height: 100vh;
    padding: 16px;
}

.sc-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sc-cabecalho {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    border-radius: 12px;
    border-left: 6px solid transparent;
}

.sc-cabecalho-logo {
    max-height: 56px;
    max-width: 160px;
    object-fit: contain;
}

.sc-cabecalho-titulo {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    word-wrap: break-word;
}

.sc-moldura {
    position: relative;
    border: 4px solid transparent;
    border-radius: 14px;
    overflow: hidden;
}

.sc-iframe {
    display: block;
    width: 100%;
    height: calc(100vh - 150px);
    min-height: 680px;
    border: 0;
}

.sc-carregando {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    z-index: 1;
}

/* ── Textos formatados do link (cabeçalho e rodapé) ─────────── */
.sc-texto {
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
    word-wrap: break-word;
}

.sc-texto p,
.sc-texto div { margin: 0; }

.sc-texto ul,
.sc-texto ol { padding-left: 22px; margin: 6px 0; }

.sc-alinhar-left    { text-align: left; }
.sc-alinhar-center  { text-align: center; }
.sc-alinhar-right   { text-align: right; }
.sc-alinhar-justify { text-align: justify; }

.sc-rodape {
    text-align: center;
    font-size: 0.75rem;
    padding: 4px 0;
}

@media (max-width: 576px) {
    .sc-pagina { padding: 8px; }
    .sc-cabecalho { padding: 10px 14px; gap: 10px; }
    .sc-cabecalho-logo { max-height: 40px; max-width: 110px; }
    .sc-cabecalho-titulo { font-size: 1.05rem; }
    .sc-moldura { border-width: 3px; }
    .sc-iframe { min-height: 560px; height: calc(100vh - 110px); }
}
