/* Simulacro gratuito — landing de campanha.
   Classes mantidas iguais: o simulacro.js depende delas. */

.sim-main { max-width: 820px; margin: 0 auto; padding: 118px 24px 90px; }
.sim-view[hidden] { display: none; }
.sim-view { animation: simIn .32s ease both; }
@keyframes simIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── Intro ── */
.sim-hero { text-align: center; }
.sim-hero h1 {
    font-size: clamp(2rem, 5vw, 2.9rem);
    font-weight: 800; letter-spacing: -.02em;
    color: var(--text-dark); line-height: 1.15; margin-bottom: 1.1rem;
}
.sim-hero h1 span {
    background: linear-gradient(120deg, var(--primary-blue), #3fa3e8);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.sim-hero > p {
    color: var(--text-gray); font-size: 1.08rem; line-height: 1.8;
    max-width: 620px; margin: 0 auto 1rem;
}

.sim-facts {
    display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
    margin: 2.6rem auto 2.4rem; max-width: 560px;
}
.sim-fact {
    flex: 1; min-width: 140px;
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
    padding: 20px 14px; box-shadow: 0 1px 3px rgba(37,44,97,.05);
}
.sim-fact strong {
    display: block; font-size: 1.9rem; font-weight: 800;
    color: var(--primary-blue); line-height: 1; letter-spacing: -.02em;
}
.sim-fact span {
    display: block; font-size: .78rem; color: var(--text-light);
    text-transform: uppercase; letter-spacing: .07em; margin-top: 8px; font-weight: 600;
}

/* ── Botoes ── */
.sim-btn {
    font-family: inherit; font-size: 1rem; font-weight: 600;
    padding: 16px 38px; border-radius: 14px;
    border: 2px solid var(--primary-blue);
    background: var(--primary-blue); color: #fff; cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,101,174,.24);
    transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}
.sim-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,101,174,.3); }
.sim-btn:active:not(:disabled) { transform: translateY(0); }
.sim-btn:disabled { opacity: .42; cursor: not-allowed; box-shadow: none; }
.sim-btn-ghost { background: #fff; color: var(--primary-blue); box-shadow: none; }
.sim-btn-ghost:hover:not(:disabled) { background: #f3f9ff; box-shadow: none; transform: none; }
.sim-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ── Progresso (fixo no topo: sao 50 perguntas) ── */
.sim-progress-wrap {
    position: sticky; top: 0; z-index: 20;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    margin: -14px -24px 2rem; padding: 16px 24px 14px;
    border-bottom: 1px solid var(--border);
}
.sim-progress-top {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 9px; font-size: .82rem; font-weight: 600; color: var(--text-light);
}
#progPct { color: var(--primary-blue); }
.sim-bar { height: 7px; background: #e9edf3; border-radius: 4px; overflow: hidden; }
.sim-bar-fill {
    height: 100%; width: 0; border-radius: 4px;
    background: linear-gradient(90deg, var(--primary-blue), #3fa3e8);
    transition: width .3s cubic-bezier(.4,0,.2,1);
}

/* ── Pergunta ── */
.sim-q {
    font-size: 1.08rem; line-height: 1.78; color: var(--text-dark);
    margin-bottom: 1.9rem; font-weight: 450;
}
.sim-q p { margin-bottom: .8rem; }
.sim-q p:last-child { margin-bottom: 0; }

.sim-opt {
    display: flex; align-items: flex-start; gap: 15px; width: 100%;
    text-align: left; font-family: inherit; font-size: .96rem; line-height: 1.62;
    color: var(--text-dark); padding: 17px 20px; margin-bottom: 11px;
    background: #fff; border: 2px solid var(--border); border-radius: 14px;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, transform .12s ease;
}
.sim-opt:hover { border-color: #b9dcf5; background: #fbfdff; transform: translateX(2px); }
.sim-opt.selected {
    border-color: var(--primary-blue); background: #f2f9ff;
    box-shadow: 0 2px 10px rgba(0,101,174,.1);
}
.sim-opt:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sim-opt-letter {
    flex-shrink: 0; width: 28px; height: 28px; border-radius: 9px;
    background: var(--bg-light); color: var(--text-gray);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .8rem; text-transform: uppercase;
    transition: background .16s ease, color .16s ease;
}
.sim-opt.selected .sim-opt-letter { background: var(--primary-blue); color: #fff; }
.sim-opt.correct { border-color: var(--success-green); background: #f0fdf9; }
.sim-opt.correct .sim-opt-letter { background: var(--success-green); color: #fff; }
.sim-opt.wrong { border-color: #ef4444; background: #fef4f4; }
.sim-opt.wrong .sim-opt-letter { background: #ef4444; color: #fff; }

.sim-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 2rem; }

/* ── Resultado ── */
.sim-score {
    text-align: center; padding: 3rem 1.5rem;
    background: linear-gradient(165deg, #f4faff 0%, #fff 62%);
    border: 1px solid var(--border); border-radius: 22px;
}
.sim-score-num {
    font-size: clamp(3.2rem, 9vw, 4.4rem); font-weight: 800;
    color: var(--primary-blue); line-height: 1; letter-spacing: -.03em;
}
.sim-score-label { color: var(--text-gray); margin-top: .7rem; font-size: 1.02rem; font-weight: 500; }
.sim-score-msg { color: var(--text-gray); line-height: 1.8; max-width: 520px; margin: 1.5rem auto 0; font-size: .96rem; }

.sim-locked {
    background: #fff; border: 1px solid var(--border); border-radius: 22px;
    padding: 2.6rem 2rem; margin-top: 1.5rem; text-align: center;
    box-shadow: 0 4px 24px rgba(37,44,97,.07);
}
.sim-locked h2 { font-size: 1.42rem; font-weight: 700; margin-bottom: .6rem; color: var(--text-dark); letter-spacing: -.01em; }
.sim-locked > p { color: var(--text-gray); line-height: 1.75; margin-bottom: 1.8rem; max-width: 440px; margin-left: auto; margin-right: auto; }

/* ── Formulario ── */
.sim-form { max-width: 400px; margin: 0 auto; text-align: left; }
.sim-field { margin-bottom: 1.05rem; }
.sim-field label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 7px; color: var(--text-dark); }
.sim-field input, .sim-field select {
    width: 100%; font-family: inherit; font-size: .96rem;
    padding: 14px 16px; border: 2px solid var(--border); border-radius: 12px;
    background: #fff; color: var(--text-dark); transition: border-color .16s ease, box-shadow .16s ease;
}
.sim-field input::placeholder { color: #b4bcc7; }
.sim-field input:focus, .sim-field select:focus {
    outline: none; border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0,101,174,.1);
}
.sim-consent {
    display: flex; align-items: flex-start; gap: 11px;
    font-size: .82rem; line-height: 1.65; color: var(--text-light);
    margin: 1.4rem 0; cursor: pointer;
}
.sim-consent input { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--primary-blue); cursor: pointer; }
.sim-legal { font-size: .76rem; color: var(--text-light); line-height: 1.65; margin-top: 1.1rem; }
.sim-legal a { color: var(--primary-blue); text-decoration: underline; }
.sim-error { color: #ef4444; font-size: .86rem; margin-top: .8rem; min-height: 1.2em; font-weight: 500; }

/* ── Detalhe por area ── */
.sim-area { display: flex; align-items: center; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.sim-area:last-child { border-bottom: none; }
.sim-area-name { flex: 1; font-size: .95rem; color: var(--text-dark); font-weight: 500; }
.sim-area-bar { width: 120px; height: 7px; background: #e9edf3; border-radius: 4px; overflow: hidden; flex-shrink: 0; }
.sim-area-fill { height: 100%; background: var(--primary-blue); border-radius: 4px; }
.sim-area-score { font-size: .88rem; font-weight: 700; color: var(--text-gray); min-width: 48px; text-align: right; }

.sim-review-item {
    border: 1px solid var(--border); border-radius: 18px;
    padding: 26px; margin-bottom: 18px; background: #fff;
}
.sim-review-q { font-size: .97rem; line-height: 1.75; margin-bottom: 1.1rem; color: var(--text-dark); }
.sim-review-item .sim-opt { margin-bottom: 8px; padding: 13px 16px; font-size: .9rem; }
.sim-just {
    margin-top: 1.1rem; padding: 18px;
    background: var(--bg-light); border-left: 3px solid var(--primary-blue);
    border-radius: 0 12px 12px 0; font-size: .91rem; line-height: 1.78; color: var(--text-gray);
}
.sim-just strong { color: var(--text-dark); }

.sim-cta-final {
    text-align: center; border-radius: 22px; padding: 3rem 2rem; margin: 3.5rem 0 0;
    background: linear-gradient(160deg, var(--primary-blue) 0%, #004E86 100%);
    color: #fff;
}
.sim-cta-final h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: .9rem; color: #fff; letter-spacing: -.01em; }
.sim-cta-final p { color: rgba(255,255,255,.86); line-height: 1.8; margin-bottom: 1.8rem; max-width: 520px; margin-left: auto; margin-right: auto; }
.sim-cta-final .sim-btn {
    background: #fff; color: var(--primary-blue); border-color: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,.16);
}

.sim-loading { text-align: center; padding: 4rem 0; color: var(--text-light); font-size: .95rem; }
.sim-loading::after {
    content: ''; display: block; width: 26px; height: 26px; margin: 18px auto 0;
    border: 3px solid var(--border); border-top-color: var(--primary-blue);
    border-radius: 50%; animation: simSpin .7s linear infinite;
}
@keyframes simSpin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
    .sim-main { padding: 96px 18px 64px; }
    .sim-facts { gap: 9px; }
    .sim-fact { min-width: 0; padding: 15px 8px; }
    .sim-fact strong { font-size: 1.45rem; }
    .sim-fact span { font-size: .68rem; }
    .sim-progress-wrap { margin: -10px -18px 1.6rem; padding: 13px 18px 12px; }
    .sim-nav .sim-btn { flex: 1; padding: 15px 16px; font-size: .94rem; }
    .sim-locked, .sim-score { padding: 2rem 1.3rem; border-radius: 18px; }
    .sim-cta-final { padding: 2.2rem 1.4rem; }
    .sim-area { gap: 12px; }
    .sim-area-bar { width: 72px; }
    .sim-review-item { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .sim-view, .sim-btn, .sim-opt, .sim-bar-fill { animation: none !important; transition: none !important; }
}
