:root {
	--green: #08a83e;
	--green-dark: #078832;
	--navy: #071632;
	--text: #14213d;
	--muted: #637089;
	--line: #d9e1ec;
	--line-darker: #adb8c7;
	--page: #f4fbf7;
	--white: #fff;
	--shadow: 0 18px 45px rgba(16, 64, 42, 0.1);
}

* {
	box-sizing: border-box;
	scrollbar-color: #22c55e #dcfce7;
}

body {
	margin: 0;
	color: var(--text);
	background: linear-gradient(180deg, #f8fdf9 0%, var(--page) 100%);
	font-family:
		Inter,
		ui-sans-serif,
		system-ui,
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		sans-serif;
}

.header {
	background: #fff;
	border-bottom: 1px solid #edf1f4;
}

.header-inner {
	width: min(1100px, calc(100% - 40px));
	height: 70px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.logo {
	line-height: 0.82;
	letter-spacing: 0.08em;
	font-weight: 900;
	font-size: 22px;
}

.logo span {
	display: block;
}

.logo .easy {
	color: var(--green);
}

.logo .equity {
	color: #090d15;
	margin-top: 7px;
}

.secure-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 13px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	font-size: 13px;
	font-weight: 700;
}

/* .secure-badge svg {
	color: var(--green);
} */

main {
	width: min(1160px, calc(100% - 32px));
	margin: 0 auto;
	padding: 28px 0 40px;
}

.hero {
	text-align: center;
	margin-bottom: 20px;
}

h1 {
	margin: 0;
	color: var(--navy);
	font-size: clamp(30px, 3.2vw, 46px);
	line-height: 1.1;
	letter-spacing: -0.035em;
}

.subhead {
	margin: 8px 0 14px;
	color: var(--green);
	font-size: clamp(18px, 2vw, 24px);
	font-weight: 800;
}

.trust-strip {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 14px 34px;
	font-weight: 650;
	font-size: 15px;
}

.trust-item {
	display: flex;
	align-items: center;
	gap: 9px;
}

.check {
	width: 25px;
	height: 25px;
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
	border-radius: 50%;
	color: #fff;
	background: var(--green);
	font-weight: 900;
}

.card-layout {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(270px, 1fr);
	gap: 26px;
}

.form-side {
	min-width: 0;
}

.benefits {
	padding: 30px 22px;
	border-radius: 16px;
	background: linear-gradient(180deg, #f2fff6, #effaf3);
}

.benefits h2 {
	margin: 0 0 25px;
	color: var(--green);
	font-size: 24px;
}

.benefit {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 21px;
	font-size: 16px;
	font-weight: 650;
}

.card {
	max-width: 1040px;
	margin: 0 auto;
	padding: 18px 26px 16px;
	background: rgba(255, 255, 255, 0.98);
	border: 1px solid #eef2f4;
	border-radius: 20px;
	box-shadow: var(--shadow);
}

.steps {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin: 0 0 18px;
	font-size: 13px;
	font-weight: 750;
}

.step {
	display: flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}

.step-number {
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: #edf1f5;
	color: var(--navy);
}

.step.active .step-number {
	background: var(--green);
	color: #fff;
}

.step-line {
	width: 58px;
	height: 2px;
	background: #e1e6ed;
}

.form-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px 20px;
}

.field label {
	display: block;
	margin: 0 0 5px;
	color: #425274;
	font-size: 12px;
	font-weight: 750;
}

input,
select {
	width: 100%;
	min-height: 42px;
	padding: 9px 12px;
	border: 1px solid var(--line);
	border-radius: 9px;
	outline: none;
	background: #fff;
	color: var(--navy);
	font: inherit;
	font-size: 14px;
	transition:
		border-color 0.2s,
		box-shadow 0.2s;
}

input::placeholder {
	color: #8792a7;
}

input:focus,
select:focus {
	border-color: var(--green);
	box-shadow: 0 0 0 3px rgba(8, 168, 62, 0.12);
}

.cta-wrap {
	text-align: center;
	margin-top: 14px;
}

.cta {
	width: min(410px, 100%);
	min-height: 48px;
	border: 0;
	border-radius: 9px;
	color: #fff;
	background: linear-gradient(180deg, #0bb746, #069b38);
	box-shadow: 0 8px 18px rgba(8, 168, 62, 0.2);
	font-size: 18px;
	font-weight: 850;
	letter-spacing: 0.02em;
	cursor: pointer;
}

.cta:hover {
	background: var(--green-dark);
}

.privacy-note {
	margin: 8px 0 0;
	color: #53627c;
	font-size: 12px;
}

.partner {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 14px;
	padding-top: 8px;
	border-top: 1px solid #e4e9ef;
	justify-content: center;
}

.partner input {
	width: 20px;
	min-height: 20px;
	accent-color: var(--green);
}

.partner-copy {
	font-size: 13px;
}

.partner-copy strong {
	/* display: block; */
	margin-bottom: 2px;
}

.partner-copy small {
	color: var(--muted);
}

.disclosure {
	max-width: 1000px;
	margin: 12px auto 0;
	padding: 12px 24px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.8);
	color: #4d5870;
	font-size: 10px;
	line-height: 1.35;
	text-align: center;
}

.disclosure a {
	color: var(--green-dark);
	font-weight: 400;
	text-decoration: underline;
	cursor: pointer;
}

.disclosure button {
	color: var(--green-dark);
	font-weight: 800;
	cursor: pointer;

	font-family: inherit;
	font-size: inherit;
	padding: 0;
	margin: 0;
	background: transparent;
	border: none;
	outline: none;
	box-shadow: none;
}

.close-partners {
	background-color: var(--green-dark);
	color: #fff;
	font-weight: 800;
	cursor: pointer;
	border-radius: 50%;
	width: 25px;
	height: 25px;

	font-family: inherit;
	font-size: inherit;
	padding: 0;
	margin: 0;
	border: none;
	outline: none;
	box-shadow: none;
	padding-bottom: 3px;
}

footer {
	margin-top: 18px;
	border-top: 1px solid #cfd9d4;
	background: rgba(248, 253, 250, 0.96);
}

.footer-inner {
	width: min(1100px, calc(100% - 40px));
	margin: 0 auto;
	padding: 20px 0 24px;
	display: grid;
	grid-template-columns: 1.35fr 2fr;
	gap: 50px;
}

.footer-copy h3 {
	margin: 0 0 5px;
	font-size: 17px;
	color: var(--navy);
}

.footer-copy p {
	margin: 0;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.35;
}

.footer-right {
	display: flex;
	flex-direction: column;
	gap: 26px;
}

.footer-links {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.footer-links a {
	color: var(--navy);
	font-size: 13px;
	text-decoration: none;
	border-bottom: 2px solid var(--green);
	padding-bottom: 3px;
}

.copyright {
	margin: 0;
	color: #7a879b;
	text-align: right;
	font-size: 11px;
}

.partners {
	margin: auto;
	padding: 0;
	max-width: min(1200px, 90vw);
	max-width: min(1200px, 90dvw);
	border-radius: 8px;
	border-width: 1px;
	border-color: var(--line-darker);
}

.dialog-container {
	display: grid;
	grid-template-rows: auto 1fr;
	max-height: 90vh;
	max-height: 90dvh;
}

.modal-header {
	padding: 0;
	margin: 0;
	background-color: #fff;
	display: grid;
	grid-template-columns: 1fr 20%;
}

.modal-header-title {
	padding-left: 1.5rem;
	color: var(--green);
	font-size: 24px;
}

.modal-content {
	font-size: 13px;
	text-wrap: wrap;
	text-wrap: balance;
	text-wrap: pretty;
	margin-left: auto;
	margin-right: auto;
	overflow-y: auto;
	max-block-size: 100%;
	/* safari */
	overscroll-behavior-y: contain;
	max-height: 95%;
}

ul li::marker {
	color: var(--green); /* Changes only the bullet color */
}

ul li {
	margin-top: 1rem;
}

.errorMessage {
	color: red;
	font-size: 10px;
	text-align: center;
	padding-top: 8px;
	padding-bottom: 8px;
	padding-left: 8px;
	padding-right: 8px;
}

.lenders-container {
	text-align: center;
}

.progress-track {
	position: relative;
	width: 100%;
	max-width: 400px;

	/* Adjust to fit your layout */
	height: 10px;

	background-color: #e2e8f0;
	/* Track color */
	border-radius: 8px;
	overflow: hidden;
	/* Clips the moving fill line */
}

.progress-fill {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 40%;
	/* Width of the loading chunk */
	background-color: var(--green);
	/* Fill color */
	border-radius: inherit;

	/* Animates smoothly on an infinite loop */
	animation: indeterminate-slide 1.2s ease-in-out infinite;
}

@keyframes indeterminate-slide {
	0% {
		transform: translateX(-100%);
	}

	100% {
		transform: translateX(250%);
		/* Moves fully out of view to the right */
	}
}

/* Accessibility: slow down animation for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
	.progress-fill {
		animation-duration: 3s;
	}
}

@media (max-width: 860px) {
	.card-layout {
		grid-template-columns: 1fr;
	}

	.form-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.step-line {
		width: 28px;
	}

	.footer-inner {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.copyright {
		text-align: left;
	}
}

@media (max-width: 600px) {
	.header-inner {
		width: min(100% - 24px, 1100px);
		height: 62px;
	}

	main {
		width: min(100% - 20px, 1160px);
		padding-top: 20px;
	}

	.logo {
		font-size: 17px;
	}

	.secure-badge {
		padding: 7px 10px;
		font-size: 12px;
	}

	.trust-strip {
		justify-content: flex-start;
		margin: 0 auto;
		max-width: 340px;
	}

	.card {
		padding: 16px 14px;
		border-radius: 15px;
	}

	.steps {
		gap: 6px;
	}

	.step-line {
		width: 14px;
	}

	.step span:last-child {
		display: none;
	}

	.form-grid {
		grid-template-columns: 1fr;
		gap: 11px;
	}

	.partner {
		align-items: flex-start;
	}

	.disclosure {
		padding: 12px;
		text-align: left;
	}
}
