/* ==========================================================================
   Lead Popup — nirzvi
   ========================================================================== */

.nzm-lead-popup {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	font-family: "Ploni DL 1.1 AAA", system-ui, sans-serif;
}

.nzm-lead-popup.is-open {
	display: block;
}

.nzm-lead-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.nzm-lead-popup__wrapper {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #ffffff;
	width: calc(100% - 32px);
	max-width: 400px;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
	display: flex;
	flex-direction: column;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
}

.nzm-lead-popup__close {
	position: absolute;
	top: 15px;
	left: 15px;
	z-index: 10;
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid #ffffff;
	border-radius: 50%;
	width: 36px;
	height: 36px;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	color: #ffffff;
	padding: 0;
	transition: background 0.2s ease;
}

.nzm-lead-popup__close:hover,
.nzm-lead-popup__close:focus-visible {
	background: rgba(255, 255, 255, 0.4);
	outline: none;
}

.nzm-lead-popup__image {
	width: 100%;
	height: 300px;
	background-color: #2a2a2a;
	background-size: cover;
	background-position: center;
	position: relative;
}

.nzm-lead-popup__image-overlay {
	display: none;
}

.nzm-lead-popup__text {
	text-align: center;
	color: #333333;
	padding: 30px 20px 0;
}

.nzm-lead-popup__title {
	font-family: "Ploni DL 1.1 AAA", system-ui, sans-serif;
	font-size: 28px;
	font-weight: 400;
	line-height: 1.15;
	margin: 0 0 10px;
}

.nzm-lead-popup__description {
	font-family: "Ploni DL 1.1 AAA", system-ui, sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	margin: 0;
}

.nzm-lead-popup__content {
	padding: 20px;
}

.nzm-lead-popup__form {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.nzm-lead-popup__input {
	width: 100%;
	background-color: #ECECEC;
	border: none;
	border-radius: 6px;
	padding: 16px 20px;
	font-size: 16px;
	color: #333333;
	font-family: "Ploni DL 1.1 AAA", system-ui, sans-serif;
	outline: none;
	box-sizing: border-box;
	text-align: right;
	direction: rtl;
}

.nzm-lead-popup__input::placeholder {
	color: #4A4A4A;
}

.nzm-lead-popup__input:focus {
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15);
}

.nzm-lead-popup__input.is-error {
	box-shadow: 0 0 0 2px #c0392b;
}

.nzm-lead-popup__checkbox {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 12px;
	color: #333333;
	line-height: 1.4;
	margin: 5px 0;
	cursor: pointer;
	font-family: "Ploni DL 1.1 AAA", system-ui, sans-serif;
}

.nzm-lead-popup__checkbox input[type="checkbox"] {
	margin-top: 2px;
	accent-color: #000000;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.nzm-lead-popup__submit {
	background-color: #000000;
	color: #ffffff;
	border: none;
	border-radius: 60px;
	padding: 16px 20px;
	font-size: 18px;
	font-weight: 500;
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	font-family: "Ploni DL 1.1 AAA", system-ui, sans-serif;
	transition: background-color 0.2s;
}

.nzm-lead-popup__submit:hover,
.nzm-lead-popup__submit:focus-visible {
	background-color: #333;
	outline: none;
}

.nzm-lead-popup__submit[disabled] {
	opacity: 0.6;
	cursor: progress;
}

.nzm-lead-popup__submit svg {
	width: 20px;
	height: 20px;
}

.nzm-lead-popup__feedback {
	min-height: 1em;
	font-size: 14px;
	text-align: center;
	color: #c0392b;
}

.nzm-lead-popup__feedback.is-success {
	color: #1e7c3a;
	font-size: 16px;
	font-weight: 500;
}

/* Body lock when open */
body.nzm-lead-popup-open {
	overflow: hidden;
}

/* =========================================
   Desktop layout (≥ 768px)
   ========================================= */
@media (min-width: 768px) {
	.nzm-lead-popup__wrapper {
		max-width: 850px;
		width: calc(100% - 48px);
		height: 600px;
		max-height: calc(100vh - 32px);
		overflow: hidden;
		justify-content: flex-end;
	}

	.nzm-lead-popup__image {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 480px;
	}

	.nzm-lead-popup__image-overlay {
		display: block;
		position: absolute;
		inset: 0;
		background: linear-gradient(270deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 70%);
	}

	.nzm-lead-popup__text {
		position: absolute;
		top: 100px;
		right: 50px;
		text-align: right;
		color: #ffffff;
		max-width: 380px;
		z-index: 2;
		padding: 0;
	}

	.nzm-lead-popup__title {
		font-size: 46px;
		font-weight: 300;
		text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
		margin-bottom: 20px;
		color: #ffffff;
	}

	.nzm-lead-popup__description {
		font-size: 20px;
		text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
		color: #ffffff;
	}

	.nzm-lead-popup__content {
		background: #ffffff;
		z-index: 2;
		padding: 25px 50px;
		height: 160px;
		display: flex;
		align-items: center;
		justify-content: center;
		position: relative;
	}

	.nzm-lead-popup__form {
		display: grid;
		grid-template-columns: 1fr 1fr 180px;
		grid-template-rows: auto auto;
		column-gap: 15px;
		row-gap: 8px;
		width: 100%;
	}

	.nzm-lead-popup__input--name {
		grid-column: 1;
		grid-row: 1;
	}

	.nzm-lead-popup__input--phone {
		grid-column: 2;
		grid-row: 1;
	}

	.nzm-lead-popup__submit {
		grid-column: 3;
		grid-row: 1;
		padding: 12px 20px;
		height: 100%;
	}

	.nzm-lead-popup__checkbox {
		grid-column: 1 / span 2;
		grid-row: 2;
		margin: 0;
	}

	.nzm-lead-popup__feedback {
		grid-column: 1 / -1;
		grid-row: 3;
		margin-top: 4px;
	}
}
