#reloadCaptcha {
	font-size: 13px;
	color: #4b5563;
	padding: 6px 0;
	display: inline-block;
}

/* Оверлей модального окна — приводим к такому же виду, как #requestPrice / #appFastBuy */
.webformModal {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
	display: none;
	z-index: 1300;
	padding: 16px;
	box-sizing: border-box;
	color: #111827;
	font-family: "Montserrat", "Roboto", Arial, sans-serif;
	font-size: 14px;
}

.webformModal.visible {
	display: flex;
	align-items: center;
	justify-content: center;
}

.webformModalHideScrollBar,
.webformModalcn100 {
	height: 100%;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Контейнер модального окна — стилистика как у .request-price-modal / .fastbuy-modal */
.webformModalContainer {
	background: #ffffff;
	border-radius: 16px;
	max-width: 720px;
	width: 100%;
	padding: 20px 24px 22px;
	box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
	position: relative;
	box-sizing: border-box;
	margin: 0 auto;
}

.small .webformModalContainer {
	max-width: 520px;
	border-radius: 16px;
}

.webFormDw form {
	transition: all 0.2s ease-in-out;
	box-sizing: border-box;
}

.webFormDw form.loading {
	pointer-events: none;
	opacity: 0.8;
}

/* Шапка модалки */
.webFormModalHeading {
	margin: 0 0 12px 0;
	padding-bottom: 10px;
	border-bottom: 1px solid #e5e7eb;
	text-align: left;
	font-size: 18px;
	font-weight: 600;
	color: #111827;
	position: relative;
}

.webformModal .webFormModalHeadingExit {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 24px;
	width: 24px;
	right: 0;
	top: 2px;
	background: none;
	cursor: pointer;
}

.webformModal .webFormModalHeadingExit::before {
	content: "×";
	font-size: 22px;
	line-height: 1;
	color: #4b5563;
}

.webFormDescription {
	margin: 2px 0 0 0;
	max-width: 800px;
	font-size: 13px;
	color: #4b5563;
}

.webformModal .webFormDescription,
.webformModal .webFormItems,
.webformModal .webFormTools,
.webformModal .webFormError {
	padding: 0;
}

.webFormItems {
	margin-top: 8px;
}

.webFormItem {
	margin-top: 10px;
}

.webFormItemCaption {
	margin-top: 6px;
	line-height: 1.4;
	font-size: 13px;
	font-weight: 500;
	color: #374151;
	display: flex;
	align-items: center;
	gap: 6px;
}

.webFormItemImage {
	vertical-align: middle;
	display: inline-block;
	padding-right: 0;
	max-height: 20px;
}

.webFormItemLabel {
	display: inline-block;
	color: #374151;
}

.webFormItemRequired {
	display: inline-block;
	padding-left: 2px;
	color: #ef4444;
}

.webFormItemFieldVariant {
	display: inline-block;
	margin-left: 12px;
}

.webFormItemFieldVariant:first-child {
	margin-left: 0;
}

/* Поля формы в стиле модалок быстрого заказа */
.webFormItemField input[type="password"],
.webFormItemField input[type="text"],
.webFormItemField select,
.webFormItemField .inputtext {
	transition: all 0.15s ease-in-out;
	box-sizing: border-box;
	font-family: "Montserrat", "Roboto", Arial, sans-serif;
	border-radius: 8px;
	border: 1px solid #d1d5db;
	padding: 8px 10px;
	max-width: 100%;
	font-size: 14px;
	color: #111827;
	outline: none;
	height: auto;
	width: 100%;
}

.webFormItemField textarea,
.webFormItemField .inputtextarea {
	transition: all 0.15s ease-in-out;
	box-sizing: border-box;
	font-family: "Montserrat", "Roboto", Arial, sans-serif;
	border-radius: 8px;
	border: 1px solid #d1d5db;
	padding: 8px 10px;
	max-width: 100%;
	font-size: 14px;
	color: #111827;
	outline: none;
	width: 100%;
	min-height: 70px;
	max-height: 140px;
	resize: vertical;
}

.webFormItemField input[id*="form_date_"] {
	margin-bottom: 6px;
}

.webFormItemField input[type="text"]:focus,
.webFormItemField input[type="password"]:focus,
.webFormItemField textarea:focus,
.webFormItemField .inputtext:focus,
.webFormItemField .inputtextarea:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}

/* Чекбоксы и радиокнопки для обычных полей (если есть) */
.webFormItemField input[type="checkbox"] + label,
.webFormItemField input[type="radio"] + label {
	cursor: pointer;
	font-size: 12px;
}

.webFormItemField input[type="checkbox"]:not(checked),
.webFormItemField input[type="radio"]:not(checked) {
	position: absolute;
	opacity: 0;
}

.webFormItemField input[type="checkbox"]:not(checked) + label,
.webFormItemField input[type="radio"]:not(checked) + label {
	position: relative;
	padding-left: 26px;
}

