.tvc-house-cost {
	--tvc-tool-blue: #1880fd;
	--tvc-tool-blue-dark: #075ec4;
	--tvc-tool-ink: #11182b;
	--tvc-tool-muted: #606a7f;
	--tvc-tool-line: #dce2ec;
	background: transparent;
	border: 0;
	color: var(--tvc-tool-ink);
	max-height: min(920px, calc(100vh - 28px));
	max-width: none;
	overflow: visible;
	padding: 0;
	width: min(1040px, calc(100vw - 28px));
}

.tvc-house-cost::backdrop {
	backdrop-filter: blur(7px);
	background: rgba(4, 10, 24, 0.78);
}

.tvc-house-cost__shell {
	background:
		radial-gradient(circle at 100% 0, rgba(24, 128, 253, 0.15), transparent 30%),
		#fff;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 24px;
	box-shadow: 0 35px 90px rgba(0, 0, 0, 0.32);
	max-height: min(920px, calc(100vh - 28px));
	overflow: auto;
	padding: clamp(28px, 4vw, 50px);
	position: relative;
}

.tvc-house-cost__close {
	align-items: center;
	appearance: none;
	background: rgba(17, 24, 43, 0.07);
	border: 0;
	border-radius: 50%;
	color: var(--tvc-tool-ink);
	cursor: pointer;
	display: inline-flex;
	font-size: 28px;
	height: 42px;
	justify-content: center;
	line-height: 1;
	padding: 0 0 3px;
	position: absolute;
	right: 18px;
	top: 18px;
	width: 42px;
	z-index: 2;
}

.tvc-house-cost__header {
	max-width: 760px;
	padding-right: 42px;
}

.tvc-house-cost__header > p {
	color: #ff184e;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.13em;
	margin: 0 0 10px;
	text-transform: uppercase;
}

.tvc-house-cost__header h2 {
	color: var(--tvc-tool-ink);
	font-size: clamp(30px, 4.6vw, 48px);
	font-weight: 850;
	letter-spacing: -0.045em;
	line-height: 1.02;
	margin: 0;
}

.tvc-house-cost__header > span {
	color: var(--tvc-tool-muted);
	display: block;
	font-size: 16px;
	line-height: 1.55;
	margin-top: 16px;
}

.tvc-house-cost__form {
	margin-top: 30px;
}

