/*
 * Gedeelde formulier-styling voor sollicitatie- en alert-forms.
 */

.sh-form {
	max-width: 100%;
	margin: 2rem auto;
	padding: 1.75rem 0;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 12px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.sh-form h2 {
	margin: 0 0 0.25rem;
	font-size: 1.4rem;
}

.sh-form__intro {
	margin: 0 0 1.5rem;
	color: rgba(0, 0, 0, 0.65);
}

.sh-form__row {
	margin-bottom: 1rem;
}

.sh-form__row--2col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

@media (max-width: 600px) {
	.sh-form__row--2col { grid-template-columns: 1fr; }
}

.sh-form__field {
	display: block;
}

.sh-form__field > span {
	display: block;
	font-weight: 600;
	margin-bottom: 0.3rem;
	font-size: 0.95rem;
}

.sh-form__hint {
	display: block;
	margin-top: 0.3rem;
	font-size: 0.85rem;
	color: rgba(43, 18, 31, 0.6);
	font-weight: normal;
}

.sh-form__field input[type="text"],
.sh-form__field input[type="email"],
.sh-form__field input[type="tel"],
.sh-form__field input[type="url"],
.sh-form__field input[type="search"],
.sh-form__field input[type="file"],
.sh-form__field select,
.sh-form__field textarea {
	width: 100%;
	padding: 0.6rem 0.8rem;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 6px;
	font-size: 1rem;
	font-family: inherit;
	background: #fff;
}

.sh-form__field input:focus,
.sh-form__field select:focus,
.sh-form__field textarea:focus {
	outline: 2px solid var(--awb-color4, #1b78bb);
	outline-offset: 1px;
	border-color: var(--awb-color4, #1b78bb);
}

.sh-form__field--checkbox {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
	font-size: 0.95rem;
}

.sh-form__field--checkbox input {
	margin-top: 0.25rem;
}

.sh-form__field--checkbox > span {
	margin: 0;
	font-weight: normal;
}

.sh-form__actions {
	margin-top: 1.5rem;
	display: flex;
	gap: 0.5rem;
}

.sh-form__status {
	margin-top: 1rem;
	padding: 0.75rem 1rem;
	border-radius: 6px;
	display: none;
}

.sh-form__status:not(:empty) {
	display: block;
}

.sh-form__status--success {
	background: color-mix( in srgb, var(--awb-color6, #358d72) 12%, transparent );
	color: var(--awb-color6, #358d72);
	border: 1px solid color-mix( in srgb, var(--awb-color6, #358d72) 25%, transparent );
}

.sh-form__status--error {
	background: color-mix( in srgb, #d63638 10%, transparent );
	color: #b30000;
	border: 1px solid rgba(214, 54, 56, 0.3);
}

.sh-form__filter-group {
	border: 0;
	padding: 0;
	margin: 0 0 1rem;
}

.sh-form__filter-group legend {
	font-weight: 600;
	margin-bottom: 0.4rem;
}

.sh-form__filter-option {
	display: inline-flex;
	gap: 0.5rem;
	padding: 0.2rem 0.5rem 0.2rem 0;
	margin-right: 0.5rem;
	align-items: center;
}