.webFormItemField input[type="checkbox"]:not(checked) + label:before,
.webFormItemField input[type="radio"]:not(checked) + label:before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	border-radius: 4px;
	border: 2px solid #d1d5db;
	background: #fff;
}

.webFormItemField input[type="checkbox"].error + label:before {
	border-color: #f87171 !important;
}

.webFormItemField input[type="checkbox"]:checked + label:before,
.webFormItemField input[type="radio"]:checked + label:before {
	background: #ffcc33;
	border-color: #ffcc33;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2937' stroke-width='2.5'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
	background-size: 12px;
	background-position: center;
	background-repeat: no-repeat;
}

.webFormItemField img.calendar-icon {
	vertical-align: middle !important;
	margin: 0 0 0 4px !important;
	border: 0 !important;
}

.webFormItemField [multiple] {
	line-height: 1.4;
	height: auto;
	padding: 8px 10px;
}

/* Капча */
.webFormCaptchaPicture {
	margin-top: 10px;
	font-size: 12px;
	color: #6b7280;
}

.webFormCaptchaPicture img {
	vertical-align: middle;
	max-width: 100%;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
}

.webFormCaptchaLabel {
	margin: 10px 0 6px;
	font-size: 13px;
	color: #374151;
}

.webFormItemField input.captcha_word {
	max-width: 260px;
}

/* Блок согласия на персональные данные внутри модалки */
.personalInfo {
	margin-top: 10px;
	font-size: 12px;
	color: #4b5563;
}

.personalInfo .webFormItemField {
	display: flex;
	align-items: flex-start;
}

.personalInfoField {
	position: absolute;
	opacity: 0;
	width: 18px;
	height: 18px;
	margin: 0;
	cursor: pointer;
}

.label-for {
	position: relative;
	padding-left: 28px;
	min-height: 20px;
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	color: #4b5563;
}

.label-for::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	border-radius: 4px;
	border: 2px solid #d1d5db;
	background: #fff;
}

.personalInfoField:checked + .label-for::before {
	background: #ffcc33;
	border-color: #ffcc33;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2937' stroke-width='2.5'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
	background-size: 12px;
	background-position: center;
	background-repeat: no-repeat;
}

.label-for .webFormItemRequired {
	padding-left: 2px;
}

.pilink {
	color: #1d4ed8;
	text-decoration: underline;
}

/* Ошибки */
.webFormItemError,
.webFormError {
	margin-bottom: 6px;
	font-size: 12px;
	color: #ef4444;
	display: none;
}

.webFormError {
	margin-top: 14px;
}

.webFormItemError.visible,
.webFormError.visible {
	display: block;
}

.webFormItemField .error {
	border-color: #f87171 !important;
	box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.35);
}

/* Низ модалки: кнопки */
.webFormTools {
	box-sizing: border-box;
	margin-top: 16px;
	font-size: 12px;
	color: #6b7280;
}

.webFormTools .tb {
	display: flex;
	gap: 10px;
	align-items: center;
}

.webFormTools .tc {
	flex: 1;
}

.webFormTools input[type="submit"],
.webFormTools input[type="reset"] {
	transition: all 0.2s ease-in-out;
	box-sizing: border-box;
	border-radius: 999px;
	line-height: 1.2;
	font-size: 13px;
	cursor: pointer;
	outline: none;
	height: 40px;
	width: 100%;
	padding: 0 14px;
	border: 1px solid #e5e7eb;
	background-color: #f9fafb;
	color: #111827;
	font-weight: 600;
}

.webFormTools input[type="submit"] {
	background: linear-gradient(135deg, #ffcc33 0%, #ffd700 50%, #ffcc33 100%);
	border-color: rgba(255, 204, 51, 0.95);
	color: #1a1a1a;
	box-shadow:
		0 4px 10px rgba(15, 23, 42, 0.12),
		inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.webFormTools input[type="submit"]:hover {
	filter: brightness(1.03);
	box-shadow:
		0 6px 14px rgba(15, 23, 42, 0.18),
		inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.webFormTools input[type="reset"]:hover {
	background-color: #f3f4f6;
}

.webFormTools input[type="submit"]:active,
.webFormTools input[type="reset"]:active {
	transform: translateY(1px);
}

.sendWebFormDw {
	/* для совместимости: класс на submit */
}

.webFormMessage {
	display: none;
}

/* Отключаем скролл фона при открытой модалке */
body.webform-modal-open {
	overflow: hidden;
}

@media all and (max-width: 640px) {
	.webformModal {
		padding: 12px;
	}

	.webformModalContainer {
		max-width: 100%;
		padding: 16px 16px 18px;
		border-radius: 12px;
	}

	.webFormModalHeading {
		font-size: 16px;
	}

	.webFormTools .tb {
		flex-direction: row;
	}
	.webFormItemField textarea,
	.webFormItemField .inputtextarea {
		min-height: 50px;
		max-height: 50px;
	}
}
