/**
 * Everest Education — Parent Education Popup
 *
 * Canonical implementation.
 *
 * Desktop background:
 * assets/images/pop-up-pozadina-optimized.webp
 *
 * Mobile:
 * stacked composition with illustration banner above content.
 */

.everest-parent-popup[hidden] {
	display: none !important;
}

.everest-parent-popup,
.everest-parent-popup * {
	box-sizing: border-box;
	text-transform: none !important;
}

.everest-parent-popup {
	position: fixed;
	inset: 0;
	z-index: 999999;

	display: flex;
	align-items: center;
	justify-content: center;

	padding: 24px;

	font-family: "IBM Plex Sans", Arial, sans-serif;
}

/**
 * Page overlay.
 */
.everest-parent-popup__overlay {
	position: absolute;
	inset: 0;

	background: rgba(19, 36, 52, 0.56);

	backdrop-filter: blur(1.5px);
	-webkit-backdrop-filter: blur(1.5px);
}

/**
 * Popup shell — desktop.
 */
.everest-parent-popup__dialog {
	position: relative;
	z-index: 1;

	width: min(600px, calc(100vw - 48px));
	height: 425px;
	max-height: calc(100vh - 48px);

	overflow: hidden;

	background: #ffffff;

	border: 0;
	border-radius: 14px;

	box-shadow:
		0 24px 58px rgba(0, 0, 0, 0.24),
		0 6px 16px rgba(0, 0, 0, 0.10);
}

.everest-parent-popup__content {
	position: relative;

	width: 100%;
	height: 100%;
}

/**
 * Desktop approved Photoshop background.
 */
.everest-parent-popup__visual {
	position: absolute;
	z-index: 1;

	inset: 0;

	width: 100%;
	height: 100%;

	background-color: #ffffff;
	background-image: url("../images/pop-up-pozadina-optimized.webp");
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 100% 100%;
}

/**
 * Original illustration is hidden on desktop because the
 * complete composition is baked into the desktop background.
 */
.everest-parent-popup__illustration {
	display: none !important;
}

/**
 * Desktop content safe zone.
 */
.everest-parent-popup__copy {
	position: relative;
	z-index: 3;

	display: flex;
	flex-direction: column;
	align-items: flex-start;

	width: 315px;
	height: 100%;

	margin: 0;

	padding:
		18px
		0
		20px
		30px;

	background: transparent;
}

/**
 * Everest logo.
 */
.everest-parent-popup__logo {
	display: block;

	width: 168px !important;
	max-width: 168px !important;
	height: auto !important;

	margin: 0 0 29px;
	padding: 0;

	border: 0 !important;
	background: transparent !important;

	box-shadow: none !important;
}

/**
 * Headline.
 */
.everest-parent-popup__title {
	display: block;

	width: 280px;
	max-width: 280px;

	margin: 0 0 16px !important;
	padding: 0 !important;

	color: #092b61 !important;

	font-family:
		"IBM Plex Sans",
		Arial,
		sans-serif !important;

	font-size: 22px !important;
	font-style: normal !important;
	font-weight: 700 !important;
	line-height: 1.11 !important;
	letter-spacing: -0.025em !important;

	text-align: left !important;

	text-decoration: none !important;
	text-transform: none !important;

	background: transparent !important;

	border: 0 !important;

	box-shadow: none !important;
}

/**
 * Supporting text.
 */
.everest-parent-popup__text {
	display: block;

	width: 250px;
	max-width: 250px;

	margin: 0 0 19px !important;
	padding: 0 !important;

	color: #29465f !important;

	font-family:
		"IBM Plex Sans",
		Arial,
		sans-serif !important;

	font-size: 12.5px !important;
	font-style: normal !important;
	font-weight: 400 !important;
	line-height: 1.43 !important;
	letter-spacing: 0 !important;

	text-align: left !important;

	text-decoration: none !important;
	text-transform: none !important;

	background: transparent !important;
}

.everest-parent-popup__text strong {
	font-weight: 700 !important;
}

/**
 * Form.
 */
