.flex-popup {
	display: none;
}

.flex-popup.is-open {
	display: block;
}

.flex-popup-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	transition: opacity .2s ease;
	z-index: 100000;
}

.flex-popup.is-open .flex-popup-backdrop {
	opacity: 1;
}

.flex-popup-modal {
	padding: 20px 25px;
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%) scale(.3);
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .75);
	max-width: 760px;
	width: calc(100% - 32px);
	max-height: 85vh;
	overflow-x: hidden;
	overflow-y: auto;
	background: rgb(43, 67, 130);
	opacity: 0;
	transition: transform 0.8s ease, opacity 0.8s ease;
	z-index: 100001;
}

.flex-popup.animate .flex-popup-modal {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

.flex-popup-modal__close {
	position: absolute;
	right: 0px;
	top: 0px;
	border: 0;
	cursor: pointer;
	width: 40px;
	height: 40px;
	font-size: 40px !important;
	line-height: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0 0 6px 0 !important;
	box-shadow: 0px 0px 5px 3px rgba(0, 0, 0, 0.16);
}

.flex-popup-modal__header {
	display: flex;
	padding: 10px 10px 15px;
	gap: 20px;
}

.flex-popup-modal__image {
	max-width: 30%;
}

.flex-popup-modal__content {
	width: 100%;
	padding: 0;
	color: white;
}

.flex-popup-modal__title {
	margin: 0 0 8px;
	color: white !important;
}

.flex-popup-modal__shortcode {
	background: rgb(31 51 98);
	padding: 25px 25px 5px 25px;
	border-radius: 8px;
}

.flex-popup-modal__shortcode .gform_wrapper input[type=submit] {
	background: #fff !important;
	color: black !important;
}

.flex-popup-modal__shortcode .gform_wrapper input[type=submit]:hover {
	background: #2a4482 !important;
	color: white !important;
}

.flex-popup-modal__shortcode .validation_message {
	background: transparent !important;
	padding: 0 !important;
	border: 0 !important;
	margin: 0 !important;
	margin-block-start: 0 !important;
}

.flex-popup-modal__shortcode .gform_confirmation_message {
	padding-bottom: 20px !important;
	color: white !important;
}

.flex-popup-modal__shortcode .gfield_error .gfield_label {
	color: white !important;
}

body.flex-popup-open {
	overflow: hidden;
}

@media (max-width: 767px) {
	.flex-popup-modal__header {
		flex-direction: column;
		padding: 0;
	}
	.flex-popup-modal__content {
		padding: 0 0 20px 0;
	}
	.flex-popup-modal__image {
		max-width: 100%;
		padding: 0px 40px 0;
	}
	.flex-popup-modal__shortcode .gform_wrapper input[type=submit]{
		max-width: 100%;
    	padding: 10px 20px;
	}
}
