body.lock {
	overflow: hidden;
}

.popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(9, 49, 107, 0.5);
	opacity: 0;
	visibility: hidden;
	overflow-y: auto;
	overflow-x: hidden;
	transition: all .5s ease 0s;
	z-index: 99;
}

.popup.open {
	opacity: 1;
	visibility: visible;
}

.popup.open .popup-content {
	opacity: 1;
	transform: translate(0px, 0px);
}

.popup-body {
	min-height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 30px 10px;
}

@media screen and (max-width: 767px) {
	.popup-body {
		width: 100%;
		padding: 0;
	}
}

.popup-content {
	background-color: #fff;
	color: #000;
	/* max-width: 848px; */
	/* padding: 100px 140px; */
	opacity: 0;
	transition: all .5s ease 0s;
	transform: translate(0px, -100%);
	background-color: transparent;
}

.popup-content h3 {
	font-weight: 700;
	font-size: 1.5rem;
	line-height: 2rem;
	margin-bottom: 1.5rem;
	text-align: center;
}

.popup-content p {
	/* text-align: center; */
	margin: 0 0 0.3em;
}

@media screen and (max-width: 1365px) {
	.popup-content {
		max-width: 782px;
	}
}

@media screen and (max-width: 1023px) {
	.popup-content {
		max-width: 584px;
	}
}

@media screen and (max-width: 767px) {
	.popup-content {
		width: 100%;
	}
}

.popup-content-image {
	padding: 0;
}

.popup-image img {
	max-width: 100%;
	vertical-align: top;
}

.popup-close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid #808080;
	cursor: pointer;
	transition: border-color .25s ease-in-out;
}

@media screen and (max-width: 767px) {
	.popup-close {
		width: 20px;
		height: 20px;
		border-color: #8498B5;
	}
}

.popup-close:before,
.popup-close:after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 1px;
	height: 25px;
	transform: translate(-50%, -50%) rotate(45deg);
	transform-origin: center;
	background: #808080;
	transition: background .25s ease-in-out;
}

@media screen and (max-width: 767px) {

	.popup-close:before,
	.popup-close:after {
		background: #8498B5;
		height: 15px;
	}
}

.popup-close:after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.popup-close:hover {
	border-color: rgb(30, 64, 172);
}

.popup-close:hover:before,
.popup-close:hover:after {
	background: rgb(30, 64, 172);
}

.popup-close:active {
	border-color: rgb(30, 64, 172);
}

.popup-close:active:before,
.popup-close:active:after {
	background: rgb(30, 64, 172);
}

.popup-success .popup-content {
	background: #fff;
	border-radius: 14px;
	padding: 50px 40px;
	text-align: center;
	max-width: 420px;
	width: 100%;
	box-shadow: 0 15px 40px rgba(0,0,0,0.15);
	position: relative;
}

.popup-success-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: #22c55e;
	color: #fff;
	font-size: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
}

.popup-success .popup-content h3 {
	font-size: 24px;
	margin-bottom: 12px;
}

.popup-success .popup-content p {
	font-size: 15px;
	color: #555;
	line-height: 1.5;
	margin-bottom: 6px;
}

@media (max-width: 480px) {

	.popup-success .popup-content {
		padding: 35px 20px;
	}

	.popup-success-icon {
		width: 56px;
		height: 56px;
		font-size: 28px;
	}
}

.popup-exists .popup-content {
	background: #fff;
	border-radius: 14px;
	padding: 50px 40px;
	text-align: center;
	max-width: 420px;
	width: 100%;
	box-shadow: 0 15px 40px rgba(0,0,0,0.15);
	position: relative;
}

.popup-exists .popup-content p {
	font-size: 15px;
	color: #555;
	line-height: 1.5;
	margin-bottom: 6px;
}

.popup-exists .popup-error-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: #f59e0b;
	color: #fff;
	font-size: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
}

.popup-error-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: #ef4444;
	color: white;
	font-size: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
}

.crm-error,
.crm-error:focus {
  border-color: #ef4444 !important;
}