/* Waheguru Travel Carousel: enquiry popup */
.wgtq {
	--wgtq-accent: #ff3b12;
	--wgtq-ink: #111827;
	--wgtq-muted: #5b6474;
	--wgtq-line: #dfe3ea;
	--wgtq-field: #f6f7f9;
	--wgtq-error: #c62828;
	--wgtq-ok: #12925a;
	--wgtq-radius: 22px;
	--wgtq-ease: cubic-bezier(.2, .8, .2, 1);

	position: fixed; inset: 0; z-index: 999999;
	display: flex; align-items: center; justify-content: center;
	padding: 16px;
	font-family: inherit; color: var(--wgtq-ink);
	-webkit-font-smoothing: antialiased;
}
.wgtq[hidden] { display: none !important; }
.wgtq *, .wgtq *::before, .wgtq *::after { box-sizing: border-box; }

.wgtq__backdrop {
	position: absolute; inset: 0;
	background: rgba(6, 10, 20, .62);
	backdrop-filter: blur(10px) saturate(130%);
	-webkit-backdrop-filter: blur(10px) saturate(130%);
	opacity: 0; transition: opacity .3s ease;
}
.wgtq.is-open .wgtq__backdrop { opacity: 1; }

/* Dialog: image panel left, form right on desktop */
.wgtq__dialog {
	position: relative;
	display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	width: min(880px, 100%);
	max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
	overflow: hidden;
	background: #fff;
	border-radius: var(--wgtq-radius);
	box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08);
	opacity: 0; transform: translateY(18px) scale(.97);
	transition: opacity .3s ease, transform .4s var(--wgtq-ease);
	outline: none;
}
.wgtq.is-open .wgtq__dialog { opacity: 1; transform: none; }

.wgtq__grab { display: none; }

.wgtq__close {
	position: absolute; top: 12px; right: 12px; z-index: 3;
	display: grid; place-items: center;
	width: 40px; height: 40px; padding: 0; margin: 0;
	border-radius: 50% !important; border: 1px solid var(--wgtq-line) !important;
	background: #fff !important; color: var(--wgtq-ink) !important;
	box-shadow: none !important; cursor: pointer;
	transition: background .2s, transform .2s;
}
.wgtq__close:hover { background: var(--wgtq-field) !important; transform: rotate(90deg); }
.wgtq__close:focus-visible { outline: 2px solid var(--wgtq-accent); outline-offset: 2px; }

