/*
 * PMLC Header Booking Popup with Loader
 * Placement: wp-content/themes/pmlc-corporate-theme/assets/css/pmlc-booking-popup.css
 */

.pmlc-booking-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(2, 12, 28, 0.72);
	backdrop-filter: blur(6px);
}

.pmlc-booking-modal.is-open {
	display: flex;
}

.pmlc-booking-modal__dialog {
	position: relative;
	width: min(1100px, 96vw);
	height: min(820px, 90vh);
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.pmlc-booking-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 16px 20px;
	background: #061b36;
	color: #ffffff;
}

.pmlc-booking-modal__title {
	margin: 0;
	font-size: clamp(1.05rem, 2vw, 1.35rem);
	font-weight: 800;
	line-height: 1.2;
}

.pmlc-booking-modal__close {
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
	font-size: 28px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.pmlc-booking-modal__close:hover,
.pmlc-booking-modal__close:focus {
	background: rgba(255, 255, 255, 0.22);
	transform: scale(1.04);
	outline: none;
}

.pmlc-booking-modal__body {
	position: relative;
	flex: 1;
	background: #ffffff;
}

.pmlc-booking-modal__iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	background: #ffffff;
}

.pmlc-booking-modal__loader {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.85rem;
	background: #ffffff;
	color: #061b36;
	font-weight: 800;
	text-align: center;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.pmlc-booking-modal__loader.is-hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.pmlc-booking-modal__spinner {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: #d89a27;
	position: relative;
	animation: pmlcBookingPulse 1.05s ease-in-out infinite;
}

.pmlc-booking-modal__spinner::after {
	content: "";
	position: absolute;
	inset: 9px;
	background: #ffffff;
	border-radius: 50%;
}

@keyframes pmlcBookingPulse {
	0% {
		transform: scale(0.88);
		opacity: 0.65;
	}

	50% {
		transform: scale(1);
		opacity: 1;
	}

	100% {
		transform: scale(0.88);
		opacity: 0.65;
	}
}

body.pmlc-booking-modal-open {
	overflow: hidden;
}

.header-cta[data-pmlc-booking-open="true"] {
	cursor: pointer;
}

@media (max-width: 767px) {
	.pmlc-booking-modal {
		padding: 12px;
	}

	.pmlc-booking-modal__dialog {
		width: 100%;
		height: 92vh;
		border-radius: 12px;
	}

	.pmlc-booking-modal__header {
		padding: 14px 16px;
	}

	.pmlc-booking-modal__close {
		width: 38px;
		height: 38px;
		font-size: 25px;
	}
}
