/*
Exit intent popup.
*/

.exit-intent-popup,
.exit-intent-popup * {
	box-sizing: border-box;
}

.exit-intent-popup {
	position: fixed;
	inset: 0;
	z-index: 10120;
	display: grid;
	place-items: center;
	padding: 24px;
	font-family: inherit;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		opacity 0.24s ease,
		visibility 0.24s ease;
}

.exit-intent-popup.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.exit-intent-popup__overlay {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 18% 18%, rgba(11, 150, 198, 0.22) 0, rgba(11, 150, 198, 0) 34%),
		radial-gradient(circle at 82% 72%, rgba(7, 31, 99, 0.28) 0, rgba(7, 31, 99, 0) 38%),
		rgba(7, 18, 43, 0.56);
}

.exit-intent-popup__dialog {
	/* Фон: картинка + светлая голубая вуаль. Абсолютный путь нужен, чтобы фон не ломался при минификации CSS. */
	position: relative;
	z-index: 1;
	width: min(760px, 100%);
	padding: 34px;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
	gap: 28px;
	align-items: center;
	color: #101827;
	background-color: #eaf7ff;
	background-image:
		linear-gradient(135deg, rgba(247, 252, 255, 0.72) 0%, rgba(232, 247, 255, 0.66) 48%, rgba(211, 235, 255, 0.70) 100%),
		url('/wp-content/themes/generatepress-child/assets/images/icons/clients-moscow/bg/clients-moscow-bg.webp');
	background-position: center center, center center;
	background-size: cover, cover;
	background-repeat: no-repeat, no-repeat;
	border: 1px solid rgba(255, 255, 255, 0.78);
	border-radius: 28px;
	box-shadow:
		0 24px 64px rgba(7, 31, 99, 0.26),
		0 10px 26px rgba(21, 27, 42, 0.12),
		0 1px 0 rgba(255, 255, 255, 0.8) inset;
	overflow: hidden;
	transform: translate3d(0, 14px, 0) scale(0.988);
	transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
	backface-visibility: hidden;
}

.exit-intent-popup.is-visible .exit-intent-popup__dialog {
	transform: translate3d(0, 0, 0) scale(1);
}

.exit-intent-popup__dialog::before,
.exit-intent-popup__dialog::after {
	content: "";
	position: absolute;
	border-radius: 999px;
	pointer-events: none;
}

.exit-intent-popup__dialog::before {
	width: 230px;
	height: 230px;
	right: -80px;
	top: -90px;
	background: rgba(11, 150, 198, 0.09);
}

.exit-intent-popup__dialog::after {
	width: 180px;
	height: 180px;
	left: -95px;
	bottom: -100px;
	background: rgba(7, 31, 99, 0.055);
}

.exit-intent-popup__close {
	position: absolute;
	right: 18px;
	top: 18px;
	z-index: 3;
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: rgba(7, 31, 99, 0.72);
	background: rgba(255, 255, 255, 0.74);
	border: 1px solid rgba(7, 31, 99, 0.08);
	border-radius: 999px;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	transition:
		background-color 0.18s ease,
		color 0.18s ease,
		transform 0.18s ease;
}

.exit-intent-popup__close:hover,
.exit-intent-popup__close:focus-visible {
	color: #071f63;
	background: #ffffff;
	transform: translateY(-1px);
	outline: none;
}

.exit-intent-popup__badge {
	position: absolute;
	left: 34px;
	top: 28px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	width: fit-content;
	padding: 8px 12px;
	color: rgba(7, 95, 134, 0.74);
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(11, 150, 198, 0.12);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 720;
	line-height: 1;
	letter-spacing: 0.035em;
	text-transform: uppercase;
}

.exit-intent-popup__content,
.exit-intent-popup__form {
	position: relative;
	z-index: 2;
}

.exit-intent-popup__content {
	padding-top: 42px;
}

.exit-intent-popup__eyebrow {
	margin: 0 0 10px;
	color: rgba(11, 150, 198, 0.76);
	font-size: 14px;
	font-weight: 720;
	line-height: 1.25;
}

.exit-intent-popup__title {
	margin: 0;
	color: #071f63;
	font-size: clamp(28px, 3.2vw, 42px);
	font-weight: 850;
	line-height: 1.04;
	letter-spacing: -0.035em;
}