.tvc-house-cost__fields,
.tvc-house-cost__assumptions > div,
.tvc-house-cost__lead-fields {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tvc-house-cost label > span:first-child,
.tvc-house-cost__assumptions label > span:first-child {
	color: #344057;
	display: block;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.035em;
	margin-bottom: 7px;
}

.tvc-house-cost input,
.tvc-house-cost select {
	appearance: none;
	background: #fff;
	border: 1px solid #cbd4e1;
	border-radius: 11px;
	box-sizing: border-box;
	color: var(--tvc-tool-ink);
	font: inherit;
	font-size: 15px;
	height: 50px;
	min-width: 0;
	padding: 0 13px;
	width: 100%;
}

.tvc-house-cost select {
	background-image: linear-gradient(45deg, transparent 50%, #5e687b 50%), linear-gradient(135deg, #5e687b 50%, transparent 50%);
	background-position: calc(100% - 17px) 21px, calc(100% - 12px) 21px;
	background-repeat: no-repeat;
	background-size: 5px 5px, 5px 5px;
	padding-right: 34px;
}

.tvc-house-cost input:focus,
.tvc-house-cost select:focus,
.tvc-house-cost button:focus-visible,
.tvc-house-cost summary:focus-visible,
.tvc-quiz-card__action[data-tvc-tool-open]:focus-visible {
	border-color: var(--tvc-tool-blue);
	box-shadow: 0 0 0 3px rgba(24, 128, 253, 0.18);
	outline: 0;
}

.tvc-house-cost__money,
.tvc-house-cost__suffix {
	display: flex;
	position: relative;
}

.tvc-house-cost__money b,
.tvc-house-cost__suffix b {
	align-items: center;
	color: #687388;
	display: flex;
	font-size: 13px;
	font-weight: 850;
	height: 50px;
	pointer-events: none;
	position: absolute;
	z-index: 1;
}

.tvc-house-cost__money b {
	left: 13px;
}

.tvc-house-cost__money input {
	padding-left: 44px;
}

.tvc-house-cost__suffix b {
	right: 14px;
}

.tvc-house-cost__suffix input {
	padding-right: 35px;
}

.tvc-house-cost__assumptions {
	border-bottom: 1px solid var(--tvc-tool-line);
	border-top: 1px solid var(--tvc-tool-line);
	margin-top: 22px;
	padding: 16px 0;
}

.tvc-house-cost__assumptions summary {
	color: var(--tvc-tool-blue-dark);
	cursor: pointer;
	font-size: 13px;
	font-weight: 850;
}

.tvc-house-cost__assumptions > div {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: 18px;
}

.tvc-house-cost__calculate,
.tvc-house-cost__submit {
	appearance: none;
	background: var(--tvc-tool-blue);
	border: 1px solid var(--tvc-tool-blue);
	border-radius: 11px;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	font-weight: 850;
	min-height: 50px;
	padding: 13px 22px;
	transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.tvc-house-cost__calculate {
	margin-top: 22px;
}

.tvc-house-cost__calculate:hover,
.tvc-house-cost__submit:hover {
	background: var(--tvc-tool-blue-dark);
	border-color: var(--tvc-tool-blue-dark);
	transform: translateY(-1px);
}

.tvc-house-cost__submit:disabled {
	background: #aab4c4;
	border-color: #aab4c4;
	cursor: wait;
	transform: none;
}

.tvc-house-cost__result {
	background: #11182b;
	border-radius: 18px;
	color: #fff;
	display: grid;
	gap: 5px;
	grid-template-columns: minmax(240px, 0.8fr) minmax(420px, 1.2fr);
	margin-top: 28px;
	padding: clamp(22px, 3vw, 32px);
}

.tvc-house-cost__result[hidden],
.tvc-house-cost__lead[hidden] {
	display: none;
}

.tvc-house-cost__result > p {
	color: #a9b8d2;
	font-size: 12px;
	font-weight: 850;
	grid-column: 1;
	letter-spacing: 0.08em;
	margin: 0;
	text-transform: uppercase;
}

.tvc-house-cost__result > strong {
	font-size: clamp(34px, 5vw, 54px);
	font-weight: 850;
	grid-column: 1;
	letter-spacing: -0.045em;
	line-height: 1;
}

.tvc-house-cost__result > span {
	color: #78b8ff;
	font-size: 13px;
	font-weight: 750;
	grid-column: 1;
}

.tvc-house-cost__result dl {
	display: grid;
	gap: 0 18px;
	grid-column: 2;
	grid-row: 1 / span 4;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
}

.tvc-house-cost__result dl div {
	border-bottom: 1px solid rgba(255, 255, 255, 0.13);
	display: flex;
	gap: 12px;
	justify-content: space-between;
	padding: 9px 0;
}

.tvc-house-cost__result dt {
	color: #b9c5d8;
	font-size: 12px;
}

.tvc-house-cost__result dd {
	font-size: 13px;
	font-weight: 800;
	margin: 0;
}

.tvc-house-cost__cash {
	align-items: center;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	display: flex;
	font-size: 13px;
	gap: 12px;
	grid-column: 1 / -1;
	justify-content: space-between;
	margin-top: 14px;
	padding-top: 18px;
}

.tvc-house-cost__cash b {
	font-size: 18px;
}

.tvc-house-cost__lead {
	background: #f4f7fb;
	border: 1px solid var(--tvc-tool-line);
	border-radius: 18px;
	margin-top: 18px;
	padding: clamp(22px, 3vw, 30px);
}

.tvc-house-cost__lead h3 {
	font-size: 24px;
	letter-spacing: -0.025em;
	margin: 0;
}

.tvc-house-cost__lead > p {
	color: var(--tvc-tool-muted);
	font-size: 14px;
	line-height: 1.55;
	margin: 8px 0 20px;
}

.tvc-house-cost__check {
	align-items: flex-start;
	display: flex;
	gap: 10px;
	margin-top: 15px;
}

.tvc-house-cost__check input {
	appearance: auto;
	flex: 0 0 auto;
	height: 18px;
	margin: 2px 0 0;
	width: 18px;
}

.tvc-house-cost__check > span:first-child {
	color: #3f4b60;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.45;
	margin: 0;
}

.tvc-house-cost__privacy,
.tvc-house-cost__feedback,
.tvc-house-cost__disclaimer {
	color: #737f92;
	font-size: 11px;
	line-height: 1.5;
}

.tvc-house-cost__privacy a {
	color: var(--tvc-tool-blue-dark);
}

.tvc-house-cost__feedback {
	font-size: 13px;
	font-weight: 750;
	margin: 12px 0 0;
}

.tvc-house-cost__feedback.is-error {
	color: #b00020;
}

.tvc-house-cost__feedback.is-success {
	color: #087a3f;
}

.tvc-house-cost__disclaimer {
	border-top: 1px solid var(--tvc-tool-line);
	margin: 22px 0 0;
	padding-top: 18px;
}

.tvc-house-cost__honeypot {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.tvc-interactive-is-open {
	overflow: hidden;
}

@media (max-width: 760px) {
	.tvc-house-cost {
		max-height: 100dvh;
		width: 100vw;
	}

	.tvc-house-cost__shell {
		border-radius: 20px 20px 0 0;
		max-height: calc(100dvh - 10px);
		padding: 62px 18px 24px;
	}

	.tvc-house-cost[open] {
		margin-bottom: 0;
	}

	.tvc-house-cost__close {
		right: 14px;
		top: 13px;
	}

	.tvc-house-cost__header {
		padding-right: 0;
	}

	.tvc-house-cost__header h2 {
		font-size: 32px;
	}

	.tvc-house-cost__fields,
	.tvc-house-cost__assumptions > div,
	.tvc-house-cost__lead-fields {
		grid-template-columns: 1fr;
	}

	.tvc-house-cost__result {
		grid-template-columns: 1fr;
	}

	.tvc-house-cost__result dl {
		grid-column: 1;
		grid-row: auto;
		grid-template-columns: 1fr;
		margin-top: 16px;
	}

	.tvc-house-cost__calculate,
	.tvc-house-cost__submit {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tvc-house-cost__calculate,
	.tvc-house-cost__submit {
		transition: none;
	}
}
