/* Home Loan Tax Benefit Calculator styles */

.hltbc-wrapper {
	--hltbc-bg: #ffffff;
	--hltbc-card-bg: #ffffff;
	--hltbc-accent: #05549d;
	--hltbc-accent-dark: #043f75;
	--hltbc-gold: #eda01d;
	--hltbc-track: #3a3a3a;
	--hltbc-text: #1f2937;
	--hltbc-muted: #8a94a3;
	--hltbc-highlight-bg: #eaf2fa;
	--hltbc-border: #d7dce2;

	position: relative;
	background: var(--hltbc-bg);
	border: 1px solid var(--hltbc-border);
	border-radius: 14px;
	padding: 28px;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--hltbc-text);
	max-width: 1140px;
	margin: 0 auto;
	overflow: hidden;
}

.hltbc-wrapper::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--hltbc-accent) 0%, var(--hltbc-accent) 60%, var(--hltbc-gold) 100%);
}

.hltbc-wrapper * {
	box-sizing: border-box;
}

.hltbc-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 28px;
	align-items: start;
}

@media (max-width: 780px) {
	.hltbc-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.hltbc-wrapper {
		padding: 18px 16px;
	}

	.hltbc-grid {
		gap: 20px;
	}

	.hltbc-field-top {
		flex-wrap: wrap !important;
		gap: 8px !important;
	}

	.hltbc-label {
		font-size: 12.5px !important;
		white-space: normal !important;
		line-height: 1.3;
	}

	.hltbc-sublabel {
		font-size: 8.5px !important;
		padding: 1px 5px !important;
		margin-left: 4px !important;
	}

	.hltbc-input-box,
	.hltbc-box-narrow-amt {
		min-width: 92px !important;
		flex-shrink: 0;
	}

	.hltbc-box-narrow-suffix {
		min-width: 68px !important;
		flex-shrink: 0;
	}

	.hltbc-input-box {
		padding: 4px 8px !important;
	}

	.hltbc-number-input {
		font-size: 12.5px !important;
	}

	.hltbc-prefix,
	.hltbc-suffix {
		font-size: 12px !important;
	}

	.hltbc-cta-btn {
		margin: 16px 16px 18px;
	}
}

/* ---- Left column: inputs ---- */

.hltbc-field {
	margin-bottom: 18px;
}

.hltbc-field-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
	flex-wrap: nowrap;
}

.hltbc-label {
	font-weight: 700;
	font-size: 15px;
	color: var(--hltbc-text);
	white-space: nowrap;
}

.hltbc-sublabel {
	display: inline-block;
	font-weight: 600;
	font-style: normal;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: var(--hltbc-accent);
	background: rgba(5, 84, 157, 0.09);
	padding: 2px 7px;
	border-radius: 4px;
	margin-left: 6px;
	vertical-align: middle;
}

.hltbc-input-box {
	display: flex;
	align-items: center;
	background: var(--hltbc-card-bg);
	border: 1px solid var(--hltbc-border);
	border-radius: 6px;
	padding: 5px 10px;
	min-width: 140px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hltbc-input-box:focus-within {
	border-color: var(--hltbc-accent);
	box-shadow: 0 0 0 3px rgba(5, 84, 157, 0.12);
}

.hltbc-box-narrow-amt {
	min-width: 122px;
}

.hltbc-box-narrow-suffix {
	min-width: 92px;
}

.hltbc-prefix,
.hltbc-suffix {
	color: var(--hltbc-muted);
	font-size: 14px;
	font-weight: 600;
	flex-shrink: 0;
}

.hltbc-suffix {
	margin-left: 6px;
}

.hltbc-wrapper .hltbc-number-input {
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	border: none !important;
	outline: none !important;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3 !important;
	color: #000000;
	width: 100%;
	text-align: right;
	background: #ffffff !important;
	background-color: #ffffff !important;
	background-image: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 0 0 6px;
	border-radius: 0 !important;
	min-width: 0;
	min-height: 0;
}

.hltbc-wrapper .hltbc-number-input:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
	-webkit-text-fill-color: #000000 !important;
}