.everest-parent-popup__form {
	display: flex !important;
	flex-direction: column !important;

	width: 268px;
	max-width: 268px;

	gap: 10px;

	margin: 0 !important;
	padding: 0 !important;

	border: 0 !important;

	background: transparent !important;
}

/**
 * Email input.
 */
.everest-parent-popup__email {
	display: block !important;

	width: 100% !important;

	height: 38px !important;
	min-height: 38px !important;

	margin: 0 !important;

	padding:
		8px
		12px
		8px
		38px !important;

	border:
		1px
		solid
		#c5d0db !important;

	border-radius: 8px !important;

	background-color: #ffffff !important;

	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23798b9b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") !important;

	background-repeat: no-repeat !important;
	background-position: 12px center !important;
	background-size: 17px 17px !important;

	color: #17324d !important;

	font-family:
		"IBM Plex Sans",
		Arial,
		sans-serif !important;

	font-size: 12px !important;
	font-style: normal !important;
	font-weight: 400 !important;
	line-height: 1.2 !important;
	letter-spacing: 0 !important;

	text-align: left !important;

	text-decoration: none !important;
	text-transform: none !important;

	outline: none !important;

	box-shadow: none !important;

	appearance: none !important;
	-webkit-appearance: none !important;
}

.everest-parent-popup__email::placeholder {
	color: #7f8f9d !important;

	opacity: 1 !important;

	font-family:
		"IBM Plex Sans",
		Arial,
		sans-serif !important;

	font-size: 12px !important;
	font-weight: 400 !important;

	text-transform: none !important;
}

.everest-parent-popup__email:focus {
	border-color: #137bc4 !important;

	outline: none !important;

	box-shadow:
		0 0 0 2px
		rgba(19, 123, 196, 0.12) !important;
}

/**
 * CTA.
 */
.everest-parent-popup__submit,
.everest-parent-popup__submit:hover,
.everest-parent-popup__submit:focus,
.everest-parent-popup__submit:active {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;

	width: 100% !important;

	height: 39px !important;
	min-height: 39px !important;

	margin: 0 !important;
	padding: 7px 14px !important;

	border: 0 !important;
	border-radius: 8px !important;

	background: #137bc4 !important;
	background-color: #137bc4 !important;
	background-image: none !important;

	color: #ffffff !important;

	font-family:
		"Inter",
		"IBM Plex Sans",
		Arial,
		sans-serif !important;

	font-size: 13px !important;
	font-style: normal !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	letter-spacing: 0 !important;

	text-align: center !important;

	text-decoration: none !important;

	text-shadow: none !important;
	text-transform: none !important;

	outline: none !important;

	box-shadow: none !important;

	filter: none !important;

	cursor: default !important;

	appearance: none !important;
	-webkit-appearance: none !important;
}

/**
 * Status message.
 */
.everest-parent-popup__status {
	display: block;

	width: 268px;
	max-width: 268px;

	min-height: 0;

	margin: 4px 0 0 !important;
	padding: 0 !important;

	color: #53687b !important;

	font-family:
		"IBM Plex Sans",
		Arial,
		sans-serif !important;

	font-size: 10.5px !important;
	font-style: normal !important;
	font-weight: 400 !important;
	line-height: 1.35 !important;

	text-align: left !important;

	text-transform: none !important;
}

.everest-parent-popup__status:empty {
	display: none !important;
}

/**
 * Secondary link.
 */
.everest-parent-popup__more,
.everest-parent-popup__more:visited {
	display: block;

	width: 268px;
	max-width: 268px;

	margin: 18px 0 0 !important;
	padding: 0 !important;

	color: #137bc4 !important;

	font-family:
		"IBM Plex Sans",
		Arial,
		sans-serif !important;

	font-size: 11.5px !important;
	font-style: normal !important;
	font-weight: 500 !important;
	line-height: 1.25 !important;
	letter-spacing: 0 !important;

	text-align: center !important;

	text-decoration: underline !important;
	text-decoration-thickness: 1px !important;
	text-underline-offset: 2px !important;

	text-transform: none !important;

	background: transparent !important;

	border: 0 !important;

	box-shadow: none !important;
}

