/**
 * NEE Native Lead Popups — lightweight replacements for Thrive Leads.
 * Loaded non-render-blocking (media="print" → "all") only on eligible pages.
 * Strictly scoped under .nee-lp-* with zero external font dependencies.
 */

/* =========================================================================
   Shared primitives
   ========================================================================= */
.nee-lp-step[hidden] {
	display: none !important;
}

.nee-lp-close {
	position: absolute;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	padding: 0;
	font-family: var(--nee-sans, -apple-system, sans-serif);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.nee-lp-emblem {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	user-select: none;
}

.nee-lp-circle {
	position: relative;
	border-radius: 50%;
	overflow: hidden;
}

.nee-lp-circle img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Frame the right cooling tower, dome, and plant silhouette identically to Thrive. */
	object-position: 63% 50%;
}

.nee-lp-badge {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	border-radius: 50%;
	color: #ffffff;
	font-family: var(--nee-sans, -apple-system, sans-serif);
	font-weight: 700;
	line-height: 1.15;
	background-color: #16181c;
	background-image: repeating-linear-gradient(
		-45deg,
		rgba(255, 255, 255, 0.16) 0,
		rgba(255, 255, 255, 0.16) 2px,
		transparent 2px,
		transparent 6px
	);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.nee-lp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 999px;
	font-family: var(--nee-sans, -apple-system, sans-serif);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: background-color 0.16s ease, transform 0.14s ease, opacity 0.16s ease;
}

.nee-lp-btn:active {
	transform: translateY(1px);
}

.nee-lp-btn[disabled] {
	opacity: 0.65;
	cursor: wait;
}

.nee-lp-btn--crimson {
	width: 100%;
	padding: 15px 24px;
	background: #730710;
	color: #ffffff;
}

.nee-lp-btn--crimson:hover {
	background: #5b050c;
}

.nee-lp-btn--dark {
	padding: 14px 34px;
	background: #222222;
	color: #ffffff;
}

.nee-lp-btn--dark:hover {
	background: #0d0d0d;
}

.nee-lp-input {
	font-family: var(--nee-sans, -apple-system, sans-serif);
	font-size: 15.5px;
	color: #222222;
	border: 0;
	outline: none;
}

.nee-lp-input::placeholder {
	color: #777777;
}

