/* AQ Heart Check: launcher, teaser, modal and inline questionnaire. Brand colours come from the Elementor kit globals. */

/* ------------------------------------------------------------------ launcher */
#aqhc-launch {
	position: fixed; right: 24px; bottom: 24px; z-index: 9990;
	display: flex; align-items: center; gap: 12px; margin: 0;
	padding: 9px 22px 9px 9px; border: 0; border-radius: 999px;
	background: var(--e-global-color-primary, #0F5C63); color: #fff;
	font-family: var(--e-global-typography-aqbtn-font-family, "Inter"), system-ui, sans-serif;
	text-transform: none; letter-spacing: 0; line-height: 1.2; text-align: left;
	box-shadow: 0 20px 44px -18px rgba(11, 34, 51, .65), 0 2px 6px rgba(11, 34, 51, .12);
	cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(28px) scale(.85);
	transition: transform .55s cubic-bezier(.34, 1.56, .64, 1), opacity .35s ease, background-color .25s ease;
}
#aqhc-launch.is-in { opacity: 1; pointer-events: auto; transform: none; }
#aqhc-launch:hover, #aqhc-launch:focus { background: var(--e-global-color-aqtealdk, #0A474D); color: #fff; }
#aqhc-launch:focus-visible { outline: 3px solid var(--e-global-color-aqbrasslt, #D9B57A); outline-offset: 3px; }
#aqhc-launch .aqhc-launch__icon {
	position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	background: #fff; color: var(--e-global-color-aqemerg, #A3222B);
}
#aqhc-launch .aqhc-launch__icon::after {
	content: ""; position: absolute; inset: 0; border-radius: 50%; animation: aqhc-pulse 2.4s ease-out infinite;
}
#aqhc-launch .aqhc-heart { width: 26px; height: 26px; animation: aqhc-beat 1.6s ease-in-out infinite; }
#aqhc-launch .aqhc-launch__txt { display: flex; flex-direction: column; }
#aqhc-launch strong { font-size: 15px; font-weight: 600; }
#aqhc-launch small { font-size: 12.5px; font-weight: 500; opacity: .86; }
@keyframes aqhc-pulse {
	0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); }
	70% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
@keyframes aqhc-beat { 0%, 40%, 100% { transform: scale(1); } 15% { transform: scale(1.14); } 28% { transform: scale(1.04); } }

/* Astra's scroll-to-top sits in the same corner on tablet/desktop: lift it above the launcher */
@media (min-width: 768px) { body.aqhc-has-launcher #ast-scroll-top { bottom: 100px; } }

/* ------------------------------------------------------------------ teaser bubble */
#aqhc-teaser {
	position: fixed; right: 24px; bottom: 96px; z-index: 9990; max-width: 300px;
	background: #fff; border: 1px solid var(--e-global-color-aqline, #DCE3E1); border-radius: 18px;
	box-shadow: 0 24px 48px -20px rgba(11, 34, 51, .45);
	opacity: 0; transform: translateY(10px); transition: opacity .3s ease, transform .3s ease;
}
#aqhc-teaser.is-in { opacity: 1; transform: none; }
#aqhc-teaser::after {
	content: ""; position: absolute; right: 36px; bottom: -7px; width: 14px; height: 14px; background: #fff;
	border-right: 1px solid var(--e-global-color-aqline, #DCE3E1); border-bottom: 1px solid var(--e-global-color-aqline, #DCE3E1);
	transform: rotate(45deg);
}
#aqhc-teaser .aqhc-teaser__open {
	display: block; width: 100%; margin: 0; padding: 16px 40px 14px 18px; border: 0; border-radius: 18px; background: transparent;
	color: var(--e-global-color-text, #2B3A44); font: 400 14px/1.5 var(--e-global-typography-aqbody-font-family, "Inter"), system-ui, sans-serif;
	text-align: left; text-transform: none; letter-spacing: 0; cursor: pointer;
}
#aqhc-teaser .aqhc-teaser__open:hover, #aqhc-teaser .aqhc-teaser__open:focus { background: transparent; color: var(--e-global-color-text, #2B3A44); }
#aqhc-teaser strong { color: var(--e-global-color-primary, #0F5C63); font-weight: 600; }
#aqhc-teaser [lang="ur"] {
	display: block; margin-top: 6px; font-family: var(--e-global-typography-aqurdu-font-family, "Noto Nastaliq Urdu"), serif;
	font-size: 14px; line-height: 2; text-align: right; color: var(--e-global-color-secondary, #0B2233);
}
#aqhc-teaser .aqhc-teaser__x {
	position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; margin: 0; padding: 0; border: 0; border-radius: 50%;
	background: var(--e-global-color-aqmist, #E9F0EE); color: var(--e-global-color-secondary, #0B2233);
	font: 400 18px/28px system-ui, sans-serif; text-align: center; cursor: pointer;
}
#aqhc-teaser .aqhc-teaser__x:hover, #aqhc-teaser .aqhc-teaser__x:focus { background: var(--e-global-color-aqmist2, #DCE7E4); color: var(--e-global-color-secondary, #0B2233); }