.everest-parent-popup__more:hover,
.everest-parent-popup__more:focus {
	color: #0f68a7 !important;

	text-decoration: underline !important;
}

/**
 * Close button.
 */
.everest-parent-popup__close,
.everest-parent-popup__close:hover,
.everest-parent-popup__close:focus,
.everest-parent-popup__close:active {
	position: absolute;

	top: 9px;
	right: 9px;

	z-index: 5;

	display: flex !important;
	align-items: center !important;
	justify-content: center !important;

	width: 35px !important;
	height: 35px !important;

	min-width: 35px !important;
	min-height: 35px !important;

	margin: 0 !important;
	padding: 0 0 2px !important;

	border: 0 !important;
	border-radius: 50% !important;

	background:
		rgba(255, 255, 255, 0.94) !important;

	background-image: none !important;

	color: #137bc4 !important;

	font-family: Arial, sans-serif !important;
	font-size: 27px !important;
	font-style: normal !important;
	font-weight: 300 !important;
	line-height: 1 !important;

	text-align: center !important;

	text-decoration: none !important;
	text-transform: none !important;

	outline: none !important;

	box-shadow:
		0 2px 7px
		rgba(0, 0, 0, 0.12) !important;

	cursor: pointer !important;

	appearance: none !important;
	-webkit-appearance: none !important;
}

.everest-parent-popup__close span {
	display: block;

	margin: 0;
	padding: 0;

	line-height: 1 !important;

	transform: translateY(-1px);
}

body.everest-parent-popup-open {
	overflow: hidden;
}

/**
 * ================================================================
 * MOBILE / TABLET
 * ================================================================
 *
 * Dedicated stacked composition:
 *
 * 1. Illustration banner
 * 2. White content card
 *
 * Desktop fade composition is NOT reused.
 */
@media (max-width: 767px) {

	.everest-parent-popup {
		align-items: center;

		padding: 12px;
	}

	.everest-parent-popup__dialog {
		width: min(448px, calc(100vw - 24px));
		height: auto;

		max-height: calc(100vh - 24px);

		overflow-x: hidden;
		overflow-y: auto;

		background: #ffffff;

		border-radius: 16px;

		box-shadow:
			0 20px 48px rgba(0, 0, 0, 0.28),
			0 5px 14px rgba(0, 0, 0, 0.12);
	}

	.everest-parent-popup__content {
		display: flex;
		flex-direction: column;

		width: 100%;
		height: auto;
	}

	/**
	 * Mobile illustration banner.
	 *
	 * Use original illustration — without desktop white fade.
	 */
	.everest-parent-popup__visual {
		position: relative;
		inset: auto;

		order: 1;

		width: 100%;
		height: 190px;
		min-height: 190px;

		overflow: hidden;

		background-color: #dceffc;
		background-image: url("../images/everest-parent-education-hero.png");
		background-repeat: no-repeat;
		background-position: center center;
		background-size: cover;
	}

	/**
	 * Mobile content panel.
	 */
	.everest-parent-popup__copy {
		position: relative;

		order: 2;

		display: flex;
		flex-direction: column;
		align-items: stretch;

		width: 100%;
		height: auto;

		margin: 0;

		padding:
			24px
			24px
			24px
			24px;

		background: #ffffff;
	}

	.everest-parent-popup__logo {
		width: 145px !important;
		max-width: 145px !important;

		margin:
			0
			0
			22px
			0;
	}

	.everest-parent-popup__title {
		width: 100%;
		max-width: none;

		margin-bottom: 14px !important;

		font-size: 24px !important;
		line-height: 1.13 !important;
		letter-spacing: -0.025em !important;
	}

	.everest-parent-popup__text {
		width: 100%;
		max-width: none;

		margin-bottom: 20px !important;

		font-size: 14px !important;
		line-height: 1.48 !important;
	}

	.everest-parent-popup__form {
		width: 100%;
		max-width: none;

		gap: 10px;
	}

	.everest-parent-popup__email {
		height: 46px !important;
		min-height: 46px !important;

		padding-left: 42px !important;

		border-radius: 9px !important;

		background-position: 13px center !important;
		background-size: 18px 18px !important;

		font-size: 13px !important;
	}

	.everest-parent-popup__email::placeholder {
		font-size: 13px !important;
	}

	.everest-parent-popup__submit,
	.everest-parent-popup__submit:hover,
	.everest-parent-popup__submit:focus,
	.everest-parent-popup__submit:active {
		height: 46px !important;
		min-height: 46px !important;

		border-radius: 9px !important;

		font-size: 14px !important;
	}

	.everest-parent-popup__status {
		width: 100%;
		max-width: none;

		font-size: 11px !important;
	}

	.everest-parent-popup__more,
	.everest-parent-popup__more:visited {
		width: 100%;
		max-width: none;

		margin-top: 18px !important;

		font-size: 12px !important;
	}

	/**
	 * Close sits over illustration.
	 */
	.everest-parent-popup__close,
	.everest-parent-popup__close:hover,
	.everest-parent-popup__close:focus,
	.everest-parent-popup__close:active {
		top: 10px;
		right: 10px;

		width: 34px !important;
		height: 34px !important;

		min-width: 34px !important;
		min-height: 34px !important;

		font-size: 25px !important;
	}
}

