/* Simple Popup Form */

.spf-backdrop {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 999998;
}

.spf-popup {
	--spf-width: 600px;
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 90%;
	max-width: var(--spf-width);
	max-height: 90vh;
	overflow-y: auto;
	box-sizing: border-box;
	background: #fff;
	border: 3px solid #666;
	border-radius: 4px;
	padding: 30px 20px 20px;
	text-align: left;
	z-index: 999999;
	animation: spf-fadein 0.4s ease;
}

.spf-backdrop.is-active,
.spf-popup.is-active {
	display: block;
}

.spf-close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: none;
	border: 0;
	padding: 0 4px;
	margin: 0;
	color: #b7b9b9;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.spf-close:hover,
.spf-close:focus {
	color: #333;
	outline: none;
}

.spf-title {
	margin: 0 0 15px;
	padding-right: 30px;
}

.spf-body iframe {
	max-width: 100%;
}

body.spf-open {
	overflow: hidden;
}

@media screen and (max-width: 767px) {
	.spf-popup {
		width: 85%;
		padding: 30px 12px 12px;
	}
}

@keyframes spf-fadein {
	from { opacity: 0; }
	to   { opacity: 1; }
}