/* phones: sit above the fixed Call / WhatsApp / Book bar (about 70px) */
@media (max-width: 767px) {
	#aqhc-launch { right: 12px; bottom: 86px; padding: 7px 18px 7px 7px; gap: 10px; }
	#aqhc-launch .aqhc-launch__icon { width: 38px; height: 38px; }
	#aqhc-launch .aqhc-heart { width: 22px; height: 22px; }
	#aqhc-launch small { display: none; }
	#aqhc-teaser { right: 12px; bottom: 146px; max-width: calc(100vw - 24px); }
}

/* ------------------------------------------------------------------ modal */
html.aqhc-lock, html.aqhc-lock body { overflow: hidden; }
#aqhc-modal {
	position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 24px;
	background: rgba(11, 34, 51, .58); opacity: 0; transition: opacity .2s ease;
}
#aqhc-modal[hidden] { display: none; }
#aqhc-modal.is-open { opacity: 1; }
#aqhc-modal .aqhc-dialog {
	width: 100%; max-width: 560px; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto;
	background: var(--e-global-color-aqivory, #F8F6F1); border-radius: 24px; box-shadow: 0 40px 80px -30px rgba(11, 34, 51, .6);
	transform: translateY(18px); transition: transform .25s ease;
}
#aqhc-modal.is-open .aqhc-dialog { transform: none; }
@media (max-width: 767px) {
	#aqhc-modal { align-items: flex-end; padding: 0; }
	#aqhc-modal .aqhc-dialog { max-height: 92vh; max-height: 92dvh; border-radius: 22px 22px 0 0; }
}

