.som-form,
.som-form *,
.som-form *::before,
.som-form *::after {
	box-sizing: border-box;
}

.som-form {
	max-width: 720px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.5;
	color: #1d2327;
}

.som-form h3 {
	margin: 2.4em 0 0.2em;
	padding-bottom: 0.4em;
	border-bottom: 2px solid #e2e5e9;
	font-size: 1.2em;
	font-weight: 700;
	line-height: 1.3;
}

.som-form h3:first-child {
	margin-top: 0;
}

.som-help {
	color: #5c6570;
	font-size: 0.92em;
	line-height: 1.5;
	margin: 0.1em 0 1.2em;
}

/* every question stacks full-width, one per row */
.som-grid {
	display: flex;
	flex-direction: column;
	gap: 22px;
	width: 100%;
}

.som-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
}

.som-field label {
	font-weight: 600;
	font-size: 0.95em;
	line-height: 1.4;
}

.som-field input[type="text"],
.som-field input[type="email"],
.som-field input[type="date"],
.som-field select,
.som-field textarea {
	display: block;
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #d0d5dd;
	border-radius: 8px;
	background: #fff;
	font-size: 1em;
	font-family: inherit;
	line-height: 1.4;
	color: #1d2327;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.som-field input[type="text"]:focus,
.som-field input[type="email"]:focus,
.som-field input[type="date"]:focus,
.som-field select:focus,
.som-field textarea:focus {
	outline: none;
	border-color: #2a5d34;
	box-shadow: 0 0 0 3px rgba(42, 93, 52, 0.15);
}

.som-field textarea {
	resize: vertical;
	min-height: 100px;
}

.req {
	color: #c0392b;
}

/* Yes/No and multi-choice options: compact, evenly sized, theme-proof */
.som-radio-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	align-items: center;
	padding-top: 2px;
}

.som-radio-row label {
	font-weight: 400;
	font-size: 0.98em;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	margin: 0;
}

.som-form input[type="radio"],
.som-form input[type="checkbox"] {
	appearance: auto;
	width: 18px !important;
	height: 18px !important;
	min-width: 18px;
	min-height: 18px;
	margin: 0 !important;
	padding: 0 !important;
	accent-color: #2a5d34;
	flex: 0 0 auto;
	cursor: pointer;
}

.som-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Evaluation grid (referral form) */
.som-trait-table {
	width: 100%;
	overflow-x: auto;
	margin: 1em 0 1.5em;
	border: 1px solid #e2e5e9;
	border-radius: 8px;
}

.som-trait-header,
.som-trait-row {
	display: grid;
	grid-template-columns: minmax(180px, 2.2fr) repeat(5, minmax(56px, 0.7fr));
	gap: 6px;
	align-items: center;
	padding: 9px 12px;
	min-width: 480px;
}

.som-trait-header {
	font-weight: 600;
	font-size: 0.82em;
	background: #f7f8f9;
	text-align: center;
}

.som-trait-header .som-trait-name {
	text-align: left;
}

.som-trait-row {
	border-top: 1px solid #eee;
}

.som-trait-row:nth-child(even) {
	background: #fbfbfc;
}

.som-trait-row span:not(.som-trait-name) {
	text-align: center;
}

.som-trait-name {
	font-size: 0.9em;
}

.som-submit-row {
	margin-top: 2.2em;
}

.som-submit {
	display: inline-block;
	background: #2a5d34;
	color: #fff;
	border: none;
	padding: 13px 30px;
	font-size: 1.05em;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.som-submit:hover {
	background: #1f4527;
}

.som-submit:disabled {
	opacity: 0.6;
	cursor: default;
}

.som-notice {
	padding: 14px 18px;
	border-radius: 8px;
	margin-bottom: 1.5em;
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
	font-size: 0.98em;
	line-height: 1.5;
}

.som-notice--success {
	background: #e6f4ea;
	color: #1e4620;
	border: 1px solid #b7dfc0;
}

.som-notice--error {
	background: #fdecea;
	color: #611a15;
	border: 1px solid #f3c1bb;
}

.som-notice--info {
	background: #eef3fb;
	color: #1c3d5f;
	border: 1px solid #c3d7ef;
}
