.nlo-quiz {
	box-sizing: border-box;
	max-width: 940px;
	margin: 0 auto;
	padding: 24px 16px;
	color: #23301c;
	line-height: 1.5;
}

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

.nlo-quiz .nlo-quiz__card {
	background: #ffffff;
	border: 1px solid #d9d4c7;
	border-radius: 16px;
	padding: 24px;
}

.nlo-quiz .nlo-quiz__eyebrow {
	margin: 0 0 8px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #4f6b3c;
}

.nlo-quiz .nlo-quiz__question {
	margin: 0 0 20px;
	font-size: 1.5rem;
	line-height: 1.3;
	color: #1b380d;
}

.nlo-quiz .nlo-quiz__question:focus {
	outline: none;
}

.nlo-quiz .nlo-quiz__small {
	font-size: 0.9rem;
	color: #55604d;
}

/* Intro field */
.nlo-quiz .nlo-quiz__field-label {
	display: block;
	margin: 20px 0 6px;
	font-weight: 700;
}

.nlo-quiz .nlo-quiz__input {
	display: block;
	width: 100%;
	max-width: 360px;
	min-height: 48px;
	padding: 10px 14px;
	font: inherit;
	color: #23301c;
	background: #ffffff;
	border: 2px solid #cfd8c6;
	border-radius: 12px;
}

.nlo-quiz .nlo-quiz__input:focus {
	outline: 3px solid #7aa35a;
	outline-offset: 2px;
	border-color: #7aa35a;
}

.nlo-quiz .nlo-quiz__start {
	margin-top: 8px;
}

/* Progress */
.nlo-quiz .nlo-quiz__progress-wrap {
	margin-bottom: 20px;
}

.nlo-quiz .nlo-quiz__progress {
	height: 8px;
	background: #e8efe2;
	border-radius: 999px;
	overflow: hidden;
}

.nlo-quiz .nlo-quiz__progress-bar {
	height: 100%;
	background: #1b380d;
	border-radius: 999px;
	transition: width 0.2s ease;
}

.nlo-quiz .nlo-quiz__progress-label {
	margin: 6px 0 0;
	font-size: 0.85rem;
	color: #55604d;
}

/* Answer buttons */
.nlo-quiz .nlo-quiz__options {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nlo-quiz .nlo-quiz__option {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 12px 16px;
	text-align: left;
	font: inherit;
	color: #23301c;
	background: #ffffff;
	border: 2px solid #cfd8c6;
	border-radius: 12px;
	cursor: pointer;
}

.nlo-quiz .nlo-quiz__option:hover {
	background: #f1f6ec;
	border-color: #8fa97b;
}

.nlo-quiz .nlo-quiz__option.is-selected {
	background: #1b380d;
	border-color: #1b380d;
	color: #ffffff;
}

/* Buttons and links */
.nlo-quiz .nlo-quiz__btn {
	display: inline-block;
	min-height: 48px;
	padding: 12px 24px;
	font: inherit;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	border-radius: 999px;
	border: 2px solid transparent;
	cursor: pointer;
}

.nlo-quiz .nlo-quiz__btn--primary {
	background: #1b380d;
	color: #ffffff;
}

.nlo-quiz .nlo-quiz__btn--primary:hover {
	background: #2c5217;
	color: #ffffff;
}

.nlo-quiz .nlo-quiz__btn--secondary {
	background: #ffffff;
	color: #1b380d;
	border-color: #cfd8c6;
}

.nlo-quiz .nlo-quiz__btn--secondary:hover {
	border-color: #1b380d;
}

.nlo-quiz .nlo-quiz__btn--link {
	background: transparent;
	color: #1b380d;
	padding-left: 0;
	text-decoration: underline;
}

.nlo-quiz .nlo-quiz__nav {
	margin-top: 16px;
}

.nlo-quiz .nlo-quiz__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 16px;
}

.nlo-quiz button:focus-visible,
.nlo-quiz a:focus-visible {
	outline: 3px solid #7aa35a;
	outline-offset: 2px;
}

/* Notice and panels */
.nlo-quiz .nlo-quiz__notice {
	margin: 20px 0;
	padding: 16px;
	background: #e8efe2;
	border-radius: 12px;
}

.nlo-quiz .nlo-quiz__panel {
	margin: 0 0 14px;
	padding: 16px 20px;
	background: #f6f3ec;
	border-radius: 12px;
}

.nlo-quiz .nlo-quiz__panel--soft {
	background: #e8efe2;
	margin-top: 24px;
}

.nlo-quiz .nlo-quiz__panel--cta {
	margin: 0;
	padding: 24px;
	background: #e8efe2;
	border: 2px solid #1b380d;
}

.nlo-quiz .nlo-quiz__panel-title {
	margin: 0 0 8px;
	font-size: 1.05rem;
	color: #1b380d;
}

