/* Get a Quote popup. Shell + layout for the Elementor template "Get a Quote Popup".
   Form fields reuse the Contact page styles (.adinath-contact-form in Additional CSS). */

html.adn-quote-lock, html.adn-quote-lock body { overflow: hidden; }
/* Floating WhatsApp button (Click to Chat) would sit on top of the form */
html.adn-quote-lock .ht-ctc, html.adn-quote-lock #ht-ctc-chat { display: none !important; }
/* Element Pack's "sending / sent / error" notifications must show above the popup */
html.adn-quote-lock .bdt-notification { z-index: 100002 !important; }

.adn-quote {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}
.adn-quote[hidden] { display: none; }

.adn-quote__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(4, 22, 26, .72);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity .3s ease;
}

.adn-quote__dialog {
	position: relative;
	width: 100%;
	max-width: 1000px;
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	overflow-y: auto;
	overscroll-behavior: contain;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .5);
	opacity: 0;
	transform: translateY(24px) scale(.98);
	transition: opacity .3s ease, transform .35s cubic-bezier(.2, .7, .2, 1);
}
.adn-quote.is-open .adn-quote__backdrop { opacity: 1; }
.adn-quote.is-open .adn-quote__dialog { opacity: 1; transform: none; }

.adn-quote__close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid #DCE7EA;
	border-radius: 50%;
	background: #fff;
	color: #0B3A40;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.adn-quote__close:hover { background: #0B3A40; border-color: #0B3A40; color: #fff; transform: rotate(90deg); }
