/* =====================================================================
 * AAFE Modal Popup
 * ===================================================================== */

/* aafe:isolated */
/* =====================================================================
 * Isolation from the theme & Elementor Site Settings (Theme Style).
 * The widget shows only its own design by default; global colors and
 * fonts apply when picked from a control's Globals picker.
 * Rules below are scoped with ".elementor" so they outrank Theme Style
 * selectors (0,1,1 / 0,2,1 on :hover) while Elementor control CSS
 * ({{WRAPPER}} = 0,4,0) still wins.
 * ===================================================================== */
.elementor :is(.elementor-widget-aafe_modal_popup, .aafe-modal) {
	font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: #334155;
}

html body :is(.elementor-widget-aafe_modal_popup, .aafe-modal) :where(h1, h2, h3, h4, h5, h6, p, a, button, input, select, textarea, label, legend, th, td, caption, li, blockquote, small):where(:not(:is(.elementor-widget-aafe_modal_popup, .aafe-modal) .elementor-element *)) {
	font-family: inherit;
	font-style: inherit;
	letter-spacing: inherit;
	word-spacing: inherit;
	text-transform: inherit;
}

html body :is(.elementor-widget-aafe_modal_popup, .aafe-modal) :where(h1, h2, h3, h4, h5, h6):where(:not(:is(.elementor-widget-aafe_modal_popup, .aafe-modal) .elementor-element *)) {
	color: inherit;
	font-weight: 500;
	line-height: 1.2;
}
html body :is(.elementor-widget-aafe_modal_popup, .aafe-modal) :where(h1):where(:not(:is(.elementor-widget-aafe_modal_popup, .aafe-modal) .elementor-element *)) { font-size: 2.5rem; }
html body :is(.elementor-widget-aafe_modal_popup, .aafe-modal) :where(h2):where(:not(:is(.elementor-widget-aafe_modal_popup, .aafe-modal) .elementor-element *)) { font-size: 2rem; }
html body :is(.elementor-widget-aafe_modal_popup, .aafe-modal) :where(h3):where(:not(:is(.elementor-widget-aafe_modal_popup, .aafe-modal) .elementor-element *)) { font-size: 1.75rem; }
html body :is(.elementor-widget-aafe_modal_popup, .aafe-modal) :where(h4):where(:not(:is(.elementor-widget-aafe_modal_popup, .aafe-modal) .elementor-element *)) { font-size: 1.5rem; }
html body :is(.elementor-widget-aafe_modal_popup, .aafe-modal) :where(h5):where(:not(:is(.elementor-widget-aafe_modal_popup, .aafe-modal) .elementor-element *)) { font-size: 1.25rem; }
html body :is(.elementor-widget-aafe_modal_popup, .aafe-modal) :where(h6):where(:not(:is(.elementor-widget-aafe_modal_popup, .aafe-modal) .elementor-element *)) { font-size: 1rem; }