.nlo-quiz .nlo-quiz__panel p {
	margin: 0 0 10px;
}

.nlo-quiz .nlo-quiz__password {
	font-weight: 700;
}

/* ------------------------------------------------------------
 * Results report
 * ---------------------------------------------------------- */
.nlo-quiz .nlo-quiz__report {
	background: #fbfaf7;
	border: 1px solid #e4dfd2;
	border-radius: 16px;
	padding: 24px;
}

.nlo-quiz .nlo-quiz__rhead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e4dfd2;
}

.nlo-quiz .nlo-quiz__logo {
	display: block;
	height: 44px;
	width: auto;
}

.nlo-quiz .nlo-quiz__brand {
	font-weight: 700;
	font-size: 1.1rem;
	color: #1b380d;
}

.nlo-quiz .nlo-quiz__rwho {
	font-size: 0.9rem;
	color: #55604d;
}

.nlo-quiz .nlo-quiz__hero {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	align-items: center;
	padding: 32px 0;
	border-bottom: 1px solid #e4dfd2;
}

.nlo-quiz .nlo-quiz__rtitle {
	margin: 0 0 16px;
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	line-height: 1.15;
	font-weight: 600;
	color: #1b380d;
}

.nlo-quiz .nlo-quiz__rtitle:focus {
	outline: none;
}

.nlo-quiz .nlo-quiz__lead {
	font-size: 1.05rem;
}

/* Score card (top right of the report): text is left-aligned, the gauge stays centred */
.nlo-quiz .nlo-quiz__score-card {
	padding: 24px;
	text-align: left;
	background: #f0ebe3;
	border-radius: 12px;
}

.nlo-quiz .nlo-quiz__score-card p {
	margin: 0;
	font-size: 0.95rem;
	color: #55604d;
}

.nlo-quiz .nlo-quiz__score-card ul,
.nlo-quiz .nlo-quiz__score-card ol {
	margin: 0;
	padding-left: 1.25rem;
	text-align: left;
}

.nlo-quiz .nlo-quiz__score-card li {
	margin: 0 0 6px;
	text-align: left;
}

.nlo-quiz .nlo-quiz__score-card li:last-child {
	margin-bottom: 0;
}

/* Gauge */
.nlo-quiz .nlo-quiz__gauge-wrap {
	position: relative;
	width: 180px;
	height: 180px;
	margin: 0 auto 16px;
}

.nlo-quiz .nlo-quiz__gauge {
	display: block;
	width: 100%;
	height: 100%;
}

.nlo-quiz .nlo-quiz__gauge-track {
	fill: none;
	stroke: #e4dfd2;
	stroke-width: 14;
}

.nlo-quiz .nlo-quiz__gauge-arc {
	fill: none;
	stroke-width: 14;
	stroke-linecap: round;
	animation: nlo-gauge 0.9s ease-out both;
}

