/* =========================================================
   МОДАЛЬНОЕ ОКНО ЗАКАЗА
   ========================================================= */

.custom-form-modal .modal-dialog {
	width: 560px;
	max-width: calc(100vw - 30px);
	margin: 0 auto;

	overflow-y: hidden;
}

.custom-form-modal .modal-content {
	position: relative;

	width: 100%;
	box-sizing: border-box;

	padding: 35px 40px;

	background: #fff;
	border-radius: 18px;

	border: 1px solid transparent;

	background:
		linear-gradient(#fff, #fff) padding-box,
		conic-gradient(from var(--border-angle, 0deg),

			rgba(100, 170, 235, .15) 0deg,
			rgba(100, 170, 235, .15) 45deg,

			rgba(90, 160, 235, .45) 65deg,
			#79b8ee 78deg,
			#b9ddff 90deg,
			#79b8ee 102deg,
			rgba(90, 160, 235, .45) 115deg,

			rgba(100, 170, 235, .15) 135deg,
			rgba(100, 170, 235, .15) 360deg) border-box;

	box-shadow:
		0 20px 60px rgba(0, 0, 0, .16),
		0 0 25px rgba(80, 155, 225, .10);

	overflow-y: auto;

	animation:
		modalBorderSpin 7s linear infinite,
		modalGlow 4s ease-in-out infinite;

	font-family: 'Roboto', sans-serif;
}

div.custom-form-modal .modal-dialog {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) !important;
	bottom: auto;
	right: auto;
	margin: 0;
}


/* =========================================================
   ЗАГОЛОВОК
   ========================================================= */

.custom-form-modal .modal-header {
	position: relative;

	padding: 0 0 10px;

	border-bottom: 0;
	text-align: center;
}

.custom-form-modal .modal-header h5 {
	padding: 0;

	font-size: 28px !important;
	line-height: 34px;
	font-weight: 600;

	color: #384047;
	font-family: 'Roboto', sans-serif;
}


/* =========================================================
   КНОПКА ЗАКРЫТИЯ
   ========================================================= */

.custom-form-modal .modal-header .close {
	position: absolute;

	top: -15px;
	right: -20px;

	width: 32px;
	height: 32px;

	display: flex;
	align-items: center;
	justify-content: center;

	margin: 0;
	padding: 0;

	border: 0;
	border-radius: 50%;

	background: transparent;

	font-size: 28px;
	font-weight: 300;
	line-height: 32px;

	color: #555;

	opacity: 1;

	cursor: pointer;

	transition:
		background .2s ease,
		color .2s ease,
		transform .2s ease;
}

.custom-form-modal .modal-header .close:hover {
	background: #f3f3f3;
	color: #222;

	transform: rotate(90deg);
}


/* =========================================================
   BODY
   ========================================================= */

.custom-form-modal .modal-body {
	max-height: 700px;

	padding: 10px 0 0;

	overflow-y: auto;

	text-align: center;
}


/* Заголовок, который приходит из data-title */

.custom-form-modal .modal-body .modal-title {
	margin: 0 0 20px;

	padding: 0;

	font-size: 20px;
	line-height: 28px;
	font-weight: 500;

	color: #384047;
	font-family: 'Roboto', sans-serif;
}


/* =========================================================
   ФОРМА BITRIX
   ========================================================= */

.custom-form-modal .closeforms {
	width: 100%;
	max-width: 500px;

	margin: 25px auto 0;
}


/* Каждый блок поля */

.custom-form-modal .closeforms .form-group {
	margin-bottom: 14px;
}


/* Контейнер поля */

.custom-form-modal .closeforms .controls {
	width: 100%;
}


/* =========================================================
   INPUT
   ========================================================= */



.custom-form-modal .closeforms .form-control {
	display: block;

	width: 100%;
	height: 42px;

	box-sizing: border-box;

	padding: 0 16px;

	border: 1px solid #dcdcdc;
	border-radius: 10px;

	background: #fff;

	color: #333;

	font-family: inherit;
	font-size: 15px;
	line-height: 42px;

	outline: none;

	transition:
		border-color .2s ease,
		box-shadow .2s ease;
}

input#chtpole222 {
	height: 0;
	padding: 0;
	margin: 0;
}


/* Placeholder */

.custom-form-modal .closeforms .form-control::placeholder {
	color: #999;
	opacity: 1;
}


/* =========================================================
   TEXTAREA
   ========================================================= */

.custom-form-modal .closeforms textarea.textarea {
	display: block;

	width: 100%;
	height: 120px;
	min-height: 120px;

	box-sizing: border-box;

	padding: 14px 16px;

	border: 1px solid #dcdcdc;
	border-radius: 10px;

	background: #fff;

	color: #333;

	font-family: inherit;
	font-size: 15px;
	line-height: 21px;

	outline: none;

	resize: vertical;

	transition:
		border-color .2s ease,
		box-shadow .2s ease;
}


/* Placeholder textarea */

.custom-form-modal .closeforms textarea.textarea::placeholder {
	color: #999;
	opacity: 1;
}