html body :is(.elementor-widget-aafe_modal_popup, .aafe-modal) :where(label, legend):where(:not(:is(.elementor-widget-aafe_modal_popup, .aafe-modal) .elementor-element *)) {
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

html body :is(.elementor-widget-aafe_modal_popup, .aafe-modal) :where(a):where(:not(:is(.elementor-widget-aafe_modal_popup, .aafe-modal) .elementor-element *)):where(:not(.aafe-modal__body *)) {
	color: inherit;
	text-decoration: none;
}

html body :is(.elementor-widget-aafe_modal_popup, .aafe-modal) :where(button, [type="button"], [type="submit"], [type="reset"]):where(:not(:is(.elementor-widget-aafe_modal_popup, .aafe-modal) .elementor-element *)) {
	background-color: transparent;
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	border-radius: 0;
	box-shadow: none;
	text-shadow: none;
}

html body :is(.elementor-widget-aafe_modal_popup, .aafe-modal) :where(img):where(:not(:is(.elementor-widget-aafe_modal_popup, .aafe-modal) .elementor-element *)) {
	border-style: none;
	border-radius: 0;
	box-shadow: none;
	opacity: 1;
	filter: none;
}

/* Theme Style :hover / :focus states (0,2,1). Kept above the widget rules
 * so the widget's own state rules still win. */
html body :is(.elementor-widget-aafe_modal_popup, .aafe-modal) :where(button, [type="button"], [type="submit"], [type="reset"]):is(:hover, :focus, :focus-visible, :active):where(:not(:is(.elementor-widget-aafe_modal_popup, .aafe-modal) .elementor-element *)) {
	background-color: transparent;
	color: inherit;
	box-shadow: none;
	text-shadow: none;
}

html body :is(.elementor-widget-aafe_modal_popup, .aafe-modal) :where(a):is(:hover, :focus, :focus-visible, :active):where(:not(:is(.elementor-widget-aafe_modal_popup, .aafe-modal) .elementor-element *)):where(:not(.aafe-modal__body *)) {
	color: inherit;
}

html body :is(.elementor-widget-aafe_modal_popup, .aafe-modal) :where(img):is(:hover, :focus):where(:not(:is(.elementor-widget-aafe_modal_popup, .aafe-modal) .elementor-element *)) {
	box-shadow: none;
	opacity: 1;
	filter: none;
}
/* aafe:isolated:end */

/* ---------- Trigger ---------- */
.elementor .aafe-modal-trigger-wrap {
	display: block;
}

.elementor .aafe-modal-trigger,
html body .elementor .aafe-modal-trigger:where(:hover, :focus, :focus-visible, :active) {
	-webkit-appearance: none;
	appearance: none;
	font: inherit;
	cursor: pointer;
	text-decoration: none;
	transition: color .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.elementor .aafe-modal-trigger--button,
html body .elementor .aafe-modal-trigger--button:where(:hover, :focus, :focus-visible, :active) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 28px;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	background-color: #6366f1;
	border: 0 solid transparent;
	border-radius: 8px;
	box-shadow: 0 8px 20px -8px rgba(99, 102, 241, .6);
	line-height: 1.2;
}

.elementor .aafe-modal-trigger--button:hover {
	color: #fff;
	background-color: #4f46e5;
}

.elementor .aafe-modal-trigger--icon,
html body .elementor .aafe-modal-trigger--icon:where(:hover, :focus, :focus-visible, :active) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
	font-size: 22px;
	color: #0f172a;
	background: transparent;
	border: 0 solid transparent;
	line-height: 1;
}

.elementor .aafe-modal-trigger--image,
html body .elementor .aafe-modal-trigger--image:where(:hover, :focus, :focus-visible, :active) {
	display: inline-block;
	padding: 0;
	background: none;
	border: 0;
	line-height: 0;
	overflow: hidden;
}

.elementor .aafe-modal-trigger--image img {
	display: block;
	max-width: 100%;
	height: auto;
}

.elementor .aafe-modal-trigger--text,
html body .elementor .aafe-modal-trigger--text:where(:hover, :focus, :focus-visible, :active) {
	font-size: 15px;
	font-weight: 600;
	color: #6366f1;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.elementor .aafe-modal-trigger__icon {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.elementor .aafe-modal-trigger__icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.elementor .aafe-modal-trigger-lift-yes .aafe-modal-trigger--button:hover,
.elementor .aafe-modal-trigger-lift-yes .aafe-modal-trigger--image:hover {
	transform: translateY(-2px);
}

.elementor .aafe-modal-trigger:focus-visible {
	outline: 2px solid #6366f1;
	outline-offset: 3px;
}

.elementor .aafe-modal-editor-badge,
html body .elementor .aafe-modal-editor-badge:where(:hover, :focus, :focus-visible, :active) {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px dashed #94a3b8;
	border-radius: 6px;
	font: inherit;
	font-size: 12px;
	line-height: 1.4;
	color: #64748b;
	background: #f8fafc;
	cursor: pointer;
}

.elementor .aafe-modal-editor-badge:hover {
	border-color: #6366f1;
	color: #6366f1;
}

.elementor .aafe-modal-trigger-full-yes .aafe-modal-trigger--button {
	display: flex;
	width: 100%;
}

/* ---------- Trigger attention animations ---------- */
.elementor .aafe-attn-pulse .aafe-modal-trigger { animation: aafe-attn-pulse 2s ease-in-out infinite; }
.elementor .aafe-attn-shake .aafe-modal-trigger { animation: aafe-attn-shake 3s ease-in-out infinite; }
.elementor .aafe-attn-bounce .aafe-modal-trigger { animation: aafe-attn-bounce 2.4s ease infinite; }
.elementor .aafe-attn-wobble .aafe-modal-trigger { animation: aafe-attn-wobble 3s ease-in-out infinite; }
.elementor .aafe-attn-glow .aafe-modal-trigger { animation: aafe-attn-glow 2s ease-out infinite; }

.elementor .aafe-modal-trigger.is-active,
.elementor .aafe-modal-trigger:hover {
	animation-play-state: paused;
}

@keyframes aafe-attn-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.06); }
}

