.emi-calc-wrap {
	--emi-blue: #1a4d8f;
	--emi-blue-dark: #0f3a6e;
	--emi-bg-light: #eef4fb;
	--emi-bg-panel: #eaf1fa;
	--emi-border: #d7e4f2;
	--emi-text: #1c2733;
	--emi-muted: #5b6b7a;
	--emi-accent: #cf1e2c;

	max-width: 960px;
	margin: 0 auto;
	padding: 32px 24px 40px;
	background: #f7fafd;
	border-radius: 12px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--emi-text);
	box-sizing: border-box;
}
.emi-calc-wrap *,
.emi-calc-wrap *::before,
.emi-calc-wrap *::after {
	box-sizing: inherit;
}

.emi-calc-title {
	text-align: center;
	font-size: 2rem;
	font-weight: 800;
	margin: 0 0 8px;
	color: var(--emi-text);
}

.emi-calc-subtitle {
	text-align: center;
	color: var(--emi-muted);
	margin: 0 0 28px;
	font-size: 1rem;
}

.emi-calc-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 20px;
}

@media (max-width: 720px) {
	.emi-calc-grid {
		grid-template-columns: 1fr;
	}
}

.emi-calc-inputs,
.emi-calc-results {
	background: var(--emi-bg-light);
	border: 1px solid var(--emi-border);
	border-radius: 10px;
	padding: 28px 24px;
}

.emi-calc-field {
	margin-bottom: 28px;
}
.emi-calc-field:last-child {
	margin-bottom: 0;
}

.emi-calc-field-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
	gap: 12px;
	flex-wrap: wrap;
}

.emi-calc-field-header label {
	font-weight: 600;
	font-size: 1rem;
	color: var(--emi-text);
}

.emi-calc-input-box {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #fff;
	border: 1px solid var(--emi-border);
	border-radius: 6px;
	padding: 6px 10px;
}

.emi-calc-currency {
	color: var(--emi-muted);
	font-weight: 600;
}

.emi-calc-suffix {
	color: var(--emi-muted);
	font-weight: 600;
}

.emi-calc-number-input {
	width: 90px;
	border: none;
	outline: none;
	background: transparent;
	font-size: 1rem;
	font-weight: 700;
	color: var(--emi-blue);
	text-align: right;
}

/* Range slider */
.emi-calc-slider {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 6px;
	border-radius: 4px;
	background: var(--emi-border);
	outline: none;
	margin: 6px 0;
}

.emi-calc-slider::-webkit-slider-runnable-track {
	height: 6px;
	border-radius: 4px;
}

.emi-calc-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 22px;
	height: 22px;
	margin-top: -8px;
	border-radius: 50%;
	background: var(--emi-blue);
	border: 3px solid var(--emi-accent);
	box-shadow: 0 0 0 2px #fff inset;
	cursor: pointer;
}

.emi-calc-slider::-moz-range-track {
	height: 6px;
	border-radius: 4px;
	background: var(--emi-border);
}

.emi-calc-slider::-moz-range-progress {
	height: 6px;
	border-radius: 4px;
	background: var(--emi-blue);
}

.emi-calc-slider::-moz-range-thumb {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--emi-blue);
	border: 3px solid var(--emi-accent);
	cursor: pointer;
}

.emi-calc-range-labels {
	display: flex;
	justify-content: space-between;
	font-size: 0.85rem;
	color: var(--emi-muted);
	margin-top: 4px;
}

/* Results panel */
.emi-calc-emi-box {
	background: #d3e3f6;
	border-radius: 8px;
	padding: 18px;
	text-align: center;
	margin-bottom: 22px;
}

.emi-calc-emi-label {
	display: block;
	color: var(--emi-blue-dark);
	font-size: 0.95rem;
	margin-bottom: 6px;
}

.emi-calc-emi-value {
	font-size: 1.9rem;
	font-weight: 800;
	color: var(--emi-blue-dark);
}

.emi-calc-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid var(--emi-border);
	font-size: 0.98rem;
}
.emi-calc-row:last-of-type {
	border-bottom: none;
}

.emi-calc-apply-btn {
	display: block;
	text-align: center;
	background: var(--emi-blue-dark);
	color: #fff !important;
	font-weight: 700;
	text-decoration: none;
	padding: 14px 20px;
	border-radius: 6px;
	margin-top: 22px;
	transition: background 0.15s ease;
}
.emi-calc-apply-btn:hover {
	background: var(--emi-blue);
	color: #fff;
}

.emi-calc-note {
	font-size: 0.82rem;
	color: var(--emi-muted);
	text-align: center;
	margin-top: 12px;
	margin-bottom: 0;
}
