/* ==========================================================================
   Mortgage Landing Page — March 2026 Campaign
   ========================================================================== */

:root {
	--ml-navy: #133156;
	--ml-blue: #005A8B;
	--ml-dark-blue: #002F52;
	--ml-light-blue: #7EB8DA;
	--ml-pale-blue: #A3C4D6;
	--ml-ice-blue: #CCEDFD;
	--ml-bg-light: #F7F8FA;
	--ml-bg-form: #F7F8FA;
	--ml-text: #5A6577;
	--ml-text-muted: #98A2B3;
	--ml-border: #D0D5DD;
	--ml-border-card: #E4E9ED;
	--ml-callout-bg: #EEF4F8;
	--ml-white: #FFFFFF;
	--ml-radius: 12px;
	--ml-radius-sm: 6px;
	--ml-radius-lg: 24px;
}

/* Reset Divi overrides */
.ml-page {
	display: flex;
	flex-direction: column;
	align-items: center;
	font-family: 'Inter', system-ui, sans-serif;
	color: var(--ml-text);
	font-size: 15px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	background-image: linear-gradient(rgba(93, 93, 93, 0.03) 1px, transparent 1px), linear-gradient(to right, rgba(93, 93, 93, 0.03) 1px, transparent 1px);
	background-size: 50px 50px;
	background-color: #ffffff;
	padding: 0 24px 60px;
}

.ml-page *,
.ml-page *::before,
.ml-page *::after {
	box-sizing: border-box;
}

.ml-page h1,
.ml-page h2,
.ml-page h3 {
	font-family: 'GloberxBold', 'Glober', system-ui, sans-serif;
	color: var(--ml-navy);
	margin: 0;
	padding: 0;
}

.ml-page p {
	margin: 0;
	padding: 0;
}

.ml-page ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Single card wrapper */
.ml-card {
	width: 100%;
	max-width: 1200px;
	margin-top: 40px;
	background: var(--ml-white);
	border-radius: var(--ml-radius-lg);
	box-shadow: 0 4px 16px rgba(149, 155, 189, 0.25);
	overflow: clip;
}

/* Buttons */
.ml-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: 'Inter', system-ui, sans-serif;
	font-weight: 600;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.ml-btn-primary {
	background-color: var(--ml-blue);
	color: var(--ml-white);
	border-radius: var(--ml-radius-sm);
	font-size: 16px;
	line-height: 20px;
	padding: 12px 18px;
}

.ml-btn-primary:hover {
	background-color: var(--ml-dark-blue);
	color: var(--ml-white);
}

.ml-btn-sm {
	font-size: 14px;
	line-height: 18px;
	padding: 0 24px;
	height: 40px;
}

.ml-btn-full {
	width: 100%;
	height: 48px;
	font-size: 15px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.ml-hero-inner {
	display: flex;
	flex-direction: row;
	min-height: 500px;
	width: 100%;
}

.ml-hero-content {
	background-color: var(--ml-white);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 20px;
	padding: 64px 48px;
	width: 60%;
}

.ml-hero-heading-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ml-page .ml-hero-title {
	color: var(--ml-navy);
	font-size: 44px;
	font-weight: 800;
	line-height: 52px;
	text-wrap: balance;
}

.ml-hero-subheading {
	color: var(--ml-text);
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 20px;
	font-weight: 500;
	line-height: 28px;
	text-wrap: balance;
}

.ml-hero-body {
	color: var(--ml-text);
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 15px;
	line-height: 26px;
}

.ml-hero-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ml-pill {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	background-color: rgba(90, 101, 119, 0.08);
	border: 1px solid rgba(90, 101, 119, 0.2);
	border-radius: 100px;
	color: var(--ml-text);
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 16px;
}

.ml-hero-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 4px;
}

.ml-hero-learn-more {
	color: var(--ml-blue);
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.2s ease;
}

.ml-hero-learn-more:hover {
	color: var(--ml-dark-blue);
}

/* Hero Slider */
.ml-hero-slider {
	width: 40%;
	position: relative;
	background-color: #1A3D66;
	overflow: hidden;
}

.ml-hero-slider .gallery-slider {
	position: relative;
	width: 100%;
	height: 100%;
}

.ml-hero-slider .gallery-slides {
	position: relative;
	width: 100%;
	height: 100%;
}

.ml-hero-slider .gallery-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.5s ease-in-out;
}

.ml-hero-slider .gallery-slide.active {
	opacity: 1;
}

.ml-hero-slider .gallery-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ml-hero-slider .gallery-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(4px);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--ml-white);
	transition: background-color 0.2s ease;
	z-index: 2;
	padding: 0;
}

