.tf-feedback-form {
	--tf-accent: #1f5fbf;
	--tf-accent-dark: #164a99;
	--tf-border: #e2e4e9;
	--tf-text: #202124;
	--tf-muted: #6b7280;
	--tf-bg: #ffffff;
	--tf-bg-soft: #f8f9fb;
	--tf-radius: 10px;

	max-width: 760px;
	margin: 0 auto;
	padding: 32px;
	background: var(--tf-bg);
	border: 1px solid var(--tf-border);
	border-radius: var(--tf-radius);
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
	color: var(--tf-text);
	font-size: 15px;
	line-height: 1.5;
}

.tf-feedback-form * {
	box-sizing: border-box;
}

.tf-feedback-form .tf-fieldset {
	border: none;
	border-top: 1px solid var(--tf-border);
	padding: 28px 0 4px;
	margin: 0 0 8px;
}

.tf-feedback-form .tf-fieldset:first-of-type {
	border-top: none;
	padding-top: 0;
}

.tf-feedback-form .tf-fieldset > legend {
	font-weight: 700;
	font-size: 1.2em;
	padding: 0;
	margin-bottom: 20px;
	color: var(--tf-text);
}

.tf-feedback-form .tf-subfield {
	border: none;
	padding: 16px;
	margin: 0 0 20px;
	background: var(--tf-bg-soft);
	border-radius: 8px;
}

.tf-feedback-form .tf-subfield > legend {
	font-weight: 600;
	padding: 0 0 10px;
	margin: 0;
	white-space: normal;
	float: none;
	width: 100%;
}

.tf-feedback-form .tf-subfield label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
	margin: 0 0 8px;
	cursor: pointer;
}

.tf-feedback-form .tf-subfield label:last-of-type {
	margin-bottom: 0;
}

.tf-feedback-form .tf-subfield input[type='radio'],
.tf-feedback-form .tf-subfield input[type='checkbox'] {
	width: 16px;
	height: 16px;
	accent-color: var(--tf-accent);
	flex-shrink: 0;
}

.tf-feedback-form .tf-subfield textarea {
	margin-top: 10px;
}

.tf-feedback-form .tf-field {
	margin: 0 0 22px;
}

.tf-feedback-form .tf-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
}

.tf-feedback-form .tf-hint {
	font-weight: 400;
	color: var(--tf-muted);
	font-size: 0.92em;
}

.tf-feedback-form .tf-req {
	color: #c0362c;
}

.tf-feedback-form input[type='text'],
.tf-feedback-form input[type='email'],
.tf-feedback-form select,
.tf-feedback-form textarea {
	width: 100%;
	max-width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--tf-border);
	border-radius: 6px;
	font-size: 0.98em;
	font-family: inherit;
	color: var(--tf-text);
	background: var(--tf-bg);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tf-feedback-form input[type='text']:focus,
.tf-feedback-form input[type='email']:focus,
.tf-feedback-form select:focus,
.tf-feedback-form textarea:focus {
	outline: none;
	border-color: var(--tf-accent);
	box-shadow: 0 0 0 3px rgba(31, 95, 191, 0.15);
}

.tf-feedback-form textarea {
	min-height: 80px;
	resize: vertical;
}

.tf-feedback-form .tf-dsp-name-wrap {
	display: none;
	margin: 4px 0 12px 24px;
}

.tf-feedback-form .tf-dsp-name-wrap label {
	font-weight: 500;
	font-size: 0.92em;
	margin-bottom: 4px;
	display: block;
}

.tf-feedback-form .tf-dsp-name-wrap.tf-visible {
	display: block;
}

.tf-feedback-form .tf-hp-field {
	position: absolute;
	left: -9999px;
	top: -9999px;
}

.tf-feedback-form .tf-submit {
	margin: 28px 0 0;
}

.tf-feedback-form .tf-submit button {
	padding: 12px 28px;
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
	background: var(--tf-accent);
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.tf-feedback-form .tf-submit button:hover,
.tf-feedback-form .tf-submit button:focus {
	background: var(--tf-accent-dark);
}

.tf-notice {
	max-width: 760px;
	margin: 0 auto 20px;
	padding: 14px 18px;
	border-radius: 8px;
	font-size: 0.95em;
}

.tf-notice-success {
	background: #ecf7ed;
	border: 1px solid #b7dfb9;
	color: #256029;
}

.tf-notice-error {
	background: #fdecea;
	border: 1px solid #f5b7b1;
	color: #922b21;
}

.tf-status-unread {
	font-weight: 700;
	color: #b32d2e;
}

.tf-status-read {
	color: #555;
}

.tf-entry-table th {
	text-align: left;
}

@media (max-width: 600px) {
	.tf-feedback-form {
		padding: 20px;
		border-radius: 0;
	}
}
