﻿/* -----------------------------------------------
Questionnaire Page Styles
----------------------------------------------- */

.rs-questionnaire-view {
	min-height: calc(100vh - 180px);
	padding: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

.rs-questionnaire-view-content {
	width: 100%;
	max-width: 760px;
	margin-top: 1rem;
	background: #fff;
	border-radius: 1rem;
	box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
}

	.rs-questionnaire-view-content.fade-in {
		animation: fadein 1s ease-in-out;
	}

@keyframes fadein {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.rs-questionnaire-scenario {
	display: flex;
	flex-direction: column;
}

.rs-questionnaire-statement-intro {
	padding: 1rem 2rem 0 2rem;
	line-height: 1.1;
}

@media all and (max-width: 640px) {
	.rs-questionnaire-statement-intro {
		padding: 1rem 1rem 0 1rem;
	}
}

.rs-questionnaire-statement {
	font-weight: bold;
	line-height: 1.1;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	padding: 0 2rem 2rem 2rem;
}

@media all and (max-width: 640px) {
	.rs-questionnaire-statement {
		padding: 0 1rem 2rem 1rem;
	}
}

.rs-questionnaire-decision {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 0 1rem 0;
}

.rs-questionnaire-options {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: 0 0 100%;
	padding: 0 2rem;
}

@media all and (max-width: 640px) {
	.rs-questionnaire-options {
		padding: 0 1rem;
	}
}

.rs-questionnaire-captions {
	display: flex;
	justify-content: space-between;
	padding: 0 2rem;
	font-weight: bold;
	margin-top: -1.5rem;
}

@media all and (max-width: 640px) {
	.rs-questionnaire-captions {
		padding: 0 0.5rem;
		font-weight: normal;
	}
}

.rs-questionnaire-caption {
	background: #fff;
	padding: 0.25rem 0.5rem;
}

@media all and (max-width: 640px) {
	.rs-questionnaire-caption {
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
}

.rs-questionnaire-caption.agree {
	margin-right: 0.5rem;
}

.rs-questionnaire-caption.disagree {
	margin-left: -0.33rem;
}

.rs-questionnaire-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	max-width: 760px;
	border-radius: 0 0 0.5rem 0.5rem;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	padding: 1rem 2rem;
}

@media all and (max-width: 640px) {
	.rs-questionnaire-nav {
		padding: 1rem;
	}
}

.rs-questionnaire-nav-button {
	transition: all 0.3s ease-in-out;
	box-shadow: 0 0.25rem 0.75rem 0 rgba(0, 0, 0, 0.125);
}

	.rs-questionnaire-nav-button:hover {
		box-shadow: 0 0.25rem 1rem 0 rgba(0, 0, 0, 0.25);
		background: #fff;
	}

	.rs-questionnaire-nav-button[disabled] {
		opacity: 0;
		pointer-events: none;
	}

/* -----------------------------------------------
Questionnaire Start Page Styles
----------------------------------------------- */

.rs-questionnaire-start-view {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.rs-questionnaire-start-content {
	display: flex;
	justify-content: center;
	flex-direction: column;
	text-align: left;
	max-width: 700px;
	margin-bottom: 5rem;
}

.rs-questionnaire-start-logo {
	margin: 0 auto 2rem auto;
}

@media all and (max-width: 640px) {
	.rs-questionnaire-start-logo {
		display: none;
	}
}

/* -----------------------------------------------
Questionnaire Progress
----------------------------------------------- */

.questionnaire-progress {
	display: flex;
	align-items: center;
	width: 5rem;
}

.questionnaire-progress-ring {
	stroke: #ddd;
}

@keyframes donut-chart-fill {
	to {
		stroke-dasharray: 0 100;
	}
}

.questionnaire-progress-segment {
	animation: donut-chart-fill 1.5s reverse ease-in;
	transition: all 1.5s ease-in;
	transform-origin: center;
	stroke: #0097d2;
}

.questionnaire-progress-text {
	color: #0097d2;
	margin-left: 0.5rem;
	font-size: 1rem;
}

.questionnaire-progress-label {
	font-size: 0.28em;
	font-weight: 700;
	line-height: 1;
	fill: #000;
	transform: translateY(0.25em);
}

.questionnaire-progress-percent {
	font-size: 0.5em;
	fill: #0097d2;
	line-height: 1;
	transform: translateY(0.5em);
}

.questionnaire-progress-hole {
	fill: transparent;
}

/* -----------------------------------------------
Questionnaire Scenarios
----------------------------------------------- */
.rs-questionnaire-option {
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.1s ease-in;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: initial;
	padding: 0.25rem;
}

	.rs-questionnaire-option:focus {
		outline: none;
	}

	.rs-questionnaire-option.max {
		flex: 0 0 60px;
		max-width: 60px;
		height: 60px;
	}

@media all and (max-width: 640px) {
	.rs-questionnaire-option.max {
		flex: 0 0 25px;
		max-width: 25px;
		height: 25px;
	}
}

.rs-questionnaire-option.med {
	flex: 0 0 50px;
	max-width: 50px;
	height: 50px;
}

@media all and (max-width: 640px) {
	.rs-questionnaire-option.med {
		flex: 0 0 25px;
		max-width: 25px;
		height: 25px;
	}
}

.rs-questionnaire-option.min {
	flex: 0 0 40px;
	max-width: 40px;
	height: 40px;
}

@media all and (max-width: 640px) {
	.rs-questionnaire-option.min {
		flex: 0 0 25px;
		max-width: 25px;
		height: 25px;
	}
}

.rs-questionnaire-option.disagree.max {
	border: 2px solid #194670;
}

.rs-questionnaire-option.disagree.max .rs-questionnaire-option-fill {
	background: #194670;
}

.rs-questionnaire-option.disagree.med {
	border: 2px solid #194670;
}

.rs-questionnaire-option.disagree.med .rs-questionnaire-option-fill {
	background: #194670;
}

.rs-questionnaire-option.disagree.min {
	border: 2px solid #0060a3;
}

.rs-questionnaire-option.disagree.min .rs-questionnaire-option-fill {
	background: #0060a3;
}

.rs-questionnaire-option.agree.min {
	border: 2px solid #0060a3;
}

.rs-questionnaire-option.agree.min .rs-questionnaire-option-fill {
	background: #0060a3;
}

.rs-questionnaire-option.agree.med {
	border: 2px solid #0097d2;
}

.rs-questionnaire-option.agree.med .rs-questionnaire-option-fill {
	background: #0097d2;
}

.rs-questionnaire-option.agree.max {
	border: 2px solid #0097d2;
}

.rs-questionnaire-option.agree.max .rs-questionnaire-option-fill {
	background: #0097d2;
}

.rs-questionnaire-option-fill {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	border-radius: 100%;
	transition: background-color 0.3s ease-in;
}

.rs-questionnaire-option-icon {
	width: 50%;
	height: 50%;
	transition: all 0.3s ease-in-out;
}

.rs-questionnaire-option[aria-checked='false'] .rs-questionnaire-option-fill {
	background: none !important;
}

.rs-questionnaire-option[aria-checked='false'] .rs-questionnaire-option-icon {
	opacity: 0;
}