@keyframes aafe-attn-shake {
	0%, 80%, 100% { transform: translateX(0); }
	84%, 92% { transform: translateX(-5px); }
	88%, 96% { transform: translateX(5px); }
}

@keyframes aafe-attn-bounce {
	0%, 60%, 100% { transform: translateY(0); }
	70% { transform: translateY(-10px); }
	80% { transform: translateY(0); }
	90% { transform: translateY(-4px); }
}

@keyframes aafe-attn-wobble {
	0%, 75%, 100% { transform: rotate(0); }
	80% { transform: rotate(-6deg); }
	85% { transform: rotate(5deg); }
	90% { transform: rotate(-3deg); }
	95% { transform: rotate(2deg); }
}

@keyframes aafe-attn-glow {
	0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, .55); }
	100% { box-shadow: 0 0 0 16px rgba(99, 102, 241, 0); }
}

/* ---------- Popup shell ---------- */
.elementor .aafe-modal {
	--aafe-modal-dur: 350ms;
	--aafe-modal-ease: cubic-bezier(0.16, 1, 0.3, 1);
	--aafe-modal-gap: 20px;
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--aafe-modal-gap);
	box-sizing: border-box;
	visibility: hidden;
	pointer-events: none;
	/* While the page scroll is locked the scrollbar gutter stays reserved; stretch over it
	   so the backdrop covers the full window (no uncovered strip on the right). */
	right: calc(-1 * var(--aafe-scrollbar, 0px));
	/* Keep visible until the exit animation has finished. */
	transition: visibility 0s linear var(--aafe-modal-dur);
}

.elementor .aafe-modal.is-open {
	visibility: visible;
	pointer-events: auto;
	transition-delay: 0s;
}

.elementor .aafe-modal *,
.elementor .aafe-modal *::before,
.elementor .aafe-modal *::after {
	box-sizing: border-box;
}

.elementor .aafe-modal__overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(15, 23, 42, .6);
	opacity: 0;
	transition: opacity var(--aafe-modal-dur) ease;
}

.elementor .aafe-modal.is-open .aafe-modal__overlay {
	opacity: 1;
}

.elementor .aafe-modal__box {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 640px;
	background-color: #fff;
	max-height: calc(100vh - (var(--aafe-modal-gap) * 2));
	max-height: calc(100dvh - (var(--aafe-modal-gap) * 2));
	border-radius: 16px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
	opacity: 0;
	transform: scale(0.92);
	transition: transform var(--aafe-modal-dur) var(--aafe-modal-ease), opacity var(--aafe-modal-dur) ease, filter var(--aafe-modal-dur) ease;
	will-change: transform, opacity;
	backface-visibility: hidden;
}

.elementor .aafe-modal--fixed-height .aafe-modal__box {
	max-height: none;
}

.elementor .aafe-modal.is-open .aafe-modal__box {
	opacity: 1;
	transform: none;
	filter: none;
}

.elementor .aafe-modal__scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	border-radius: inherit;
	scrollbar-width: thin;
	scrollbar-color: var(--aafe-modal-scrollbar) transparent;
}

.elementor .aafe-modal__content {
	padding: 0;
}

.elementor .aafe-modal__content--hidden {
	display: none;
}

.elementor .aafe-modal__legacy {
	padding: 32px;
}

