.nm-skjema-form {
	max-width: 800px !important;
}

.form-section {
	padding: 1em;
}

.form-section input:not([type="checkbox"]),
.form-section textarea {
	width: auto;
	min-width: 200px;
	max-width: 400px;
}

.form-section input[type="checkbox"] {
	width: 20px;
}
.lagsaktivitetar input[type="checkbox"] {
	margin-left: 42px;
}

.form-section .submit-button {
	margin: 0 auto;
	font-size: inherit;
	padding: 20px 40px;
}

.form-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1em;
	margin-bottom: 1em;
}

.form-group {
	flex: 1;
	min-width: 250px;
}

.form-group input:not([type="checkbox"]),
.form-group textarea {
	width: 100%;
}

.form-group label {
	display: block;
	font-size: 16px;
}

.required:after {
	content: " *";
	color: #d63638;
}

details,
small,
.form-note {
	display: block;
	line-height: 1.4;
	font-size: 16px;
	max-width: 610px;
	color: #666;
}
details {
	margin-right: auto;
	margin-left: auto;
}
.form-note {
	margin-top: 0.5em;
}

details[open] .content {
	animation: slideDown 0.3s ease-out;
	margin-bottom: 1em;
}
summary {
	padding-bottom: 0.5em;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.board-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1em;
	margin-bottom: 1em;
}

.board-member h4 {
	margin: 0 0 1em 0;
	padding-bottom: 0.5em;
	border-bottom: 1px solid #eee;
}

.board-member-inputs {
	display: grid;
	gap: 0.5em;
}

.expandable-field {
	margin: 0.8em 0;
}
.expandable-content label {
	font-size: 16px;
}

.expandable-content {
	display: none;
}

.expandable-content.show,
.show {
	display: block !important;
}
.hide {
	display: none !important;
}

.center {
	max-width: 610px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.checkbox-label {
	display: flex;
	align-items: center;
	gap: 0.5em;
}

@media (max-width: 768px) {
	.board-grid {
		grid-template-columns: 1fr;
	}
}

/* Animasjon for details-elementet */
details[open] .content {
	animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