.nee-lp-input:focus {
	outline: 2px solid var(--nee-accent, #9a2b22);
	outline-offset: -2px;
}

.nee-lp-msg {
	font-family: var(--nee-sans, -apple-system, sans-serif);
	font-size: 13.5px;
	line-height: 1.4;
	margin-top: 10px;
	min-height: 0;
}

.nee-lp-msg:empty {
	display: none;
}

.nee-lp-msg--error {
	color: #730710;
	background: rgba(255, 255, 255, 0.9);
	padding: 7px 12px;
	border-radius: 6px;
	font-weight: 500;
}

.nee-lp-msg--ok {
	color: #155d3b;
	background: rgba(255, 255, 255, 0.92);
	padding: 7px 12px;
	border-radius: 6px;
	font-weight: 500;
}

.nee-lp-terms {
	margin: 14px 0 0;
	font-family: var(--nee-sans, -apple-system, sans-serif);
	font-size: 13px;
	line-height: 1.4;
}

.nee-lp-terms a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* =========================================================================
   1. End-of-Article Bottom-Right Slide-In
   ========================================================================= */
.nee-lp-slide {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9998;
	width: 356px;
	max-width: calc(100vw - 24px);
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 28px 26px 26px;
	border-radius: 10px;
	background: #91b0d9;
	color: #ffffff;
	text-align: center;
	font-family: var(--nee-sans, -apple-system, sans-serif);
	box-shadow: 0 22px 54px rgba(15, 24, 40, 0.36);
	opacity: 0;
	transform: translateX(120%);
	transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.nee-lp-slide.is-visible {
	opacity: 1;
	transform: translateX(0);
}

.nee-lp-close--slide {
	top: 10px;
	right: 10px;
	background: rgba(115, 7, 16, 0.22);
	color: #ffffff;
}

.nee-lp-close--slide:hover {
	background: rgba(115, 7, 16, 0.45);
}

.nee-lp-emblem--slide {
	margin: 2px auto 18px;
	width: 196px;
	height: 176px;
}

.nee-lp-circle--slide {
	width: 170px;
	height: 170px;
	background: #9db8df;
	box-shadow: 0 0 28px 6px rgba(255, 255, 255, 0.36);
}

.nee-lp-badge--slide {
	top: 2px;
	left: -4px;
	width: 92px;
	height: 92px;
	padding: 8px;
	font-size: 16px;
}

.nee-lp-slide-heading {
	margin: 0 0 14px;
	font-family: var(--nee-sans, -apple-system, sans-serif);
	font-size: 31px;
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: #0d0d0d;
}

.nee-lp-slide-copy {
	margin: 0 0 20px;
	font-size: 15.5px;
	line-height: 1.5;
	color: #ffffff;
}

.nee-lp-slide-accent {
	color: #730710;
	font-weight: 600;
}

.nee-lp-form--slide {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nee-lp-input--slide {
	width: 100%;
	padding: 14px 18px;
	border-radius: 999px;
	background: #ececec;
}

.nee-lp-terms--slide {
	color: rgba(255, 255, 255, 0.9);
}

/* =========================================================================
   2. Exit-Intent Zoom-In Lightbox (exit-custom-dont-forget)
   ========================================================================= */
.nee-lp-backdrop {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(18, 18, 18, 0.76);
	opacity: 0;
	transition: opacity 0.24s ease;
}

.nee-lp-backdrop.is-visible {
	opacity: 1;
}

.nee-lp-modal {
	position: relative;
	display: grid;
	grid-template-columns: 310px 1fr;
	align-items: center;
	width: 790px;
	max-width: 100%;
	max-height: calc(100vh - 32px);
	padding: 26px 26px 26px 24px;
	border-radius: 14px;
	background: #2b2b2b;
	box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
	transform: scale(0.88);
	opacity: 0;
	transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
}

.nee-lp-backdrop.is-visible .nee-lp-modal {
	transform: scale(1);
	opacity: 1;
}

.nee-lp-modal-visual {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px 10px;
}

.nee-lp-emblem--exit {
	width: 264px;
	height: 254px;
}

.nee-lp-circle--exit {
	width: 242px;
	height: 242px;
	background: #9db8df;
}

.nee-lp-circle--exit img {
	opacity: 0.42;
	filter: contrast(1.15);
}

.nee-lp-circle-tint {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: linear-gradient(
		220deg,
		rgba(164, 193, 245, 0.55) 0%,
		rgba(108, 128, 174, 0.45) 48%,
		rgba(20, 26, 38, 0.86) 100%
	);
	pointer-events: none;
}

.nee-lp-badge--exit {
	top: 12px;
	left: -8px;
	width: 112px;
	height: 112px;
	padding: 10px;
	font-size: 16.5px;
}

.nee-lp-modal-card {
	position: relative;
	background: #ffffff;
	color: #1c1c1c;
	border-radius: 12px;
	padding: 40px 38px 34px;
	text-align: center;
	font-family: var(--nee-sans, -apple-system, sans-serif);
}

/* Subtle left-pointing notch matching Thrive lightbox */
.nee-lp-modal-card::before {
	content: '';
	position: absolute;
	left: -10px;
	top: 50%;
	width: 20px;
	height: 20px;
	background: #ffffff;
	transform: translateY(-50%) rotate(45deg);
	border-radius: 2px;
}

.nee-lp-close--exit {
	top: -14px;
	right: -14px;
	width: 36px;
	height: 36px;
	background: #ffffff;
	color: #777777;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.nee-lp-close--exit:hover {
	color: #111111;
	transform: scale(1.06);
}

.nee-lp-exit-lead {
	margin: 0 0 6px;
	font-size: 25px;
	font-weight: 400;
	line-height: 1.24;
	color: #111111;
}

.nee-lp-exit-heading {
	margin: 0 0 22px;
	font-family: var(--nee-sans, -apple-system, sans-serif);
	font-size: 31px;
	font-weight: 800;
	font-style: italic;
	line-height: 1.15;
	letter-spacing: -0.015em;
	color: #0d0d0d;
}

.nee-lp-exit-accent {
	color: #7a3a3a;
}

.nee-lp-exit-copy {
	margin: 0 auto 24px;
	max-width: 360px;
	font-size: 14.5px;
	line-height: 1.55;
	color: #333333;
}

.nee-lp-dismiss {
	display: block;
	margin: 18px auto 0;
	border: 0;
	background: none;
	padding: 6px 12px;
	font-family: var(--nee-sans, -apple-system, sans-serif);
	font-size: 14.5px;
	color: #9e9e9e;
	cursor: pointer;
}

.nee-lp-dismiss:hover {
	color: #444444;
	text-decoration: underline;
}

/* Integrated pill email + Download bar (State 2) */
.nee-lp-pill-group {
	display: flex;
	align-items: stretch;
	background: #ebebeb;
	border-radius: 999px;
	padding: 0;
	overflow: hidden;
	transition: box-shadow 0.14s ease;
}

.nee-lp-pill-group:focus-within {
	box-shadow: 0 0 0 2px var(--nee-accent, #9a2b22);
}

.nee-lp-input--exit {
	flex: 1 1 auto;
	min-width: 0;
	background: transparent;
	padding: 14px 16px 14px 20px;
}

.nee-lp-input--exit:focus {
	outline: none;
}

.nee-lp-btn--joined {
	flex: 0 0 auto;
	padding: 14px 26px;
	border-radius: 999px;
}

.nee-lp-terms--exit {
	color: #9e9e9e;
	margin-top: 20px;
}

/* =========================================================================
   Responsive (mobile & tablet)
   ========================================================================= */
@media (max-width: 760px) {
	.nee-lp-modal {
		grid-template-columns: 1fr;
		padding: 18px 16px 16px;
		overflow-y: auto;
	}

	.nee-lp-modal-visual {
		padding: 4px 0 14px;
	}

	.nee-lp-emblem--exit {
		width: 150px;
		height: 136px;
	}

	.nee-lp-circle--exit {
		width: 128px;
		height: 128px;
	}

	.nee-lp-badge--exit {
		top: 2px;
		left: -6px;
		width: 74px;
		height: 74px;
		font-size: 12px;
	}

	.nee-lp-modal-card {
		padding: 38px 20px 22px;
	}

	.nee-lp-modal-card::before {
		display: none;
	}

	.nee-lp-close--exit {
		top: 10px;
		right: 10px;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
	}

	.nee-lp-exit-lead {
		font-size: 20px;
	}

	.nee-lp-exit-heading {
		font-size: 24px;
		margin-bottom: 14px;
	}

	.nee-lp-pill-group {
		flex-direction: column;
		background: transparent;
		border-radius: 0;
		gap: 10px;
	}

	.nee-lp-pill-group:focus-within {
		box-shadow: none;
	}

	.nee-lp-input--exit {
		background: #ebebeb;
		border-radius: 999px;
		padding: 13px 18px;
	}

	.nee-lp-input--exit:focus {
		outline: 2px solid var(--nee-accent, #9a2b22);
		outline-offset: -2px;
	}

	.nee-lp-btn--joined {
		width: 100%;
	}

	.nee-lp-slide {
		right: 12px;
		bottom: 12px;
		padding: 22px 20px 20px;
	}

	.nee-lp-slide-heading {
		font-size: 25px;
	}
}

/* =========================================================================
   3. Slim Sticky Mobile Bottom Bar (v1.0.7 — Mobile-SEO-safe)
   ========================================================================= */
.nee-lp-mbar {
	position: fixed;
	left: 10px;
	right: 10px;
	bottom: 10px;
	z-index: 9997;
	max-width: 480px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px 10px 16px;
	border-radius: 999px;
	background: #23201c;
	color: #f4efe7;
	font-family: var(--nee-sans, -apple-system, sans-serif);
	font-size: 13.5px;
	font-weight: 500;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.36);
	opacity: 0;
	transform: translateY(120%);
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
}

.nee-lp-mbar.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.nee-lp-mbar-text {
	flex: 1 1 auto;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nee-lp-mbar-btn {
	flex: 0 0 auto;
	border: 0;
	border-radius: 999px;
	padding: 7px 14px;
	background: #9a2b22;
	color: #ffffff;
	font-family: var(--nee-sans, -apple-system, sans-serif);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.nee-lp-mbar-btn:hover {
	background: #730710;
}

.nee-lp-mbar-close {
	flex: 0 0 auto;
	border: 0;
	background: none;
	color: rgba(255, 255, 255, 0.72);
	font-size: 20px;
	line-height: 1;
	padding: 4px 6px;
	cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
	.nee-lp-slide,
	.nee-lp-backdrop,
	.nee-lp-modal,
	.nee-lp-mbar,
	.nee-lp-btn,
	.nee-lp-close {
		transition: none !important;
	}
}

@media print {
	.nee-lp-slide,
	.nee-lp-backdrop,
	.nee-lp-mbar {
		display: none !important;
	}
}
