.diagnostic-form-page .main-content {
	max-width: 960px;
	margin: 0 auto;
	padding: 20px;
}

.diagnostic-form-header {
	margin-bottom: 24px;
}

.diagnostic-form-header h1 {
	margin-bottom: 0;
	margin-top: 16px;
}

.btn-back {
	display: inline-block;
	padding: 8px 16px;
	background-color: #f3f4f6;
	color: #374151;
	text-decoration: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	transition: background-color 0.2s, color 0.2s;
	border: 1px solid #e5e7eb;
}

.btn-back:hover {
	background-color: #e5e7eb;
	color: #111827;
	text-decoration: none;
}

.diagnostic-form-page h1 {
	margin-bottom: 20px;
}

.diag-section {
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	padding: 20px;
	margin-bottom: 24px;
}

.diag-section h2 {
	margin-bottom: 16px;
	font-size: 20px;
}

.diag-section h3 {
	margin-top: 16px;
	margin-bottom: 8px;
	font-size: 16px;
}

.diag-field {
	margin-bottom: 12px;
}

.diag-field label,
.diag-label {
	display: block;
	margin-bottom: 4px;
	font-weight: 500;
}

.diag-field input[type='text'],
.diag-field input[type='date'],
.diag-field select {
	width: 100%;
	max-width: 100%;
	padding: 8px 10px;
	border-radius: 4px;
	border: 1px solid #d1d5db;
	font-size: 14px;
}

.diag-field-error {
	border-color: #ef4444 !important;
}

.diag-radio-group label {
	display: inline-block;
	margin-right: 16px;
	font-weight: 400;
}

.diag-section-submit {
	text-align: right;
}

.diag-alert {
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 16px;
	font-size: 14px;
}

.diag-alert-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
}

.diag-alert-success {
	background: #ecfdf3;
	border: 1px solid #bbf7d0;
	color: #166534;
}

.diag-alert ul {
	margin: 0;
	padding-left: 18px;
}

.diag-result ul {
	padding-left: 18px;
}

.diag-result h3 {
	margin-top: 12px;
}

/* Result Card Styles */
.diagnostic-result-card {
	border-radius: 8px;
	padding: 24px;
	margin-top: 24px;
}

.diagnostic-result-card h2 {
	color: #2c3e50;
	margin-bottom: 20px;
	border-bottom: 2px solid #3498db;
	padding-bottom: 10px;
}

.result-item {
	margin-bottom: 12px;
	font-size: 16px;
}

.result-block {
	margin-bottom: 20px;
	padding: 16px;
	background: #ffffff;
	border-radius: 6px;
	border-left: 4px solid #3498db;
}

.result-block h3 {
	margin-top: 0;
	margin-bottom: 12px;
	color: #2c3e50;
}

.result-list {
	list-style: none;
	padding-left: 0;
}

.result-list li {
	margin-bottom: 8px;
	padding: 8px;
	background: #f8f9fa;
	border-radius: 4px;
}

.level-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 12px;
	font-weight: 600;
	font-size: 14px;
	margin-left: 8px;
}

.level-badge.level-высокий,
.level-badge.level-high {
	background-color: #10b981;
	color: #ffffff;
}

.level-badge.level-средний,
.level-badge.level-medium {
	background-color: #f59e0b;
	color: #ffffff;
}

.level-badge.level-низкий,
.level-badge.level-low {
	background-color: #ef4444;
	color: #ffffff;
}

.result-overall {
	background: #e0f2fe;
	border-left-color: #0ea5e9;
}

.overall-text {
	font-size: 16px;
	line-height: 1.6;
	color: #1e40af;
	font-weight: 500;
}

/* Стили для условных полей */
#implant_type_other_wrapper {
	margin-top: 8px;
}

#implant_type_other_wrapper.hidden {
	display: none !important;
}

#implant_volume_mono_wrapper {
	margin-top: 12px;
	padding-left: 20px;
	border-left: 2px solid #e5e7eb;
}

#implant_volume_mono_wrapper.hidden {
	display: none !important;
}

@media (max-width: 640px) {
	.diagnostic-form-page .main-content {
		padding: 15px;
	}

	.diag-section {
		padding: 16px;
	}

	.diagnostic-result-card {
		padding: 16px;
	}

	#implant_volume_mono_wrapper {
		padding-left: 12px;
	}
}


