.form-guard {
	position: relative;
	overflow: visible;
	display: flex;
	flex-direction: column;
	gap: 15px;
 
}

.form-guard__banner {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	z-index: 2;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	transform: translateY(calc(-100% - 10px));
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 4px;
	padding: 0 14px;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	pointer-events: none;
	background: #AE2626;
	color: #ffffff;
	box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.251);
	transition:
		max-height 0.35s ease,
		opacity 0.35s ease,
		padding 0.35s ease,
		transform 0.35s ease;
	border-radius: 20px;
	width: fit-content;
}

.form-guard__banner.is-visible {
	max-height: 200px;
	opacity: 1;
	padding: 14px;
	pointer-events: auto;
}

.form-guard__banner-text {
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	flex: 1;
	min-width: 0;
	line-height: 120%;
	text-align: left;
}

.form-guard__banner-close {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	border: none;
	background: transparent;
	color: inherit;
	cursor: pointer;
	line-height: 0;
	transition: opacity 0.2s ease;
}

.form-guard__banner-close:hover {
	opacity: 0.85;
}

.form-guard__banner-close svg {
	display: block;
}

.form-guard button[type='submit'].form-guard__submit--idle {
	opacity: 0.65;
	cursor: not-allowed;
	transition: all 0.25s ease;
}

.form-guard button[type='submit']:not(.form-guard__submit--idle) {
	transition: all 0.25s ease;
}

.form-guard input.form-guard__field--error:not([type='hidden']) {
	border-color: #AE2626 !important;
	color: #AE2626;
	transition:
		border-color 0.25s ease,
		color 0.25s ease;
}

.form-guard input.form-guard__field--error:not([type='hidden'])::placeholder {
	color: #AE2626;
	opacity: 1;
	transition: color 0.25s ease;
}

.form-guard input.form-guard__field--error:not([type='hidden'])::-webkit-input-placeholder {
	color: #AE2626;
	opacity: 1;
}

.form-guard .agreement__item--required.form-guard__checkbox--error input[type='checkbox'] + span {
	border: 1px solid #AE2626 !important;
	background-color: #AE2626 !important;
	transition:
		border-color 0.25s ease,
		background-color 0.25s ease;
}

@media screen and (max-width: 1600px) {
	.form-guard__banner {
		width: 100%;
	}
}


@media screen and (max-width: 900px) {
	.form-guard__banner-text {
		margin: 0;
		font-size: 11px;
		font-weight: 400;
		flex: 1;
		min-width: 0;
		line-height: 120%;
		text-align: left;
	}
}

/* Порядок полей кредит трейдин  */
.credit form.form.js-form-guard,
.trade-in form.form.js-form-guard {
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
	justify-content: flex-start;
	gap: 10px;
	width: 100%;
	max-width: 320px;
}

.credit form.form.js-form-guard input[type='text'],
.credit form.form.js-form-guard input[type='tel'],
.trade-in form.form.js-form-guard input[type='tel'] {
	margin-right: 0 !important;
}

.form__agreement,
.form-modal__agreement {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* Модалки */
.form-modal.js-form-guard {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.form-modal.js-form-guard .form-modal__agreement {
	width: 100%;
	max-width: 100%;
}