.exit-intent-popup__text {
	margin: 16px 0 0;
	color: rgba(21, 27, 42, 0.84);
	font-size: 17px;
	font-weight: 450;
	line-height: 1.48;
}

.exit-intent-popup__points {
	margin: 18px 0 0;
	padding: 0;
	display: grid;
	gap: 9px;
	list-style: none;
	color: rgba(21, 27, 42, 0.84);
	font-size: 15px;
	line-height: 1.34;
}

.exit-intent-popup__points li {
	position: relative;
	padding-left: 24px;
}

.exit-intent-popup__points li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.45em;
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: linear-gradient(135deg, #0b96c6 0%, #006ba1 100%);
	box-shadow: 0 0 0 4px rgba(11, 150, 198, 0.10);
}

.exit-intent-popup__form {
	padding: 24px;
	background: rgba(255, 255, 255, 0.90);
	border: 1px solid rgba(7, 31, 99, 0.08);
	border-radius: 22px;
	box-shadow: 0 10px 24px rgba(7, 31, 99, 0.08);
}

.exit-intent-popup__company {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.exit-intent-popup__field {
	display: grid;
	gap: 8px;
}

.exit-intent-popup__field-label {
	color: rgba(7, 31, 99, 0.70);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
}

.exit-intent-popup__input {
	width: 100%;
	height: 54px;
	padding: 0 16px;
	color: #101827;
	background: #ffffff;
	border: 1px solid rgba(7, 31, 99, 0.16);
	border-radius: 14px;
	font-family: inherit;
	font-size: 17px;
	font-weight: 600;
	line-height: 1;
	outline: none;
	transition:
		border-color 0.14s ease,
		box-shadow 0.14s ease;
}

.exit-intent-popup__input:focus {
	border-color: rgba(11, 150, 198, 0.72);
	box-shadow: 0 0 0 4px rgba(11, 150, 198, 0.12);
}

.exit-intent-popup__consent {
	margin-top: 12px;
	display: grid;
	grid-template-columns: 18px minmax(0, 1fr);
	gap: 9px;
	align-items: start;
	color: rgba(21, 27, 42, 0.70);
	font-size: 12px;
	font-weight: 450;
	line-height: 1.35;
}

.exit-intent-popup__consent input {
	width: 16px;
	height: 16px;
	margin: 1px 0 0;
	accent-color: #0b96c6;
}

.exit-intent-popup__consent a {
	color: #0b96c6;
	font-weight: 700;
	text-decoration: none;
}

.exit-intent-popup__consent a:hover,
.exit-intent-popup__consent a:focus-visible {
	color: #071f63;
	text-decoration: underline;
	outline: none;
}



/* Common personal-data consent checkbox inside exit-intent form. */
.exit-intent-popup .form-consent {
	margin-top: 12px;
	display: grid;
	grid-template-columns: 18px minmax(0, 1fr);
	gap: 9px;
	align-items: start;
	color: rgba(21, 27, 42, 0.70);
	font-size: 12px;
	font-weight: 450;
	line-height: 1.35;
	cursor: pointer;
}

.exit-intent-popup .form-consent input {
	width: 16px;
	height: 16px;
	min-height: 16px;
	margin: 1px 0 0;
	accent-color: #0b96c6;
	cursor: pointer;
}

.exit-intent-popup .form-consent span {
	display: block;
	min-width: 0;
}

.exit-intent-popup .form-consent a {
	color: #0b96c6;
	font-weight: 700;
	text-decoration: none;
}

.exit-intent-popup .form-consent a:hover,
.exit-intent-popup .form-consent a:focus-visible {
	color: #071f63;
	text-decoration: underline;
	outline: none;
}

.exit-intent-popup__actions {
	margin-top: 16px;
	display: grid;
	gap: 10px;
}

.exit-intent-popup__submit,
.exit-intent-popup__later {
	font-family: inherit;
	cursor: pointer;
}

.exit-intent-popup__submit {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: 52px;
	padding: 13px 18px;
	color: rgba(255, 255, 255, 0.92);
	background: transparent;
	border: 0;
	border-radius: 999px;
	box-shadow: 0 12px 24px rgba(11, 150, 198, 0.22);
	font-size: 15px;
	font-weight: 750;
	line-height: 1.15;
	transform: translate3d(0, 0, 0);
	transition:
		transform 0.14s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.14s ease;
	backface-visibility: hidden;
}

.exit-intent-popup__submit::before,
.exit-intent-popup__submit::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	transition: opacity 0.14s ease;
}

