.offer-form {
	width: 652px;
	max-width: 100%;
	padding: 40px 40px 56px 40px;
	background: #fff;
	border: 1px solid #c4c5d9;
	border-radius: 32px;
	box-shadow: 0 25px 50px 0 rgba(13, 28, 47, 0.05);
	direction: rtl;
	text-align: right;
}
.offer-form__title {
	display: flex;
	align-items: center;
	min-height: 52px;
	margin: 0 0 32px 0;
	font-weight: 500;
	font-size: 24px;
	line-height: 1.33;
	color: #000080;
}
.offer-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px 24px;
}
.offer-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}
.offer-field--wide {
	grid-column: 1 / -1;
}
.offer-field__label {
	font-weight: 400;
	font-size: 12px;
	line-height: 1.33;
	letter-spacing: 0.6px;
	color: #000080;
}
.offer-field--wide .offer-field__label {
	font-weight: 500;
}
.offer-field__input,
.offer-field__select {
	width: 100%;
	height: 53px;
	padding: 17px 20px;
	border: 1px solid transparent;
	--inputs-border-radius: 8px;
	background-color: rgba(0, 0, 128, 0.14);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.2;
	color: #0d1c2f;
	text-align: right;
	transition: background-color 0.2s ease;
}
.offer-field__input::placeholder {
	color: #6b7280;
	opacity: 1;
}
.offer-field__select {
	height: 57px;
	padding: 16px 20px 16px 48px;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left 20px center;
	cursor: pointer;
}
.offer-field__input:focus-visible,
.offer-field__select:focus-visible {
	outline: 2px solid #000080;
	outline-offset: 2px;
}
.offer-field__input[aria-invalid="true"],
.offer-field__select[aria-invalid="true"] {
	border-color: #c0392b;
}
.offer-field .field-error {
	min-height: 0;
	font-size: 13px;
	line-height: 1.3;
	color: #c0392b;
}
.offer-field .field-error:empty {
	display: none;
}
.offer-form__submit {
	display: block;
	width: 100%;
	margin: 23px 0 0 0;
	padding: 15px 32px;
	border: none;
	border-radius: 999px;
	background: #cb6da7;
	box-shadow: 0 12px 26px 0 rgba(194, 45, 175, 0.5);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.19;
	color: #fff;
	text-align: center;
	cursor: pointer;
}
.offer-form__submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
.offer-form__error,
.offer-form__success {
	margin: 16px 0 0 0;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 16px;
	line-height: 1.4;
}
.offer-form__error {
	background: #fdecea;
	color: #8a1f11;
}
.offer-form__success {
	background: #e7f6ec;
	color: #106b2c;
}
.offer-form__error[hidden],
.offer-form__success[hidden] {
	display: none;
}
.ybox-offer .yBoxFrame {
	background: transparent;
	box-shadow: none;
}
.ybox-offer .insertYboxAjaxHere {
	padding: 0;
}
.ybox-offer .closeYbox:not(.closeYbox-group) {
	top: 49px;
	right: auto;
	left: 41px;
	width: 36px;
	height: 36px;
	background: transparent;
}
@media (max-width: 767px) {
	.ybox-offer .closeYbox:not(.closeYbox-group) {
		top: 16px;
		left: 12px;
	}
	.offer-form {
		padding: 24px 20px 32px 20px;
		border-radius: 24px;
	}
	.offer-form__title {
		min-height: 0;
		margin-bottom: 20px;
		font-size: 20px;
	}
	.offer-form__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}
}
@media (hover:hover) and (pointer:fine) {
	.offer-field__input:hover,
	.offer-field__select:hover {
		background-color: #cbcbe4;
	}
}
