/* Public-facing styles for the Mevabi Shortest plugin */

.mvsh-quiz {
	box-sizing: border-box;
	max-width: 700px;
	margin: 1.5em 0;
	padding: 1.5em;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	background-color: #ffffff;
	color: #222222;
	font-size: 16px;
	line-height: 1.5;
}

.mvsh-quiz * {
	box-sizing: border-box;
}

.mvsh-quiz .mvsh-title {
	margin: 0 0 0.3em;
	font-size: 1.4em;
}

.mvsh-quiz .mvsh-description {
	margin: 0 0 1em;
	opacity: 0.85;
}

.mvsh-quiz .mvsh-progress-wrap {
	display: flex;
	align-items: center;
	gap: 0.75em;
	margin-bottom: 1.25em;
}

.mvsh-quiz .mvsh-progress-bar {
	flex: 1 1 auto;
	height: 8px;
	border-radius: 4px;
	background-color: rgba(0, 0, 0, 0.08);
	overflow: hidden;
}

.mvsh-quiz .mvsh-progress-fill {
	height: 100%;
	background-color: #2271b1;
	transition: width 0.25s ease;
}

.mvsh-quiz .mvsh-progress-text {
	flex: 0 0 auto;
	font-size: 0.85em;
	white-space: nowrap;
	opacity: 0.75;
}

.mvsh-quiz .mvsh-question {
	margin-bottom: 1.5em;
}

.mvsh-quiz .mvsh-question-text {
	font-weight: 600;
	margin: 0 0 0.6em;
}

.mvsh-quiz .mvsh-answers {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
}

.mvsh-quiz .mvsh-answer {
	display: flex;
	align-items: center;
	gap: 0.6em;
	padding: 0.6em 0.8em;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.mvsh-quiz .mvsh-answer:hover {
	background-color: rgba(0, 0, 0, 0.03);
}

.mvsh-quiz .mvsh-answer input[type="radio"] {
	margin: 0;
	flex: 0 0 auto;
}

.mvsh-quiz .mvsh-controls {
	display: flex;
	gap: 0.6em;
	margin-top: 1em;
}

.mvsh-quiz .mvsh-btn {
	display: inline-block;
	padding: 0.6em 1.4em;
	border: none;
	border-radius: 6px;
	background-color: #2271b1;
	color: #ffffff;
	font-size: 1em;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.mvsh-quiz .mvsh-btn:hover {
	opacity: 0.9;
}

.mvsh-quiz .mvsh-btn.mvsh-prev {
	background-color: transparent;
	color: inherit;
	border: 1px solid currentColor;
	opacity: 0.7;
}

.mvsh-quiz .mvsh-result {
	margin-top: 1.5em;
	padding: 1.2em 1.2em;
	border-radius: 6px;
	background-color: rgba(0, 0, 0, 0.04);
	text-align: center;
}

.mvsh-quiz .mvsh-result .mvsh-result-score {
	margin: 0 0 0.6em;
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 0.4em;
}

.mvsh-quiz .mvsh-result .mvsh-result-score-label {
	font-size: 0.8em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	opacity: 0.65;
}

.mvsh-quiz .mvsh-result .mvsh-result-score-value {
	font-size: 2.4em;
	font-weight: 800;
	line-height: 1;
	color: #2271b1;
}

.mvsh-quiz .mvsh-result .mvsh-result-title {
	font-weight: 600;
	margin: 0;
	font-size: 1.1em;
}

.mvsh-quiz .mvsh-repeat-btn {
	display: block;
	margin: 1em auto 0;
	padding: 0.6em 1.4em;
	font-size: 1em;
	background-color: transparent;
	color: inherit;
	border: 1px solid currentColor;
	border-radius: 6px;
	cursor: pointer;
	opacity: 0.8;
	transition: opacity 0.15s ease;
}

.mvsh-quiz .mvsh-repeat-btn:hover {
	opacity: 1;
}

.mvsh-quiz .mvsh-field-warning {
	color: #b32d2e;
	font-size: 0.85em;
	margin-top: 0.4em;
}

p.mvsh-error {
	color: #b32d2e;
	font-weight: 600;
}
