/* SunSeaFun Role Quiz — all rules are scoped under .ssf-quiz to avoid theme clashes. */

.ssf-quiz {
	--ssf-sea: #0a6c8f;
	--ssf-sea-dark: #064c66;
	--ssf-muted: #5b7482;
	--ssf-line: #d3e3ea;
	--ssf-bg: #ffffff;
	--ssf-tint: #eef7fa;

	 box-sizing: border-box;
}

.ssf-quiz *,
.ssf-quiz *::before,
.ssf-quiz *::after {
	box-sizing: inherit;
}

.ssf-quiz__counter {
	margin: 0 0 0.5rem;
	font-size: var(--text-s);
	font-weight: 600;
	letter-spacing: 0.03em;
	color: var(--ssf-muted);
}

.ssf-quiz__progress {
	height: 6px;
	margin-bottom: var(--space-l);
	overflow: hidden;
	background: var(--ssf-tint);
	border-radius: 999px;
}

.ssf-quiz__progress-bar {
	display: block;
	height: 100%;
	background: var(--primary-d-5);
	border-radius: 999px;
	transition: width 0.25s ease;
}

.ssf-quiz__question,
.ssf-experience__question {
	margin: 0 0 1rem;
	font-size: var(--text-xl);
	line-height: 1.3;
}

.ssf-quiz__options {
	display: grid;
	gap: var(--space-s);
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.ssf-quiz__options li {
	margin: 0;
	padding: 0;
}

.ssf-quiz__option {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 0.75rem 1rem;
	color: inherit;
	text-align: left;
	background: var(--ssf-bg);
	border: 2px solid var(--ssf-line);
	border-radius: 12px;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.ssf-quiz__option:hover {
	border-color: var(--ssf-sea);
	background: var(--ssf-tint);
}

.ssf-quiz__option.is-selected {
	border-color: var(--ssf-sea);
	background: var(--ssf-tint);
}

.ssf-quiz button:focus-visible,
.ssf-quiz a:focus-visible,
.ssf-quiz [tabindex="-1"]:focus-visible {
	outline: none;
	outline-offset: 2px;
}

.ssf-quiz [tabindex="-1"]:focus {
	outline: none;
}

/* Buttons and button-looking links. */
.ssf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.65rem 1.25rem;
	font: inherit;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	border: 2px solid transparent;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ssf-btn--primary {
	color: #ffffff;
	background: var(--ssf-sea);
}

.ssf-btn--primary:hover {
	color: #ffffff;
	background: var(--ssf-sea-dark);
}

.ssf-btn--secondary {
	color: var(--ssf-sea-dark);
	background: transparent;
	border-color: var(--ssf-sea);
}

.ssf-btn--secondary:hover {
	color: #ffffff;
	background: var(--ssf-sea);
}

.ssf-btn--text {
	min-height: 44px;
	padding-inline: 0.5rem;
	color: var(--ssf-sea-dark);
	background: transparent;
	text-decoration: underline;
}

/* Result. */
.ssf-result {
	padding: 1.25rem;
	background: var(--ssf-tint);
	border-radius: 12px;
}

.ssf-result__label {
	margin: 0 0 0.25rem;
	font-weight: 600;
	/* color: var(--ssf-muted); */
}

.ssf-result__title {
	margin: 0 0 0.5rem;
	line-height: 1.2;
	/* color: var(--ssf-sea-dark); */
}

.ssf-result__text {
	margin: 0 0 1rem;
}

.ssf-result__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
}

.ssf-result__note {
	margin: 0.875rem 0 0;
	color: var(--ssf-muted);
}

.ssf-also {
	margin: 0.875rem 0 0;
	padding: 0.75rem 1rem;
	border: 1px dashed var(--ssf-line);
	border-radius: 10px;
}

.ssf-also__line {
	margin: 0;
}

.ssf-also__link {
	font-weight: 700;
	color: var(--ssf-sea-dark);
}

.ssf-experience {
	margin-top: 1.75rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--ssf-line);
}

.ssf-management {
	margin-top: 1rem;
	padding: 1rem 1.25rem;
	background: #fff7e6;
	border-radius: 12px;
}

.ssf-management__text {
	margin: 0 0 0.75rem;
}

.ssf-quiz__disclaimer {
	margin: 1.25rem 0 0.5rem;
	font-size: var(--text-s);
	color: var(--ssf-muted);
}

.ssf-quiz__status,
.ssf-quiz__error {
	margin: 1rem 0;
	font-weight: 600;
}

.ssf-quiz__error {
	color: #9b1c1c;
}

@media (prefers-reduced-motion: reduce) {
	.ssf-quiz *,
	.ssf-quiz *::before,
	.ssf-quiz *::after {
		transition: none !important;
	}
}

/* Intro (h3 + description) and Back / Cancel row — added in 1.1.0. */
.ssf-quiz__title {
	margin: 0 0 0.5rem;
	line-height: 1.2;
}

.ssf-quiz__intro {
	margin: 0 0 var(--space-l, 1.5rem);
}

.ssf-quiz__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.625rem;
	margin-top: 1rem;
}

/* Keeps Cancel on the right even when Back is not shown (first question). */
.ssf-quiz__cancel {
	margin-left: auto;
}

/* Hide the intro heading and description on the results screen. */
.ssf-quiz.is-result .ssf-quiz__title,
.ssf-quiz.is-result .ssf-quiz__intro {
	display: none;
}

/* Descriptions and notification text come from plain-text admin fields: keep their line breaks. */
.ssf-result__text,
.ssf-management__text {
	white-space: pre-line;
}

/* Spacing between several buttons inside a notification. */
.ssf-notice .ssf-btn {
	margin: 0 0.5rem 0.5rem 0;
}

/* Answer notes: small and muted (the colour is repeated here so it never depends on the theme). */
.ssf-result__note {
	font-size: var(--text-s, 0.875rem);
	color: var(--ssf-muted);
	white-space: pre-line;
}
