/* MT - Mortgage Calculator widget */

/* Background row behind the card. Unlike the Gutenberg block this is NOT a
   100vw breakout — Elementor's container controls the outer width. */
.hlmc-wrap {
	width: 100%;
	box-sizing: border-box;
	padding: 56px 20px;
	background-color: #f1f5fb;
}

.hlmc {
	--hlmc-accent: #0f766e;
	--hlmc-accent-dark: #115e59;
	max-width: 1140px;
	margin: 0 auto;
	border-radius: 16px;
	overflow: hidden;
	background: #ffffff;
	box-shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
	font-family: inherit;
	color: #0f172a;
}

/* Header */
.hlmc__head {
	padding: 26px 34px;
	color: #ffffff;
	background-color: var(--hlmc-accent);
}
.hlmc__heading {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}
.hlmc__subheading {
	margin: 8px 0 0;
	font-size: 14px;
	opacity: 0.9;
}

/* Body */
.hlmc__body {
	padding: 30px 34px 26px;
}
.hlmc__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 34px;
	align-items: start;
}

/* Inputs column */
.hlmc__inputs {
	display: flex;
	flex-direction: column;
	gap: 26px;
}
.hlmc__field {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.hlmc__label-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}
.hlmc__label {
    font-size: 15px;
    font-weight: 700;
}
.hlmc__label-value {
	font-size: 1rem;
	font-weight: 700;
	color: #0f172a;
}
.hlmc__label-value strong {
	color: var(--hlmc-accent);
	font-weight: 600;
}
.hlmc__price {
	width: 100%;
	padding: 15px 16px;
	border: 1px solid #e2e8f0;
	border-radius: 12px !important;
	font-size: 1.15rem;
	font-weight: 600;
	color: #0f172a;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.hlmc__price:focus {
	border-color: var(--hlmc-accent);
	box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}
.hlmc__hint {
	font-size: 0.85rem;
	color: #64748b;
}

/* Range sliders — accent fill up to the thumb via --hlmc-fill (set in JS) */
.hlmc__range {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 6px;
	border-radius: 999px;
	background: linear-gradient(
		to right,
		var(--hlmc-accent) 0,
		var(--hlmc-accent) var(--hlmc-fill, 0%),
		#dbe4ee var(--hlmc-fill, 0%),
		#dbe4ee 100%
	);
	outline: none;
	cursor: pointer;
}
.hlmc__range::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #ffffff;
	border: 3px solid var(--hlmc-accent);
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
	cursor: pointer;
}
.hlmc__range::-moz-range-thumb {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #ffffff;
	border: 3px solid var(--hlmc-accent);
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
	cursor: pointer;
}
.hlmc__range::-moz-range-track {
	height: 6px;
	border-radius: 999px;
	background: #dbe4ee;
}
.hlmc__range-scale {
	display: flex;
	justify-content: space-between;
	font-size: 0.82rem;
	color: #64748b;
}

/* Results panel */
.hlmc__results {
	background: #f1f5fb;
	border-radius: 14px;
	padding: 24px 26px;
}
.hlmc__results-title {
	display: block;
	font-size: 0.98rem;
	color: #64748b;
	margin-bottom: 10px;
}
.hlmc__rate {
	display: flex;
	align-items: center;
	gap: 10px;
}
.hlmc__rate-currency {
	font-size: 1.9rem;
	font-weight: 700;
	color: var(--hlmc-accent);
}
.hlmc__rate-value {
	font-size: 2.1rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #0f172a;
}
.hlmc__rate-per {
	font-size: 1rem;
	color: #64748b;
	align-self: flex-end;
	margin-bottom: 6px;
}
.hlmc__breakdown {
	margin: 20px 0 0;
	padding-top: 18px;
	border-top: 1px solid #dbe4ee;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.hlmc__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin: 0;
}
.hlmc__row dt {
	color: #64748b;
	font-size: 1rem;
	font-weight: 500;
}
.hlmc__row dd {
	margin: 0;
	font-size: 1rem;
	color: #0f172a;
	text-align: right;
}
.hlmc__muted {
	color: #94a3b8;
}

/* CTA */
.hlmc__cta {
	display: block;
	margin: 26px 0 0;
	padding: 17px 24px;
	background: var(--hlmc-accent);
	color: #ffffff;
	text-align: center;
	font-size: 1.05rem;
	font-weight: 700;
	text-decoration: none;
	border-radius: 12px;
	transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.hlmc__cta:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 26px rgba(15, 23, 42, 0.22);
	background: var(--hlmc-accent-dark);
	color: #ffffff;
}

/* Footer */
.hlmc__foot {
	margin-top: 18px;
}
.hlmc__live {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	color: #475569;
}
.hlmc__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--hlmc-accent);
	box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.08);
}
.hlmc__disclaimer {
	margin: 10px 0 0;
	font-size: 0.8rem;
	line-height: 1.55;
	color: #94a3b8;
}

@media (max-width: 820px) {
	.hlmc__grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}
	.hlmc__head,
	.hlmc__body {
		padding-left: 22px;
		padding-right: 22px;
	}
	.hlmc__heading {
		font-size: 1.25rem;
	}
}