/* =========================================================
   FOCUS
   ========================================================= */

.custom-form-modal .closeforms .form-control:focus,
.custom-form-modal .closeforms textarea.textarea:focus {

	border-color: #6fa8dc;

	box-shadow:
		0 0 0 3px rgba(74, 144, 226, .10);
}


/* =========================================================
   ОШИБКИ BITRIX
   ========================================================= */

.custom-form-modal .closeforms .form-group.has-error .form-control,
.custom-form-modal .closeforms .form-group.has-error textarea.textarea,
.custom-form-modal .closeforms .form-control.error,
.custom-form-modal .closeforms textarea.textarea.error {

	border-color: #e74c3c;
}


/* =========================================================
   КНОПКА ОТПРАВКИ
   ========================================================= */

.custom-form-modal .closeforms input[type="submit"] {

	position: relative;

	display: block;

	width: 100%;
	height: 42px;

	overflow: hidden;

	padding: 5px 30px;

	border: 0;
	border-radius: 10px;

	background:
		linear-gradient(135deg,
			#4d9be8 0%,
			#367fca 50%,
			#4d9be8 100%);

	background-size: 200% 100%;

	color: #fff;

	font-size: 18px;
	font-weight: 500;

	cursor: pointer;

	box-shadow:
		0 8px 20px rgba(54, 127, 202, .22);

	transition:
		background-position .5s ease,
		transform .2s ease,
		box-shadow .3s ease;
}


/* Световая полоска */

.custom-form-modal .closeforms input[type="submit"]::before {

	content: "";

	position: absolute;

	top: 0;
	left: -80%;

	width: 45%;
	height: 100%;

	background:
		linear-gradient(90deg,
			transparent,
			rgba(255, 255, 255, .38),
			transparent) !important;

	transform: skewX(-20deg);

	transition: left .6s ease;

	pointer-events: none;
}


/* Hover */

.custom-form-modal .closeforms input[type="submit"]:hover {

	background-position: 100% 0;

	transform: translateY(-2px);

	box-shadow:
		0 10px 25px rgba(54, 127, 202, .30),
		0 0 20px rgba(80, 155, 225, .15);
}


/* Свет проходит по кнопке */

.custom-form-modal .closeforms input[type="submit"]:hover::before {
	left: 130%;
}


/* Active */

.custom-form-modal .closeforms input[type="submit"]:active {

	transform: translateY(0);

	box-shadow:
		0 5px 12px rgba(54, 127, 202, .20);
}


/* =========================================================
   ТЕКСТ СОГЛАСИЯ
   ========================================================= */

.custom-form-modal .closeforms p {

	margin: 12px 0 0 !important;

	color: #777;

	font-size: 13px !important;
	line-height: 19px;
}


/* Иконка галочки */

.custom-form-modal .closeforms p .fa {

	color: #3780cb!important;

	margin-right: 4px;
}


/* Ссылки внутри модалки */

.custom-form-modal .modal-content a {
	color: #3780cb !important;
}




/* =========================================================
   АНИМАЦИЯ РАМКИ
   ========================================================= */

@property --border-angle {

	syntax: "<angle>";
	initial-value: 0deg;
	inherits: false;

}


@keyframes modalBorderSpin {

	from {
		--border-angle: 0deg;
	}

	to {
		--border-angle: 360deg;
	}

}


@keyframes modalGlow {

	0%,
	100% {

		box-shadow:
			0 20px 60px rgba(0, 0, 0, .16),
			0 0 20px rgba(80, 155, 225, .08);

	}

	50% {

		box-shadow:
			0 20px 60px rgba(0, 0, 0, .16),
			0 0 30px rgba(80, 155, 225, .18),
			0 0 55px rgba(80, 155, 225, .07);

	}

}


/* =========================================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ========================================================= */

@media (max-width: 759px) {

	.custom-form-modal .modal-dialog {

		width: auto;

		max-width: calc(100vw - 20px);

		margin: 0 auto;

	}

	.custom-form-modal .modal-content {

		padding: 30px 20px;

		border-radius: 16px;

	}

	.custom-form-modal .modal-header {

		padding: 0 25px 10px;

	}

	.custom-form-modal .modal-header h5 {

		font-size: 24px;
		line-height: 30px;

	}

	.custom-form-modal .modal-header .close {

		top: -10px;
		right: -10px;

	}

	.custom-form-modal .modal-body {

		padding-top: 5px;

	}

	.custom-form-modal .modal-body .modal-title {

		font-size: 18px;
		line-height: 25px;

	}

	.custom-form-modal .closeforms {

		margin-top: 20px;

	}

	.custom-form-modal .closeforms input[type="submit"] {

		font-size: 18px !important;

	}

}





.custom-form-modal p {
	margin-top: 0;
	margin-bottom: 0;
}


svg.svg-inline--fa.fa-check-square.fa-w-14 path {
	fill: #3d88d3;
}




button.btn.btn-lg.btn-coral.submit.btn-arrow.order-btn-266 {
	display: block;
	margin: 0 auto;
}


.modal-callback a[href="#close"]:after {
	content: none!important;
}