/* Activity image panel */
.wgtq__media {
	position: relative; min-height: 100%;
	background: #1b2438; overflow: hidden;
}
.wgtq .wgtq__img {
	position: absolute !important; inset: 0; width: 100% !important; height: 100% !important;
	max-width: none !important; object-fit: cover; margin: 0 !important; border-radius: 0 !important;
}
.wgtq__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(to bottom, rgba(6, 10, 20, .05) 30%, rgba(6, 10, 20, .85) 100%);
}
.wgtq__media-text {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
	padding: 24px; color: #fff;
}
.wgtq__badge {
	display: inline-block; margin-bottom: 12px; padding: 6px 12px; border-radius: 999px;
	font-size: 12px; font-weight: 600;
	background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.wgtq__badge:empty { display: none; }
.wgtq__sub { margin: 0 0 4px !important; font-size: 13px; opacity: .85; color: #fff; }
.wgtq__activity { margin: 0 !important; font-size: 22px; font-weight: 700; line-height: 1.2; color: #fff; }
.wgtq__duration { margin: 6px 0 0 !important; font-size: 13px; color: rgba(255, 255, 255, .85); }
.wgtq__price {
	display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
	margin: 12px 0 0 !important; padding: 8px 14px; border-radius: 12px;
	background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .26);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff;
}
.wgtq__price[hidden] { display: none; }
.wgtq__price-label { font-size: 12.5px; color: rgba(255, 255, 255, .85); }
.wgtq__price-label:empty { display: none; }
.wgtq__price-amount { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.wgtq__sub:empty, .wgtq__duration:empty { display: none; }

/* Form side */
.wgtq__body {
	position: relative; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
	/* The form scrolls on its own when the screen is short; the photo side stays put. */
	max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
}
.wgtq__form { padding: 28px 28px 24px; margin: 0; }
.wgtq__head { padding-right: 44px; margin-bottom: 18px; }
.wgtq__title { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.2; color: var(--wgtq-ink); letter-spacing: -.01em; }
.wgtq__lead { margin: 6px 0 0 !important; font-size: 14px; line-height: 1.5; color: var(--wgtq-muted); }

.wgtq__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 14px; }
.wgtq__field { min-width: 0; }
.wgtq__field--wide { grid-column: 1 / -1; }
.wgtq__field label {
	display: block; margin: 0 0 6px; padding: 0;
	font-size: 13px; font-weight: 600; color: var(--wgtq-ink); line-height: 1.3;
}
.wgtq__field label span { color: var(--wgtq-accent); }
.wgtq__field label small { font-weight: 400; color: var(--wgtq-muted); font-size: 12px; }

.wgtq input[type="text"],
.wgtq input[type="tel"],
.wgtq input[type="date"],
.wgtq input[type="number"],
.wgtq textarea {
	display: block; width: 100%; max-width: none; margin: 0;
	min-height: 46px; padding: 11px 14px;
	font: inherit; font-size: 15px; line-height: 1.35; color: var(--wgtq-ink);
	background: var(--wgtq-field) !important;
	border: 1px solid var(--wgtq-line) !important; border-radius: 12px !important;
	box-shadow: none !important; outline: none;
	transition: border-color .2s, box-shadow .2s, background .2s;
	-webkit-appearance: none; appearance: none;
}
.wgtq textarea { min-height: 84px; resize: vertical; }
.wgtq input[type="date"] { min-height: 46px; }
.wgtq input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.wgtq input:focus, .wgtq textarea:focus {
	background: #fff !important; border-color: var(--wgtq-accent) !important;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wgtq-accent) 18%, transparent) !important;
}
.wgtq input::placeholder, .wgtq textarea::placeholder { color: #9aa1ad; opacity: 1; }
.wgtq .is-invalid input, .wgtq .is-invalid textarea { border-color: var(--wgtq-error) !important; background: #fff8f8 !important; }
.wgtq__err { margin: 5px 0 0 !important; font-size: 12.5px; line-height: 1.35; color: var(--wgtq-error); }
.wgtq__err:empty { display: none; }

/* Adults / children steppers */
.wgtq__stepper {
	display: grid; grid-template-columns: 46px 1fr 46px; align-items: stretch;
	border: 1px solid var(--wgtq-line); border-radius: 12px; overflow: hidden; background: var(--wgtq-field);
}
.wgtq__stepper:focus-within { border-color: var(--wgtq-accent); }
.wgtq .wgtq__stepper input[type="number"] {
	min-height: 44px; padding: 0; text-align: center; font-weight: 700; font-size: 16px;
	border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important;
	-moz-appearance: textfield;
}
.wgtq__stepper input::-webkit-outer-spin-button,
.wgtq__stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wgtq__stepper button {
	display: grid; place-items: center; margin: 0; padding: 0;
	font: inherit; font-size: 20px; line-height: 1; font-weight: 600;
	color: var(--wgtq-ink) !important; background: transparent !important;
	border: 0 !important; border-radius: 0 !important; box-shadow: none !important; cursor: pointer;
	transition: background .15s, color .15s;
}
.wgtq__stepper button:hover:not(:disabled) { background: #eceef2 !important; color: var(--wgtq-accent) !important; }
.wgtq__stepper button:disabled { opacity: .35; cursor: default; }
.wgtq__stepper button:focus-visible { outline: 2px solid var(--wgtq-accent); outline-offset: -2px; }

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

.wgtq__formerr { margin: 14px 0 0 !important; font-size: 13.5px; color: var(--wgtq-error); }
.wgtq__formerr:empty { display: none; }

.wgtq__submit {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	width: 100%; min-height: 52px; margin: 18px 0 0; padding: 0 20px;
	font: inherit; font-size: 16px; font-weight: 700; letter-spacing: .01em;
	color: #fff !important; background: var(--wgtq-accent) !important;
	border: 0 !important; border-radius: 999px !important; cursor: pointer;
	box-shadow: 0 14px 28px -14px var(--wgtq-accent) !important;
	transition: filter .2s, transform .2s;
}
.wgtq__submit:hover { filter: brightness(1.07); }
.wgtq__submit:active { transform: translateY(1px); }
.wgtq__submit:focus-visible { outline: 3px solid color-mix(in srgb, var(--wgtq-accent) 40%, transparent); outline-offset: 3px; }
.wgtq__submit:disabled { cursor: progress; filter: saturate(.7) brightness(.95); }
.wgtq__submit.is-busy::before {
	content: ""; width: 16px; height: 16px; border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
	animation: wgtq-spin .7s linear infinite;
}
@keyframes wgtq-spin { to { transform: rotate(360deg); } }

/* Success state */
.wgtq__done {
	display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
	min-height: 100%; padding: 48px 32px;
}
.wgtq__done[hidden] { display: none; }
.wgtq__tick { width: 88px; height: 88px; margin-bottom: 18px; }
.wgtq__tick-circle {
	stroke: var(--wgtq-ok); stroke-width: 2.5;
	stroke-dasharray: 151; stroke-dashoffset: 151;
	animation: wgtq-draw .6s var(--wgtq-ease) forwards;
}
.wgtq__tick-check {
	stroke: var(--wgtq-ok); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round;
	stroke-dasharray: 40; stroke-dashoffset: 40;
	animation: wgtq-draw .4s .45s var(--wgtq-ease) forwards;
}
.wgtq__done.is-shown .wgtq__tick { animation: wgtq-pop .5s .8s var(--wgtq-ease) both; }
@keyframes wgtq-draw { to { stroke-dashoffset: 0; } }
@keyframes wgtq-pop { 50% { transform: scale(1.08); } 100% { transform: scale(1); } }
.wgtq__done-title { margin: 0; font-size: 24px; font-weight: 700; color: var(--wgtq-ink); }
.wgtq__done-text { max-width: 34ch; margin: 8px 0 22px !important; font-size: 15px; line-height: 1.55; color: var(--wgtq-muted); }
.wgtq__countdown { display: block; width: 140px; height: 4px; border-radius: 4px; background: #e8ebf0; overflow: hidden; }
.wgtq__countdown span { display: block; height: 100%; background: var(--wgtq-ok); transform-origin: left; transform: scaleX(1); }
.wgtq__done.is-shown .wgtq__countdown span { animation: wgtq-count var(--wgtq-close, 2600ms) linear forwards; }
@keyframes wgtq-count { to { transform: scaleX(0); } }

/* Scroll lock while open */
html.wgtq-lock, html.wgtq-lock body { overflow: hidden !important; }

/* Tablets: image becomes a banner above the form */
@media (max-width: 820px) {
	.wgtq__dialog { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); width: min(600px, 100%); }
	.wgtq__media { min-height: 0; height: 170px; }
	.wgtq__body { max-height: calc(100vh - 32px - 170px); max-height: calc(100dvh - 32px - 170px); }
	.wgtq__media-text { padding: 18px 22px; }
	.wgtq__activity { font-size: 20px; }
	.wgtq__badge { margin-bottom: 8px; }
	.wgtq__close { background: rgba(255, 255, 255, .92) !important; border-color: transparent !important; }
	.wgtq__head { padding-right: 0; }
	.wgtq__form { padding: 22px 24px 22px; }
}

/* Phones: bottom sheet */
@media (max-width: 560px) {
	.wgtq { align-items: flex-end; padding: 0; }
	.wgtq__dialog {
		width: 100%;
		max-height: 94vh; max-height: 94dvh;
		border-radius: 22px 22px 0 0;
		transform: translateY(100%);
		transition: opacity .25s ease, transform .4s var(--wgtq-ease);
	}
	.wgtq.is-open .wgtq__dialog { transform: none; }
	.wgtq__grab {
		display: block; position: absolute; top: 8px; left: 50%; z-index: 3;
		width: 44px; height: 5px; margin-left: -22px; border-radius: 5px; background: rgba(255, 255, 255, .8);
	}
	.wgtq__media { height: 132px; }
	.wgtq__body { max-height: calc(94vh - 132px); max-height: calc(94dvh - 132px); }
	.wgtq__media-text { padding: 14px 18px; }
	.wgtq__sub { font-size: 12px; }
	.wgtq__activity { font-size: 17px; }
	.wgtq__duration { display: none; }
	.wgtq__price { margin-top: 6px !important; padding: 4px 10px; }
	.wgtq__price-amount { font-size: 16px; }
	.wgtq__price-label { font-size: 11.5px; }
	.wgtq__badge { display: none; }
	.wgtq__close { top: 10px; right: 10px; width: 36px; height: 36px; }
	.wgtq__form { padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); }
	.wgtq__head { margin-bottom: 14px; }
	.wgtq__title { font-size: 20px; }
	.wgtq__lead { font-size: 13px; }
	.wgtq__grid { gap: 12px 10px; }
	/* 16px stops iPhones zooming into the field */
	.wgtq input[type="text"], .wgtq input[type="tel"], .wgtq input[type="date"], .wgtq textarea { font-size: 16px; }
	.wgtq textarea { min-height: 72px; }
	.wgtq__submit { min-height: 50px; margin-top: 14px; }
	.wgtq__done { padding: 36px 24px calc(36px + env(safe-area-inset-bottom)); }
}

/* Short landscape phones: hide the banner so the form has room */
@media (max-height: 520px) and (orientation: landscape) {
	.wgtq { align-items: center; padding: 8px; }
	.wgtq__dialog { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); grid-template-rows: none; width: min(820px, 100%); max-height: calc(100dvh - 16px); border-radius: 18px; }
	.wgtq__media { height: auto; }
	.wgtq__body { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
	.wgtq__badge, .wgtq__duration { display: none; }
	.wgtq__lead { display: none; }
	.wgtq__form { padding: 16px 18px; }
	.wgtq__grab { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.wgtq__dialog, .wgtq__backdrop { transition-duration: .01ms !important; }
	.wgtq__tick-circle, .wgtq__tick-check { animation-duration: .01ms !important; animation-delay: 0s !important; }
}
