/**
 * On-page popup for GoHighLevel forms (see assets/form-modal.js).
 */

.psi-form-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding: 40px 16px;
	overflow-y: auto;
	background: rgba(7, 22, 41, 0.72);
}

.psi-form-modal.is-open {
	display: flex;
}

.psi-form-modal__box {
	position: relative;
	width: 100%;
	max-width: 640px;
	margin: auto 0;
	padding: 16px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
}

.psi-form-modal__close {
	/* Fixed to the screen corner so it stays visible while a long form is scrolled. */
	position: fixed;
	top: 14px;
	right: 14px;
	z-index: 2;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #eef2f6;
	color: #0f1b2d;
	font: 400 28px/40px Arial, sans-serif;
	text-align: center;
	cursor: pointer;
}

.psi-form-modal__close:hover {
	background: #dfe6ee;
}

.psi-form-modal__close:focus-visible {
	outline: 3px solid #1c8fd0;
	outline-offset: 2px;
}

.psi-form-modal__loading {
	margin: 24px 0;
	text-align: center;
	color: #4a5a70;
	font: 400 16px/1.5 Arial, sans-serif;
}

html.psi-form-modal-open,
html.psi-form-modal-open body {
	overflow: hidden;
}

@media (max-width: 600px) {
	.psi-form-modal {
		padding: 64px 8px 12px;
	}

	.psi-form-modal__box {
		padding: 8px;
		border-radius: 12px;
	}
}
