:root {
	--text-main: black;
	--text-main-contrast: white;
	--text-caption: rgba(0, 0, 0, 0.40);

	--bg-btn: black;
	--bg-btn-hover: #333;
	--bg-secondary: #F4F4F4;
	--bg-secondary-focus: #FFFFFF;
	--bg-checkbox: #FFFFFF;
	--bg-checkbox-hover: rgba(0, 0, 0, 0.06);

	--border-input: rgba(0, 0, 0, 0.12);
	--border-input-hover: rgba(0, 0, 0, 0.24);
	--border-input-focus: rgba(0, 0, 0, 0.12);
	--border-checkbox: rgba(0, 0, 0, 0.16);
}

.static_form {
	background: var(--bg-secondary, #F4F4F4);
	padding: 32px;
}
.static_form-block {
	display: inline-flex;
	gap: 32px;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: stretch;
	align-content: space-between;
	justify-content: space-between;
}
.static_form-header {
	order: 1;
	width: 100%;
	max-width: 333px;
	display: inline-flex;
	gap: 20px;
	flex-direction: column;
	align-items: flex-start;
}
.static_form-body {
	order: 2;
	width: 100%;
	max-width: 50%;

	display: inline-flex;
	gap: 12px;
	flex-direction: row;
	flex-wrap: wrap;
	align-content: flex-start;
	justify-content: space-between;
	align-items: stretch;
}
.static_form-footer {
	order: 4;
	width: 100%;
	max-width: 50%;
}
.static_form-notice {
	order: 3;
	width: 100%;
	max-width: 320px;
	color: var(--text-caption, rgba(0, 0, 0, 0.40));
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
}


.static_form-title {
	color: var(--text-main, black);
	font-size: 48px;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1;
}
.static_form-description {
	color: var(--text-main, black);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	max-width: 238px;
}
.static_form-error {
	background: rgba(244, 67, 54, 0.1);
	border: 1px solid #F44336;
	border-radius: 8px;
	padding: 20px;
	color: #F44336;
	margin-bottom: 30px;
}


.static_form-field {
	width: 100%;
	margin: 0;
	position: relative;
}
.static_form-field:nth-child(1),
.static_form-field:nth-child(2) {
	width: calc(50% - 6px);
}

.static_form-input,
.static_form-textarea {
	width: 100%;
	height: 64px;
	padding: 30px 20px 14px;
	border-radius: 3px;
	background: var(--bg-secondary, #F4F4F4) !important;
	border: 1px solid var(--border-input, rgba(0, 0, 0, 0.12)) !important;
	outline: none;
	font-size: 16px;
	transition: all 0.3s ease-in-out;
	box-sizing: border-box;
}
.static_form-textarea {
	height: 124px;
	resize: none;
}
.static_form-label {
	position: absolute;
	z-index: 1;
	left: 20px;
	top: 20px;
	margin: 0;
	pointer-events: none;
	transition: all 0.2s ease;
	color: var(--text-caption, rgba(0, 0, 0, 0.40));
	font-size: 16px;
	font-weight: 400;
}

.static_form-input:hover,
.static_form-textarea:hover {
	border: 1px solid var(--border-input-hover, rgba(0, 0, 0, 0.12)) !important;
}
.static_form-input:focus,
.static_form-textarea:focus {
	background: var(--bg-secondary-focus, #F4F4F4) !important;
	border: 1px solid var(--border-input-focus, rgba(0, 0, 0, 0.12)) !important;
}
.static_form-input:focus + .static_form-label,
.static_form-textarea:focus + .static_form-label,
.static_form-input:not(:placeholder-shown) + .static_form-label,
.static_form-textarea:not(:placeholder-shown) + .static_form-label {
	font-size: 12px;
	top: 12px;
}

.static_form-field.error .static_form-input,
.static_form-field.error .static_form-textarea {
	border-color: #ff0000;
}
.static_form-field.error .static_form-label {
	color: #ff0000;
}


.static_form-checkbox.checkbox-wrapper {
	position: relative;
	cursor: pointer;
	width: 100%;
	display: inline-flex;
	gap: 12px;
	align-items: flex-start;
	margin: 0;
}
.static_form-checkbox .checkbox-input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}
.static_form-checkbox .checkbox-icon {
	position: relative;
	display: block;
	width: 20px;
	height: 20px;
	margin: 0;
	flex-shrink: 0;
	border: 1px solid var(--border-checkbox);
	outline-offset: -1px;
	background: var(--bg-secondary);
	transition: all 0.2s ease;
}
.static_form-checkbox:hover .checkbox-icon {
	background: var(--bg-checkbox-hover);
}
.static_form-checkbox .checkbox-input:checked + .checkbox-icon::after {
	content: '';
	position: absolute;
	left: 6px;
	top: 2px;
	width: 6px;
	height: 10px;
	border: solid var(--text-main);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.static_form-checkbox .checkbox-text {
	color: var(--text-main, black);
	font-size: 16px;
	font-weight: 400;
	line-height: 20px;
	word-wrap: break-word;
	flex: 1;
}


input.submit-button[type="submit"] {
	width: 100%;
	padding: 16px 24px;
	background: var(--bg-btn, black);
	color: var(--text-main-contrast, white);
	border: none;
	border-radius: 3px;
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.5;
	letter-spacing: 1.28px;
	cursor: pointer;
	transition: all 0.3s ease-in-out;
}
input.submit-button[type="submit"]:hover {
	background: var(--bg-btn-hover, #333);
}

.form-message {
	padding: 15px;
	margin-bottom: 20px;
	border-radius: 5px;
	font-size: 15px;
	opacity: 1;
	transition: opacity .5s ease;
}

.form-message.success {
	background: #e7f8e7;
	border: 1px solid #8ED58E;
}

.form-message.error {
	background: #fdeaea;
	border: 1px solid #e28a8a;
}

@media (max-width: 1200px) {
	.static_form-header,
	.static_form-body,
	.static_form-footer,
	.static_form-notice {
		max-width: calc(50% - 16px);
	}
}

@media (max-width: 990px) {
	.static_form {
		padding: 24px;
	}
	.static_form-block {
		gap: 24px;
		flex-direction: column;
	}
	.static_form-header {
		order: 1;
		width: 100%;
		max-width: 100%;
	}
	.static_form-body {
		order: 2;
		width: 100%;
		max-width: 100%;
	}
	.static_form-footer {
		order: 3;
		width: 100%;
		max-width: 100%;
	}
	.static_form-notice {
		order: 4;
		width: 100%;
		max-width: 100%;
		text-align: center;
	}

	.static_form-title {
		font-size: 32px;
	}
	.static_form-description {
		max-width: 100%;
	}
	.static_form-field:nth-child(1),
	.static_form-field:nth-child(2) {
		width: 100%;
	}
}


@media (max-width: 510px) {
	.static_form {
		padding: 16px;
		width: 100%;
		box-sizing: border-box;
	}

	.static_form-block {
		gap: 16px;
		width: 100%;
	}

	.static_form-title {
		line-height: 32px;
	}

	.static_form-description {
		font-size: 16px;
		line-height: 20px;
	}

	.static_form-body {
		width: 100%;
		max-width: 100%;
		gap: 12px;
	}

	.static_form-field {
		width: 100% !important; /* Переопределяем любые другие ширины */
	}

	.static_form-input,
	.static_form-textarea {
		width: 100%;
		height: 64px;
		padding: 30px 16px 14px;
		font-size: 16px;
		box-sizing: border-box;
	}

	.static_form-textarea {
		height: 132px;
		padding-top: 30px;
	}

	.static_form-label {
		left: 16px;
		top: 22px;
		font-size: 16px;
		line-height: 20px;
	}

	.static_form-input:focus + .static_form-label,
	.static_form-textarea:focus + .static_form-label,
	.static_form-input:not(:placeholder-shown) + .static_form-label,
	.static_form-textarea:not(:placeholder-shown) + .static_form-label {
		font-size: 16px;
		top: 8px;
	}

	/* Чекбокс для мобильной версии */
	.static_form-checkbox.checkbox-wrapper {
		gap: 8px;
		align-items: flex-start;
	}

	.static_form-checkbox .checkbox-icon {
		width: 18px;
		height: 18px;
	}

	.static_form-checkbox .checkbox-input:checked + .checkbox-icon::after {
		left: 5px;
		top: 1px;
		width: 5px;
		height: 9px;
	}

	.static_form-checkbox .checkbox-text {
		font-size: 16px;
		line-height: 20px;
		flex: 1;
	}

	/* Кнопка для мобильной версии */
	.static_form-footer {
		width: 100%;
	}

	.submit-button {
		width: 100%;
		padding: 16px 20px;
		font-size: 16px;
		letter-spacing: 1.28px;
	}

	.static_form-notice {
		font-size: 12px;
		line-height: 16px;
		text-align: center;
	}

	.captcha-container {
		width: 100%;
	}

	.captcha-wrapper {
		flex-direction: column;
		gap: 8px;
	}

	.captcha-input {
		width: 100%;
		box-sizing: border-box;
	}
}

@media (max-width: 360px) {
	.static_form {
		padding: 12px;
	}

	.static_form-title {
		font-size: 28px;
		line-height: 28px;
	}

	.static_form-description {
		font-size: 14px;
		line-height: 18px;
	}

	.static_form-input,
	.static_form-textarea {
		height: 56px;
		padding: 26px 12px 10px;
	}

	.static_form-textarea {
		height: 120px;
		padding-top: 26px;
	}

	.static_form-label {
		left: 12px;
		font-size: 14px;
	}
}



/* Добавьте эти стили к существующему файлу style.css */

/* Сообщения формы */
.form-message,
.custom-form-message {
	padding: 15px 20px;
	margin: 0 0 20px 0;
	border-radius: 8px;
	font-size: 14px;
	animation: slideDown 0.3s ease;
}

.form-message.success,
.custom-form-message.success {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.form-message.error,
.custom-form-message.error {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.custom-form-message h4 {
	margin: 0 0 8px 0;
	font-size: 16px;
	font-weight: 600;
}

.custom-form-message p {
	margin: 0;
}

.custom-form-message.error ul {
	margin: 8px 0 0 0;
	padding-left: 20px;
}

.custom-form-message.error li {
	margin-bottom: 4px;
}

/* Анимация сообщений */
@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Анимация исчезновения */
@keyframes fadeOut {
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}

/* Стили для состояния загрузки */
.submit-button.loading {
	position: relative;
	color: transparent !important;
}

.submit-button.loading::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* Кастомизация полей с ошибками */
.static_form-field.error .static_form-input,
.static_form-field.error .static_form-textarea {
	border-color: #dc3545 !important;
	background-color: rgba(220, 53, 69, 0.05) !important;
}

.static_form-field.error .static_form-label {
	color: #dc3545;
}

/* CAPTCHA */
.captcha-container {
	width: 100%;
	margin-top: 16px;
}

.captcha-label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
}

.captcha-wrapper {
	display: flex;
	gap: 12px;
	align-items: center;
}

.captcha-image {
	flex-shrink: 0;
}

.captcha-image img {
	border-radius: 4px;
	border: 1px solid var(--border-input);
}

.captcha-input {
	flex: 1;
	padding: 12px 16px;
	border: 1px solid var(--border-input);
	border-radius: 3px;
	font-size: 16px;
}

.captcha-input:focus {
	outline: none;
	border-color: var(--border-input-focus);
}

/* Скрытое поле CAPTCHA */
.hidden-captcha {
	position: absolute;
	left: -9999px;
	opacity: 0;
	height: 0;
	width: 0;
}

/* Требуемые поля */
.static_form-label .required {
	color: #dc3545;
	margin-left: 2px;
}
.form-message {
	padding: 15px 20px;
	margin: 0 0 20px 0;
	border-radius: 8px;
	font-size: 14px;
	animation: slideDown 0.3s ease;
}

.form-message.success {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.form-message.error {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.form-message h4 {
	margin-top: 0;
	margin-bottom: 8px;
	font-size: 16px;
	font-weight: 600;
}

.form-message p {
	margin: 0 0 8px 0;
}

.form-message p:last-child {
	margin-bottom: 0;
}

.form-message ul {
	margin: 8px 0 0 0;
	padding-left: 20px;
}

.form-message ul li {
	margin-bottom: 4px;
}

.form-message ul li:last-child {
	margin-bottom: 0;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}