.sfb-submit {
	max-width: 720px;
	margin: 0 auto;
}

.sfb-submit__form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

/* The [hidden] attribute would normally apply display: none, but the
   .sfb-submit__form selector above wins on specificity. Force it. */
.sfb-submit__form[hidden],
.sfb-submit__success[hidden] {
	display: none;
}

.sfb-submit__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.sfb-submit__label {
	font-weight: 600;
	font-size: 0.95rem;
}

.sfb-submit__field input[type="text"],
.sfb-submit__field input[type="email"],
.sfb-submit__field select,
.sfb-submit__field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font: inherit;
	color: #222;
	background: #fff;
	box-sizing: border-box;
}

.sfb-submit__field input::placeholder,
.sfb-submit__field textarea::placeholder {
	color: #888;
	opacity: 1;
}

.sfb-submit__field textarea {
	min-height: 320px;
	resize: vertical;
	line-height: 1.5;
}

.sfb-submit__editor-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 6px;
	border: 1px solid #ccc;
	border-bottom: 0;
	border-radius: 4px 4px 0 0;
	background: #f6f5f0;
}

.sfb-submit__editor-toolbar button {
	background: #fff;
	border: 1px solid #ccc;
	color: #222;
	padding: 4px 10px;
	font-size: 0.9rem;
	font-weight: 600;
	border-radius: 3px;
	cursor: pointer;
	min-width: 32px;
}

.sfb-submit__editor-toolbar button:hover {
	background: #e9e7df;
}

.sfb-submit__editor-toolbar button[aria-pressed="true"] {
	background: #1a3a5c;
	color: #fff;
	border-color: #1a3a5c;
}

.sfb-submit__editor {
	min-height: 320px;
	padding: 12px 14px;
	border: 1px solid #ccc;
	border-radius: 0 0 4px 4px;
	background: #fff;
	color: #222;
	line-height: 1.5;
	overflow-y: auto;
	max-height: 600px;
}

.sfb-submit__editor:focus {
	outline: 2px solid #1a3a5c;
	outline-offset: -2px;
}

.sfb-submit__editor:empty::before {
	content: attr(data-placeholder);
	color: #888;
	pointer-events: none;
}

.sfb-submit__editor p { margin: 0 0 0.8em; }
.sfb-submit__editor p:last-child { margin-bottom: 0; }
.sfb-submit__editor ul,
.sfb-submit__editor ol { margin: 0 0 0.8em 1.4em; }

.sfb-submit__checkbox {
	flex-direction: row;
	align-items: flex-start;
	gap: 8px;
}

.sfb-submit__checkbox input {
	margin-top: 4px;
}

.sfb-submit__hint,
.sfb-submit__ineligible {
	margin: 0;
	font-size: 0.85rem;
	color: #a00;
}

.sfb-submit__policy {
	background: #f6f5f0;
	border-left: 4px solid #d4a017;
	padding: 12px 16px;
	border-radius: 4px;
	font-size: 0.92rem;
}

.sfb-submit__policy h3 {
	margin: 0 0 6px;
	font-size: 1rem;
}

.sfb-submit__policy p:last-child {
	margin-bottom: 0;
}

.sfb-submit__honeypot {
	position: absolute;
	left: -10000px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.sfb-submit__button {
	padding: 14px 22px;
	font-size: 1rem;
	font-weight: 600;
	background: #1a3a5c;
	color: #fff;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
	transition: opacity 0.15s;
}

.sfb-submit__button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.sfb-submit__error {
	background: #fdecea;
	border: 1px solid #f5c2c0;
	color: #a00;
	padding: 10px 14px;
	border-radius: 4px;
	font-size: 0.92rem;
}

.sfb-submit__success {
	text-align: center;
	padding: 32px 20px;
}

.sfb-submit__success h2 {
	margin-top: 0;
}
