.voting-form {
	font-size: 16px;
	line-height: 1.5;
}

.voting-form form {
	margin: 0;
}

/* Questions */
.voting-form__question {
	padding: 20px 0;
	border-bottom: 1px solid #E5E7EB;
}

.voting-form__question:first-child {
	padding-top: 0;
}

.voting-form__question:last-of-type {
	border-bottom: none;
}

.voting-form__question-title {
	font-size: 16px;
	font-weight: 600;
	color: #333;
	margin-bottom: 14px;
	line-height: 1.4;
}

.voting-form__required {
	color: #E84E0E;
}

/* Answers container */
.voting-form__answers {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Radio buttons */
.voting-form__radio-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	padding: 2px 0;
	font-weight: 400;
}

.voting-form__radio-label input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.voting-form__radio-custom {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	border: 2px solid #C4C7CC;
	border-radius: 50%;
	margin-top: 2px;
	position: relative;
	transition: border-color 0.2s;
}

.voting-form__radio-label input[type="radio"]:checked + .voting-form__radio-custom {
	border-color: #2E7D32;
}

.voting-form__radio-label input[type="radio"]:checked + .voting-form__radio-custom::after {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #2E7D32;
}

/* Checkboxes */
.voting-form__checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	padding: 2px 0;
	font-weight: 400;
}

.voting-form__checkbox-label input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.voting-form__checkbox-custom {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	border: 2px solid #C4C7CC;
	border-radius: 4px;
	margin-top: 2px;
	position: relative;
	transition: all 0.2s;
}

.voting-form__checkbox-label input[type="checkbox"]:checked + .voting-form__checkbox-custom {
	background: #2E7D32;
	border-color: #2E7D32;
}

.voting-form__checkbox-label input[type="checkbox"]:checked + .voting-form__checkbox-custom::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 5px;
	width: 6px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.voting-form__answer-text {
	font-size: 15px;
	color: #333;
	line-height: 1.5;
}

/* "Другое" field with radio/checkbox + text input */
.voting-form__other-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.voting-form__other-input {
	margin-left: 30px;
	max-width: 290px;
}

/* Text fields */
.voting-form__text-field {
	margin-top: 8px;
}

.voting-form__field-label {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	margin-bottom: 6px;
}

.voting-form__input {
	display: block;
	width: 100%;
	max-width: 320px;
	padding: 10px 14px;
	border: 1px solid #D4D6DA;
	border-radius: 8px;
	font-size: 15px;
	color: #333;
	outline: none;
	transition: border-color 0.2s;
}

.voting-form__input:focus {
	border-color: #2E7D32;
}

.voting-form__input::placeholder {
	color: #999;
}

.voting-form__textarea {
	display: block;
	width: 100%;
	max-width: 320px;
	padding: 10px 14px;
	border: 1px solid #D4D6DA;
	border-radius: 8px;
	font-size: 15px;
	color: #333;
	outline: none;
	resize: vertical;
	transition: border-color 0.2s;
}

.voting-form__textarea:focus {
	border-color: #2E7D32;
}

.voting-form__select {
	display: block;
	width: 100%;
	max-width: 320px;
	padding: 10px 14px;
	border: 1px solid #D4D6DA;
	border-radius: 8px;
	font-size: 15px;
}

/* Captcha */
.voting-form__captcha {
	margin: 20px 0;
	padding: 16px;
	background: #F7F7F7;
	border-radius: 8px;
}

.voting-form__captcha-img {
	margin-bottom: 10px;
}

.voting-form__captcha-field label {
	font-size: 14px;
	font-weight: 500;
	display: block;
	margin-bottom: 6px;
}

/* Submit button */
.voting-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 28px;
	background: #2E7D32;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s;
	margin-top: 20px;
}

.voting-form__submit:hover {
	background: #256b29;
}

/* Error/success messages */
.voting-form__error {
	background: #FFF0F0;
	border: 1px solid #E84E0E;
	border-radius: 8px;
	padding: 14px 18px;
	margin-bottom: 20px;
	color: #C62828;
	font-size: 15px;
	line-height: 1.5;
}

.voting-form__success {
	background: #F0F7F0;
	border: 1px solid #2E7D32;
	border-radius: 8px;
	padding: 14px 18px;
	margin-bottom: 20px;
	color: #2E7D32;
	font-size: 15px;
}

.voting-form__error-box {
	background: #FFF0F0;
	border: 1px solid #E84E0E;
	border-radius: 8px;
	padding: 14px 18px;
	margin-bottom: 20px;
	color: #C62828;
	font-size: 15px;
	line-height: 1.5;
}

.voting-form__error-box strong {
	display: block;
	margin-bottom: 8px;
}

.voting-form__error-box ul {
	margin: 0;
	padding-left: 20px;
}

.voting-form__error-box ul li {
	margin-bottom: 4px;
}

/* Подсветка незаполненного обязательного вопроса */
.voting-form__question--error {
	background: #FFF8F6;
	border-radius: 8px;
	padding: 20px 16px !important;
	margin: 0 -16px;
}

.voting-form__question--error .voting-form__question-title {
	color: #C62828;
}

.voting-form .errortext {
	color: #E84E0E;
	margin-bottom: 16px;
}

.voting-form .notetext {
	color: #2E7D32;
	margin-bottom: 16px;
}
