/**
 * Lead Magnet landing — Rooya Dairy brand identity.
 * Navy #0F194E · Mint #48FFE6 · Ink #080D27 · IBM Plex Sans Arabic
 */

.hs-lm {
	--hs-lm-navy: #0f194e;
	--hs-lm-navy-deep: #080d27;
	--hs-lm-mint: #48ffe6;
	--hs-lm-mint-soft: #e7f9f7;
	--hs-lm-ink: #080d27;
	--hs-lm-muted: #5b616f;
	--hs-lm-line: #cdcfd5;
	--hs-lm-line-soft: #e3e5eb;
	--hs-lm-surface: #ffffff;
	--hs-lm-bg: #f2f2f2;
	--hs-lm-error: #f44337;
	--hs-lm-success: #0f194e;
	--hs-lm-radius: 8px;

	color: var(--hs-lm-ink);
	font-family: "IBM Plex Sans Arabic", Tahoma, sans-serif;
	background: var(--hs-lm-bg);
	min-height: 70vh;
	isolation: isolate;
}

.hs-lm__stage {
	position: relative;
	padding: clamp(1rem, 2.5vw, 1.75rem) 1.25rem clamp(1.25rem, 3vw, 2rem);
	overflow: hidden;
}

.hs-lm__stage::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: min(55%, 420px);
	background:
		radial-gradient(ellipse 90% 80% at 85% -10%, rgba(72, 255, 230, 0.22), transparent 55%),
		radial-gradient(ellipse 70% 90% at 0% 0%, rgba(15, 25, 78, 0.1), transparent 60%),
		linear-gradient(180deg, #e7f9f7 0%, var(--hs-lm-bg) 100%);
	pointer-events: none;
	z-index: 0;
}

.hs-lm__inner {
	position: relative;
	z-index: 1;
	max-width: 1120px;
	margin: 0 auto;
}

.hs-lm__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(1.25rem, 3vw, 2.5rem);
	align-items: start;
}

/* —— Form column —— */
.hs-lm__form-wrap {
	animation: hs-lm-rise 0.55s ease both;
}

.hs-lm h1.hs-lm__title,
.hs-lm__title {
	margin: 0 0 0.2rem !important;
	padding: 0 !important;
	font-size: clamp(1.45rem, 2.6vw, 1.95rem) !important;
	font-weight: 700;
	line-height: 1.2 !important;
	color: var(--hs-lm-navy);
}

.hs-lm__lead {
	margin: 0 0 1.35rem;
	max-width: 34rem;
	padding: 0;
	font-size: 0.9rem;
	line-height: 1.45;
	font-weight: 400;
	color: var(--hs-lm-muted);
}

.hs-lm__form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.hs-lm__row--2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.85rem;
}