.nlo-quiz .nlo-quiz__gauge--high .nlo-quiz__gauge-arc { stroke: #3f7a2a; }
.nlo-quiz .nlo-quiz__gauge--medium .nlo-quiz__gauge-arc { stroke: #c8972b; }
.nlo-quiz .nlo-quiz__gauge--low .nlo-quiz__gauge-arc { stroke: #b8683f; }

@keyframes nlo-gauge {
	from { stroke-dashoffset: 565.49; }
}

.nlo-quiz .nlo-quiz__gauge-text {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.nlo-quiz .nlo-quiz__gauge-pct {
	font-size: 2.4rem;
	font-weight: 700;
	line-height: 1;
	color: #1b380d;
}

.nlo-quiz .nlo-quiz__gauge-band {
	margin-top: 4px;
	font-size: 0.8rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #55604d;
}

@media (prefers-reduced-motion: reduce) {
	.nlo-quiz .nlo-quiz__gauge-arc {
		animation: none;
	}
}

/* Report sections */
.nlo-quiz .nlo-quiz__rsec {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	padding: 32px 0;
	border-bottom: 1px solid #e4dfd2;
}

.nlo-quiz .nlo-quiz__rsec:last-of-type {
	border-bottom: 0;
}

.nlo-quiz .nlo-quiz__rlabel {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #6a7562;
}

.nlo-quiz .nlo-quiz__rbody > :first-child {
	margin-top: 0;
}

.nlo-quiz .nlo-quiz__rbig {
	margin: 0 0 12px;
	font-size: clamp(2rem, 5vw, 3rem);
	line-height: 1.1;
	color: #1b380d;
}

.nlo-quiz .nlo-quiz__rheading {
	margin: 0 0 12px;
	font-size: clamp(1.4rem, 3.5vw, 2rem);
	line-height: 1.2;
	color: #1b380d;
}

/* High / Medium / Low scale */
.nlo-quiz .nlo-quiz__scale {
	list-style: none;
	margin: 24px 0 0;
	padding: 0;
	max-width: 420px;
}

.nlo-quiz .nlo-quiz__scale-item {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 12px 0;
	border-bottom: 1px solid #e4dfd2;
	color: #8a9482;
}

.nlo-quiz .nlo-quiz__scale-item.is-active {
	color: #1b380d;
	font-weight: 700;
}

.nlo-quiz .nlo-quiz__dot {
	flex: 0 0 10px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	opacity: 0.35;
}

.nlo-quiz .nlo-quiz__scale-item.is-active .nlo-quiz__dot {
	opacity: 1;
}

.nlo-quiz .nlo-quiz__scale-item--high .nlo-quiz__dot { background: #3f7a2a; }
.nlo-quiz .nlo-quiz__scale-item--medium .nlo-quiz__dot { background: #c8972b; }
.nlo-quiz .nlo-quiz__scale-item--low .nlo-quiz__dot { background: #b8683f; }

/* Numbered steps */
.nlo-quiz .nlo-quiz__steps {
	list-style: none;
	margin: 24px 0 0;
	padding: 0;
}

.nlo-quiz .nlo-quiz__step {
	display: flex;
	gap: 16px;
	margin: 0 0 24px;
}

.nlo-quiz .nlo-quiz__stepnum {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	color: #1b380d;
	border: 2px solid #1b380d;
	border-radius: 50%;
}

.nlo-quiz .nlo-quiz__steptitle {
	margin: 0 0 4px;
	font-size: 1.05rem;
	color: #1b380d;
}

.nlo-quiz .nlo-quiz__steptext {
	margin: 0;
	color: #55604d;
}

.nlo-quiz .nlo-quiz__tag {
	margin-left: 8px;
	padding: 2px 10px;
	font-size: 0.75rem;
	font-weight: 700;
	vertical-align: middle;
	color: #1b380d;
	background: #e8efe2;
	border-radius: 999px;
}

/* Approach-to-change cards */
.nlo-quiz .nlo-quiz__fitgrid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin-top: 16px;
}

.nlo-quiz .nlo-quiz__fitcard {
	padding: 16px;
	background: #f6f3ec;
	border-radius: 12px;
}

.nlo-quiz .nlo-quiz__fitcard p {
	margin: 0 0 8px;
}

.nlo-quiz .nlo-quiz__fitband {
	font-weight: 700;
	color: #4f6b3c;
}

.nlo-quiz .nlo-quiz__debug {
	margin-top: 24px;
	padding: 12px;
	font-size: 0.8rem;
	background: #23301c;
	color: #e8efe2;
	border-radius: 8px;
	overflow-x: auto;
}

@media (min-width: 760px) {
	.nlo-quiz .nlo-quiz__hero {
		grid-template-columns: 1.2fr 1fr;
		gap: 40px;
	}

	.nlo-quiz .nlo-quiz__rsec {
		grid-template-columns: 200px 1fr;
		gap: 32px;
	}

	.nlo-quiz .nlo-quiz__fitgrid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 600px) {
	.nlo-quiz .nlo-quiz__card,
	.nlo-quiz .nlo-quiz__report {
		padding: 16px;
	}

	.nlo-quiz .nlo-quiz__question {
		font-size: 1.3rem;
	}
}

/* Popup: widen it when the report is showing */
.nlo-quiz-dialog:has(.nlo-quiz__report) {
	width: min(1000px, calc(100vw - 24px));
}

/* ------------------------------------------------------------
 * Print / Save as PDF
 * ---------------------------------------------------------- */
#nlo-quiz-print {
	display: none;
}

@page {
	margin: 14mm;
}

@media print {
	html.nlo-quiz-printing,
	html.nlo-quiz-printing body {
		height: auto !important;
		overflow: visible !important;
		background: #ffffff !important;
	}

	html.nlo-quiz-printing body > *:not(#nlo-quiz-print) {
		display: none !important;
	}

	html.nlo-quiz-printing #nlo-quiz-print {
		display: block !important;
		max-width: none;
		margin: 0;
		padding: 0;
	}

	.nlo-quiz--print .nlo-quiz__noprint {
		display: none !important;
	}

	.nlo-quiz--print .nlo-quiz__report {
		border: 0;
		padding: 0;
	}

	.nlo-quiz--print * {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	.nlo-quiz--print .nlo-quiz__rsec,
	.nlo-quiz--print .nlo-quiz__step,
	.nlo-quiz--print .nlo-quiz__fitcard,
	.nlo-quiz--print .nlo-quiz__panel {
		break-inside: avoid;
	}

	.nlo-quiz .nlo-quiz__gauge-arc {
		animation: none !important;
	}
}