.hltbc-input-box-suffix .hltbc-number-input {
	text-align: left;
	margin-left: 0;
}

/* Range slider */

.hltbc-wrapper input.hltbc-slider {
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	width: 100% !important;
	height: 4px !important;
	background: #e9ebee !important;
	background-image: none !important;
	border: none !important;
	border-radius: 2px !important;
	outline: none !important;
	box-shadow: none !important;
	margin: 14px 0 4px !important;
	padding: 0 !important;
	cursor: pointer;
}

.hltbc-wrapper input.hltbc-slider::-webkit-slider-runnable-track {
	background: #e9ebee !important;
	height: 4px !important;
	border: none !important;
	box-shadow: none !important;
}

.hltbc-wrapper input.hltbc-slider::-webkit-slider-thumb {
	-webkit-appearance: none !important;
	appearance: none !important;
	box-sizing: border-box !important;
	width: 16px !important;
	height: 16px !important;
	border-radius: 50% !important;
	background: #ffffff !important;
	border: 3px solid var(--hltbc-accent) !important;
	box-shadow: none !important;
	cursor: pointer;
	margin-top: -6px !important;
}

.hltbc-wrapper input.hltbc-slider::-moz-range-thumb {
	box-sizing: border-box !important;
	width: 16px !important;
	height: 16px !important;
	border-radius: 50% !important;
	background: #ffffff !important;
	border: 3px solid var(--hltbc-accent) !important;
	box-shadow: none !important;
	cursor: pointer;
}

.hltbc-wrapper input.hltbc-slider::-moz-range-track {
	height: 4px !important;
	background: #e9ebee !important;
	border: none !important;
	box-shadow: none !important;
	border-radius: 2px !important;
}

.hltbc-wrapper input.hltbc-slider::-moz-range-progress {
	background: #e9ebee !important;
	height: 4px !important;
}

.hltbc-range-labels {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: var(--hltbc-muted);
}

/* ---- Right column: result ---- */

.hltbc-result-panel {
	height: 100%;
}

.hltbc-result-card {
	background: var(--hltbc-card-bg);
	border: 1px solid var(--hltbc-border);
	border-top: 3px solid var(--hltbc-gold);
	border-radius: 14px;
	box-shadow: 0 2px 10px rgba(20, 30, 50, 0.05);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	min-height: 380px;
}

.hltbc-result-spacer {
	flex: 1;
	padding: 20px;
	display: flex;
	align-items: center;
}

.hltbc-result-breakdown {
	width: 100%;
}

.hltbc-breakdown-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
	font-size: 13px;
	color: var(--hltbc-muted);
	padding: 9px 0;
	border-bottom: 1px dashed var(--hltbc-border);
}

.hltbc-breakdown-row:last-child {
	border-bottom: none;
}

.hltbc-breakdown-row strong {
	color: var(--hltbc-text);
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

.hltbc-result-highlight {
	background: var(--hltbc-highlight-bg);
	text-align: center;
	padding: 22px 20px 26px;
}

.hltbc-result-formula {
	font-size: 12.5px;
	font-weight: 600;
	color: #05549d;
	line-height: 1.5;
	margin-bottom: 10px;
}

.hltbc-result-value {
	font-size: 30px;
	font-weight: 800;
	color: #05549d;
	letter-spacing: 0.2px;
}

.hltbc-disclaimer {
	margin: 18px auto 0;
	max-width: 900px;
	text-align: center;
	font-size: 11.5px;
	line-height: 1.6;
	color: var(--hltbc-muted);
}

.hltbc-cta-btn {
	display: block;
	text-align: center;
	background: var(--hltbc-accent);
	color: #ffffff;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	padding: 12px 20px;
	border-radius: 24px;
	margin: 16px 20px 20px;
	box-shadow: 0 2px 6px rgba(5, 84, 157, 0.25);
	transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.hltbc-cta-btn:hover {
	background: var(--hltbc-accent-dark);
	color: #ffffff;
	box-shadow: 0 4px 10px rgba(5, 84, 157, 0.3);
}
