.allsections section {
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid #c0c0c0;
}

.allsections section:last-child {
	border: none;
}

section.survey {
	border-bottom: 1px solid #ced4da;
	margin-bottom: 1.5rem;
}

.section-head {
	margin-bottom: 1.5rem;
}

#tx-questionnaire-form label {
	cursor: pointer;
	font-weight: normal;
}

#tx-questionnaire-form .questions {
	padding: 20px 0;
	border: 1px solid #f4f4f4;
}

#tx-questionnaire-form .questions:nth-child(odd) {
	background: #fff;
}
#tx-questionnaire-form .questions:nth-child(even) {
	background: #f4f4f4;
}

.questions.results .question {
	padding-top: 10px;
	border-top: 1px solid #d0d0d0;
	margin-top: 10px;
}

.prevnext {
	padding: 20px 0;
}

.prevnext .btn {
	min-width: 2.5rem;
}

.prevnext .btn span {
	padding: 0 0 0 .25rem;
}

.prevnext .text-right .btn span {
	padding: 0 0.25rem 0 0;
}

.answers, .notes {
	margin-top: 1rem;
}

.note {
	margin: 0.5rem 0 1.5rem;
	border: 1px solid #d0d0d0;
	padding: .75rem;
	font-style: italic;
	border-radius: .125rem;
	background-color: #f6f6f6;
}

.open .answers textarea {
	min-height: 8rem;
}

.infotext .description p:last-child {
	margin-bottom: 0;
}

.matrix table {
	margin-bottom: 1rem 0 0 0;
}

.matrix table td {
	vertical-align: middle;
}

.matrix table thead td {
	font-weight: bold;
}

.ranking ul.sortable li {
	cursor: move;
	transition: background-color .25s, color .25s;
}

.ranking ul.sortable li.active {
	transition: background-color .25s, color .25s;
}

.radios .answers label, .checkboxes .answers label, .grades .answers label {
	display: flex;
}
.radios .answers label input, .checkboxes .answers label input, .grades .answers label input, .noanswer label input {
	margin: 0 0.5rem 0 0;
}

.answers.horizontal {
	flex-direction: row;
	justify-content: space-between;
}

.answers.horizontal label {
	display: flex;
	flex-direction: column-reverse;
}

.answers.horizontal label input {
	margin: 0.5rem 0 0 0;
}

.answers.horizontal label * {
	align-self: center;
}

@media all and (max-width: 575px) {
	.answers.horizontal {
		flex-direction: column;
	}
	.answers.horizontal label {
		flex-direction: row;
	}
	.answers.horizontal label input {
		margin: 0 0.5rem 0 0;
	}
}


.alternative .answers input[type="radio"] {
	opacity: 0;
	width: 0;
	position: fixed;
}

.alternative .answers div {
	padding: 1rem;
}

.alternative .answers label {
	border: 1px solid #d0d0d0;
	margin-bottom: 0;
	padding-right: 1.5rem;
}

.alternative .answers label.alert-success:before {
	position: absolute;
	font-family: "Font Awesome 5 Free";
	top: 0.25rem;
	right: 0.35rem;
	content: "\f058";
	font-size: 1rem;
	opacity: 0.9;
}

@media all and (min-width: 576px) {
	.question.alternative label {
		width: 40%;
	}
}

.row.subquestions::before {
	content: '\21B5';
	position: absolute;
	left: 0;
	padding-right: 1rem;
	font-size: 2rem;
	transform: scale(-1, 1);
}

.row.subquestions {
	margin-top: 10px;
	padding-bottom: 2rem;
	border-bottom: 1px solid #d0d0d0;
}

.row.subquestions .subquestion {
	padding-left: 3rem;
}

div.answers + .row.subquestions {
	position: relative;
	border-top: 1px solid #d0d0d0;
	padding-top: 10px;
}
.row.subquestions:last-child {
	padding-bottom: 10px;
	border-bottom: none;
}

.errors {
	color: red;
}
.noAuthKeyMessage {
	position: relative;
}
.noAuthKeyMessage a.btn {
	position: absolute;
	top: 0;
	right: 0;
}

.hidden {
	display: none;
}

.results .hidden {
	display: block;
}

.tx-questionnaire .card-body p:last-child {
	margin-bottom: 0;
}

ul.typo3-messages {
	margin: 0;
	padding: 0;
	list-style-type: none;
	background: #ccc;
}
textarea.f3-form-error {
	background-color:#FF9F9F;
	border: 1px #FF0000 solid;
}

input.f3-form-error {
	background-color:#FF9F9F;
	border: 1px #FF0000 solid;
}

.typo3-messages .message-error {
	color:red;
}

.typo3-messages .alert-success {
	color:green;
}

/* loader */

#loader {
	display: flex;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	background: rgba(0,0,0,0.33) no-repeat center center;
	z-index: 10000;
}

#loader i.fa-spinner {
	color: white;
	width: auto;
	height: auto;
	margin: auto;
}