/* ---------- Animations (initial / closed state) ---------- */
.elementor .aafe-modal--anim-fade .aafe-modal__box { transform: none; }
.elementor .aafe-modal--anim-zoom .aafe-modal__box { transform: scale(0.9); }
.elementor .aafe-modal--anim-zoom_out .aafe-modal__box { transform: scale(1.12); }
.elementor .aafe-modal--anim-slide_up .aafe-modal__box { transform: translateY(60px); }
.elementor .aafe-modal--anim-slide_down .aafe-modal__box { transform: translateY(-60px); }
.elementor .aafe-modal--anim-slide_left .aafe-modal__box { transform: translateX(80px); }
.elementor .aafe-modal--anim-slide_right .aafe-modal__box { transform: translateX(-80px); }
.elementor .aafe-modal--anim-flip .aafe-modal__box { transform: perspective(1000px) rotateX(-25deg) translateY(20px); transform-origin: 50% 0; }
.elementor .aafe-modal--anim-rotate .aafe-modal__box { transform: rotate(-6deg) scale(0.9); }
.elementor .aafe-modal--anim-blur .aafe-modal__box { transform: scale(1.04); filter: blur(14px); }
.elementor .aafe-modal--anim-drop .aafe-modal__box { transform: translateY(-40vh); }
.elementor .aafe-modal--anim-rise .aafe-modal__box { transform: translateY(40vh); }
.elementor .aafe-modal--anim-swing .aafe-modal__box { transform: perspective(1200px) rotateY(-35deg); transform-origin: 0 50%; }
.elementor .aafe-modal--anim-newspaper .aafe-modal__box { transform: rotate(-540deg) scale(0); }
.elementor .aafe-modal--anim-skew .aafe-modal__box { transform: skewY(6deg) translateY(40px); }
.elementor .aafe-modal--no-trans,
.elementor .aafe-modal--no-trans .aafe-modal__box,
.elementor .aafe-modal--no-trans .aafe-modal__overlay { transition: none !important; }
.elementor .aafe-modal--anim-none,
.elementor .aafe-modal--anim-none .aafe-modal__box,
.elementor .aafe-modal--anim-none .aafe-modal__overlay { transition: none; transform: none; }

/* ---------- Full screen ---------- */
.elementor .aafe-modal--fullscreen {
	padding: 0;
}

.elementor .aafe-modal--fullscreen .aafe-modal__box {
	width: 100% !important;
	max-width: none !important;
	height: 100%;
	max-height: none;
	border-radius: 0;
}

@media (max-width: 767px) {
	.elementor .aafe-modal--fullscreen-mobile {
		padding: 0;
	}

	.elementor .aafe-modal--fullscreen-mobile .aafe-modal__box {
		width: 100% !important;
		max-width: none !important;
		height: 100%;
		max-height: none;
		border-radius: 0 !important;
	}
}

/* ---------- Close button ---------- */
.elementor .aafe-modal__close,
html body .elementor .aafe-modal__close:where(:hover, :focus, :focus-visible, :active) {
	--aafe-close-x: 14px;
	--aafe-close-y: 14px;
	position: absolute;
	top: var(--aafe-close-y);
	right: var(--aafe-close-x);
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	margin: 0;
	border: 0 solid transparent;
	border-radius: 50%;
	background-color: #f1f5f9;
	color: #475569;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: color .2s ease, background-color .2s ease, transform .25s ease;
}

.elementor .aafe-modal__close svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.elementor .aafe-modal__close:hover {
	background-color: #fee2e2;
	color: #dc2626;
}

.elementor .aafe-modal--close-rotate .aafe-modal__close:hover {
	transform: rotate(90deg);
}

.elementor .aafe-modal__close:focus-visible {
	outline: 2px solid #6366f1;
	outline-offset: 2px;
}

.elementor .aafe-modal--close-inside-left .aafe-modal__close {
	right: auto;
	left: var(--aafe-close-x);
}

.elementor .aafe-modal--close-outside-right .aafe-modal__close {
	--aafe-close-x: -14px;
	--aafe-close-y: -14px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}

.elementor .aafe-modal--close-outside-left .aafe-modal__close {
	--aafe-close-x: -14px;
	--aafe-close-y: -14px;
	right: auto;
	left: var(--aafe-close-x);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}

.elementor .aafe-modal--close-screen-right > .aafe-modal__close {
	--aafe-close-x: 20px;
	--aafe-close-y: 20px;
	position: fixed;
	background-color: rgba(255, 255, 255, .15);
	opacity: 0;
	transition: opacity var(--aafe-modal-dur) ease, background-color .2s ease, transform .25s ease;
}

