/* =====================================================
 * GENERAL BUTTON CONTAINERS
 * ===================================================== */

.spcf-auto-contact {
	display: block;
	clear: both;
	margin-top: 20px;
	margin-bottom: 20px;
	text-align: center;
}

.spcf-single-contact-button {
	display: block;
	clear: both;
	width: 100%;
	margin-top: 20px;
	margin-bottom: 20px;
}

.spcf-loop-contact-button {
	display: block;
	clear: both;
	width: 100%;
	margin-top: 20px;
	margin-bottom: 20px;
	position: relative;
	z-index: 5;
}

.spcf-loop-contact-link {
	display: inline-block;
	text-decoration: none;
}

.spcf-open-button {
	cursor: pointer;
}


/* =====================================================
 * MODAL
 * ===================================================== */

.spcf-modal {
	display: none;
	position: fixed;
	z-index: 999999;
	inset: 0;
}

.spcf-modal.is-open {
	display: flex;
	align-items: center;
	justify-content: center;
}

.spcf-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
}

.spcf-modal-content {
	position: relative;
	z-index: 2;
	width: 90%;
	max-width: 550px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 30px;
	background: #fff;
	border-radius: 8px;
	box-shadow:
		0 10px 40px
		rgba(0, 0, 0, 0.3);
	box-sizing: border-box;
}


/* =====================================================
 * CLOSE BUTTON
 * ===================================================== */

.spcf-close-button {
	position: absolute;
	top: 10px;
	right: 15px;
	border: 0;
	background: transparent;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	color: #718096;
}


/* =====================================================
 * FORM
 * ===================================================== */

.spcf-form input,
.spcf-form textarea {
	width: 100%;
	box-sizing: border-box;
}


/* =====================================================
 * SUCCESS MESSAGE
 * ===================================================== */

.spcf-success-message {
	text-align: center;
	padding: 20px 10px;
}

.spcf-success-message h2 {
	margin-top: 0;
}

.spcf-thankyou-close {
	cursor: pointer;
	margin-top: 20px;
}


/* =========================================================
 * CONTACT MODAL
 * ========================================================= */

.spcf-modal {
	display: none;

	position: fixed !important;
	inset: 0 !important;

	width: 100vw !important;
	height: 100vh !important;

	z-index: 2147483647 !important;
}

.spcf-modal.is-open {
	display: block !important;
}


/* ---------------------------------------------------------
 * Overlay
 * --------------------------------------------------------- */

.spcf-modal-overlay {
	position: fixed !important;
	inset: 0 !important;

	width: 100vw !important;
	height: 100vh !important;

	background: rgba(0, 0, 0, 0.6);

	z-index: 2147483646 !important;
}


/* ---------------------------------------------------------
 * Modal content
 * --------------------------------------------------------- */

.spcf-modal-content {
	position: fixed !important;

	top: 50% !important;
	left: 50% !important;

	transform: translate(-50%, -50%) !important;

	width: calc(100vw - 40px);
	max-width: 600px;

	max-height: calc(100vh - 40px);

	overflow-y: auto;

	box-sizing: border-box;

	background: #fff;

	padding: 30px;

	z-index: 2147483647 !important;
}