.exit-intent-popup__submit::before {
	opacity: 1;
	background:
		radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.22) 0, rgba(255, 255, 255, 0) 34%),
		linear-gradient(135deg, #0b96c6 0%, #006ba1 100%);
}

.exit-intent-popup__submit::after {
	opacity: 0;
	background:
		radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.26) 0, rgba(255, 255, 255, 0) 34%),
		linear-gradient(135deg, #16a9d8 0%, #00699f 100%);
}

.exit-intent-popup__submit:hover,
.exit-intent-popup__submit:focus-visible {
	box-shadow: 0 16px 30px rgba(11, 150, 198, 0.30);
	transform: translate3d(0, -2px, 0);
	outline: none;
}

.exit-intent-popup__submit:hover::after,
.exit-intent-popup__submit:focus-visible::after {
	opacity: 1;
}

.exit-intent-popup__submit:disabled {
	cursor: wait;
	opacity: 0.72;
	transform: none;
}

.exit-intent-popup__later {
	width: fit-content;
	justify-self: center;
	padding: 4px 8px;
	color: rgba(21, 27, 42, 0.58);
	background: transparent !important;
	border: 0;
	box-shadow: none !important;
	font-size: 13px;
	font-weight: 650;
	line-height: 1.2;
	text-decoration: none;
	transform: none !important;
	transition: color 0.12s ease;
}

.exit-intent-popup__later:hover,
.exit-intent-popup__later:focus-visible {
	color: #0b96c6;
	background: transparent !important;
	box-shadow: none !important;
	text-decoration: none;
	transform: none !important;
	outline: none;
}

.exit-intent-popup__message {
	min-height: 18px;
	margin: 12px 0 0;
	color: #075f86;
	font-size: 13px;
	font-weight: 750;
	line-height: 1.35;
	text-align: center;
}

.exit-intent-popup__message.is-error {
	color: #b3261e;
}

.exit-intent-popup__message.is-success {
	color: #118a42;
}

body.exit-intent-popup-open {
	overflow: hidden;
}

@media (max-width: 860px) {
	.exit-intent-popup {
		padding: 14px;
		align-items: end;
	}

	.exit-intent-popup__dialog {
		width: 100%;
		max-height: calc(100vh - 28px);
		padding: 22px;
		grid-template-columns: 1fr;
		gap: 18px;
		border-radius: 24px;
		overflow-y: auto;
	}

	.exit-intent-popup__badge {
		position: static;
		margin-bottom: 12px;
	}

	.exit-intent-popup__content {
		padding-top: 0;
	}

	.exit-intent-popup__title {
		font-size: 27px;
		line-height: 1.08;
	}

	.exit-intent-popup__text {
		margin-top: 12px;
		font-size: 15px;
		line-height: 1.42;
	}

	.exit-intent-popup__points {
		margin-top: 14px;
		gap: 7px;
		font-size: 13px;
	}

	.exit-intent-popup__form {
		padding: 16px;
		border-radius: 18px;
	}

	.exit-intent-popup__close {
		right: 14px;
		top: 14px;
	}
}

@media (max-width: 420px) {
	.exit-intent-popup__dialog {
		padding: 18px;
	}

	.exit-intent-popup__title {
		font-size: 24px;
	}

	.exit-intent-popup__input {
		height: 50px;
		font-size: 16px;
	}

	.exit-intent-popup__submit {
		min-height: 50px;
		font-size: 14px;
	}
}


@media (prefers-reduced-motion: reduce) {
	.exit-intent-popup,
	.exit-intent-popup__dialog,
	.exit-intent-popup__close,
	.exit-intent-popup__submit,
	.exit-intent-popup__submit::before,
	.exit-intent-popup__submit::after,
	.exit-intent-popup__later,
	.exit-intent-popup__input {
		transition: none;
	}
}