/**
 * ATL Newsletter — front-end form + popup styles.
 * Scoped under .atl-nl-f / .atl-nl-popup so themes are not affected.
 */
.atl-nl-f {
	--atl-nl-f-accent: #5b3df5;
	max-width: 480px;
	margin: 18px 0;
	font-family: inherit;
}
.atl-nl-f * { box-sizing: border-box; }

.atl-nl-f-title {
	margin: 0 0 6px;
	font-size: 20px;
	line-height: 1.25;
	font-weight: 700;
}
.atl-nl-f-desc {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.5;
	opacity: .8;
}

.atl-nl-f-fields { display: flex; flex-direction: column; gap: 10px; }
.atl-nl-f--inline .atl-nl-f-fields { flex-direction: row; flex-wrap: wrap; }

.atl-nl-f-name,
.atl-nl-f-email {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	padding: 12px 14px;
	font-size: 15px;
	border: 1px solid rgba(0,0,0,.16);
	border-radius: 10px;
	background: #fff;
	color: #1d2433;
	line-height: 1.2;
}
.atl-nl-f-name:focus,
.atl-nl-f-email:focus {
	outline: none;
	border-color: var(--atl-nl-f-accent);
	box-shadow: 0 0 0 3px rgba(91,61,245,.16);
}

.atl-nl-f-btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	background: var(--atl-nl-f-accent);
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	transition: opacity .15s ease, transform .05s ease;
	line-height: 1.2;
}
.atl-nl-f--stacked .atl-nl-f-btn { width: 100%; }
.atl-nl-f-btn:hover { opacity: .92; }
.atl-nl-f-btn:active { transform: translateY(1px); }
.atl-nl-f-btn.is-loading { opacity: .6; cursor: default; }

.atl-nl-f-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px; height: 1px;
	overflow: hidden;
}

.atl-nl-f-msg {
	margin: 12px 0 0;
	font-size: 14px;
	line-height: 1.45;
	min-height: 1px;
}
.atl-nl-f-msg.is-success { color: #047a5a; font-weight: 600; }
.atl-nl-f-msg.is-error { color: #c0392b; }

/* ----------------------------------------------------------------
 * Popups (delay + exit-intent)
 * ------------------------------------------------------------- */
.atl-nl-popup {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.atl-nl-popup.is-open { display: flex; }
.atl-nl-popup-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15,20,35,.55);
}
.atl-nl-popup-box {
	position: relative;
	width: min(460px, 100%);
	background: #fff;
	border-radius: 16px;
	padding: 32px 28px 28px;
	box-shadow: 0 24px 70px rgba(0,0,0,.35);
	animation: atlNlFPop .18s ease;
}
@keyframes atlNlFPop {
	from { transform: translateY(12px) scale(.98); opacity: 0; }
	to   { transform: translateY(0) scale(1); opacity: 1; }
}
.atl-nl-popup-box .atl-nl-f { margin: 0; max-width: none; }
.atl-nl-popup-close {
	position: absolute;
	top: 12px; right: 14px;
	width: 30px; height: 30px;
	display: grid; place-items: center;
	background: none; border: 0;
	font-size: 26px; line-height: 1;
	color: #98a0b0; cursor: pointer;
	border-radius: 8px;
}
.atl-nl-popup-close:hover { background: rgba(0,0,0,.05); color: #1d2433; }

@media (max-width: 520px) {
	.atl-nl-f--inline .atl-nl-f-fields { flex-direction: column; }
	.atl-nl-f--inline .atl-nl-f-btn { width: 100%; }
}