/**
 * Small mobile.
 */
@media (max-width: 479px) {

	.everest-parent-popup {
		padding: 10px;
	}

	.everest-parent-popup__dialog {
		width: calc(100vw - 20px);

		max-height: calc(100vh - 20px);

		border-radius: 15px;
	}

	.everest-parent-popup__visual {
		height: 170px;
		min-height: 170px;

		background-position: center center;
	}

	.everest-parent-popup__copy {
		padding:
			21px
			22px
			22px
			22px;
	}

	.everest-parent-popup__logo {
		width: 132px !important;
		max-width: 132px !important;

		margin-bottom: 18px;
	}

	.everest-parent-popup__title {
		margin-bottom: 12px !important;

		font-size: 21px !important;
		line-height: 1.15 !important;
	}

	.everest-parent-popup__text {
		margin-bottom: 18px !important;

		font-size: 13px !important;
		line-height: 1.46 !important;
	}

	.everest-parent-popup__email {
		height: 44px !important;
		min-height: 44px !important;
	}

	.everest-parent-popup__submit,
	.everest-parent-popup__submit:hover,
	.everest-parent-popup__submit:focus,
	.everest-parent-popup__submit:active {
		height: 44px !important;
		min-height: 44px !important;

		font-size: 13.5px !important;
	}

	.everest-parent-popup__more,
	.everest-parent-popup__more:visited {
		margin-top: 16px !important;

		font-size: 11.5px !important;
	}
}

/**
 * Short mobile screens.
 *
 * Keeps the popup usable without increasing viewport overflow.
 */
@media (max-width: 479px) and (max-height: 760px) {

	.everest-parent-popup__visual {
		height: 135px;
		min-height: 135px;
	}

	.everest-parent-popup__copy {
		padding-top: 17px;
		padding-bottom: 18px;
	}

	.everest-parent-popup__logo {
		width: 120px !important;
		max-width: 120px !important;

		margin-bottom: 14px;
	}

	.everest-parent-popup__title {
		margin-bottom: 9px !important;

		font-size: 19px !important;
	}

	.everest-parent-popup__text {
		margin-bottom: 14px !important;

		font-size: 12px !important;
		line-height: 1.42 !important;
	}

	.everest-parent-popup__email {
		height: 42px !important;
		min-height: 42px !important;
	}

	.everest-parent-popup__submit,
	.everest-parent-popup__submit:hover,
	.everest-parent-popup__submit:focus,
	.everest-parent-popup__submit:active {
		height: 42px !important;
		min-height: 42px !important;
	}

	.everest-parent-popup__more,
	.everest-parent-popup__more:visited {
		margin-top: 13px !important;
	}
}

/**
 * Reduced motion.
 */
@media (prefers-reduced-motion: reduce) {

	.everest-parent-popup *,
	.everest-parent-popup *::before,
	.everest-parent-popup *::after {
		scroll-behavior: auto !important;
		transition: none !important;
		animation: none !important;
	}
}