/**
 * 360 Exit Intent — popup styles.
 *
 * Everything is scoped under .raxi-root and every property the themes might
 * fight over is restated, so the popup looks the same whichever of the two
 * 360 themes is active.
 */

.raxi-root {
	--raxi-ink: #070b1c;
	--raxi-ink-2: #101a3f;
	--raxi-ink-3: #16204a;
	--raxi-gold: #e0aa3e;
	--raxi-gold-soft: #f3d99b;
	--raxi-text: #eceaf6;
	--raxi-muted: #9aa3c6;
	--raxi-line: rgba(224, 170, 62, 0.24);

	--raxi-serif-en: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
	--raxi-sans-en: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--raxi-serif-bn: "Noto Serif Bengali", "Hind Siliguri", "SolaimanLipi", serif;
	--raxi-sans-bn: "Hind Siliguri", "Noto Sans Bengali", "SolaimanLipi", sans-serif;

	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
	font-family: var(--raxi-sans-en);
	-webkit-font-smoothing: antialiased;
}

.raxi-root * {
	box-sizing: border-box;
}

.raxi-root[data-open="true"] {
	display: flex;
}

.raxi-root[lang="bn"] {
	font-family: var(--raxi-sans-bn);
}

/* Backdrop ------------------------------------------------------------- */

.raxi-veil {
	position: absolute;
	inset: 0;
	background: rgba(4, 6, 18, 0.82);
	-webkit-backdrop-filter: blur(6px) saturate(120%);
	backdrop-filter: blur(6px) saturate(120%);
	opacity: 0;
	transition: opacity 320ms ease;
	border: 0;
	padding: 0;
	margin: 0;
	cursor: pointer;
}

.raxi-root[data-visible="true"] .raxi-veil {
	opacity: 1;
}

/* Card ----------------------------------------------------------------- */

.raxi-card {
	position: relative;
	width: 100%;
	max-width: 620px;
	max-height: calc(100vh - 48px);
	overflow: hidden auto;
	overscroll-behavior: contain;
	border-radius: 20px;
	border: 1px solid var(--raxi-line);
	color: var(--raxi-text);
	background-color: var(--raxi-ink);
	background-image:
		radial-gradient(1px 1px at 18% 22%, rgba(255, 255, 255, 0.75), transparent 60%),
		radial-gradient(1px 1px at 62% 12%, rgba(255, 255, 255, 0.5), transparent 60%),
		radial-gradient(1.4px 1.4px at 84% 44%, rgba(243, 217, 155, 0.65), transparent 60%),
		radial-gradient(1px 1px at 33% 68%, rgba(255, 255, 255, 0.42), transparent 60%),
		radial-gradient(1px 1px at 76% 82%, rgba(255, 255, 255, 0.38), transparent 60%),
		radial-gradient(1.2px 1.2px at 9% 88%, rgba(243, 217, 155, 0.5), transparent 60%),
		radial-gradient(120% 90% at 88% -10%, rgba(224, 170, 62, 0.16), transparent 58%),
		linear-gradient(168deg, var(--raxi-ink-2) 0%, var(--raxi-ink) 62%);
	box-shadow:
		0 40px 90px rgba(0, 0, 0, 0.6),
		0 0 0 1px rgba(255, 255, 255, 0.03) inset;
	opacity: 0;
	transform: translateY(18px) scale(0.985);
	transition: opacity 380ms ease, transform 420ms cubic-bezier(0.16, 0.84, 0.32, 1);
}

.raxi-root[data-visible="true"] .raxi-card {
	opacity: 1;
	transform: none;
}

.raxi-body {
	position: relative;
	z-index: 2;
	padding: 42px 44px 34px;
}

/* Zodiac ring — the one bold element, cropped by the corner ------------- */

.raxi-wheel {
	position: absolute;
	top: -104px;
	right: -104px;
	width: 300px;
	height: 300px;
	z-index: 1;
	opacity: 0.5;
	pointer-events: none;
	animation: raxi-spin 220s linear infinite;
}

.raxi-wheel .raxi-ring {
	fill: none;
	stroke: var(--raxi-gold);
	stroke-width: 0.7;
	opacity: 0.55;
}

