/* Уведомления после отправки форм и подсветка ошибок полей */
.nv-notify-overlay {
	position: fixed;
	top: 0; right: 0; bottom: 0; left: 0;
	z-index: 2147483647;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(30, 12, 12, 0.45);
	opacity: 0;
	transition: opacity .3s ease;
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}
.nv-notify-overlay.nv-show { opacity: 1; }

.nv-notify {
	position: relative;
	width: 100%;
	max-width: 400px;
	padding: 38px 32px 28px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 24px 60px rgba(60, 10, 10, 0.35);
	text-align: center;
	font-family: 'Roboto', Arial, sans-serif;
	overflow: hidden;
	transform: translateY(24px) scale(.96);
	transition: transform .35s cubic-bezier(.2, .9, .3, 1.2);
}
.nv-notify-overlay.nv-show .nv-notify { transform: translateY(0) scale(1); }
.nv-notify:before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 6px;
	background: linear-gradient(90deg, #c72629 0%, #c72629 55%, #ffe452 55%, #ffe452 100%);
}

.nv-notify-icon {
	width: 72px;
	height: 72px;
	margin: 0 auto 18px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	color: #fff;
	background: linear-gradient(135deg, #e0393c 0%, #a91e21 100%);
	box-shadow: 0 0 0 8px #fff3b3, 0 10px 24px rgba(199, 38, 41, 0.35);
	animation: nv-pop .45s .15s both cubic-bezier(.2, .9, .3, 1.4);
}
.nv-notify-error .nv-notify-icon {
	background: #fff;
	color: #c72629;
	border: 3px solid #c72629;
	box-shadow: 0 0 0 8px #fde3e3;
}
.nv-notify-title {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	color: #222;
}
.nv-notify-text {
	margin: 0 0 22px;
	font-size: 15px;
	line-height: 1.5;
	color: #555;
}
.nv-notify-text a { color: #c72629; font-weight: 500; white-space: nowrap; }
.nv-notify-btn {
	display: inline-block;
	min-width: 160px;
	height: 44px;
	padding: 0 28px;
	border: 0;
	border-radius: 4px;
	background: #c72629;
	color: #fff;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: background .2s, transform .2s;
}
.nv-notify-btn:hover, .nv-notify-btn:focus { background: #a91e21; outline: none; }
.nv-notify-btn:active { transform: scale(.97); }
.nv-notify-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f3f3f3;
	color: #777;
	font-size: 22px;
	line-height: 32px;
	cursor: pointer;
	transition: background .2s, color .2s, transform .2s;
}
.nv-notify-close:hover { background: #c72629; color: #fff; transform: rotate(90deg); }
.nv-notify-progress {
	position: absolute;
	left: 0; bottom: 0;
	height: 4px;
	width: 100%;
	background: #ffe452;
	transform-origin: left center;
}
.nv-notify-progress.nv-run { transform: scaleX(0); transition-property: transform; transition-timing-function: linear; }
.nv-notify:hover .nv-notify-progress { transition: none; transform: scaleX(1); }

@keyframes nv-pop {
	0% { transform: scale(0); opacity: 0; }
	100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 480px) {
	.nv-notify-overlay { align-items: flex-end; padding: 0; }
	.nv-notify { max-width: none; border-radius: 16px 16px 0 0; padding: 34px 20px 28px; transform: translateY(100%); }
	.nv-notify-title { font-size: 20px; }
	.nv-notify-btn { width: 100%; }
}

/* Ошибки полей */
input.nv-invalid,
.main_form form input.nv-invalid[type="text"] {
	border-color: #c72629 !important;
	box-shadow: 0 0 0 3px rgba(199, 38, 41, 0.15) !important;
	animation: nv-shake .4s;
}
.nv-field-error {
	display: block;
	position: relative;
	margin: -11px 0 10px;
	padding: 5px 9px 5px 26px;
	font: 500 12px/1.35 'Roboto', Arial, sans-serif !important;
	text-align: left;
	text-shadow: none;
	color: #fff !important;
	background: #c72629;
	border-radius: 4px;
	animation: nv-slide .25s ease-out;
}
.nv-field-error:before {
	content: '!';
	position: absolute;
	left: 7px;
	top: 50%;
	width: 14px;
	height: 14px;
	margin-top: -7px;
	border-radius: 50%;
	background: #fff;
	color: #c72629;
	font-size: 11px;
	font-weight: 700;
	line-height: 14px;
	text-align: center;
}
.nv-field-error:after {
	content: '';
	position: absolute;
	top: -5px;
	left: 14px;
	border: 5px solid transparent;
	border-top: 0;
	border-bottom-color: #c72629;
}
.drop_bl .nv-field-error { width: 170px; box-sizing: border-box; }
.main_form form .nv-field-error { margin: -16px 0 12px; font-size: 13px !important; }
.pk.nv-invalid-box, .pk2.nv-invalid-box {
	padding: 6px 8px;
	border-radius: 4px;
	box-shadow: 0 0 0 2px #c72629;
	background: #fff5f5;
	animation: nv-shake .4s;
}
.drop_bl .pk .nv-field-error, .main_form form .pk2 .nv-field-error { display: table; margin: 8px 0 2px; width: auto; }
.pk .nv-field-error:after, .pk2 .nv-field-error:after { left: 4px; }
input[type="submit"].nv-loading { opacity: .7; cursor: wait; }

@keyframes nv-shake {
	0%, 100% { transform: translateX(0); }
	20%, 60% { transform: translateX(-5px); }
	40%, 80% { transform: translateX(5px); }
}
@keyframes nv-slide {
	0% { opacity: 0; transform: translateY(-4px); }
	100% { opacity: 1; transform: translateY(0); }
}
