/* Shared popup base — used by popup-contact and popup-brochure
   - Fixed to viewport; internal overflow-y so the popup scrolls, not the page
   - Body scroll is locked while a popup is open (see body.popup-open)
   - Fixed blurred overlay
   - Fade in/out animation */

.popup-contact,
.popup-brochure {
	display: none;
	position: fixed;
	inset: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	z-index: 10000;
	padding: 24px;
	box-sizing: border-box;
	opacity: 0;
	transition: opacity 0.35s ease;
}

body.popup-open {
	overflow: hidden;
}

.popup-contact.is-open,
.popup-brochure.is-open {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	opacity: 1;
}

.popup-contact.is-closing,
.popup-brochure.is-closing {
	opacity: 0;
}

/* Overlay — fixed, full viewport, blurred + darkened */
.popup-contact-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.78);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	z-index: 0;
	opacity: 0;
	transition: opacity 0.35s ease, backdrop-filter 0.35s ease;
}

.popup-contact.is-open .popup-contact-overlay,
.popup-brochure.is-open .popup-contact-overlay {
	opacity: 1;
}

.popup-contact.is-closing .popup-contact-overlay,
.popup-brochure.is-closing .popup-contact-overlay {
	opacity: 0;
}

/* Dialog — slight scale-in for polish */
.popup-contact-dialog,
.popup-brochure-dialog {
	transform: scale(0.97);
	transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.popup-contact.is-open .popup-contact-dialog,
.popup-brochure.is-open .popup-brochure-dialog {
	transform: scale(1);
}

.popup-contact.is-closing .popup-contact-dialog,
.popup-brochure.is-closing .popup-brochure-dialog {
	transform: scale(0.97);
}