.raxi-wheel .raxi-spoke {
	stroke: var(--raxi-gold);
	stroke-width: 0.4;
	opacity: 0.3;
}

.raxi-wheel .raxi-glyph {
	fill: var(--raxi-gold-soft);
	font-size: 9px;
	opacity: 0.85;
	font-family: serif;
}

@keyframes raxi-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Close ---------------------------------------------------------------- */

.raxi-close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 4;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(7, 11, 28, 0.55);
	color: var(--raxi-muted);
	font-size: 19px;
	line-height: 1;
	cursor: pointer;
	transition: color 160ms ease, border-color 160ms ease;
}

.raxi-close:hover,
.raxi-close:focus-visible {
	color: var(--raxi-gold-soft);
	border-color: var(--raxi-line);
}

/* Type ----------------------------------------------------------------- */

.raxi-eyebrow {
	margin: 0 0 18px;
	color: var(--raxi-gold);
	font-family: var(--raxi-sans-en);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	line-height: 1.6;
	max-width: 74%;
}

.raxi-root[lang="bn"] .raxi-eyebrow {
	font-family: var(--raxi-sans-bn);
	font-size: 12.5px;
	letter-spacing: 0.06em;
	text-transform: none;
	font-weight: 500;
}

.raxi-headline {
	margin: 0 0 14px;
	font-family: var(--raxi-serif-en);
	font-weight: 500;
	font-size: clamp(27px, 4.2vw, 38px);
	line-height: 1.18;
	letter-spacing: -0.005em;
	color: #fff;
	max-width: 15ch;
}

.raxi-root[lang="bn"] .raxi-headline {
	font-family: var(--raxi-serif-bn);
	font-size: clamp(24px, 3.9vw, 33px);
	line-height: 1.45;
	letter-spacing: 0;
	max-width: 18ch;
}

.raxi-sub {
	margin: 0 0 26px;
	font-size: 15.5px;
	line-height: 1.7;
	color: var(--raxi-muted);
	max-width: 46ch;
}

.raxi-root[lang="bn"] .raxi-sub {
	font-size: 16px;
	line-height: 1.95;
	max-width: 40ch;
}

/* Facts ---------------------------------------------------------------- */

.raxi-points {
	list-style: none;
	margin: 0 0 30px;
	padding: 20px 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	display: grid;
	gap: 11px;
}

.raxi-points li {
	position: relative;
	margin: 0;
	padding-left: 24px;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--raxi-text);
	list-style: none;
}

.raxi-points li::marker {
	content: "";
}

.raxi-points li::before {
	content: "✦";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--raxi-gold);
	font-size: 11px;
	line-height: 1.9;
}

.raxi-root[lang="bn"] .raxi-points li {
	font-size: 15px;
	line-height: 1.85;
}

.raxi-root[lang="bn"] .raxi-points li::before {
	line-height: 2.1;
}

/* Actions -------------------------------------------------------------- */

.raxi-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 20px;
}

.raxi-call {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 26px;
	border-radius: 999px;
	border: 0;
	text-decoration: none;
	font-family: inherit;
	font-size: 15.5px;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: #16110a;
	background: linear-gradient(135deg, var(--raxi-gold-soft), var(--raxi-gold) 62%);
	box-shadow: 0 12px 30px rgba(224, 170, 62, 0.24);
	cursor: pointer;
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.raxi-call:hover,
.raxi-call:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 16px 38px rgba(224, 170, 62, 0.34);
	color: #16110a;
}

.raxi-call svg {
	width: 17px;
	height: 17px;
	flex: none;
	fill: currentColor;
}

.raxi-book {
	color: var(--raxi-gold-soft);
	font-size: 14.5px;
	text-decoration: none;
	border-bottom: 1px solid var(--raxi-line);
	padding-bottom: 2px;
	transition: border-color 160ms ease, color 160ms ease;
}

.raxi-book:hover,
.raxi-book:focus-visible {
	color: #fff;
	border-color: var(--raxi-gold);
}

/* Callback form -------------------------------------------------------- */

.raxi-toggle {
	display: inline-block;
	margin-top: 22px;
	background: none;
	border: 0;
	padding: 0;
	font-family: inherit;
	font-size: 14px;
	color: var(--raxi-muted);
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-color: rgba(154, 163, 198, 0.4);
	cursor: pointer;
}