/* ------------------------------------------------------------------ questionnaire (modal + inline) */
.aqhc { font-family: var(--e-global-typography-aqbody-font-family, "Inter"), system-ui, sans-serif; color: var(--e-global-color-text, #2B3A44); text-align: left; }
.aqhc-inline.aqhc { background: #fff; border: 1px solid var(--e-global-color-aqline, #DCE3E1); border-radius: 28px; box-shadow: 0 30px 60px -36px rgba(11, 34, 51, .35); }
.aqhc .aqhc-head {
	position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 16px 20px 16px 26px; background: var(--e-global-color-aqivory, #F8F6F1); border-bottom: 1px solid var(--e-global-color-aqline, #DCE3E1);
}
.aqhc .aqhc-title { margin: 0; font-size: 15px; font-weight: 600; color: var(--e-global-color-secondary, #0B2233); }
.aqhc .aqhc-title [lang="ur"] { margin-left: 8px; font-family: var(--e-global-typography-aqurdu-font-family, "Noto Nastaliq Urdu"), serif; font-weight: 400; font-size: 14px; color: var(--e-global-color-aqmuted, #56656F); }
.aqhc .aqhc-x, .aqhc .aqhc-x:hover, .aqhc .aqhc-x:focus {
	flex: none; width: 40px; height: 40px; margin: 0; padding: 0; border: 1px solid var(--e-global-color-aqline, #DCE3E1); border-radius: 50%;
	background: #fff; color: var(--e-global-color-secondary, #0B2233); font: 400 24px/38px system-ui, sans-serif; text-align: center; cursor: pointer;
}
.aqhc .aqhc-x:hover { border-color: var(--e-global-color-primary, #0F5C63); }
.aqhc .aqhc-body { padding: 26px 26px 30px; }
.aqhc-inline .aqhc-body { padding: 34px 36px 38px; }

.aqhc .aqhc-progress { height: 6px; margin: 0 0 8px; overflow: hidden; border-radius: 999px; background: var(--e-global-color-aqmist, #E9F0EE); }
.aqhc .aqhc-progress span { display: block; height: 100%; border-radius: 999px; background: var(--e-global-color-primary, #0F5C63); transition: width .35s ease; }
.aqhc .aqhc-step { margin: 0 0 20px; font-size: 13px; color: var(--e-global-color-aqmuted, #56656F); }
.aqhc .aqhc-eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--e-global-color-accent, #8A5E26); }
.aqhc .aqhc-eyebrow [lang="ur"] { letter-spacing: 0; text-transform: none; font-family: var(--e-global-typography-aqurdu-font-family, "Noto Nastaliq Urdu"), serif; font-weight: 400; font-size: 13px; }
.aqhc .aqhc-h {
	margin: 0 0 6px; outline: 0; font-family: var(--e-global-typography-aqh3-font-family, "Fraunces"), Georgia, serif;
	font-size: 22px; font-weight: 500; line-height: 1.32; color: var(--e-global-color-secondary, #0B2233);
}
.aqhc .aqhc-ur {
	margin: 0 0 18px; direction: rtl; text-align: right; font-family: var(--e-global-typography-aqurdu-font-family, "Noto Nastaliq Urdu"), serif;
	font-size: 17px; font-weight: 400; line-height: 2.05; color: var(--e-global-color-secondary, #0B2233);
}
.aqhc span.aqhc-ur { display: block; margin: 6px 0 0; font-size: 15px; }
.aqhc .aqhc-p { margin: 0 0 6px; font-size: 16px; line-height: 1.6; }
.aqhc .aqhc-note { margin: 16px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--e-global-color-aqmuted, #56656F); }
.aqhc .aqhc-note [lang="ur"] { display: block; margin-top: 4px; direction: rtl; text-align: right; font-family: var(--e-global-typography-aqurdu-font-family, "Noto Nastaliq Urdu"), serif; line-height: 2; }
.aqhc .aqhc-note--emerg, .aqhc .aqhc-note--emerg a { color: var(--e-global-color-aqemerg, #A3222B); }

/* answer buttons */
.aqhc .aqhc-opts { display: grid; gap: 10px; margin: 8px 0 0; }
.aqhc .aqhc-opts--yn { grid-template-columns: 1fr 1fr; }
.aqhc .aqhc-opts--age { grid-template-columns: repeat(3, 1fr); }
.aqhc .aqhc-opt, .aqhc .aqhc-opt:focus {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; margin: 0; padding: 10px 12px;
	border: 1.5px solid var(--e-global-color-aqline, #DCE3E1); border-radius: 14px; background: #fff; box-shadow: none;
	color: var(--e-global-color-secondary, #0B2233); font: 600 16px/1.25 var(--e-global-typography-aqbody-font-family, "Inter"), system-ui, sans-serif;
	text-transform: none; letter-spacing: 0; cursor: pointer; transition: border-color .2s ease, background-color .2s ease, transform .15s ease;
}
@media (hover: hover) {
	.aqhc .aqhc-opt:hover { border-color: var(--e-global-color-primary, #0F5C63); background: var(--e-global-color-aqmist, #E9F0EE); color: var(--e-global-color-secondary, #0B2233); }
}
.aqhc .aqhc-opt:active { transform: scale(.98); }
.aqhc .aqhc-opt:focus-visible { outline: 3px solid rgba(15, 92, 99, .35); outline-offset: 2px; }
.aqhc .aqhc-opt[aria-pressed="true"] { border-color: var(--e-global-color-primary, #0F5C63); background: var(--e-global-color-primary, #0F5C63); color: #fff; }
.aqhc .aqhc-opt-ur { font-family: var(--e-global-typography-aqurdu-font-family, "Noto Nastaliq Urdu"), serif; font-size: 14px; font-weight: 400; line-height: 1.9; }

/* action buttons */
.aqhc .aqhc-btn, .aqhc .aqhc-btn:focus {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; margin: 18px 0 0; padding: 13px 28px;
	border: 0; border-radius: 999px; box-shadow: none; font: 600 15.5px/1.2 var(--e-global-typography-aqbtn-font-family, "Inter"), system-ui, sans-serif;
	text-decoration: none; text-transform: none; letter-spacing: 0; cursor: pointer; transition: background-color .2s ease, transform .2s ease;
}
.aqhc .aqhc-btn [lang="ur"] { font-family: var(--e-global-typography-aqurdu-font-family, "Noto Nastaliq Urdu"), serif; font-weight: 400; font-size: 14px; line-height: 1.6; }
.aqhc .aqhc-btn:hover { transform: translateY(-1px); }
.aqhc .aqhc-btn:focus-visible { outline: 3px solid rgba(15, 92, 99, .35); outline-offset: 2px; }
.aqhc .aqhc-btn--primary, .aqhc .aqhc-btn--primary:focus { background: var(--e-global-color-primary, #0F5C63); color: #fff; }
.aqhc .aqhc-btn--primary:hover { background: var(--e-global-color-aqtealdk, #0A474D); color: #fff; }
.aqhc .aqhc-btn--primary[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.aqhc .aqhc-btn--wa, .aqhc .aqhc-btn--wa:focus { width: 100%; background: var(--e-global-color-aqwa, #0E7A5F); color: #fff; }
.aqhc .aqhc-btn--wa:hover { background: var(--e-global-color-aqwadk, #0A5E49); color: #fff; }
.aqhc .aqhc-btn--wa svg { width: 20px; height: 20px; flex: none; }
.aqhc .aqhc-btn--emerg, .aqhc .aqhc-btn--emerg:focus { background: var(--e-global-color-aqemerg, #A3222B); color: #fff; }
.aqhc .aqhc-btn--emerg:hover { background: var(--e-global-color-aqemergdk, #861B23); color: #fff; }

.aqhc .aqhc-back, .aqhc .aqhc-back:hover, .aqhc .aqhc-back:focus, .aqhc .aqhc-link, .aqhc .aqhc-link:hover, .aqhc .aqhc-link:focus {
	display: inline-flex; margin: 20px 0 0; padding: 6px 0; border: 0; background: none; box-shadow: none;
	font: 500 14.5px/1.3 var(--e-global-typography-aqbody-font-family, "Inter"), system-ui, sans-serif; text-transform: none; letter-spacing: 0;
	color: var(--e-global-color-aqmuted, #56656F); text-decoration: none; cursor: pointer;
}
.aqhc .aqhc-link, .aqhc .aqhc-link:focus { color: var(--e-global-color-primary, #0F5C63); font-weight: 600; }
.aqhc .aqhc-back:hover, .aqhc .aqhc-link:hover { color: var(--e-global-color-secondary, #0B2233); }
.aqhc .aqhc-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin-top: 6px; }

/* last step */
.aqhc .aqhc-label { display: block; margin: 18px 0 8px; font-size: 14.5px; font-weight: 600; color: var(--e-global-color-secondary, #0B2233); }
.aqhc .aqhc-label [lang="ur"] { margin-left: 6px; font-family: var(--e-global-typography-aqurdu-font-family, "Noto Nastaliq Urdu"), serif; font-weight: 400; }
.aqhc .aqhc-input {
	width: 100%; max-width: 100%; margin: 0; padding: 13px 16px; border: 1px solid var(--e-global-color-aqoutline, rgba(11, 34, 51, .28)); border-radius: 12px;
	background: #fff; box-shadow: none; color: var(--e-global-color-secondary, #0B2233); font: 400 16px/1.4 var(--e-global-typography-aqbody-font-family, "Inter"), system-ui, sans-serif;
}
.aqhc .aqhc-input:focus { border-color: var(--e-global-color-primary, #0F5C63); box-shadow: 0 0 0 4px rgba(15, 92, 99, .14); outline: 0; }
.aqhc .aqhc-check { display: flex; align-items: flex-start; gap: 12px; margin: 20px 0 0; font-size: 15px; line-height: 1.5; cursor: pointer; }
.aqhc .aqhc-check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--e-global-color-primary, #0F5C63); }

/* emergency + done */
.aqhc .aqhc-emerg { padding: 24px; border: 1px solid rgba(163, 34, 43, .25); border-radius: 18px; background: var(--e-global-color-aqemergbg, #FBEFEF); }
.aqhc .aqhc-emerg .aqhc-h { color: var(--e-global-color-aqemerg, #A3222B); }
.aqhc .aqhc-emerg-icon, .aqhc .aqhc-done-icon { display: block; width: 44px; height: 44px; margin: 0 0 14px; }
.aqhc .aqhc-emerg-icon { color: var(--e-global-color-aqemerg, #A3222B); }
.aqhc .aqhc-done-icon { color: var(--e-global-color-aqwa, #0E7A5F); }
.aqhc .aqhc-emerg-icon svg, .aqhc .aqhc-done-icon svg { width: 100%; height: 100%; }

@media (max-width: 767px) {
	.aqhc .aqhc-body, .aqhc-inline .aqhc-body { padding: 22px 18px 26px; }
	.aqhc .aqhc-h { font-size: 20px; }
	.aqhc .aqhc-opts--age { grid-template-columns: 1fr 1fr; }
	.aqhc .aqhc-btn--primary { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	#aqhc-launch, #aqhc-teaser, #aqhc-modal, #aqhc-modal .aqhc-dialog, .aqhc .aqhc-progress span { transition: none; }
	#aqhc-launch .aqhc-launch__icon::after, #aqhc-launch .aqhc-heart { animation: none; }
}
@media print { #aqhc-launch, #aqhc-teaser, #aqhc-modal { display: none !important; } }
