.comment-form-section {
	background: #f8f9fa;
	padding: 20px;
	border-radius: 8px;
	margin: 30px 0;
	border: 1px solid #e9ecef;
}

.comment-form-section h3 {
	color: #4b6e92;
	margin-bottom: 20px;
	font-size: 18px;
	text-align: center;
}

.comment-form-section .form-group {
	margin-bottom: 15px;
}

.comment-form-section input,
.comment-form-section textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
	box-sizing: border-box;
}

.comment-form-section input:focus,
.comment-form-section textarea:focus {
	outline: none;
	border-color: #4b6e92;
	box-shadow: 0 0 0 2px rgba(75, 110, 146, 0.1);
}

.comment-form-section textarea {
	resize: vertical;
	min-height: 80px;
}

.char-counter {
	text-align: right;
	font-size: 12px;
	color: #666;
	margin-top: 5px;
}

.char-counter.warning {
	color: #ff6b6b;
}

.comment-form-section button {
	background: #4b6e92;
	color: white;
	border: none;
	padding: 12px 24px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-weight: bold;
	transition: background-color 0.3s;
	width: 100%;
}

.comment-form-section button:hover {
	background: #3a5578;
}

.comment-form-section button:disabled {
	background: #ccc;
	cursor: not-allowed;
}

.comment-success-message {
	background: #d4edda;
	border: 1px solid #c3e6cb;
	border-radius: 8px;
	padding: 20px;
	margin: 30px 0;
}

.success-content {
	text-align: center;
}

.success-content img {
	width: 48px;
	height: 48px;
	margin-bottom: 15px;
}

.success-content h3 {
	color: #155724;
	margin-bottom: 10px;
}

.success-content p {
	color: #155724;
	margin: 0;
}

/* Стили для аватарки */
.avatar-group label,
.photo-group label {
	display: block;
	font-weight: bold;
	margin-bottom: 10px;
	color: #4b6e92;
}

.avatar-upload-container {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 10px;
}

.avatar-preview-container {
	display: flex;
	align-items: center;
	gap: 10px;
}

.avatar-preview {
	width: 80px;
	height: 80px;
	border: 2px solid #ddd;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: #f8f9fa;
	position: relative;
}

.avatar-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.avatar-preview .default-avatar {
	font-size: 32px;
	color: #999;
}

.avatar-buttons {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.avatar-upload-btn,
.avatar-remove-btn {
	background: #4b6e92;
	color: white;
	border: none;
	padding: 8px 16px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 12px;
	transition: background-color 0.3s;
	white-space: nowrap;
}

.avatar-upload-btn:hover {
	background: #3a5578;
}

.avatar-remove-btn {
	background: #dc3545;
}

.avatar-remove-btn:hover {
	background: #c82333;
}

.avatar-progress {
	flex: 1;
	margin-left: 15px;
}

/* Стили для загрузки фото */
.photo-upload-container {
	position: relative;
}

.photo-upload-btn {
	background: #f8f9fa;
	border: 2px dashed #ddd;
	border-radius: 4px;
	padding: 20px;
	width: 100%;
	cursor: pointer;
	font-size: 14px;
	color: #666;
	transition: all 0.3s;
	text-align: center;
}

.photo-upload-btn:hover {
	border-color: #4b6e92;
	background: #f0f8ff;
	color: #4b6e92;
}

.photo-preview {
	margin-top: 15px;
	display: inline-block;
}

.photo-preview img {
	max-width: 300px;
	max-height: 200px;
	display: block;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	border: 1px solid #e9ecef;
}

.remove-photo {
	display: block;
	margin: 10px auto 0;
	background: #dc3545;
	color: white;
	border: none;
	border-radius: 4px;
	padding: 6px 12px;
	cursor: pointer;
	font-size: 12px;
	transition: all 0.3s;
	width: fit-content;
}

.remove-photo:hover {
	background: #c82333;
	transform: translateY(-1px);
}

/* Прогресс бар для загрузки */
.photo-progress {
	margin-top: 10px;
}

.progress-bar {
	width: 100%;
	height: 20px;
	background: #f0f0f0;
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 5px;
}

.progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #4b6e92, #5a7ba6);
	width: 0%;
	transition: width 0.3s ease;
	border-radius: 10px;
}

.progress-text {
	font-size: 12px;
	color: #666;
	text-align: center;
	display: block;
}
