#survey-edit-form input[type="text"],
#survey-edit-form select {
	width: 100%;
	max-width: 100%;
}

.error-message {
	color: #d63638;
	margin-top: 5px;
	font-size: 12px;
}

input.error,
textarea.error,
.question-content-wrapper.error textarea,
.answer-choices-wrapper.error {
	border-color: #d63638 !important;
}

.question-content-wrapper,
.answer-choices-wrapper {
	position: relative;
}

.answer-choices-wrapper {
	padding: 15px;
	border: 1px solid #ccd0d4;
	background: #fff;
	border-radius: 4px;
}

.answer-choices-wrapper.error {
	background-color: #fff5f5;
}

.answer-choice {
	margin-bottom: 10px;
	display: flex;
	gap: 10px;
	align-items: center;
}

.answer-choice:last-child {
	margin-bottom: 15px;
}

.answer-choice input {
	flex: 1;
}

/* WordPress admin compatibility styles */
#survey-edit-form .form-table input[type="text"].error,
#survey-edit-form .form-table textarea.error {
	border-color: #d63638;
}

.add-answer {
	margin-top: 5px;
}