/* =============================================================
   APPLY PAGE — template-apply.php
   Highest-conversion page. Two-column form + sticky sidebar.
   ============================================================= */

/* ── Hero ──────────────────────────────────────────────────── */
.ez-apply-hero {
	padding: 48px 0 40px;
	background: linear-gradient(160deg, var(--ezee-navy) 0%, #0e2d54 100%);
	color: var(--ezee-white);
	position: relative;
	overflow: hidden;
}

.ez-apply-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 60% 80% at 100% 50%, rgba(78, 168, 255, 0.12) 0%, transparent 70%),
		url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M0 0h40v1H0zm0 40h40v-1H0zM0 0h1v40H0zm40 0h-1v40h1z'/%3E%3C/g%3E%3C/svg%3E");
	pointer-events: none;
}

.ez-apply-hero .container {
	position: relative;
	z-index: 1;
}

.ez-apply-hero__breadcrumb {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 24px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.55);
}

.ez-apply-hero__breadcrumb a {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	transition: color var(--ezee-transition);
}

.ez-apply-hero__breadcrumb a:hover {
	color: var(--ezee-white);
}

.ez-apply-hero__breadcrumb svg {
	opacity: 0.5;
	flex-shrink: 0;
}

.ez-apply-hero .ez-section-label {
	background: rgba(78, 168, 255, 0.2);
	color: var(--ezee-primary-light);
	border-color: rgba(78, 168, 255, 0.3);
	margin-bottom: 16px;
}

.ez-apply-hero__heading {
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.03em;
	color: var(--ezee-white);
	margin: 0 0 16px;
}

.ez-apply-hero__heading em {
	font-style: normal;
	color: var(--ezee-primary-light);
	display: block;
}

.ez-apply-hero__sub {
	font-size: 1.0625rem;
	color: rgba(255, 255, 255, 0.75);
	max-width: 640px;
	line-height: 1.7;
	margin: 0 0 32px;
}

/* Trust strip */
.ez-apply-hero__trust-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
}

.ez-apply-hero__trust-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.85);
}

.ez-apply-hero__trust-item svg {
	width: 16px;
	height: 16px;
	color: var(--ezee-primary-light);
	flex-shrink: 0;
}

@media (max-width: 640px) {
	.ez-apply-hero {
		padding: 32px 0 28px;
	}

	.ez-apply-hero__heading {
		font-size: 1.75rem;
	}

	.ez-apply-hero__trust-strip {
		gap: 8px 16px;
	}

	.ez-apply-hero__trust-item {
		font-size: 13px;
	}
}


/* ── Body layout ───────────────────────────────────────────── */
.ez-apply-body {
	padding: 56px 0 72px;
	background: var(--ezee-surface);
}

.ez-apply-layout {
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: 40px;
	align-items: start;
}

@media (max-width: 1024px) {
	.ez-apply-layout {
		grid-template-columns: 1fr 320px;
		gap: 32px;
	}
}

@media (max-width: 860px) {
	.ez-apply-layout {
		grid-template-columns: 1fr;
	}

	/* Move sidebar above form on small screens */
	.ez-apply-sidebar {
		order: -1;
	}
}


/* ── Form card ─────────────────────────────────────────────── */
.ez-apply-form-card {
	background: var(--ezee-white);
	border-radius: var(--ezee-radius-lg);
	box-shadow: var(--ezee-shadow-lg);
	overflow: hidden;
}

.ez-apply-form-card__header {
	padding: 32px 36px 24px;
	border-bottom: 1px solid var(--ezee-border);
	background: linear-gradient(135deg, var(--ezee-primary-bg) 0%, var(--ezee-white) 100%);
}

.ez-apply-form-card__title {
	font-size: 1.375rem;
	font-weight: 700;
	color: var(--ezee-text);
	margin: 0 0 8px;
	letter-spacing: -0.02em;
}

.ez-apply-form-card__sub {
	font-size: 14px;
	color: var(--ezee-text-muted);
	line-height: 1.6;
	margin: 0 0 12px;
}

.ez-apply-form-card__privacy {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--ezee-text-muted);
}

.ez-apply-form-card__privacy svg {
	color: #27ae60;
	flex-shrink: 0;
}

.ez-apply-form-card__body {
	padding: 28px 36px 36px;
}

/* SmartDLR form overrides — ensure brand consistency */
.ez-apply-form-card__body input[type="text"],
.ez-apply-form-card__body input[type="email"],
.ez-apply-form-card__body input[type="tel"],
.ez-apply-form-card__body input[type="number"],
.ez-apply-form-card__body select,
.ez-apply-form-card__body textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1.5px solid var(--ezee-border);
	border-radius: var(--ezee-radius-sm);
	font-family: var(--ezee-font-sans);
	font-size: 14px;
	color: var(--ezee-text);
	background: var(--ezee-white);
	transition: border-color var(--ezee-transition), box-shadow var(--ezee-transition);
	-webkit-appearance: none;
}

