/* CalcMango Home Loan Calculator — scoped under .cm-homeloan. Navy/cyan palette. */
.cm-homeloan {
	max-width: 720px;
	margin: 0 auto;
	padding: 24px;
	background: #0B1220;
	color: #E2E8F0;
	border-radius: 16px;
	font-family: inherit;
	box-sizing: border-box;
}

.cm-homeloan *,
.cm-homeloan *::before,
.cm-homeloan *::after {
	box-sizing: border-box;
}

.cm-homeloan-hidden {
	display: none !important;
}

.cm-homeloan-mode {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 20px;
}

.cm-homeloan-mode-option {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border: 1px solid #22D3EE;
	border-radius: 999px;
	cursor: pointer;
	font-size: 15px;
}

.cm-homeloan-mode-option input {
	accent-color: #22D3EE;
}

.cm-homeloan-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

@media (max-width: 520px) {
	.cm-homeloan-row {
		grid-template-columns: 1fr;
	}
}

.cm-homeloan-field {
	margin-bottom: 16px;
}

.cm-homeloan-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 15px;
}

.cm-homeloan-hint {
	font-weight: 400;
	color: #22D3EE;
	font-size: 13px;
}

.cm-homeloan-field input {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #334155;
	border-radius: 10px;
	background: #FFFFFF;
	color: #0B1220;
	font-size: 16px;
}

.cm-homeloan-field input:focus {
	outline: 2px solid #22D3EE;
	outline-offset: 1px;
}

.cm-homeloan-error {
	color: #FCA5A5;
	font-weight: 600;
	margin: 0 0 16px;
}

.cm-homeloan-submit {
	width: 100%;
	padding: 14px;
	border: none;
	border-radius: 10px;
	background: #67E8F9;
	color: #0B1220;
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
}

.cm-homeloan-submit:hover,
.cm-homeloan-submit:focus {
	background: #22D3EE;
}

.cm-homeloan-results {
	margin-top: 24px;
}

.cm-homeloan-hero {
	text-align: center;
	padding: 20px 12px;
	border: 1px solid #22D3EE;
	border-radius: 12px;
	margin-bottom: 20px;
}

.cm-homeloan-hero-label {
	display: block;
	font-size: 14px;
	color: #94A3B8;
	margin-bottom: 6px;
}

.cm-homeloan-hero-value {
	font-size: 38px;
	color: #67E8F9;
}

.cm-homeloan-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin: 0 0 20px;
}

@media (max-width: 520px) {
	.cm-homeloan-stats {
		grid-template-columns: 1fr;
	}
}

.cm-homeloan-stats div {
	background: #16213A;
	border-radius: 10px;
	padding: 12px 14px;
}

.cm-homeloan-stats dt {
	font-size: 13px;
	color: #94A3B8;
	margin-bottom: 4px;
}

.cm-homeloan-stats dd {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
}

.cm-homeloan-split-bar {
	display: flex;
	height: 18px;
	border-radius: 999px;
	overflow: hidden;
	background: #334155;
}

.cm-homeloan-split-principal {
	background: #22D3EE;
}

.cm-homeloan-split-interest {
	background: #F59E0B;
}

.cm-homeloan-split-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	font-size: 14px;
}

.cm-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	margin-right: 4px;
}

.cm-dot-principal {
	background: #22D3EE;
}

.cm-dot-interest {
	background: #F59E0B;
}

.cm-homeloan-note {
	font-size: 14px;
	line-height: 1.6;
	color: #CBD5E1;
	border-left: 3px solid #F59E0B;
	padding-left: 12px;
}

.cm-homeloan-schedule summary {
	cursor: pointer;
	font-weight: 700;
	color: #67E8F9;
	padding: 8px 0;
}

.cm-homeloan-table-wrap {
	overflow-x: auto;
}

.cm-homeloan-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.cm-homeloan-table th,
.cm-homeloan-table td {
	padding: 8px 10px;
	text-align: right;
	border-bottom: 1px solid #334155;
}

.cm-homeloan-table th:first-child,
.cm-homeloan-table td:first-child {
	text-align: left;
}

.cm-homeloan-table th {
	color: #67E8F9;
}
