/*
 * Site-wide inquiry popup (modal). Chrome only — the form inside is styled by
 * forms.css (global). Opened by upit-popup.js on inquiry-CTA clicks.
 */

.upit-popup {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 40px 16px;
	overflow-y: auto;
}

.upit-popup[hidden] {
	display: none;
}

.upit-popup__overlay {
	position: fixed;
	inset: 0;
	background-color: rgba(10, 10, 10, 0.6);
}

.upit-popup__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 760px;
	margin: auto;
	padding: 48px;
	background-color: #fff;
	border-radius: var(--radius-md, 10px);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.upit-popup__close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: transparent;
	color: var(--color-ink, #0a0a0a);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 160ms ease, color 160ms ease;
}

.upit-popup__close:hover,
.upit-popup__close:focus {
	background-color: var(--color-bg-muted, #f0f0f0);
	color: var(--color-brand-red);
	outline: none;
}

.upit-popup__title {
	margin: 0 0 24px;
	padding-right: 40px;
	font-family: var(--font-heading);
	font-size: 26px;
	line-height: 1.2;
	color: var(--color-ink, #0a0a0a);
}

/* Lock background scroll while the popup is open. */
body.upit-popup-open {
	overflow: hidden;
}

@media (max-width: 599px) {
	.upit-popup {
		padding: 16px 12px;
	}

	.upit-popup__dialog {
		padding: 40px 20px 28px;
	}

	.upit-popup__title {
		font-size: 22px;
	}
}
