.df-forum .df-forum-header,
.df-forum .df-topic-header {
	margin-bottom: 1.5em;
}

.df-disclaimer {
	font-size: 0.9em;
	color: #555;
	font-style: italic;
}

.df-access-notice {
	padding: 1em 1.5em;
	background: #f3f6f8;
	border: 1px solid #dbe2e6;
	border-radius: 4px;
}

.df-moderated-notice {
	padding: 0.75em 1em;
	background: #f3f3f3;
	border: 1px dashed #c8c8c8;
	border-radius: 4px;
	color: #777;
}

.df-notice-success {
	padding: 0.6em 1em;
	background: #eaf6ec;
	border: 1px solid #b7dcbb;
	border-radius: 4px;
	color: #256029;
}

/* Кнопка «!» закреплена в правом нижнем углу родительского блока —
   .df-topic-body и .df-reply объявлены position: relative и получают
   дополнительный нижний отступ под неё (см. соответствующие правила ниже). */
.df-report {
	position: absolute;
	right: 0.6em;
	bottom: 0.6em;
	z-index: 2;
}

.df-report-trigger {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	background: #fff;
	color: #a33;
	border: 1px solid #a33;
	border-radius: 50%;
	font-weight: 700;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
}

.df-report-trigger:hover,
.df-report-trigger[aria-expanded="true"] {
	background: #a33;
	color: #fff;
}