.adn-quote__close:focus-visible { outline: 2px solid #3CC1C9; outline-offset: 2px; }

/* Layout */
.adn-quote .adn-quote-layout { --padding-top: 0; --padding-bottom: 0; --padding-left: 0; --padding-right: 0; }
.adn-quote .adn-quote-aside {
	position: relative;
	overflow: hidden;
	justify-content: center;
	gap: 0 !important;
	padding: 48px 40px !important;
	background: linear-gradient(160deg, #062227 0%, #0B3A40 55%, #14757B 100%);
	color: #fff;
}
.adn-quote .adn-quote-aside::before {
	content: "";
	position: absolute;
	right: -120px;
	top: -120px;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(60, 193, 201, .35) 0%, rgba(60, 193, 201, 0) 70%);
	pointer-events: none;
}
.adn-quote .adn-quote-aside::after {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 6px;
	background: #3CC1C9;
}
.adn-quote .adn-quote-aside > * { position: relative; z-index: 1; }
.adn-quote .adn-quote-main { gap: 0 !important; padding: 48px 44px 40px !important; }

/* Intro panel */
.adn-quote .adn-quote-eyebrow .elementor-heading-title {
	margin: 0 0 12px;
	font-family: Poppins, sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #7FDDE2;
}
.adn-quote .adn-quote-title .elementor-heading-title {
	margin: 0 0 16px;
	font-family: Poppins, sans-serif;
	font-size: 30px;
	font-weight: 600;
	line-height: 1.22;
	color: #fff;
}
.adn-quote .adn-quote-title span { color: #3CC1C9; font-weight: 700; }
.adn-quote .adn-quote-text p {
	margin: 0 0 26px;
	font-family: Montserrat, sans-serif;
	font-size: 15px;
	line-height: 1.7;
	color: #D7ECEE;
}
.adn-quote .elementor-icon-list-items { margin: 0 !important; padding: 0 !important; }
.adn-quote .elementor-icon-list-item { margin: 0 !important; padding: 0 !important; }
.adn-quote .elementor-icon-list-item::after { display: none !important; }
.adn-quote .adn-quote-points .elementor-icon-list-items { display: flex; flex-direction: column; gap: 12px; }
.adn-quote .adn-quote-points .elementor-icon-list-icon svg { width: 17px; height: 17px; fill: #3CC1C9; }
.adn-quote .adn-quote-points .elementor-icon-list-text {
	padding-left: 10px;
	font-family: Montserrat, sans-serif !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	color: #fff !important;
}
.adn-quote .adn-quote-contact {
	margin-top: 30px !important;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, .16);
}
.adn-quote .adn-quote-contact .elementor-icon-list-items { display: flex; flex-direction: column; gap: 12px; }
.adn-quote .adn-quote-contact .elementor-icon-list-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
}
.adn-quote .adn-quote-contact .elementor-icon-list-icon svg { width: 14px; height: 14px; fill: #7FDDE2; }
.adn-quote .adn-quote-contact .elementor-icon-list-text {
	padding-left: 12px;
	font-family: Montserrat, sans-serif !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	color: #fff !important;
	transition: color .2s ease;
}
.adn-quote .adn-quote-contact a:hover .elementor-icon-list-text { color: #7FDDE2; }

/* Form panel */
.adn-quote .adn-quote-form-title .elementor-heading-title {
	margin: 0 0 6px;
	padding-right: 48px;
	font-family: Poppins, sans-serif;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
	color: #0B2233;
}
.adn-quote .adn-quote-form-note p {
	margin: 0 0 22px;
	font-family: Montserrat, sans-serif;
	font-size: 14px;
	line-height: 1.6;
	color: #5B6B73;
}
.adn-quote .adn-quote-form .bdt-contact-form-form { margin-left: -12px; }
.adn-quote .adn-quote-form .bdt-contact-form-form > * { padding-left: 12px; }
.adn-quote .adn-quote-form .bdt-margin-small-top,
.adn-quote .adn-quote-form .bdt-margin { margin-top: 12px !important; }
.adn-quote .adn-quote-form .bdt-textarea { min-height: 120px; resize: vertical; }
.adn-quote .adn-quote-form .bdt-text-small,
.adn-quote .adn-quote-form .bdt-contact-form-additional-message {
	font-family: Montserrat, sans-serif;
	font-size: 12px;
	line-height: 1.5;
	color: #7A8A91;
}

/* Tablet: stack the panels, keep the intro short */
@media (max-width: 1024px) {
	.adn-quote__dialog { max-width: 640px; }
	.adn-quote .adn-quote-aside { padding: 36px 32px 30px !important; }
	.adn-quote .adn-quote-aside::after { top: 0; bottom: auto; right: 0; width: auto; height: 5px; }
	.adn-quote .adn-quote-title .elementor-heading-title { font-size: 26px; padding-right: 48px; }
	.adn-quote .adn-quote-text p { margin-bottom: 18px; }
	.adn-quote .adn-quote-points .elementor-icon-list-items { flex-direction: row; flex-wrap: wrap; gap: 10px 20px; }
	.adn-quote .adn-quote-contact { display: none; }
	.adn-quote .adn-quote-main { padding: 32px 32px 30px !important; }
	.adn-quote .adn-quote-form-title .elementor-heading-title { padding-right: 0; }
	.adn-quote__close { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); color: #fff; }
	.adn-quote__close:hover { background: #fff; border-color: #fff; color: #0B3A40; }
}

/* Mobile: near full-screen sheet */
@media (max-width: 767px) {
	.adn-quote { padding: 10px; align-items: flex-end; }
	.adn-quote__dialog { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); border-radius: 18px; }
	.adn-quote .adn-quote-aside { padding: 26px 20px 22px !important; }
	.adn-quote .adn-quote-eyebrow .elementor-heading-title { margin-bottom: 8px; font-size: 12px; }
	.adn-quote .adn-quote-title .elementor-heading-title { margin-bottom: 0; font-size: 22px; }
	.adn-quote .adn-quote-text,
	.adn-quote .adn-quote-points { display: none; }
	.adn-quote .adn-quote-main { padding: 24px 20px 22px !important; }
	.adn-quote .adn-quote-form-title { display: none; }
	.adn-quote .adn-quote-form-note p { margin-bottom: 16px; }
	.adn-quote__close { top: 12px; right: 12px; width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
	.adn-quote__backdrop, .adn-quote__dialog { transition: none; }
}
