/* Consórcio Leads — componentes. Usa as cores do tema quando existem. */
:root {
	--cl-ink: var(--wp--preset--color--ink, #10233a);
	--cl-muted: var(--wp--preset--color--muted, #55657a);
	--cl-line: var(--wp--preset--color--line, #dfe3e8);
	--cl-surface: var(--wp--preset--color--surface, #ffffff);
	--cl-soft: var(--wp--preset--color--soft, #f4f1ea);
	--cl-go: var(--wp--preset--color--go, #0f7a40);
	--cl-go-dark: #0b5f31;
	--cl-gold: var(--wp--preset--color--gold, #e8a33d);
	--cl-bad: #b4462f;
	--cl-radius: 14px;
}

.cl-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
	padding: .95em 1.4em; border-radius: 999px; border: 2px solid transparent;
	cursor: pointer; text-decoration: none; transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.cl-btn:focus-visible { outline: 3px solid var(--cl-gold); outline-offset: 2px; }
.cl-btn--primario { background: var(--cl-go); color: #fff; box-shadow: 0 6px 18px -8px rgba(15,122,64,.7); }
.cl-btn--primario:hover { background: var(--cl-go-dark); transform: translateY(-1px); }
.cl-btn--secundario { background: transparent; color: var(--cl-ink); border-color: currentColor; }
.cl-btn--claro { background: #fff; color: var(--cl-go-dark); }
.cl-btn--link { background: none; color: var(--cl-muted); text-decoration: underline; padding: .6em; font-weight: 600; font-size: .95rem; }
.cl-btn--block { width: 100%; }
.cl-btn[disabled] { opacity: .65; cursor: progress; }
.cl-ico { flex: 0 0 auto; }

/* Campos */
.cl-field { display: flex; flex-direction: column; gap: .35em; font-size: .9rem; font-weight: 600; color: var(--cl-ink); margin: 0 0 .9rem; }
.cl-field input, .cl-field select {
	font: inherit; font-weight: 500; font-size: 1rem; color: var(--cl-ink);
	padding: .75em .85em; border: 1.5px solid var(--cl-line); border-radius: 10px; background: #fff; width: 100%; box-sizing: border-box;
}
.cl-field input:focus, .cl-field select:focus { outline: none; border-color: var(--cl-ink); box-shadow: 0 0 0 3px rgba(16,35,58,.12); }
.cl-field small { font-weight: 400; color: var(--cl-muted); }

/* ---------- Simulador ---------- */
.cl-sim { background: var(--cl-surface); border: 1px solid var(--cl-line); border-radius: 22px; box-shadow: 0 24px 60px -30px rgba(16,35,58,.35); overflow: hidden; color: var(--cl-ink); text-align: left; }
.cl-sim__tabs { display: flex; border-bottom: 1px solid var(--cl-line); background: var(--cl-soft); }
.cl-sim__tabs button { flex: 1; font: inherit; font-weight: 700; padding: 1em; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--cl-muted); cursor: pointer; }
.cl-sim__tabs button[aria-selected="true"] { color: var(--cl-ink); border-bottom-color: var(--cl-gold); background: var(--cl-surface); }
.cl-sim__body { display: grid; grid-template-columns: 1.05fr 1fr; }
.cl-sim__form { padding: 1.6rem; border-right: 1px solid var(--cl-line); }
.cl-sim__result { padding: 1.6rem; background: linear-gradient(180deg, #fbfaf7, #f4f1ea); }

.cl-field--big span:first-child { font-size: 1rem; }
.cl-money { display: flex; align-items: center; border: 2px solid var(--cl-ink); border-radius: 12px; padding: 0 .9em; background: #fff; }
.cl-money em { font-style: normal; font-weight: 800; font-size: 1.4rem; color: var(--cl-muted); margin-right: .35em; }
.cl-money input { border: 0 !important; box-shadow: none !important; font-size: 1.8rem !important; font-weight: 800 !important; padding: .35em 0 !important; letter-spacing: -.02em; }
.cl-sim input[type=range] { width: 100%; accent-color: var(--cl-ink); margin: .2rem 0 1.2rem; }

.cl-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cl-box { border: 1px solid var(--cl-line); border-radius: var(--cl-radius); padding: 1rem 1rem .2rem; margin: 0; min-width: 0; }
.cl-box legend { font-weight: 800; padding: 0 .4em; font-size: .95rem; }
.cl-box--cons legend { color: var(--cl-go); }
.cl-box--fin legend { color: var(--cl-bad); }
.cl-adv { margin: 0 0 .9rem; font-size: .85rem; }
.cl-adv summary { cursor: pointer; color: var(--cl-muted); font-weight: 600; margin-bottom: .6rem; }

.cl-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 800; color: var(--cl-muted); margin: 0 0 .3rem; }
.cl-economia { font-size: clamp(2.2rem, 5vw, 3.1rem); font-weight: 900; letter-spacing: -.03em; line-height: 1; margin: 0 0 .5rem; color: var(--cl-go); }
.cl-economia-sub { font-size: .95rem; color: var(--cl-muted); margin: 0 0 1rem; min-height: 2.6em; }
.is-neg .cl-economia { color: var(--cl-bad); }
.is-neg .cl-kicker::after { content: " — atenção"; }

.cl-bars { display: grid; gap: .7rem; margin-bottom: 1.2rem; }
.cl-bar { display: grid; grid-template-columns: 7.5em 1fr auto; align-items: center; gap: .7rem; font-size: .9rem; }
.cl-bar__label { font-weight: 700; }
.cl-bar__track { height: 14px; background: #e7e3da; border-radius: 99px; overflow: hidden; }
.cl-bar__fill { display: block; height: 100%; border-radius: 99px; transition: width .35s ease; }
.cl-bar--cons .cl-bar__fill { background: var(--cl-go); }
.cl-bar--fin .cl-bar__fill { background: var(--cl-bad); }
.cl-bar strong { font-variant-numeric: tabular-nums; min-width: 7.5em; text-align: right; }

.cl-facts { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: .6rem 1rem; margin: 0 0 1.3rem; }
.cl-facts div { background: #fff; border: 1px solid var(--cl-line); border-radius: 10px; padding: .6rem .75rem; }
.cl-facts dt { font-size: .75rem; color: var(--cl-muted); font-weight: 600; }
.cl-facts dd { margin: .15rem 0 0; font-weight: 800; font-size: .92rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; line-height: 1.35; }
.cl-nota { font-size: .75rem; color: var(--cl-muted); margin: .9rem 0 0; line-height: 1.45; }

/* ---------- Formulário ---------- */
.cl-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .9rem; }
.cl-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.cl-check { display: flex; gap: .55em; align-items: flex-start; font-size: .8rem; color: var(--cl-muted); margin: .2rem 0 1rem; line-height: 1.4; }
.cl-check input { margin-top: .2em; width: 1.05em; height: 1.05em; accent-color: var(--cl-go); flex: 0 0 auto; }
.cl-check a { color: inherit; }
.cl-form__msg { font-size: .9rem; font-weight: 600; min-height: 1.2em; margin: 0 0 .6rem; color: var(--cl-ink); }
.cl-form__msg a { color: var(--cl-go); }
.cl-form.is-email .cl-field--email span small { display: none; }
.cl-form.is-email .cl-field--email input { border-color: var(--cl-ink); }
.cl-form.is-done .cl-form__msg { color: var(--cl-go); }
.cl-form .cl-btn--link { display: block; margin: .4rem auto 0; }

.cl-inline-form { background: var(--cl-surface); border: 1px solid var(--cl-line); border-radius: 22px; padding: clamp(1.2rem, 4vw, 2rem); color: var(--cl-ink); box-shadow: 0 24px 60px -30px rgba(16,35,58,.35); }
.cl-inline-form h3 { margin: 0 0 .3rem; font-size: 1.5rem; }
.cl-inline-form > p { margin: 0 0 1.2rem; color: var(--cl-muted); }

/* ---------- Etapas e opções clicáveis ---------- */
.cl-step[hidden] { display: none !important; }
.cl-progress { font-size: .8rem; color: var(--cl-muted); margin: 0 0 .8rem; }
.cl-progress span { font-weight: 800; color: var(--cl-ink); }
.cl-back { background: none; border: 0; padding: 0; font: inherit; color: var(--cl-muted); text-decoration: underline; cursor: pointer; }
.cl-chips { border: 0; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem; min-width: 0; }
.cl-chips legend { font-weight: 700; font-size: .95rem; margin-bottom: .55rem; padding: 0; color: var(--cl-ink); }
.cl-chips label { position: relative; cursor: pointer; }
.cl-chips input { position: absolute; opacity: 0; pointer-events: none; }
.cl-chips span { display: inline-block; padding: .6em .95em; border: 1.5px solid var(--cl-line); border-radius: 999px; font-weight: 600; font-size: .92rem; background: #fff; transition: border-color .12s, background .12s; }
.cl-chips label:hover span { border-color: var(--cl-ink); }
.cl-chips input:checked + span { background: var(--cl-ink); border-color: var(--cl-ink); color: #fff; }
.cl-chips input:focus-visible + span { outline: 3px solid var(--cl-gold); outline-offset: 2px; }
.cl-chips--col { display: grid; grid-template-columns: 1fr 1fr; }
.cl-chips--col span { display: block; text-align: center; border-radius: 10px; }
.cl-step2-lead { font-weight: 700; margin: 0 0 .9rem; }
.cl-safe { text-align: center; font-size: .78rem; color: var(--cl-muted); margin: .5rem 0 0; }

/* Quem atende */
.cl-who { display: flex; align-items: center; gap: .7rem; background: var(--cl-soft); border-radius: 12px; padding: .6rem .8rem; margin: 0 0 1.1rem; }
.cl-who img, .cl-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.cl-avatar { display: grid; place-items: center; background: var(--cl-ink); color: #fff; font-weight: 800; }
.cl-who p { margin: 0; font-size: .9rem; line-height: 1.3; }
.cl-who small { color: var(--cl-muted); }
.cl-consultor { display: flex; gap: clamp(1rem, 4vw, 2.2rem); align-items: center; background: #fff; border: 1px solid var(--cl-line); border-radius: 22px; padding: clamp(1.2rem, 4vw, 2rem); color: var(--cl-ink); }
.cl-consultor__foto { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.cl-consultor h3 { margin: 0; font-size: 1.6rem; }
.cl-consultor__cargo { color: var(--cl-muted); font-weight: 600; margin: .1rem 0 .8rem; }
.cl-consultor__creds { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.cl-consultor__creds li { background: var(--cl-soft); border-radius: 999px; padding: .35em .85em; font-size: .85rem; font-weight: 700; }
.cl-consultor__creds li::before { content: "✓ "; color: var(--cl-go); }

/* Depoimentos */
.cl-depos h2 { text-align: center; }
.cl-depos__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.cl-depo { margin: 0; background: #fff; border: 1px solid var(--cl-line); border-radius: 18px; padding: 1.3rem; display: flex; flex-direction: column; justify-content: space-between; color: var(--cl-ink); }
.cl-depo blockquote { margin: 0 0 1rem; font-size: 1rem; line-height: 1.55; }
.cl-depo figcaption { font-size: .88rem; color: var(--cl-muted); display: flex; gap: .7rem; align-items: center; }
.cl-depo figcaption img, .cl-depo figcaption .cl-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.cl-depo figcaption strong { color: var(--cl-ink); }
.cl-depo__win { color: var(--cl-go); font-weight: 700; }

.cl-imagine { font-weight: 700; font-size: .95rem; margin: -.6rem 0 1.2rem; color: var(--cl-ink); }

/* Dicas e transparência (Baymard: explicar termos e mostrar cada custo) */
.cl-hint { display: block; font-size: .78rem; font-weight: 500; color: var(--cl-muted); line-height: 1.4; margin-top: .2rem; }
.cl-hint--ref { margin: -.6rem 0 1.1rem; }
.cl-compos { font-size: .8rem; color: var(--cl-muted); background: #fff; border: 1px dashed var(--cl-line); border-radius: 10px; padding: .55rem .75rem; margin: 0 0 1rem; line-height: 1.45; }
.cl-summary { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .88rem; font-weight: 700; background: var(--cl-soft); border-radius: 999px; padding: .35rem .9rem; margin: 0 0 .8rem; width: fit-content; max-width: 100%; }
.cl-summary .cl-back { font-weight: 600; }

/* Faixa de confiança */
.cl-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; font-size: .86rem; color: var(--cl-muted); text-align: center; padding: .9rem 0; }
.cl-trust span { position: relative; }
.cl-trust span + span::before { content: "•"; position: absolute; left: -.85rem; color: var(--cl-line); }
.cl-trust a { color: var(--cl-ink); }
.cl-trust strong { color: var(--cl-ink); }
.cl-stars { color: var(--cl-gold); }

/* Entrada e simulador de lance */
.cl-ent { margin: 0 0 .9rem; }
.cl-ent__label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.cl-ent__row { display: grid; grid-template-columns: 1.45fr 1fr; gap: .5rem; }
.cl-ent__row .cl-field { margin: 0; font-weight: 500; font-size: .78rem; color: var(--cl-muted); }
.cl-ent .cl-hint { margin-top: .35rem; }
.cl-plus { font-size: .88rem; line-height: 1.45; background: #e9f6ee; color: #0b4d2a; border-radius: 10px; padding: .6rem .8rem; margin: 0 0 1.1rem; }
.cl-plus:empty { display: none; }
.cl-bar__label small { display: block; font-weight: 500; font-size: .72rem; color: var(--cl-muted); line-height: 1.1; }
.cl-lance-link { margin: -.3rem 0 1rem; font-weight: 700; font-size: .92rem; }
.cl-lance-link a { color: var(--cl-go); }
.cl-box--lance { margin-bottom: 1rem; border-color: var(--cl-gold); background: #fffbf3; }
.cl-box--lance legend { color: #9a6416; }
.cl-grid2--tight { gap: .7rem; }
.cl-money--sm { border-width: 1.5px; border-color: var(--cl-line); border-radius: 10px; padding: 0 .7em; }
.cl-money--sm em { font-size: 1rem; }
.cl-money--sm input { font-size: 1rem !important; font-weight: 600 !important; padding: .7em 0 !important; letter-spacing: 0; }
.cl-hint--block { margin: -.5rem 0 .9rem; }
.cl-chips--sm span { font-size: .85rem; padding: .5em .6em; }
.cl-field input[type=range] { padding: 0; border: 0; accent-color: var(--cl-ink); box-shadow: none; }
.cl-warn { background: #fdecea; color: var(--cl-bad); border-radius: 10px; padding: .55rem .75rem; font-size: .85rem; font-weight: 600; margin: 0 0 1rem; }
.cl-warn[hidden] { display: none; }
.cl-cmp-wrap { overflow-x: auto; margin: 0 0 1.2rem; }
.cl-cmp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .85rem; background: #fff; border: 1px solid var(--cl-line); border-radius: 12px; overflow: hidden; }
.cl-cmp th, .cl-cmp td { padding: .55rem .65rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--cl-line); }
.cl-cmp thead th { background: var(--cl-soft); font-size: .78rem; }
.cl-cmp thead th:nth-child(2) { color: var(--cl-go); }
.cl-cmp thead th:nth-child(3) { color: var(--cl-bad); }
.cl-cmp tbody th { font-weight: 600; color: var(--cl-muted); width: 30%; }
.cl-cmp td { font-variant-numeric: tabular-nums; }
.cl-cmp tr:last-child th, .cl-cmp tr:last-child td { border-bottom: 0; }
.cl-cmp__total th, .cl-cmp__total td { font-weight: 800; color: var(--cl-ink) !important; background: #fbfaf7; font-size: .95rem; }

/* ---------- Modal ---------- */
.cl-modal { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border: 0; border-radius: 22px; padding: clamp(1.2rem, 4vw, 2rem); color: var(--cl-ink); box-shadow: 0 30px 80px rgba(0,0,0,.35); box-sizing: border-box; overflow-y: auto; }
.cl-modal::backdrop { background: rgba(10,22,38,.6); backdrop-filter: blur(2px); }
.cl-modal h2 { font-size: 1.45rem; margin: 0 0 .4rem; line-height: 1.2; }
.cl-modal__lead { color: var(--cl-muted); margin: 0 0 1.2rem; }
.cl-modal__close { position: absolute; top: .6rem; right: .8rem; font-size: 1.8rem; line-height: 1; background: none; border: 0; color: var(--cl-muted); cursor: pointer; padding: .2rem .5rem; }
.cl-modal[open] { animation: cl-pop .18s ease-out; }
@keyframes cl-pop { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Botão flutuante ---------- */
.cl-fab {
	position: fixed; right: 18px; bottom: 18px; z-index: 9990;
	display: inline-flex; align-items: center; gap: .5em;
	background: #25d366; color: #073b1e; border: 0; border-radius: 999px; padding: .9em 1.2em;
	font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 10px 30px -8px rgba(0,0,0,.45);
}
.cl-fab .cl-ico { width: 26px; height: 26px; }
.cl-fab:hover { transform: translateY(-2px); }
.cl-fab:focus-visible { outline: 3px solid var(--cl-ink); outline-offset: 3px; }

.cl-aviso { font-size: .8rem; opacity: .8; line-height: 1.5; }

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
	.cl-sim__body { grid-template-columns: 1fr; }
	.cl-sim__form { border-right: 0; border-bottom: 1px solid var(--cl-line); }
}
@media (max-width: 560px) {
	.cl-grid2, .cl-form__row, .cl-facts { grid-template-columns: 1fr; }
	.cl-consultor { flex-direction: column; text-align: center; }
	.cl-consultor__creds { justify-content: center; }
	.cl-consultor__foto { width: 130px; height: 130px; }
	.cl-sim__form, .cl-sim__result { padding: 1.1rem; }
	.cl-bar { grid-template-columns: 7.8em 1fr; }
	.cl-bar strong { grid-column: 1 / -1; text-align: left; min-width: 0; margin-top: -.3rem; }
	.cl-fab__txt { display: none; }
	.cl-modal__lead { display: none; }
	.cl-modal h2 { font-size: 1.25rem; padding-right: 1.5rem; }
	.cl-modal .cl-kicker { margin-bottom: .2rem; }
	.cl-who { padding: .45rem .7rem; margin-bottom: .8rem; }
	.cl-chips { gap: .4rem; margin-bottom: .8rem; }
	.cl-chips span { padding: .5em .8em; font-size: .88rem; }
	.cl-fab { padding: .85em; }
}
@media (prefers-reduced-motion: reduce) { .cl-btn, .cl-bar__fill, .cl-modal[open] { transition: none; animation: none; } }

/* ---------- Análise em valor presente (página interna) ---------- */
.cl-vpl { color: var(--cl-ink); }
.cl-vpl .cl-sim__tabs { border: 1px solid var(--cl-line); border-radius: 14px 14px 0 0; overflow: hidden; }
.cl-vpl__form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; padding: 1.2rem; border: 1px solid var(--cl-line); border-top: 0; border-radius: 0 0 14px 14px; background: #fff; margin-bottom: 1.5rem; }
.cl-vpl__form .cl-box { background: #fff; }
.cl-box--ref legend { color: var(--cl-ink); }
.cl-vpl__answer { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 900; line-height: 1.25; margin: 0 0 .5rem; letter-spacing: -.02em; }
.cl-vpl__sub { color: var(--cl-muted); margin: 0 0 1.2rem; }
.cl-vpl__chart { margin: 0 0 1.5rem; background: #fff; border: 1px solid var(--cl-line); border-radius: 14px; padding: .8rem; }
.cl-vpl__chart svg { width: 100%; height: auto; display: block; font-size: 11px; fill: var(--cl-muted); }
.cl-vpl__chart .g { stroke: #eceae4; }
.cl-vpl__chart .l { fill: none; stroke: var(--cl-go); stroke-width: 2.5; }
.cl-vpl__chart .r { stroke: var(--cl-bad); stroke-width: 1.5; stroke-dasharray: 5 4; }
.cl-vpl__chart .rt { fill: var(--cl-bad); font-weight: 700; }
.cl-vpl__chart .v { stroke: var(--cl-ink); stroke-width: 1; stroke-dasharray: 2 3; }
.cl-vpl__chart .vt { fill: var(--cl-ink); font-weight: 700; }
.cl-vpl__chart figcaption { font-size: .78rem; color: var(--cl-muted); margin-top: .4rem; }
.cl-vpl__det { border: 1px solid var(--cl-line); border-radius: 14px; padding: .8rem 1rem; margin: 0 0 1rem; background: #fff; }
.cl-vpl__det summary { font-weight: 800; cursor: pointer; }
.cl-vpl__scroll { max-height: 460px; overflow: auto; margin-top: .8rem; }
.cl-vpl__t thead th { position: sticky; top: 0; z-index: 1; }
.cl-vpl__t td { text-align: right; white-space: nowrap; }
.cl-vpl__t td:first-child { text-align: left; }
.cl-vpl__t tr.is-virada td { background: #fff3d6; font-weight: 800; }
.cl-vpl__mes { max-width: 260px; margin-top: .8rem; }
.cl-vpl__met { font-size: .9rem; line-height: 1.55; padding-left: 1.1rem; }
.cl-vpl__met li { margin-bottom: .45rem; }
.post-password-form { max-width: 420px; margin: 2rem auto; background: #fff; border: 1px solid var(--cl-line); border-radius: 14px; padding: 1.5rem; }
.post-password-form input[type=password] { font: inherit; padding: .7em .8em; border: 1.5px solid var(--cl-line); border-radius: 10px; width: 100%; box-sizing: border-box; margin-top: .3rem; }
.post-password-form input[type=submit] { font: inherit; font-weight: 700; background: var(--cl-ink); color: #fff; border: 0; border-radius: 999px; padding: .7em 1.4em; margin-top: .8rem; cursor: pointer; }
