.threeb-sim {
	--threeb-verde: #1e3c2a;
	--threeb-verde-escuro: #14291d;
	--threeb-dourado: #b8860b;
	--threeb-areia: #f6f1e7;
	max-width: 760px;
	margin: 0 auto;
}

/* -------------------------------------------------------------------
 * Cabecalho
 * ----------------------------------------------------------------- */
.threeb-sim-header {
	display: flex;
	align-items: center;
	gap: 18px;
	background: linear-gradient(135deg, var(--threeb-verde-escuro), var(--threeb-verde));
	color: #fff;
	border-radius: 14px 14px 0 0;
	padding: 26px 28px;
}

.threeb-sim-header .houzez-icon {
	font-size: 34px;
	color: var(--threeb-dourado);
}

.threeb-sim-header h2 {
	margin: 0 0 4px;
	font-size: 22px;
	color: #fff;
}

.threeb-sim-header p {
	margin: 0;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.8);
}

/* -------------------------------------------------------------------
 * Formulario - secoes em "cartao" separadas
 * ----------------------------------------------------------------- */
.threeb-sim-form {
	background: #fff;
	border: 1px solid #ece7da;
	border-top: none;
	border-radius: 0 0 14px 14px;
	padding: 28px;
	box-shadow: 0 10px 30px rgba(20, 41, 29, 0.08);
}

.threeb-sim-section {
	margin-bottom: 24px;
}

.threeb-sim-section-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 700;
	color: var(--threeb-verde);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0 0 14px;
}

.threeb-sim-section-title .houzez-icon {
	color: var(--threeb-dourado);
	font-size: 16px;
}

/* Numeracao 1-2-3 das secoes - reforca a sensacao de "assistente guiado"
   (pedido de UX: layout mais intuitivo/app-like). */
.threeb-sim-step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--threeb-verde);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
}

.threeb-sim-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 18px;
}

.threeb-sim-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #444;
	margin-bottom: 6px;
}

.threeb-sim-field input {
	width: 100%;
	padding: 13px 14px;
	border: 1px solid #dbe0dc;
	border-radius: 8px;
	font-size: 15px;
	background: var(--threeb-areia);
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.threeb-sim-field input:focus {
	outline: none;
	border-color: var(--threeb-dourado);
	background: #fff;
}

.threeb-sim-alerta {
	display: block;
	color: #b3261e;
	font-size: 12px;
	margin-top: 6px;
}

/* Slider + campo numerico lado a lado (Entrada e Prazo) - o slider e' so um
   atalho tatil pro mesmo valor, mais familiar em apps de simulacao de
   banco; o campo numerico continua a fonte validada usada no calculo. */
.threeb-sim-range-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.threeb-sim-range-row input[type="number"] {
	flex: 0 0 90px;
	width: 90px;
}

.threeb-sim-range {
	flex: 1;
	appearance: none;
	-webkit-appearance: none;
	height: 6px;
	border-radius: 999px;
	background: #ece7da;
	outline: none;
}

.threeb-sim-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--threeb-dourado);
	border: 3px solid #fff;
	box-shadow: 0 1px 4px rgba(20, 41, 29, 0.35);
	cursor: pointer;
}

.threeb-sim-range::-moz-range-thumb {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--threeb-dourado);
	border: 3px solid #fff;
	box-shadow: 0 1px 4px rgba(20, 41, 29, 0.35);
	cursor: pointer;
}

/* Previa ao vivo (Entrada em R$ / Financiado em R$), atualizada a cada
   digitacao - feedback imediato antes mesmo de clicar em "Simular". */
.threeb-sim-live-preview {
	margin: 10px 0 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--threeb-verde);
	min-height: 18px;
}

/* -------------------------------------------------------------------
 * Selecao de sistema (SAC/Price) como cartoes clicaveis
 * ----------------------------------------------------------------- */
.threeb-sim-sistema-cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}

.threeb-sim-sistema-card {
	display: block;
	cursor: pointer;
}