.ez-apply-form-card__body input:focus,
.ez-apply-form-card__body select:focus,
.ez-apply-form-card__body textarea:focus {
	outline: none;
	border-color: var(--ezee-primary);
	box-shadow: 0 0 0 3px rgba(0, 85, 165, 0.12);
}

.ez-apply-form-card__body label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--ezee-text);
	margin-bottom: 5px;
}

.ez-apply-form-card__body input[type="submit"],
.ez-apply-form-card__body button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 32px;
	background: var(--ezee-primary);
	color: var(--ezee-white);
	border: none;
	border-radius: var(--ezee-radius-md);
	font-family: var(--ezee-font-sans);
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	width: 100%;
	transition: background var(--ezee-transition), transform var(--ezee-transition), box-shadow var(--ezee-transition);
	box-shadow: var(--ezee-shadow-btn);
}

.ez-apply-form-card__body input[type="submit"]:hover,
.ez-apply-form-card__body button[type="submit"]:hover {
	background: var(--ezee-primary-dark);
	transform: translateY(-1px);
	box-shadow: 0 6px 24px rgba(0, 85, 165, 0.35);
}

/* Fallback */
.ez-apply-form-card__fallback {
	text-align: center;
	padding: 24px 0;
}

.ez-apply-form-card__fallback-note {
	font-size: 15px;
	color: var(--ezee-text-muted);
	margin-bottom: 20px;
}

@media (max-width: 560px) {
	.ez-apply-form-card__header,
	.ez-apply-form-card__body {
		padding-left: 20px;
		padding-right: 20px;
	}
}


