:root {
	--bs-body-font-size: 14px;
	--bs-body-font-family: sans-serif;
}

#heading {
	background-color: var(--bs-primary);
	margin-bottom: 10px;
}

#heading h1,
#page-success h1,
#page-closed h1 {
	color: var(--bs-body-bg);
	background-color: var(--bs-primary);
	text-align: center;
	font-weight: 700;
	font-size: 25px;
	line-height: 1.1;
	padding: 20px;
	text-shadow: 1px 2px 7px rgba(0, 0, 0, 0.33);
}

fieldset.buttons {
	margin-top: 20px;
	margin-bottom: 20px;
}

legend {
	margin-bottom: 0; /* reset */
	font-size: var(--bs-body-font-size); /* reset */
}

legend.field-header {
	font-size: 18px;
	color: var(--bs-primary);
	margin-top: 30px;
	margin-bottom: 10px;
	border-bottom: 1px solid var(--bs-primary);
}

legend.minor-header {
	font-weight: bold;
	margin-top: 30px;
}

.field-description {
	font-size: var(--bs-body-font-size);
	font-style: italic;
}

legend.field-description {
	margin-top: -5px;
	margin-bottom: 10px;
}


.col-form-label {
	padding-top: 5px;
	padding-bottom: 3px;
}

label {
	font-weight: bold;
	margin-top: 10px;
}

label.form-check-label {
	margin-top: 0;
	margin-bottom: 5px;
	font-weight: normal;
}

.required label:not(.form-check-label):after,
.required-asterisk:after,
.asterisk-if-next-is-required:has(+ .required) label:after,
.asterisk-on-last-if-next-is-required:has(+ .required) label:last-of-type:after {
	content: '\a0*';
	color: var(--bs-form-invalid-color);
}


.form-control {
	font-size: var(--bs-body-font-size);
	border-radius: 0;
	margin-bottom: 3px;
}


.invalid-feedback {
	margin-top: -2px;
}

/* for error messages not immediately after input */
.invalid-feedback.not-hidden {
	display: block;
}


/* usually textArea with description for checkbox */
.descriptionArea {
	margin-bottom: 1em;
	margin-left: 1em;
}


/* bigger right padding, otherwise the button overflows on mobile devices */
.plusMinusButtons {
	padding-right: calc(.9* var(--bs-gutter-x));
	padding-left: calc(.1* var(--bs-gutter-x));
}


.plus-minus-checkbox input[type="checkbox"] {
	display: none;
}

.plus-minus-checkbox label:has(input[type="checkbox"]),
.uncheck {
	margin-top: 10px;
}

.plus-minus-checkbox label:has(input[type="checkbox"]):before {
	content: url('data:image/svg+xml; utf8, <svg width="16" height="17" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.129 7.984v1.032a.392.392 0 0 1-.387.387H8.903v2.839a.392.392 0 0 1-.387.387H7.484a.373.373 0 0 1-.387-.387V9.403H4.258a.373.373 0 0 1-.387-.387V7.984c0-.194.161-.387.387-.387h2.839V4.758c0-.193.161-.387.387-.387h1.032c.194 0 .387.194.387.387v2.839h2.839c.193 0 .387.193.387.387ZM16 8.5c0 4.42-3.58 8-8 8s-8-3.58-8-8 3.58-8 8-8 8 3.58 8 8Zm-1.548 0c0-3.548-2.904-6.452-6.452-6.452A6.45 6.45 0 0 0 1.548 8.5 6.43 6.43 0 0 0 8 14.952 6.45 6.45 0 0 0 14.452 8.5Z" fill="currentColor"></path></svg>');
	cursor: pointer;
	opacity: 0.6;
}

.plus-minus-checkbox label:has(input[type="checkbox"]:checked):before,
.uncheck {
	content: url('data:image/svg+xml; utf8, <svg width="16" height="17" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4.258 9.403a.373.373 0 0 1-.387-.387V7.984c0-.194.161-.387.387-.387h7.484c.193 0 .387.193.387.387v1.032a.392.392 0 0 1-.387.387H4.258ZM16 8.5c0 4.42-3.58 8-8 8s-8-3.58-8-8 3.58-8 8-8 8 3.58 8 8Zm-1.548 0c0-3.548-2.904-6.452-6.452-6.452A6.45 6.45 0 0 0 1.548 8.5 6.43 6.43 0 0 0 8 14.952 6.45 6.45 0 0 0 14.452 8.5Z" fill="currentColor"></path></svg>');
	cursor: pointer;
	opacity: 0.6;
}


.btn {
	margin: 10px 0 20px;
	padding: 10px 30px;
	font-size: 18px;
	border-radius: 0;
}

.btn:focus, a:focus, input:focus {
	outline: none !important;
}

.btn-primary, .btn-primary:hover, .btn-primary:active, .btn-primary:focus, .btn-primary:active:focus {
	background-color: var(--bs-primary);
	border: 1px solid rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
	background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1));
}

.add-margin-top {
	margin-top: 5px;
}

a.link-primary,
fieldset[name="gdpr"] a {
	text-decoration: none;
	color: var(--bs-primary);
}

a.link-primary:hover, a.link-primary:focus,
fieldset[name="gdpr"] a:hover,  fieldset[name="gdpr"] a:focus{
	text-decoration: underline;
	color: var(--bs-primary) !important;
	text-decoration-color: var(--bs-primary) !important;
}


/* counter of remaining characters for textArea with maxLength */
.characterCounter {
	display: block;
	font-size: .875em;
	text-align: right;
	margin-top: -2px;
	float: right;
}