/* ==========================================================================
   Lead popup — glass scrim like the mega menu's, a two-panel card (dark
   brand panel + form), soft entrance. Mobile: a bottom sheet.
   ========================================================================== */

.eit-lp {
	--lp-ink: var(--eit-ink, #15181f);
	--lp-muted: #5b6172;
	--lp-line: #e3e6ef;
	--lp-accent: var(--eit-accent, #3b4fe8);
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: grid;
	place-items: center;
	padding: 20px;
}
.eit-lp[hidden] { display: none; }

/* Same dim and blur as the mega menu's backdrop (header-footer.css). */
.eit-lp__scrim {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 41, .35);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	opacity: 0;
	transition: opacity .35s ease;
}
/* Desktop: exactly the veil the open mega menu puts over the page (header-footer.css). */
@media (min-width: 1025px) {
	.eit-lp__scrim { background: rgba(15, 23, 41, .12); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.eit-lp__scrim { background: rgba(10, 14, 30, .72); }
}

.eit-lp__dialog {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
	width: min(880px, 100%);
	max-height: calc(100dvh - 40px);
	overflow: hidden;
	border-radius: 28px;
	background: #ffffff;
	box-shadow: 0 40px 100px rgba(10, 14, 40, .35), 0 0 0 1px rgba(255, 255, 255, .5);
	opacity: 0;
	transform: translateY(18px) scale(.97);
	transition: opacity .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
}
.eit-lp.is-open .eit-lp__scrim { opacity: 1; }
.eit-lp.is-open .eit-lp__dialog { opacity: 1; transform: none; }

html.eit-lp-locked { overflow: hidden; }

.eit-lp__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid var(--lp-line);
	border-radius: 50%;
	background: #ffffff;
	color: var(--lp-ink);
	cursor: pointer;
	transition: background-color .2s ease, transform .2s ease;
}
.eit-lp__close svg { width: 16px; height: 16px; }
.eit-lp__close:hover,
.eit-lp__close:focus { background: #f2f4fb; color: var(--lp-ink); border-color: var(--lp-line); transform: rotate(90deg); }
.eit-lp__close:focus-visible { outline: 2px solid var(--lp-accent); outline-offset: 2px; }

/* ---------- Brand panel ---------- */

.eit-lp__side {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 36px 30px;
	overflow: hidden;
	background: radial-gradient(120% 90% at 0% 0%, #2a39a8 0%, #0b1024 65%);
	color: #ffffff;
}
.eit-lp__side::after {
	content: "";
	position: absolute;
	right: -80px;
	bottom: -80px;
	width: 240px;
	height: 240px;
	border-radius: 50%;
	background: #8b5cf6;
	filter: blur(70px);
	opacity: .45;
}
.eit-lp__logo {
	display: block;
	align-self: flex-start;
	width: auto;
	height: auto;
	max-width: 150px;
	max-height: 48px;
	/* The logo is dark artwork; on the dark panel it is shown in white, like the footer. */
	filter: brightness(0) invert(1);
}
.eit-lp__badge {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	font-size: 12.5px;
	font-weight: 600;
}
.eit-lp__dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .2); }
.eit-lp__side-title { position: relative; margin: 6px 0 0; font-size: 24px; font-weight: 600; line-height: 1.25; letter-spacing: -.015em; }
.eit-lp__points { position: relative; display: grid; gap: 12px; margin: auto 0 0; padding: 0; list-style: none; }
.eit-lp__points li { position: relative; padding-left: 28px; color: rgba(255, 255, 255, .82); font-size: 14.5px; line-height: 1.45; }
.eit-lp__points li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: rgba(52, 211, 153, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* ---------- Form ---------- */

.eit-lp__main { overflow-y: auto; padding: 34px 34px 28px; overscroll-behavior: contain; }
.eit-lp__eyebrow { margin: 0 0 8px; color: var(--lp-accent); font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eit-lp__title { margin: 0; color: var(--lp-ink); font-size: clamp(24px, 2.4vw, 30px); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.eit-lp__title .eit-h2__accent { display: inline; }
.eit-lp__text { margin: 8px 0 20px; color: var(--lp-muted); font-size: 15px; line-height: 1.55; }

.eit-lp__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.eit-lp__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.eit-lp__field { margin: 0 0 14px; }
.eit-lp__field label { display: block; margin-bottom: 6px; color: var(--lp-ink); font-size: 13.5px; font-weight: 600; }
.eit-lp__field label span { color: var(--lp-accent); }
.eit-lp__field input,
.eit-lp__field textarea,
.eit-lp__field select {
	width: 100%;
	height: 46px;
	padding: 0 14px;
	border: 1px solid var(--lp-line);
	border-radius: 12px;
	background: #f8f9fd;
	color: var(--lp-ink);
	font: inherit;
	font-size: 15px;
	box-sizing: border-box;
	transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.eit-lp__field textarea { height: auto; min-height: 84px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.eit-lp__field input::placeholder,
.eit-lp__field textarea::placeholder { color: #a1a6b5; }
.eit-lp__field input:focus,
.eit-lp__field textarea:focus,
.eit-lp__field select:focus { border-color: var(--lp-accent); background: #ffffff; box-shadow: 0 0 0 4px rgba(59, 79, 232, .12); outline: none; }
.eit-lp__field.is-invalid input,
.eit-lp__field.is-invalid select { border-color: #e5484d; box-shadow: 0 0 0 4px rgba(229, 72, 77, .1); }
.eit-lp__phone { display: grid; grid-template-columns: 116px 1fr; gap: 8px; }
/* Own chevron with room around it: the native arrow sat against the edge. */
.eit-lp__phone select,
.eit-lp__field--service select {
	-webkit-appearance: none;
	appearance: none;
	padding: 0 34px 0 14px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6172' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px;
	cursor: pointer;
}

.eit-lp__field--service select:required:invalid { color: #a1a6b5; }
.eit-lp__field--service select option { color: var(--lp-ink); }

.eit-lp__recaptcha { margin: 6px 0 0; color: var(--lp-muted); font-size: 11.5px; line-height: 1.4; text-align: center; }
.eit-lp__recaptcha a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.eit-lp__checks { display: grid; gap: 8px; margin: 4px 0 16px; }
.eit-lp__check { display: flex; align-items: flex-start; gap: 10px; color: var(--lp-muted); font-size: 13.5px; line-height: 1.45; cursor: pointer; }
.eit-lp__check input { flex: none; width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--lp-accent); }

.eit-lp__error { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: #fdecec; color: #b42318; font-size: 14px; }

.eit-lp__submit {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 52px;
	border: 0;
	border-radius: 14px;
	background: linear-gradient(95deg, #3b4fe8, #6d5cf6);
	color: #ffffff;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 14px 30px rgba(59, 79, 232, .3);
	transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.eit-lp__submit svg { width: 18px; height: 18px; transition: transform .2s ease; }
.eit-lp__submit:hover,
.eit-lp__submit:focus { background: linear-gradient(95deg, #3346d6, #6352e8); color: #ffffff; transform: translateY(-1px); box-shadow: 0 18px 36px rgba(59, 79, 232, .36); }
.eit-lp__submit:hover svg { transform: translateX(3px); }
.eit-lp__submit:focus-visible { outline: 2px solid var(--lp-ink); outline-offset: 3px; }
.eit-lp__spin { display: none; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #ffffff; border-radius: 50%; animation: eit-lp-spin .7s linear infinite; }
.eit-lp__submit.is-busy { pointer-events: none; filter: saturate(.8); }
.eit-lp__submit.is-busy svg,
.eit-lp__submit.is-busy .eit-lp__submit-label { opacity: .7; }
.eit-lp__submit.is-busy svg { display: none; }
.eit-lp__submit.is-busy .eit-lp__spin { display: block; }
@keyframes eit-lp-spin { to { transform: rotate(360deg); } }

/* #667085, not the lighter #8a90a2: small text on white needs 4.5:1 contrast. */
.eit-lp__privacy { margin: 10px 0 0; color: #667085; font-size: 12.5px; text-align: center; }

/* ---------- Thank you ---------- */

.eit-lp__done { display: grid; place-items: center; gap: 6px; min-height: 380px; text-align: center; outline: none; }
.eit-lp__done[hidden] { display: none; }
.eit-lp__tick { display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 8px; border-radius: 50%; background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #059669; animation: eit-lp-pop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.eit-lp__tick svg { width: 32px; height: 32px; }
@keyframes eit-lp-pop { from { transform: scale(.4); opacity: 0; } }
.eit-lp__done .eit-lp__text { max-width: 36ch; margin-bottom: 14px; }
.eit-lp__ghost { padding: 12px 22px; border: 1px solid var(--lp-line); border-radius: 999px; background: #ffffff; color: var(--lp-ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.eit-lp__ghost:hover,
.eit-lp__ghost:focus { background: #f4f6fc; color: var(--lp-ink); border-color: var(--lp-line); }

/* ---------- Small screens: a floating card with room on every side ---------- */

@media (max-width: 760px) {
	.eit-lp { place-items: end center; padding: 14px 14px calc(14px + env(safe-area-inset-bottom)); }
	.eit-lp__dialog { grid-template-columns: minmax(0, 1fr); width: 100%; max-height: calc(100dvh - 28px - env(safe-area-inset-bottom)); border-radius: 24px; transform: translateY(30px); }
	.eit-lp__side { display: none; }
	.eit-lp__main { padding: 26px 20px 20px; }
	.eit-lp__grid { grid-template-columns: minmax(0, 1fr); }
	.eit-lp__close { top: 12px; right: 12px; }
	.eit-lp__field input,
	.eit-lp__field select { font-size: 16px; } /* no zoom-on-focus in iOS */
}

@media (prefers-reduced-motion: reduce) {
	.eit-lp__scrim,
	.eit-lp__dialog { transition: none; }
	.eit-lp__tick,
	.eit-lp__spin { animation: none; }
}
