/* ==========================================================================
   Makler Match Calculator — Styles
   Prefix: mmc-
   ========================================================================== */

/* --- Wrapper --- */
.mmc-wrapper {
	background-color: #f5f8fc;
	padding: 48px 24px;
	font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
	color: #2d3748;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.mmc-inner {
	max-width: 760px;
	margin: 0 auto;
}

/* --- Heading & Subtitle --- */
.mmc-heading {
	text-align: center;
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 8px;
	color: #1a202c;
	line-height: 1.3;
}

.mmc-subtitle {
	text-align: center;
	font-size: 16px;
	color: #718096;
	margin: 0 0 36px;
	font-weight: 400;
}

/* --- Slider Section --- */
.mmc-slider-section {
	margin-bottom: 36px;
}

.mmc-slider-value-wrapper {
	text-align: center;
	margin-bottom: 12px;
	position: relative;
}

.mmc-slider-value {
	display: inline-block;
	font-size: 32px;
	font-weight: 700;
	color: var(--mmc-primary, #0b91df);
	transition: color 0.2s ease;
	line-height: 1.2;
}

/* --- Range Input --- */
.mmc-slider {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 8px;
	border-radius: 4px;
	background: #dce3ec;
	outline: none;
	cursor: pointer;
	margin: 0;
}

/* Track fill is handled via JS background-image gradient */

/* Webkit thumb */
.mmc-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--mmc-primary, #0b91df);
	border: 3px solid #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
	cursor: pointer;
	transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.mmc-slider::-webkit-slider-thumb:hover {
	box-shadow: 0 2px 10px rgba(11, 145, 223, 0.4);
	transform: scale(1.1);
}

.mmc-slider::-webkit-slider-thumb:active {
	transform: scale(1.15);
}

/* Firefox thumb */
.mmc-slider::-moz-range-thumb {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--mmc-primary, #0b91df);
	border: 3px solid #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
	cursor: pointer;
	transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.mmc-slider::-moz-range-thumb:hover {
	box-shadow: 0 2px 10px rgba(11, 145, 223, 0.4);
}

.mmc-slider::-moz-range-track {
	height: 8px;
	border-radius: 4px;
	background: transparent;
}

/* Slider labels */
.mmc-slider-labels {
	display: flex;
	justify-content: space-between;
	margin-top: 8px;
	font-size: 13px;
	color: #a0aec0;
	font-weight: 400;
}

/* --- Comparison Cards --- */
.mmc-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 24px;
}

.mmc-card {
	background: #fff;
	border-radius: 12px;
	padding: 28px 24px;
	text-align: center;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.mmc-card--traditional {
	border: 2px solid #e2e8f0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.mmc-card--match {
	border: 2px solid var(--mmc-primary, #0b91df);
	box-shadow: 0 4px 16px rgba(11, 145, 223, 0.12);
}

.mmc-card--match:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(11, 145, 223, 0.18);
}

.mmc-card__title {
	font-size: 15px;
	font-weight: 500;
	color: #718096;
	margin: 0 0 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.mmc-card--match .mmc-card__title {
	color: var(--mmc-primary, #0b91df);
}

.mmc-card__rate {
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 8px;
	color: #4a5568;
}

.mmc-card--match .mmc-card__rate {
	color: var(--mmc-primary, #0b91df);
}

.mmc-card__amount {
	font-size: 26px;
	font-weight: 700;
	margin: 0;
	color: #2d3748;
	transition: color 0.2s ease;
}

.mmc-card--match .mmc-card__amount {
	color: var(--mmc-primary, #0b91df);
}

/* --- Savings Box --- */
.mmc-savings {
	background: var(--mmc-accent, #2dbf93);
	color: #fff;
	border-radius: 12px;
	padding: 20px 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 28px;
	animation: mmc-glow 2s ease-in-out infinite;
}

.mmc-savings__label {
	font-weight: 500;
	font-size: 18px;
	opacity: 0.95;
}

.mmc-savings__amount {
	font-size: 26px;
	font-weight: 700;
}

@keyframes mmc-glow {
	0%,
	100% {
		box-shadow: 0 0 12px rgba(45, 191, 147, 0.25);
	}
	50% {
		box-shadow: 0 0 28px rgba(45, 191, 147, 0.50);
	}
}

/* --- CTA --- */
.mmc-cta-wrapper {
	text-align: center;
}

.mmc-cta {
	display: inline-block;
	background: var(--mmc-primary, #0b91df);
	color: #fff;
	font-size: 17px;
	font-weight: 600;
	padding: 14px 40px;
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
	cursor: pointer;
	border: none;
	line-height: 1.5;
}

.mmc-cta:hover {
	filter: brightness(1.08);
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(11, 145, 223, 0.35);
	color: #fff;
	text-decoration: none;
}

.mmc-cta:active {
	transform: translateY(0);
}

.mmc-trust {
	margin: 12px 0 0;
	font-size: 13px;
	color: #a0aec0;
	font-weight: 400;
}

/* --- Responsive --- */
@media (max-width: 700px) {
	.mmc-wrapper {
		padding: 32px 16px;
	}

	.mmc-heading {
		font-size: 22px;
	}

	.mmc-subtitle {
		font-size: 14px;
		margin-bottom: 28px;
	}

	.mmc-slider-value {
		font-size: 26px;
	}

	.mmc-cards {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.mmc-card {
		padding: 22px 18px;
	}

	.mmc-card__amount {
		font-size: 22px;
	}

	.mmc-savings {
		flex-direction: column;
		gap: 4px;
		padding: 16px 20px;
		font-size: 18px;
	}

	.mmc-savings__amount {
		font-size: 22px;
	}

	.mmc-cta {
		width: 100%;
		box-sizing: border-box;
		text-align: center;
		padding: 14px 24px;
	}
}