.elementor .aafe-modal--close-screen-right.is-open > .aafe-modal__close {
	opacity: 1;
}

/* Close label */
.elementor .aafe-modal__close--has-text {
	width: auto;
	gap: 6px;
	padding: 0 14px;
	border-radius: 999px;
}

.elementor .aafe-modal__close-text {
	line-height: 1;
	white-space: nowrap;
}

/* Close reveal delay */
.elementor .aafe-modal.is-close-delayed .aafe-modal__close {
	opacity: 0 !important;
	pointer-events: none;
	transform: scale(.6);
}

.elementor .aafe-modal .aafe-modal__close {
	transition: color .2s ease, background-color .2s ease, transform .25s ease, opacity .3s ease;
}

/* ---------- Backdrop off / page interaction ---------- */
.elementor .aafe-modal--no-overlay .aafe-modal__overlay {
	display: none;
}

.elementor .aafe-modal--passthrough.is-open {
	pointer-events: none;
}

.elementor .aafe-modal--passthrough.is-open .aafe-modal__box,
.elementor .aafe-modal--passthrough.is-open > .aafe-modal__close {
	pointer-events: auto;
}

/* ---------- Built-in content ---------- */
.elementor .aafe-modal__title {
	margin: 0 0 14px;
	padding-right: 32px;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
	color: #0f172a;
}

.elementor .aafe-modal__body {
	font-size: 15px;
	line-height: 1.65;
	color: #475569;
}

.elementor .aafe-modal__body > :last-child {
	margin-bottom: 0;
}

.elementor .aafe-modal--source-video .aafe-modal__legacy {
	padding: 0;
}

.elementor .aafe-modal-video-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #000;
	border-radius: inherit;
}

.elementor .aafe-modal-video-wrap iframe,
.elementor .aafe-modal-video-wrap video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.elementor .aafe-modal-notice,
.elementor .aafe-modal-editor-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 120px;
	margin: 0;
	padding: 16px;
	color: #64748b;
	font-size: 13px;
	text-align: center;
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	border-radius: 8px;
}

/* ---------- Page scroll lock (no layout jump) ---------- */
html.aafe-modal-locked,
html.aafe-modal-locked body {
	overflow: hidden !important;
}

/* ---------- Editor ---------- */
/* Opened / closed by the JS handler (selection, trigger click, × button, backdrop, ESC). */
.elementor-editor-active .elementor .aafe-modal.is-open .aafe-modal__overlay {
	cursor: pointer;
}

.elementor-editor-active .elementor .aafe-modal.is-close-delayed .aafe-modal__close {
	opacity: 1 !important;
	pointer-events: auto;
	transform: none;
}

.elementor-editor-active .elementor .aafe-modal__content {
	min-height: 120px;
	position: relative;
	width: 100%;
}

.elementor-editor-active .elementor .aafe-modal__content:empty {
	min-height: 140px;
	border: 2px dashed #818cf8;
	border-radius: 8px;
	background: rgba(99, 102, 241, 0.04);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.elementor-editor-active .elementor .aafe-modal__content:empty::after {
	content: "Drop Container or any Widgets here to design your popup";
	font-size: 13px;
	font-weight: 500;
	color: #6366f1;
	pointer-events: none;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.elementor .aafe-modal,
	.elementor .aafe-modal__overlay,
	.elementor .aafe-modal__box,
	.elementor .aafe-modal-trigger,
html body .elementor .aafe-modal-trigger:where(:hover, :focus, :focus-visible, :active) {
		transition-duration: 1ms !important;
	}

	.elementor .aafe-modal__box {
		transform: none !important;
		filter: none !important;
	}
}

/* ---------- Smoothness: compositor hints only while animating ---------- */
.elementor .aafe-modal.is-animating .aafe-modal__overlay {
	will-change: opacity;
}

.elementor .aafe-modal__box {
	transform-origin: 50% 50%;
}

/* Editor: a closed popup is removed from layout entirely, so Elementor's
   element handles inside it can never catch a click on the page. */
.elementor-editor-active .elementor .aafe-modal:not(.is-open):not(.is-animating) {
	display: none !important;
}