/* ── Sidebar ───────────────────────────────────────────────── */
.ez-apply-sidebar {
	position: sticky;
	top: 88px; /* sticky nav height + 20px */
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ez-apply-sidebar > * {
	background: var(--ezee-white);
	border-radius: var(--ezee-radius-md);
	box-shadow: var(--ezee-shadow-sm);
	border: 1px solid var(--ezee-border);
	padding: 20px;
}

/* Award / rating */
.ez-apply-sidebar__award {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ez-apply-sidebar__award-stars {
	display: flex;
	gap: 1px;
	color: #f59e0b;
}

.ez-apply-sidebar__award-text strong {
	display: block;
	font-size: 15px;
	font-weight: 700;
	color: var(--ezee-text);
	margin-bottom: 1px;
}

.ez-apply-sidebar__award-text span {
	font-size: 12px;
	color: var(--ezee-text-muted);
}

/* Testimonial */
.ez-apply-sidebar__testimonial {}

.ez-apply-sidebar__testimonial-stars {
	margin-bottom: 10px;
}

.ez-apply-sidebar__testimonial-quote {
	margin: 0;
}

.ez-apply-sidebar__testimonial-quote p {
	font-size: 13.5px;
	font-style: italic;
	color: var(--ezee-text);
	line-height: 1.65;
	margin: 0 0 8px;
}

.ez-apply-sidebar__testimonial-quote cite {
	font-size: 12px;
	font-style: normal;
	font-weight: 600;
	color: var(--ezee-text-muted);
}

/* Process steps */
.ez-apply-sidebar__process-heading {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ezee-text-muted);
	margin: 0 0 14px;
}

.ez-apply-sidebar__steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ez-apply-sidebar__step {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.ez-apply-sidebar__step-num {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--ezee-primary-bg);
	color: var(--ezee-primary);
	font-size: 12px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ez-apply-sidebar__step strong {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: var(--ezee-text);
	margin-bottom: 1px;
}

.ez-apply-sidebar__step p {
	font-size: 12px;
	color: var(--ezee-text-muted);
	margin: 0;
	line-height: 1.5;
}

/* Contact */
.ez-apply-sidebar__contact-heading {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ezee-text-muted);
	margin: 0 0 6px;
}

.ez-apply-sidebar__contact > p {
	font-size: 13px;
	color: var(--ezee-text-muted);
	margin: 0 0 12px;
	line-height: 1.5;
}

.ez-apply-sidebar__phones {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 12px;
}

.ez-apply-sidebar__phone-link {
	font-size: 14px;
	font-weight: 700;
	color: var(--ezee-primary) !important;
	text-decoration: none !important;
	transition: color var(--ezee-transition);
}

.ez-apply-sidebar__phone-link:hover {
	color: var(--ezee-primary-dark) !important;
}

.ez-apply-sidebar__phone-link--tollfree {
	font-size: 13px;
	font-weight: 500;
	color: var(--ezee-text-muted) !important;
}

.ez-apply-sidebar__address {
	font-size: 12.5px;
	color: var(--ezee-text-muted);
	line-height: 1.6;
	font-style: normal;
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin-bottom: 12px;
}

.ez-apply-sidebar__address svg {
	flex-shrink: 0;
	margin-top: 2px;
	color: var(--ezee-primary);
}

.ez-apply-sidebar__hours {
	display: flex;
	flex-direction: column;
	gap: 4px;
	border-top: 1px solid var(--ezee-border);
	padding-top: 10px;
}

.ez-apply-sidebar__hours > div {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
}

.ez-apply-sidebar__hours span {
	color: var(--ezee-text-muted);
}

.ez-apply-sidebar__hours strong {
	font-weight: 600;
	color: var(--ezee-text);
}

/* Awards strip */
.ez-apply-sidebar__awards-strip {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ez-apply-sidebar__award-badge {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ez-apply-sidebar__award-badge svg {
	color: var(--ezee-primary);
	flex-shrink: 0;
}

.ez-apply-sidebar__award-badge strong {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: var(--ezee-text);
}

.ez-apply-sidebar__award-badge span {
	font-size: 12px;
	color: var(--ezee-text-muted);
}

@media (max-width: 860px) {
	.ez-apply-sidebar {
		position: static;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}

	.ez-apply-sidebar__award {
		grid-column: 1 / -1;
	}
}

@media (max-width: 560px) {
	.ez-apply-sidebar {
		grid-template-columns: 1fr;
	}
}


/* ── "What Happens Next" timeline ──────────────────────────── */
.ez-apply-next {
	padding: 72px 0 80px;
	background: var(--ezee-white);
}

.ez-apply-next__header {
	text-align: center;
	margin-bottom: 56px;
}

.ez-apply-next__sub {
	font-size: 1.0625rem;
	color: var(--ezee-text-muted);
	max-width: 480px;
	margin: 0 auto;
	line-height: 1.7;
}

.ez-apply-next__timeline {
	max-width: 680px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.ez-apply-next__step {
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 0 24px;
}

.ez-apply-next__step-marker {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.ez-apply-next__step-dot {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--ezee-primary);
	color: var(--ezee-white);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: 0 4px 16px rgba(0, 85, 165, 0.3);
	position: relative;
	z-index: 1;
}

.ez-apply-next__step-dot svg {
	width: 22px;
	height: 22px;
}

.ez-apply-next__step-line {
	flex: 1;
	width: 2px;
	background: linear-gradient(to bottom, var(--ezee-primary) 0%, var(--ezee-border) 100%);
	margin: 4px 0;
	min-height: 32px;
}

.ez-apply-next__step-line--last {
	background: transparent;
}

.ez-apply-next__step-content {
	padding-bottom: 40px;
	padding-top: 12px;
}

.ez-apply-next__step-time {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--ezee-primary);
	margin-bottom: 4px;
}

.ez-apply-next__step-title {
	font-size: 1.1875rem;
	font-weight: 700;
	color: var(--ezee-text);
	margin: 0 0 8px;
	letter-spacing: -0.015em;
}

.ez-apply-next__step-content p {
	font-size: 15px;
	color: var(--ezee-text-muted);
	line-height: 1.7;
	margin: 0;
}

@media (max-width: 560px) {
	.ez-apply-next {
		padding: 48px 0 56px;
	}

	.ez-apply-next__step {
		grid-template-columns: 44px 1fr;
		gap: 0 16px;
	}

	.ez-apply-next__step-dot {
		width: 40px;
		height: 40px;
	}

	.ez-apply-next__step-dot svg {
		width: 18px;
		height: 18px;
	}
}


/* ── Apply FAQ ─────────────────────────────────────────────── */
.ez-apply-faq {
	padding: 72px 0 80px;
	background: var(--ezee-surface);
}

.ez-apply-faq__header {
	text-align: center;
	margin-bottom: 40px;
}

.ez-apply-faq .ez-accordion {
	border: 1px solid var(--ezee-border);
	border-radius: var(--ezee-radius-md);
	overflow: hidden;
	box-shadow: var(--ezee-shadow-sm);
}

.ez-apply-faq .ez-accordion__item {
	background: var(--ezee-white);
}

.ez-apply-faq__more {
	text-align: center;
	margin-top: 28px;
	font-size: 15px;
	color: var(--ezee-text-muted);
}

.ez-apply-faq__more a {
	color: var(--ezee-primary);
	font-weight: 600;
	text-decoration: none;
	transition: color var(--ezee-transition);
}

.ez-apply-faq__more a:hover {
	color: var(--ezee-primary-dark);
	text-decoration: underline;
}

@media (max-width: 560px) {
	.ez-apply-faq {
		padding: 48px 0 56px;
	}
}