.ml-hero-slider .gallery-nav:hover {
	background: rgba(255, 255, 255, 0.3);
}

.ml-hero-slider .gallery-prev {
	left: 20px;
}

.ml-hero-slider .gallery-next {
	right: 20px;
}

.ml-hero-slider .gallery-dots {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 8px;
	z-index: 2;
}

.ml-hero-slider .gallery-dot {
	width: 6px;
	height: 6px;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.4);
	border: none;
	padding: 0;
	cursor: pointer;
	transition: all 0.3s ease;
}

.ml-hero-slider .gallery-dot.active {
	width: 24px;
	background: var(--ml-white);
}

/* ==========================================================================
   Keys to Opportunity + Contact Form
   ========================================================================== */

.ml-keys {
	background-color: #1a3d66;
}

.ml-keys-inner {
	display: flex;
	gap: 60px;
	padding: 64px 48px;
}

.ml-keys-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.ml-section-title {
	font-size: 36px;
	font-weight: 800;
	line-height: 44px;
}

.ml-keys .ml-section-title {
	color: var(--ml-white);
}

.ml-keys-intro {
	color: var(--ml-white);
	font-weight: 500;
	font-size: 16px;
	line-height: 24px;
}

.ml-checklist {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ml-checklist li {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ml-checklist li svg {
	flex-shrink: 0;
}

.ml-checklist li span {
	color: var(--ml-white);
	font-size: 15px;
	line-height: 22px;
}

.ml-hud-callout {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background-color: rgba(255, 255, 255, 0.06);
	border-radius: 8px;
	padding: 16px;
}

.ml-hud-callout svg {
	flex-shrink: 0;
	margin-top: 2px;
}

.ml-hud-callout p {
	color: var(--ml-white);
	font-size: 14px;
	line-height: 22px;
}

/* Contact Form */
.ml-form-wrapper {
	flex: 1;
}

.ml-contact-form {
	background-color: var(--ml-bg-form);
	border-radius: var(--ml-radius);
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.ml-page .ml-form-title {
	font-family: 'GloberBold', 'Glober', system-ui, sans-serif;
	font-size: 22px;
	font-weight: 700;
	line-height: 28px;
	color: var(--ml-navy);
}

.ml-form-fields {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ml-form-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ml-form-group label {
	color: var(--ml-navy);
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 16px;
}

.ml-required {
	color: #D10003;
}

.ml-form-group input,
.ml-form-group textarea {
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 14px;
	line-height: 18px;
	color: var(--ml-navy);
	background-color: var(--ml-white);
	border: 1px solid var(--ml-border);
	border-radius: var(--ml-radius-sm);
	padding: 12px 14px;
	width: 100%;
	transition: border-color 0.2s ease;
}

.ml-form-group input {
	height: 44px;
}

.ml-form-group textarea {
	min-height: 88px;
	resize: vertical;
}

.ml-form-group input::placeholder,
.ml-form-group textarea::placeholder {
	color: var(--ml-text-muted);
}

.ml-form-group input:focus,
.ml-form-group textarea:focus {
	outline: none;
	border-color: var(--ml-blue);
	box-shadow: 0 0 0 3px rgba(0, 90, 139, 0.1);
}

/* ==========================================================================
   Product Cards
   ========================================================================== */

.ml-products {
	background-color: var(--ml-bg-light);
	padding: 64px 48px;
}

.ml-products .ml-section-header {
	margin-bottom: 40px;
}

.ml-products-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.ml-product-card {
	display: flex;
	flex-direction: column;
	background-color: var(--ml-white);
	border: 1px solid var(--ml-border-card);
	border-radius: var(--ml-radius);
	overflow: hidden;
}

.ml-product-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 180px;
}

.ml-product-icon--homerise {
	background: #EAF8FF;
}

.ml-product-icon--revive {
	background: linear-gradient(135deg, #FEDB85, #CCEDFD);
}

.ml-product-icon--dscr {
	background: linear-gradient(135deg, #0C2340 0%, var(--ml-navy) 60%, #1A5276 100%);
}

.ml-product-body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px;
	flex: 1;
}

.ml-product-header {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ml-product-title {
	font-size: 22px;
	font-weight: 800;
	line-height: 28px;
}

.ml-product-subtitle {
	color: var(--ml-navy);
	font-size: 15px;
	font-weight: 600;
	line-height: 22px;
}

.ml-product-desc {
	color: var(--ml-text);
	font-size: 14px;
	line-height: 1.7;
}

.ml-product-cta {
	margin-top: auto;
	padding-top: 12px;
}

/* ==========================================================================
   Coverage Map
   ========================================================================== */

.ml-map {
	padding: 64px 48px;
}

.ml-section-header {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin-bottom: 32px;
}

.ml-section-desc {
	color: var(--ml-text);
	font-size: 16px;
	line-height: 1.5;
	max-width: 600px;
	text-wrap: pretty;
}

.ml-map-embed {
	border-radius: var(--ml-radius);
	max-width: 1100px;
	margin: 0 auto;
}

/* ==========================================================================
   Calculator
   ========================================================================== */

.ml-calculator {
	padding: 64px 48px;
}

.ml-text-center {
	text-align: center;
}

.ml-calculator-embed {
	margin-top: 32px;
}

/* ==========================================================================
   Responsive — Tablet (980px)
   ========================================================================== */

@media (max-width: 1080px) {
	.ml-hero-inner {
		flex-direction: column-reverse;
		min-height: auto;
	}

	.ml-hero-content {
		width: 100%;
		padding: 48px 40px;
	}

	.ml-hero-slider {
		width: 100%;
		height: 340px;
	}

	.ml-page .ml-hero-title {
		font-size: 36px;
		line-height: 44px;
	}

	.ml-hero-slider .gallery-nav {
		width: 36px;
		height: 36px;
	}

	.ml-hero-slider .gallery-prev {
		left: 8px;
	}

	.ml-hero-slider .gallery-next {
		right: 8px;
	}

	.ml-keys-inner {
		flex-direction: column;
		gap: 40px;
		padding: 48px 40px;
	}

	.ml-products-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.ml-product-icon {
		height: 150px;
	}

	.ml-products {
		padding: 48px 40px;
	}

	.ml-map {
		padding: 48px 40px;
	}

	.ml-calculator {
		padding: 48px 40px;
	}
}

/* ==========================================================================
   Responsive — Mobile (768px)
   ========================================================================== */

@media (max-width: 768px) {
	.ml-page {
		padding: 0 0 40px;
	}

	.ml-card {
		margin-top: 0;
		border-radius: 0;
		box-shadow: none;
	}

	.ml-hero-content {
		padding: 48px 24px;
	}

	.ml-hero-slider {
		height: 240px;
	}

	.ml-page .ml-hero-title {
		font-size: 36px;
		line-height: 44px;
		text-wrap: pretty;
	}

	.ml-hero-subheading {
		font-size: 20px;
		line-height: 28px;
		text-wrap: pretty;
	}

	.ml-hero-actions {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.ml-hero-actions .ml-btn-primary {
		width: 100%;
	}

	.ml-keys-inner {
		padding: 32px 16px;
		gap: 32px;
	}

	.ml-section-title {
		font-size: 28px;
		line-height: 36px;
	}

	.ml-contact-form {
		padding: 24px;
	}

	.ml-products-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.ml-product-icon {
		height: 140px;
	}

	.ml-products {
		padding: 32px 16px;
	}

	.ml-map {
		padding: 32px 16px;
	}

	.ml-calculator {
		padding: 32px 16px;
	}
}

/* ==========================================================================
   Form States
   ========================================================================== */

.ml-form-result {
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 14px;
	line-height: 22px;
}

.ml-form-result--success {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 280px;
	gap: 16px;
}

.ml-form-result-icon {
	margin-bottom: 4px;
}

.ml-form-result--success h3 {
	font-family: 'GloberBold', 'Glober', system-ui, sans-serif;
	font-size: 22px;
	font-weight: 700;
	line-height: 28px;
	color: var(--ml-navy);
	margin: 0;
}

.ml-form-result--success p {
	color: var(--ml-text);
	font-size: 15px;
	line-height: 24px;
	max-width: 320px;
	margin: 0;
}

.ml-form-result--error {
	background-color: #FEEBEB;
	border: 1px solid #D10003;
	color: #9a0002;
	border-radius: var(--ml-radius-sm);
	padding: 12px 16px;
}

.ml-form-result--info {
	background-color: var(--ml-bg-form);
	border: 1px solid var(--ml-border);
	color: var(--ml-navy);
	border-radius: var(--ml-radius-sm);
	padding: 16px 20px;
	text-align: center;
}

.ml-form-result--waitlist {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.ml-waitlist-message {
	color: var(--ml-navy);
	font-size: 15px;
	line-height: 24px;
	text-align: center;
}

.ml-waitlist-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ml-optional {
	color: var(--ml-text-muted);
	font-weight: 400;
}

#ml-waitlist-result {
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 14px;
	line-height: 22px;
	border-radius: var(--ml-radius-sm);
	padding: 12px 16px;
}

#ml-waitlist-result:empty {
	display: none;
}

.ml-btn-loading {
	opacity: 0.7;
	cursor: not-allowed;
}