.df-report-panel {
	position: absolute;
	right: 0;
	bottom: calc(100% + 8px);
	width: max-content;
	max-width: min(280px, calc(100vw - 48px));
	background: #fff;
	border: 1px solid #e0b4b4;
	border-radius: 8px;
	padding: 0.6em;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.df-report-form {
	display: flex;
	gap: 0.5em;
	align-items: center;
	flex-wrap: wrap;
}

.df-report-form input[type="text"] {
	flex: 1 1 160px;
	padding: 0.4em 0.6em;
	border: 1px solid #ddd;
	border-radius: 6px;
	outline: none;
}

.df-report-form input[type="text"]:hover {
	outline: none;
}

.df-report-form input[type="text"]:focus {
	border-color: #a33;
	box-shadow: 0 0 0 2px rgba(170, 51, 51, 0.15);
}

.df-report-form button {
	padding: 0.3em 0.9em;
	font-size: 0.85em;
	background: transparent;
	color: #a33;
	border: 1px solid #a33;
	border-radius: 4px;
	cursor: pointer;
}

.df-report-form button:hover {
	background: #a33;
	color: #fff;
}

.df-form-errors {
	padding: 0.75em 1.5em;
	background: #fdeaea;
	border: 1px solid #e0b4b4;
	border-radius: 4px;
	color: #8a1f1f;
	margin-bottom: 1em;
}

.df-button,
.df-topic-form button,
.df-reply-form button,
.df-forum-search button {
	display: inline-block;
	padding: 0.5em 1.2em;
	background: #1d5f8a;
	color: #fff;
	border: none;
	border-radius: 4px;
	text-decoration: none;
	cursor: pointer;
	font-size: 1em;
}

.df-button:hover,
.df-topic-form button:hover,
.df-reply-form button:hover,
.df-forum-search button:hover {
	background: #164a6b;
	color: #fff;
}

.df-forum-search {
	display: flex;
	gap: 0.5em;
	margin: 1.5em 0;
	flex-wrap: wrap;
}

.df-forum-search input[type="search"] {
	flex: 1 1 240px;
}

.df-forum-specialties {
	display: flex;
	gap: 1em;
	flex-wrap: wrap;
	margin-bottom: 1.5em;
}

.df-forum-specialties a.current {
	font-weight: bold;
	text-decoration: underline;
}

.df-forum-status-filters {
	display: flex;
	gap: 1em;
	flex-wrap: wrap;
	margin-bottom: 1.5em;
	font-size: 0.9em;
}

.df-forum-status-filters a.current {
	font-weight: bold;
	text-decoration: underline;
}

.df-topic-status-actions {
	display: flex;
	gap: 0.5em;
	flex-wrap: wrap;
	margin: 1em 0;
}

.df-reassign-form {
	display: flex;
	align-items: center;
	gap: 0.5em;
	flex-wrap: wrap;
	margin: 1em 0;
	padding: 0.75em 1em;
	background: #f9f9f9;
	border-radius: 4px;
}

.df-badge-unread {
	display: inline-block;
	min-width: 1.4em;
	padding: 0.05em 0.4em;
	background: #c0392b;
	color: #fff;
	border-radius: 999px;
	font-size: 0.8em;
	text-align: center;
}

.df-notifications-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.df-notification {
	display: flex;
	align-items: center;
	gap: 1em;
	padding: 0.6em 0;
	border-bottom: 1px solid #e2e2e2;
}

.df-notification--unread {
	font-weight: bold;
}

.df-notification-date {
	color: #666;
	font-weight: normal;
	font-size: 0.85em;
}

.df-notification-mark-read {
	margin-left: auto;
	font-weight: normal;
	font-size: 0.85em;
}

.df-feed-item {
	padding: 1em 0;
	border-bottom: 1px solid #e2e2e2;
}

.df-feed-item h2 {
	margin: 0 0 0.25em;
}

.df-feed-meta {
	font-size: 0.9em;
	color: #666;
}

.df-topic-body {
	position: relative;
	padding-bottom: 2.6em;
}

.df-topic-section {
	margin: 1em 0;
}

.df-topic-section h3 {
	margin-bottom: 0.25em;
}

.df-topic-attachments ul {
	list-style: disc;
	padding-left: 1.5em;
}

.df-topic-replies {
	margin-top: 2em;
	border-top: 1px solid #e2e2e2;
	padding-top: 1.5em;
}

.df-reply {
	position: relative;
	padding: 0.75em 1em;
	padding-bottom: 2.6em;
	margin-bottom: 0.75em;
	background: #f9f9f9;
	border-radius: 4px;
}

.df-reply-meta {
	font-size: 0.85em;
	color: #666;
	margin-bottom: 0.25em;
}

.df-badge-expert {
	display: inline-block;
	padding: 0.1em 0.6em;
	background: #1d5f8a;
	color: #fff;
	border-radius: 3px;
	font-size: 0.8em;
	margin-left: 0.5em;
}

.df-replies-pagination {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75em;
	margin-top: 1em;
}

.df-replies-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2em;
	height: 2em;
	padding: 0 0.5em;
	margin-right: 0.25em;
	border: 1px solid var(--df-border, #e7ecf3);
	border-radius: 4px;
	color: var(--df-blue, #1657b0);
	text-decoration: none;
	font-size: 0.9em;
}

.df-replies-pagination .page-numbers.current {
	background: var(--df-blue, #1657b0);
	border-color: var(--df-blue, #1657b0);
	color: #fff;
}

.df-replies-pagination .page-numbers.dots {
	border: none;
}

.df-per-page-form {
	display: flex;
	align-items: center;
	gap: 0.4em;
	font-size: 0.9em;
}

.df-per-page-form select {
	padding: 0.3em;
}

.df-per-page-form button {
	padding: 0.3em 0.8em;
	font-size: 0.9em;
}

.df-my-questions-table {
	width: 100%;
	border-collapse: collapse;
}

.df-my-questions-table th,
.df-my-questions-table td {
	text-align: left;
	padding: 0.5em 0.75em;
	border-bottom: 1px solid #e2e2e2;
}

.df-topic-form input[type="text"],
.df-topic-form textarea,
.df-topic-form select,
.df-reply-form textarea {
	width: 100%;
	max-width: 480px;
	padding: 0.4em;
	box-sizing: border-box;
}

.df-reply-content img,
.df-topic-section img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.df-topic-form .wp-editor-wrap,
.df-reply-form .wp-editor-wrap {
	max-width: none;
	width: 100%;
}

.df-topic-form .wp-editor-container,
.df-reply-form .wp-editor-container {
	border: 1px solid var(--df-border, #e7ecf3);
	border-radius: 4px;
}

.df-topic-form .wp-editor-container iframe,
.df-topic-form .wp-editor-container textarea,
.df-reply-form .wp-editor-container iframe,
.df-reply-form .wp-editor-container textarea {
	min-height: 220px;
}

/* Кнопки тулбара редактора попадают под общее правило
   .df-topic-form button/.df-reply-form button (тёмный фон, белый текст),
   рассчитанное на кнопку отправки формы — здесь переопределяем фон на
   светлый, а цвет иконок возвращаем к обычному тёмному (белый на светлом
   фоне был бы не виден). */
.df-topic-form .mce-toolbar button,
.df-reply-form .mce-toolbar button {
	background: #f3f6fb;
	color: #32373c;
	border: none;
}

.df-topic-form .mce-toolbar button:hover,
.df-reply-form .mce-toolbar button:hover {
	background: #dbe6f7;
	color: #32373c;
}

/* ==========================================================================
   Страница регистрации врача — карточный дизайн в токенах активной темы
   (var(--mct-*) определены в style.css темы; фолбэки на случай смены темы).
   ========================================================================== */

.df-registration-page {
	--df-navy: var(--mct-navy, #0b2a4d);
	--df-blue: var(--mct-blue, #1657b0);
	--df-blue-hover: var(--mct-blue-hover, #0f3f8c);
	--df-bg-soft: var(--mct-bg-soft, #eaf1fb);
	--df-border: var(--mct-border, #e7ecf3);
	--df-text: var(--mct-text, #1e2733);
	--df-text-secondary: var(--mct-text-secondary, #4c5b6d);
	--df-text-muted: var(--mct-text-muted, #6b7a8d);

	max-width: 760px;
	margin: 0 auto;
	color: var(--df-text);
}

.df-registration-intro {
	margin-bottom: 32px;
}

.df-eyebrow-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	background: var(--df-bg-soft);
	color: var(--df-blue);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	margin-bottom: 16px;
}

.df-eyebrow-badge svg {
	width: 16px;
	height: 16px;
}

.df-registration-lead {
	font-size: 16px;
	line-height: 1.6;
	color: var(--df-text-secondary);
	margin: 0 0 28px;
	max-width: 620px;
}

.df-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.df-steps__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px;
	background: #fff;
	border: 1px solid var(--df-border);
	border-radius: 14px;
}

.df-steps__num {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--df-blue);
	color: #fff;
	font-weight: 700;
	font-size: 14px;
}

.df-steps__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--df-text-muted);
}

.df-steps__body strong {
	color: var(--df-navy);
	font-size: 14px;
}

.df-registration-card {
	background: #fff;
	border: 1px solid var(--df-border);
	border-radius: 18px;
	padding: 36px;
	box-shadow: 0 8px 24px rgba(11, 42, 77, 0.06);
}

.df-field-section {
	margin-bottom: 28px;
}

.df-field-section:last-child {
	margin-bottom: 0;
}

.df-field-section__title {
	font-size: 15px;
	font-weight: 700;
	color: var(--df-navy);
	margin: 0 0 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--df-border);
}

.df-field-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px 20px;
}

.df-field--full {
	grid-column: 1 / -1;
}

.df-field label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--df-navy);
	margin-bottom: 6px;
}

.df-required {
	color: #c0392b;
}

.df-field input[type="text"],
.df-field input[type="email"],
.df-field input[type="tel"],
.df-field select {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--df-border);
	border-radius: 8px;
	padding: 11px 14px;
	font: inherit;
	font-size: 15px;
	color: var(--df-text);
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.df-field input[type="text"]:focus,
.df-field input[type="email"]:focus,
.df-field input[type="tel"]:focus,
.df-field select:focus {
	outline: none;
	border-color: var(--df-blue);
	box-shadow: 0 0 0 3px rgba(22, 87, 176, 0.12);
}

.df-field select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7a8d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px;
	padding-right: 38px;
}

.df-field--icon .df-input-wrap {
	position: relative;
}

.df-field--icon .df-input-wrap svg {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	color: var(--df-text-muted);
	pointer-events: none;
}

.df-field--icon .df-input-wrap input,
.df-field--icon .df-input-wrap select {
	padding-left: 40px;
}

.df-field-hint {
	margin: 6px 0 0;
	font-size: 12.5px;
	color: var(--df-text-muted);
}

.df-password-field {
	position: relative;
}

.df-password-field input {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--df-border);
	border-radius: 8px;
	padding: 11px 90px 11px 14px;
	font: inherit;
	font-size: 15px;
	color: var(--df-text);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.df-password-field input:focus {
	outline: none;
	border-color: var(--df-blue);
	box-shadow: 0 0 0 3px rgba(22, 87, 176, 0.12);
}

.df-password-toggle {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: var(--df-blue);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	padding: 6px 8px;
}

.df-password-toggle:hover {
	text-decoration: underline;
}

.df-registration-submit {
	width: 100%;
	margin-top: 8px;
	padding: 14px 20px;
	background: var(--df-blue);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease;
}

.df-registration-submit:hover {
	background: var(--df-blue-hover);
}

.df-registration-note {
	margin: 12px 0 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--df-text-muted);
	text-align: center;
}

.df-registration-login-hint {
	text-align: center;
	margin: 24px 0 0;
	font-size: 14px;
	color: var(--df-text-secondary);
}

.df-registration-login-hint a {
	color: var(--df-blue);
	font-weight: 600;
}

.df-registration-page .df-form-errors {
	border-radius: 12px;
}

@media (max-width: 719.98px) {
	.df-steps {
		grid-template-columns: 1fr;
	}

	.df-field-grid {
		grid-template-columns: 1fr;
	}

	.df-registration-card {
		padding: 24px 20px;
	}
}