.threeb-sim-sistema-card input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.threeb-sim-sistema-card-visual {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 4px;
	padding: 20px 14px;
	border: 2px solid #ece7da;
	border-radius: 10px;
	background: var(--threeb-areia);
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.threeb-sim-sistema-card-visual .houzez-icon {
	font-size: 26px;
	color: var(--threeb-verde);
	margin-bottom: 4px;
}

.threeb-sim-sistema-card-visual strong {
	font-size: 15px;
	color: var(--threeb-verde-escuro);
}

.threeb-sim-sistema-card-visual small {
	font-size: 12px;
	color: #777;
}

.threeb-sim-sistema-card input:checked + .threeb-sim-sistema-card-visual {
	border-color: var(--threeb-dourado);
	background: #fff;
	box-shadow: 0 4px 14px rgba(184, 134, 11, 0.18);
}

.threeb-sim-sistema-card input:checked + .threeb-sim-sistema-card-visual .houzez-icon {
	color: var(--threeb-dourado);
}

.threeb-sim-sistema-card input:focus-visible + .threeb-sim-sistema-card-visual {
	outline: 2px solid var(--threeb-dourado);
	outline-offset: 2px;
}

/* -------------------------------------------------------------------
 * Botao de acao
 * ----------------------------------------------------------------- */
.threeb-sim-btn {
	width: 100%;
	background: var(--threeb-dourado);
	color: var(--threeb-verde-escuro);
	border: none;
	border-radius: 8px;
	padding: 16px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: opacity 0.15s ease, transform 0.1s ease;
}

.threeb-sim-btn:hover {
	opacity: 0.9;
}

.threeb-sim-btn:active {
	transform: scale(0.99);
}

/* -------------------------------------------------------------------
 * Resultado
 * ----------------------------------------------------------------- */
.threeb-sim-resultado {
	margin-top: 22px;
	background: #fff;
	border: 1px solid #ece7da;
	border-radius: 14px;
	padding: 28px;
	box-shadow: 0 10px 30px rgba(20, 41, 29, 0.08);
}

.threeb-sim-result-hero {
	text-align: center;
	padding: 22px 20px 26px;
	margin-bottom: 20px;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--threeb-verde-escuro), var(--threeb-verde));
}

.threeb-sim-result-hero-label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.75);
}

.threeb-sim-result-hero-value {
	display: block;
	font-size: 40px;
	font-weight: 700;
	color: var(--threeb-dourado);
	line-height: 1.3;
}

.threeb-sim-result-hero-sub {
	display: block;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.8);
}

.threeb-sim-result-hero-sub strong {
	color: #fff;
}

.threeb-sim-result-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}

.threeb-sim-result-item {
	background: var(--threeb-areia);
	border-radius: 8px;
	padding: 16px;
	text-align: center;
}

.threeb-sim-result-label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: #777;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	margin-bottom: 6px;
}

.threeb-sim-result-value {
	display: block;
	font-size: 19px;
	font-weight: 700;
	color: var(--threeb-verde-escuro);
}

.threeb-sim-result-total {
	grid-column: 1 / -1;
	background: var(--threeb-verde);
}

.threeb-sim-result-total .threeb-sim-result-label {
	color: rgba(255, 255, 255, 0.75);
}

.threeb-sim-result-total .threeb-sim-result-value {
	color: var(--threeb-dourado);
	font-size: 24px;
}

.threeb-sim-disclaimer {
	font-size: 12px;
	color: #999;
	margin: 18px 0 0;
	text-align: center;
}

.threeb-sim-whatsapp-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
	background: #25d366;
	color: #fff;
	border-radius: 8px;
	padding: 14px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}

.threeb-sim-whatsapp-btn:hover {
	background: #1fb955;
	color: #fff;
}

@media (max-width: 600px) {
	.threeb-sim-header {
		flex-direction: column;
		text-align: center;
		padding: 22px 20px;
	}
	.threeb-sim-form,
	.threeb-sim-resultado {
		padding: 20px;
	}
	.threeb-sim-grid,
	.threeb-sim-sistema-cards,
	.threeb-sim-result-grid {
		grid-template-columns: 1fr;
	}
	.threeb-sim-result-hero-value {
		font-size: 32px;
	}
}