.raxi-toggle:hover,
.raxi-toggle:focus-visible {
	color: var(--raxi-gold-soft);
}

.raxi-form {
	display: none;
	margin-top: 22px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	gap: 12px;
	grid-template-columns: 1fr 1fr;
}

.raxi-form[data-open="true"] {
	display: grid;
}

.raxi-form .raxi-wide {
	grid-column: 1 / -1;
}

.raxi-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 12.5px;
	color: var(--raxi-muted);
}

.raxi-form input,
.raxi-form textarea {
	width: 100%;
	padding: 12px 14px;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.04);
	color: var(--raxi-text);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
}

.raxi-form textarea {
	resize: vertical;
	min-height: 74px;
}

.raxi-form input:focus,
.raxi-form textarea:focus {
	outline: 2px solid var(--raxi-gold);
	outline-offset: 1px;
	border-color: transparent;
}

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

.raxi-submit {
	justify-self: start;
	padding: 13px 24px;
	border-radius: 999px;
	border: 1px solid var(--raxi-gold);
	background: transparent;
	color: var(--raxi-gold-soft);
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 600;
	cursor: pointer;
	transition: background 160ms ease, color 160ms ease;
}

.raxi-submit:hover,
.raxi-submit:focus-visible {
	background: var(--raxi-gold);
	color: #16110a;
}

.raxi-submit[disabled] {
	opacity: 0.55;
	cursor: default;
}

.raxi-note {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 14px;
	line-height: 1.65;
	color: var(--raxi-gold-soft);
}

.raxi-note[data-state="error"] {
	color: #f0a8a8;
}

/* Footer --------------------------------------------------------------- */

.raxi-foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 10px 18px;
	margin-top: 28px;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.raxi-footnote {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.6;
	color: rgba(154, 163, 198, 0.8);
}

.raxi-dismiss {
	background: none;
	border: 0;
	padding: 0;
	font-family: inherit;
	font-size: 12.5px;
	color: rgba(154, 163, 198, 0.8);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
	white-space: nowrap;
}

.raxi-dismiss:hover,
.raxi-dismiss:focus-visible {
	color: var(--raxi-text);
}

/* Focus ---------------------------------------------------------------- */

.raxi-root :focus-visible {
	outline: 2px solid var(--raxi-gold);
	outline-offset: 3px;
	border-radius: 4px;
}

/* Phones — a sheet rather than a floating card ------------------------- */

@media (max-width: 640px) {
	.raxi-root {
		padding: 0;
		align-items: flex-end;
	}

	.raxi-card {
		max-width: none;
		max-height: 92vh;
		border-radius: 22px 22px 0 0;
		border-bottom: 0;
		transform: translateY(40px);
	}

	.raxi-body {
		padding: 34px 24px calc(26px + env(safe-area-inset-bottom, 0px));
	}

	.raxi-wheel {
		top: -122px;
		right: -122px;
		width: 250px;
		height: 250px;
		opacity: 0.38;
	}

	.raxi-eyebrow {
		max-width: 68%;
		font-size: 10.5px;
		letter-spacing: 0.18em;
	}

	.raxi-headline,
	.raxi-sub {
		max-width: none;
	}

	.raxi-points {
		margin-bottom: 24px;
	}

	.raxi-actions {
		gap: 12px;
	}

	.raxi-call {
		width: 100%;
		justify-content: center;
		padding: 16px 22px;
	}

	.raxi-form {
		grid-template-columns: 1fr;
	}

	.raxi-submit {
		justify-self: stretch;
		text-align: center;
	}
}

@media (max-height: 560px) {
	.raxi-body {
		padding-top: 28px;
	}

	.raxi-points {
		display: none;
	}
}

/* Motion --------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.raxi-veil,
	.raxi-card {
		transition: none;
	}

	.raxi-card {
		transform: none;
	}

	.raxi-wheel {
		animation: none;
	}

	.raxi-call:hover,
	.raxi-call:focus-visible {
		transform: none;
	}
}

/* Stop the page behind from scrolling while the popup is open ----------- */

html.raxi-locked,
body.raxi-locked {
	overflow: hidden !important;
}