.hs-lm__field {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.hs-lm__field label {
	margin: 0;
	padding: 0;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.25;
	color: var(--hs-lm-navy);
}

.hs-lm__req {
	color: var(--hs-lm-error);
	font-weight: 700;
	margin-inline-start: 0.1rem;
}

.hs-lm__field input {
	appearance: none;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	border: 1.5px solid var(--hs-lm-line-soft);
	background: var(--hs-lm-surface);
	border-radius: var(--hs-lm-radius);
	padding: 0.75rem 0.9rem;
	min-height: 2.85rem;
	font-size: 0.95rem;
	font-family: inherit;
	font-weight: 500;
	line-height: 1.4;
	color: var(--hs-lm-ink);
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.hs-lm__field input.hs-lm__email {
	direction: ltr;
	text-align: right;
}

.hs-lm__field input::placeholder {
	color: #b7baca;
	font-weight: 400;
}

.hs-lm__field input:hover {
	border-color: #b7baca;
}

.hs-lm__field input:focus {
	outline: none;
	border-color: var(--hs-lm-navy);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(72, 255, 230, 0.45);
}

/* Theme intl-tel-input */
.hs-lm__field .iti {
	width: 100%;
	display: block;
}

.hs-lm__field .iti input.hs-lm__phone,
.hs-lm__field .iti input[type="tel"] {
	width: 100%;
	padding-inline-start: 58px;
}

.hs-lm__field .iti__flag-container {
	border-radius: var(--hs-lm-radius) 0 0 var(--hs-lm-radius);
}

.hs-lm__field .iti__selected-flag {
	border-radius: var(--hs-lm-radius) 0 0 var(--hs-lm-radius);
	background: transparent;
}

.hs-lm__field .iti__selected-flag:hover,
.hs-lm__field .iti__selected-flag:focus {
	background: var(--hs-lm-mint-soft);
}

.hs-lm__field .iti__country-list {
	border-radius: var(--hs-lm-radius);
	border: 1px solid var(--hs-lm-line-soft);
	box-shadow: 0 12px 32px rgba(8, 13, 39, 0.12);
	font-family: inherit;
	z-index: 20;
}

.hs-lm__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
}

.hs-lm__error,
.hs-lm__success {
	margin: 0;
	padding: 0.6rem 0.85rem;
	border-radius: var(--hs-lm-radius);
	font-size: 0.88rem;
	font-weight: 500;
	line-height: 1.45;
}

.hs-lm__error {
	background: #fdecea;
	color: var(--hs-lm-error);
	border: 1px solid #f9c6c2;
}

.hs-lm__submit {
	appearance: none;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 0.15rem;
	width: 100%;
	padding: 0.85rem 1.15rem;
	min-height: 3rem;
	font-size: 1rem;
	font-weight: 700;
	font-family: inherit;
	line-height: 1.25;
	text-align: center;
	color: var(--hs-lm-navy-deep);
	background: var(--hs-lm-mint);
	border-radius: var(--hs-lm-radius);
	transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
	box-shadow: 0 4px 0 rgba(15, 25, 78, 0.12);
}

.hs-lm__submit-label {
	display: block;
	width: 100%;
	text-align: center;
}

.hs-lm__submit:hover:not(:disabled) {
	background: #6ffff0;
	transform: translateY(-1px);
	box-shadow: 0 8px 0 rgba(15, 25, 78, 0.14);
}

.hs-lm__submit:active:not(:disabled) {
	transform: translateY(1px);
	box-shadow: 0 3px 0 rgba(15, 25, 78, 0.12);
}

.hs-lm__submit:disabled {
	opacity: 0.7;
	cursor: wait;
	transform: none;
	box-shadow: none;
}

.hs-lm__trust {
	margin: 0.1rem 0 0;
	font-size: 0.75rem;
	line-height: 1.45;
	color: var(--hs-lm-muted);
	text-align: center;
}

/* —— Media column —— */
.hs-lm__media {
	margin: 0;
	position: relative;
	overflow: hidden;
	border-radius: var(--hs-lm-radius);
	background: transparent;
	line-height: 0;
	box-shadow: none;
	animation: hs-lm-rise 0.65s 0.08s ease both;
}

.hs-lm__image {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
}

.hs-lm__media-placeholder {
	width: 100%;
	aspect-ratio: 1 / 1;
	background:
		radial-gradient(circle at 30% 20%, rgba(72, 255, 230, 0.25), transparent 45%),
		linear-gradient(145deg, #0f194e 0%, #1a2a6c 55%, #080d27 100%);
}

@keyframes hs-lm-rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hs-lm__form-wrap,
	.hs-lm__media {
		animation: none;
		transition: none;
	}
}

@media (max-width: 900px) {
	.hs-lm__grid {
		grid-template-columns: 1fr;
		gap: 1.75rem;
	}

	.hs-lm__media {
		order: -1;
	}

	.hs-lm__title {
		font-size: clamp(1.65rem, 6vw, 2.1rem);
	}

	.hs-lm__row--2 {
		grid-template-columns: 1fr;
	}
}

/* Keep theme chrome from overpowering this landing surface */
body.single-hs_lead_magnet .hs-lm + *,
body.single-hs_lead_magnet .brxe-post-title {
	/* no-op guard; structure handled in template */
}

/* —— Success modal —— */
.hs-lm__modal[hidden] {
	display: none !important;
}

.hs-lm__modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
}

.hs-lm__modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 13, 39, 0.55);
}

.hs-lm__modal-dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 420px);
	padding: 1.75rem 1.5rem 1.5rem;
	background: #fff;
	border-radius: var(--hs-lm-radius);
	box-shadow: 0 24px 48px rgba(8, 13, 39, 0.25);
	text-align: center;
}

.hs-lm__modal-close {
	position: absolute;
	top: 0.55rem;
	inset-inline-start: 0.65rem;
	appearance: none;
	border: none;
	background: transparent;
	color: var(--hs-lm-navy);
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	padding: 0.2rem 0.45rem;
}

.hs-lm__modal-title {
	margin: 0 0 0.65rem;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--hs-lm-navy);
}

.hs-lm__modal-text {
	margin: 0 0 1.25rem;
	font-size: 0.98rem;
	line-height: 1.6;
	color: var(--hs-lm-muted);
}

.hs-lm__modal-btn {
	appearance: none;
	border: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0.85rem 1.15rem;
	font-size: 1rem;
	font-weight: 700;
	font-family: inherit;
	color: var(--hs-lm-navy-deep);
	background: var(--hs-lm-mint);
	border-radius: var(--hs-lm-radius);
}

.hs-lm__modal-btn:hover {
	background: #6ffff0;
}

body.hs-lm-modal-open {
	overflow: hidden;
}
