.assessq {
	--assessq-primary: #1c3d5a;
	--assessq-accent: #0000d0;
	--assessq-bg: #ffffff;
	--assessq-border: #e2e5e9;
	--assessq-text: #1a1a1a;
	--assessq-muted: #6b7280;
	--assessq-radius: 10px;

	position: relative;
	max-width: 640px;
	margin: 0 auto;
	background: var(--assessq-bg);
	border: 1px solid var(--assessq-border);
	border-radius: var(--assessq-radius);
	padding: 32px 28px;
	box-shadow: 0 4px 24px rgba(0,0,0,0.06);
	font-family: inherit;
	color: var(--assessq-text);
	box-sizing: border-box;
}
.assessq *, .assessq *::before, .assessq *::after {
	box-sizing: border-box;
}

.assessq__progress {
	width: 100%;
	height: 6px;
	background: var(--assessq-border);
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 28px;
}
.assessq__progress-bar {
	height: 100%;
	width: 0%;
	background: var(--assessq-accent);
	transition: width 0.3s ease;
}

.assessq__step {
	display: none;
	animation: assessqFadeIn 0.25s ease;
}
.assessq__step.is-active {
	display: block;
}
@keyframes assessqFadeIn {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

.assessq__title {
	font-size: 1.5rem;
	line-height: 1.3;
	margin: 0 0 10px;
	color: var(--assessq-primary);
}
.assessq__subtitle {
	color: var(--assessq-muted);
	margin: 0 0 22px;
}
.assessq__question {
	font-size: 1.15rem;
	margin: 0 0 18px;
	color: var(--assessq-primary);
}
.assessq__hint {
	color: var(--assessq-muted);
	font-size: 0.85rem;
	margin: -12px 0 14px;
}

.assessq__responses {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.assessq__response {
	text-align: left;
	padding: 14px 16px;
	border: 1px solid var(--assessq-border);
	border-radius: var(--assessq-radius);
	background: #fff;
	font-size: 1rem;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.assessq__response:hover {
	border-color: var(--assessq-accent);
	background: #eef0ff;
}
.assessq__response.is-selected {
	border-color: var(--assessq-accent);
	background: #e3e6ff;
	font-weight: 600;
}

/* Toggle: same markup/JS as single-choice, just styled as a two-segment
   pill/switch instead of stacked full-width buttons. */
.assessq__responses--toggle {
	flex-direction: row;
	background: #f3f4f6;
	border-radius: 999px;
	padding: 4px;
	gap: 0;
}
.assessq__responses--toggle .assessq__response {
	flex: 1;
	text-align: center;
	border: none;
	border-radius: 999px;
	background: transparent;
	padding: 12px 16px;
}
.assessq__responses--toggle .assessq__response:hover {
	background: rgba(0, 0, 0, 0.04);
}
.assessq__responses--toggle .assessq__response.is-selected {
	background: var(--assessq-accent);
	color: #fff;
}

/* Spectrum: same markup/JS as single-choice (and as Toggle), just a
   general N-way (2-4) segmented control instead of a binary switch —
   flexbox divides space evenly regardless of how many segments exist. */
.assessq__responses--spectrum {
	flex-direction: row;
	gap: 0;
	border: 1px solid var(--assessq-border);
	border-radius: var(--assessq-radius);
	overflow: hidden;
}
.assessq__responses--spectrum .assessq__response {
	flex: 1;
	text-align: center;
	border: none;
	border-radius: 0;
	background: #fff;
	padding: 14px 10px;
	font-size: 0.95rem;
}
.assessq__responses--spectrum .assessq__response + .assessq__response {
	border-left: 1px solid var(--assessq-border);
}
.assessq__responses--spectrum .assessq__response:hover {
	background: #eef0ff;
}
.assessq__responses--spectrum .assessq__response.is-selected {
	background: var(--assessq-accent);
	color: #fff;
	font-weight: 600;
}

.assessq__slider-wrap {
	padding: 10px 0 4px;
}
.assessq__slider-value-row {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 6px;
}
.assessq__slider-value {
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--assessq-accent);
	min-width: 2.5em;
	text-align: center;
}
.assessq__slider {
	width: 100%;
	accent-color: var(--assessq-accent);
	cursor: pointer;
}

.assessq__continue {
	margin-top: 18px;
}
.assessq__continue:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.assessq__form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.assessq__form input {
	padding: 12px 14px;
	border: 1px solid var(--assessq-border);
	border-radius: var(--assessq-radius);
	font-size: 1rem;
	width: 100%;
}
.assessq__form input:focus {
	outline: none;
	border-color: var(--assessq-accent);
}
.assessq__privacy {
	font-size: 0.8rem;
	color: var(--assessq-muted);
	margin: 4px 0 0;
}
.assessq__hp {
	position: absolute;
	left: -9999px;
	top: -9999px;
	height: 0;
	width: 0;
	overflow: hidden;
}

.assessq__btn {
	display: inline-block;
	padding: 13px 22px;
	border-radius: var(--assessq-radius);
	font-size: 1rem;
	font-weight: 600;
	border: none;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
}
.assessq__btn--primary {
	background: var(--assessq-accent);
	color: #fff;
}
.assessq__btn--primary:hover {
	opacity: 0.92;
	color: #fff;
}
.assessq__btn:disabled {
	background: var(--assessq-border);
	color: var(--assessq-muted);
	cursor: not-allowed;
	opacity: 1;
}
.assessq__btn--ghost {
	background: transparent;
	color: var(--assessq-muted);
	padding-left: 0;
}

.assessq__nav {
	margin-top: 18px;
}

.assessq__result-title {
	color: var(--assessq-primary);
	font-size: 1.3rem;
	margin: 0 0 12px;
}
.assessq__result-body {
	color: var(--assessq-text);
	line-height: 1.6;
	margin: 0 0 22px;
}

/* Results screen: "Your Results" heading hierarchy */
.assessq__results-subtitle {
	font-size: 1.05rem;
	font-weight: 500;
	color: var(--assessq-primary);
	margin: 0 0 8px;
}

/* CoE maturity bars: one row per category, 4 flat colored segments
   with a small triangle marker above the scored segment. Column widths for
   the label/track/tier-label areas must match exactly between the header
   row and every bar row so the numbers/legend line up with the segments. */
.assessq__maturity {
	margin: 24px 0 48px;
}
.assessq__maturity-header,
.assessq__maturity-marker-row,
.assessq__maturity-bar-row {
	display: flex;
	align-items: center;
	gap: 12px;
}
.assessq__maturity-label-col,
.assessq__maturity-label {
	width: 140px;
	flex-shrink: 0;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--assessq-text);
}
.assessq__maturity-tier-col,
.assessq__maturity-tier-label {
	width: 76px;
	flex-shrink: 0;
	text-align: right;
	font-size: 0.85rem;
	font-weight: 500;
}
.assessq__maturity-header-track,
.assessq__maturity-marker-track,
.assessq__maturity-bar-track {
	flex: 1;
	display: flex;
}
.assessq__maturity-header {
	margin-bottom: 8px;
}
.assessq__maturity-subheading {
	font-weight: 600;
	margin: 20px 0 10px;
	padding-top: 12px;
	border-top: 1px solid var(--assessq-border);
}
.assessq__maturity-header-cell {
	flex: 1;
	text-align: center;
	display: flex;
	flex-direction: column;
	font-size: 0.8rem;
}
.assessq__maturity-header-cell span:first-child {
	font-weight: 500;
}
.assessq-tier-1 { color: #C0392B; }
.assessq-tier-2 { color: #B9770E; }
.assessq-tier-3 { color: #1F618D; }
.assessq-tier-4 { color: #1E8449; }

.assessq__maturity-row {
	margin-bottom: 14px;
}
.assessq__maturity-marker-row {
	margin-bottom: 2px;
}
.assessq__maturity-marker-cell {
	flex: 1;
	display: flex;
	justify-content: center;
}
.assessq__maturity-marker {
	width: 0;
	height: 0;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 8px solid var(--assessq-text);
}
.assessq__maturity-bar-track {
	border-radius: 8px;
	overflow: hidden;
}
.assessq__maturity-segment {
	flex: 1;
	height: 36px;
}

/* "What this means" summary box, styled to stand out against the page */
.assessq__meaning {
	background: #e6ebfa;
	background: color-mix(in srgb, var(--assessq-accent) 10%, white);
	border-radius: 12px;
	padding: 1rem 1.25rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 40px;
}
.assessq__meaning h3 {
	margin: 0 0 4px;
	font-size: 1rem;
	font-weight: 500;
	color: var(--assessq-primary);
}
.assessq__meaning-text {
	font-size: 0.9rem;
	color: var(--assessq-primary);
	margin: 0;
}
.assessq__meaning .assessq__btn {
	flex-shrink: 0;
}
.assessq__meaning > div {
	/* Without this, the text side has no protection against the button's
	   flex-shrink:0 — in a narrow enough container (as the split layout's
	   separate Output block can end up in, depending on where it's placed
	   on the page), it gets squeezed toward its content's min-content
	   width instead of wrapping normally, which for prose means each word
	   landing on its own line. min-width:0 is the standard fix for a flex
	   child that needs to shrink below its content's natural minimum. */
	flex: 1 1 0%;
	min-width: 0;
}

@media (max-width: 560px) {
	.assessq__maturity-label-col,
	.assessq__maturity-label {
		width: 90px;
		font-size: 0.8rem;
	}
	.assessq__maturity-tier-col,
	.assessq__maturity-tier-label {
		width: 56px;
		font-size: 0.75rem;
	}
	.assessq__meaning {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}
}

@media (max-width: 480px) {
	.assessq {
		padding: 22px 18px;
	}
}

/* Dynamic Content Wizard: every question visible at once, a live-matched
   content area below, and a CTA that reveals the contact form inline —
   a genuinely different layout from the step-by-step flow above, so it
   gets its own section rather than trying to reuse those step styles. */
.assessq--wizard .assessq__wizard-questions {
	display: flex;
	flex-direction: column;
	gap: 28px;
	margin: 24px 0 32px;
}
.assessq__wizard-question .assessq__question {
	margin-bottom: 10px;
}
.assessq__wizard-content {
	background: #f7f8fc;
	border: 1px solid var(--assessq-border);
	border-radius: var(--assessq-radius);
	padding: 20px 24px;
	margin-bottom: 20px;
	min-height: 60px;
}
.assessq__wizard-cta {
	width: 100%;
}
.assessq__wizard-contact {
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--assessq-border);
}
.assessq__wizard-thankyou {
	text-align: center;
	padding: 20px 0;
}

.assessq__rubric-output-default {
	background: #f7f8fc;
	border: 1px solid var(--assessq-border);
	border-radius: var(--assessq-radius);
	padding: 20px 24px;
	margin-bottom: 20px;
	min-height: 60px;
}

.assessq__wizard-debug {
	background: #fffbea;
	border: 1px dashed #d4a72c;
	border-radius: var(--assessq-radius);
	padding: 14px 18px;
	margin-bottom: 20px;
	font-size: 0.85rem;
}
.assessq__wizard-debug-label {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-size: 0.7rem;
	color: #92720d;
	margin: 0 0 8px;
}
.assessq__wizard-debug-heading {
	font-weight: 600;
	margin: 10px 0 4px;
}
.assessq__wizard-debug-row {
	margin: 2px 0;
	color: var(--assessq-muted);
}
.assessq__wizard-debug-row.is-winner {
	color: var(--assessq-text);
	font-weight: 600;
}
.assessq__wizard-debug-empty {
	margin: 0;
	color: var(--assessq-muted);
	font-style: italic;
}
