.apom-tool {
	--apom-navy: #101827;
	--apom-teal: #0ea5a4;
	--apom-blue: #356bb6;
	--apom-green: #6fcf54;
	--apom-ink: #172033;
	--apom-copy: #3f4a5c;
	--apom-muted: #687386;
	--apom-line: #dce3ea;
	--apom-soft: #f3f6f8;
	--apom-pale-teal: #edf7f7;
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	color: var(--apom-ink);
	font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 17px;
	line-height: 1.58;
}

.apom-tool,
.apom-tool * {
	box-sizing: border-box;
}

.apom-tool :where(h1, h2, h3, p, ul) {
	margin-top: 0;
}

.apom-tool :where(h1, h2, h3) {
	color: var(--apom-navy);
	font-weight: 760;
	line-height: 1.14;
	letter-spacing: -0.025em;
}

.apom-tool h1 {
	margin-bottom: 20px;
	font-size: clamp(2.5rem, 5vw, 4.8rem);
}

.apom-tool h2 {
	margin-bottom: 14px;
	font-size: clamp(2rem, 4vw, 3.1rem);
}

.apom-tool h3 {
	margin-bottom: 10px;
	font-size: 1.3rem;
}

.apom-tool p {
	color: var(--apom-copy);
}

.apom-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 82px;
	margin-bottom: 30px;
	padding: 18px 24px;
	border-radius: 8px;
	background: var(--apom-navy);
	color: #fff;
}

.apom-brand,
.apom-product-name,
.apom-save-state {
	margin: 0;
}

.apom-brand {
	color: #fff !important;
	font-size: 1.2rem;
	font-weight: 850;
	letter-spacing: 0.09em;
}

.apom-product-name {
	color: #c9d4df !important;
	font-size: 0.82rem;
	font-weight: 700;
}

.apom-save-state {
	padding: 7px 11px;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 999px;
	color: #fff !important;
	font-size: 0.76rem;
	font-weight: 750;
}

.apom-view[hidden],
.apom-question-section[hidden],
.apom-question[hidden],
.apom-alert[hidden] {
	display: none !important;
}

.apom-intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(380px, 0.78fr);
	gap: clamp(42px, 7vw, 92px);
	align-items: start;
	padding: clamp(38px, 6vw, 78px) 0;
}

.apom-intro-copy {
	padding-top: 18px;
}

.apom-eyebrow {
	margin-bottom: 12px;
	color: var(--apom-teal) !important;
	font-size: 0.78rem;
	font-weight: 850;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.apom-lead {
	max-width: 760px;
	margin-bottom: 26px;
	font-size: 1.14rem;
}

.apom-privacy-note {
	max-width: 640px;
	padding: 17px 19px;
	border-left: 4px solid var(--apom-teal);
	border-radius: 5px;
	background: var(--apom-pale-teal);
}

.apom-privacy-note strong,
.apom-privacy-note span {
	display: block;
}

.apom-privacy-note span {
	margin-top: 2px;
	color: var(--apom-copy);
	font-size: 0.9rem;
}

.apom-setup,
.apom-question-section,
.apom-review-list,
.apom-manual {
	border: 1px solid var(--apom-line);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(20, 40, 65, 0.06);
}

.apom-setup {
	padding: 30px;
}

.apom-field {
	margin-bottom: 19px;
}

.apom-field label,
.apom-question > label,
.apom-depth legend {
	display: block;
	margin-bottom: 7px;
	color: var(--apom-navy);
	font-size: 0.92rem;
	font-weight: 800;
}

.apom-field input,
.apom-field select,
.apom-question textarea {
	display: block;
	width: 100%;
	border: 2px solid #cbd5dc;
	border-radius: 6px;
	background: #fff;
	color: var(--apom-ink);
	font: inherit;
}

.apom-field input,
.apom-field select {
	min-height: 48px;
	padding: 10px 12px;
}

.apom-question textarea {
	min-height: 118px;
	padding: 12px 14px;
	resize: vertical;
}

.apom-field input:focus,
.apom-field select:focus,
.apom-question textarea:focus {
	border-color: var(--apom-teal);
	box-shadow: 0 0 0 3px rgba(14, 165, 164, 0.18);
	outline: 0;
}

.apom-field.has-error input {
	border-color: #c7352b;
}

.apom-depth {
	display: grid;
	gap: 9px;
	margin: 24px 0;
	padding: 0;
	border: 0;
}

.apom-depth legend {
	margin-bottom: 2px;
}

.apom-depth label {
	display: block;
	cursor: pointer;
}

.apom-depth input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.apom-depth span {
	display: block;
	padding: 12px 14px;
	border: 2px solid var(--apom-line);
	border-radius: 7px;
	background: var(--apom-soft);
}

.apom-depth strong,
.apom-depth small {
	display: block;
}

.apom-depth small {
	margin-top: 2px;
	color: var(--apom-muted);
}

.apom-depth input:checked + span {
	border-color: var(--apom-teal);
	background: var(--apom-pale-teal);
}

.apom-depth input:focus + span {
	box-shadow: 0 0 0 3px rgba(14, 165, 164, 0.18);
}

.apom-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 20px;
	border: 0;
	border-radius: 6px;
	cursor: pointer;
	font: inherit;
	font-size: 0.92rem;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
}

.apom-button-primary {
	background: var(--apom-navy);
	color: #fff;
}

.apom-button-primary:hover,
.apom-button-primary:focus {
	background: #24344e;
	color: #fff;
}

.apom-button-secondary {
	background: #e9eff3;
	color: var(--apom-navy);
}

.apom-button-secondary:hover,
.apom-button-secondary:focus {
	background: #dce6ec;
	color: var(--apom-navy);
}

.apom-work-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 22px;
	margin-bottom: 16px;
}

.apom-work-header h2 {
	margin-bottom: 0;
}

.apom-progress-copy {
	margin: 0 0 4px;
	color: var(--apom-muted) !important;
	font-size: 0.84rem;
	font-weight: 750;
	white-space: nowrap;
}

.apom-progress {
	height: 8px;
	margin-bottom: 28px;
	overflow: hidden;
	border-radius: 999px;
	background: #dce5eb;
}

.apom-progress span {
	display: block;
	width: 0;
	height: 100%;
	background: linear-gradient(90deg, var(--apom-blue), var(--apom-teal), var(--apom-green));
	transition: width 180ms ease;
}

.apom-question-section {
	overflow: hidden;
}

.apom-section-intro {
	padding: 26px 30px 22px;
	border-bottom: 1px solid var(--apom-line);
	background: var(--apom-pale-teal);
}

.apom-section-intro h3 {
	margin-bottom: 5px;
}

.apom-section-intro p {
	margin-bottom: 0;
}

.apom-question {
	padding: 25px 30px 28px;
	border-bottom: 1px solid var(--apom-line);
}

.apom-question:last-child {
	border-bottom: 0;
}

.apom-question > label {
	margin-bottom: 6px;
	font-size: 1.06rem;
}

.apom-question > p {
	margin-bottom: 11px;
	color: var(--apom-muted);
	font-size: 0.86rem;
}

.apom-form-actions,
.apom-manual-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: flex-end;
	margin-top: 24px;
}

.apom-alert {
	margin-bottom: 22px;
	padding: 13px 17px;
	border-left: 4px solid #c7352b;
	background: #fff1f0;
	color: #70231d;
}

.apom-review-list {
	overflow: hidden;
	box-shadow: none;
}

.apom-review-section {
	padding: 22px 26px;
	border-bottom: 1px solid var(--apom-line);
}

.apom-review-section:last-child {
	border-bottom: 0;
}

.apom-review-choice {
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	cursor: pointer;
}

.apom-review-choice input {
	width: 20px;
	height: 20px;
	margin-top: 3px;
	accent-color: var(--apom-teal);
}

.apom-review-choice strong {
	display: block;
	color: var(--apom-navy);
}

.apom-review-choice small {
	display: block;
	margin-top: 3px;
	color: var(--apom-muted);
}

.apom-review-empty {
	padding: 24px;
	color: var(--apom-muted);
}

.apom-manual-actions {
	margin: 0 0 20px;
}

.apom-manual {
	max-width: 900px;
	margin: 0 auto;
	overflow: hidden;
}

.apom-manual-title {
	padding: 48px 56px 36px;
	background: var(--apom-navy);
}

.apom-manual-title h2,
.apom-manual-title p {
	color: #fff;
}

.apom-manual-title h2 {
	margin-bottom: 8px;
}

.apom-manual-title p:last-child {
	margin-bottom: 0;
	color: #c7d3dd;
}

.apom-manual-note,
.apom-manual-section,
.apom-manual-footer {
	padding: 28px 56px;
}

.apom-manual-note {
	border-bottom: 1px solid var(--apom-line);
	background: var(--apom-pale-teal);
}

.apom-manual-note p {
	margin: 4px 0 0;
}

.apom-manual-section {
	border-bottom: 1px solid var(--apom-line);
}

.apom-manual-section h3 {
	margin-bottom: 18px;
}

.apom-manual-answer {
	display: grid;
	grid-template-columns: minmax(150px, 0.34fr) minmax(0, 0.66fr);
	gap: 24px;
	padding: 13px 0;
}

.apom-manual-answer + .apom-manual-answer {
	border-top: 1px solid #e8edf0;
}

.apom-manual-answer strong {
	color: var(--apom-navy);
	font-size: 0.9rem;
}

.apom-manual-answer p {
	margin-bottom: 0;
	white-space: pre-line;
}

.apom-manual-footer {
	background: var(--apom-soft);
}

.apom-manual-footer ul {
	margin-bottom: 22px;
	padding-left: 22px;
}

.apom-manual-footer li {
	margin: 7px 0;
}

.apom-clear-row {
	max-width: 900px;
	margin: 18px auto 0;
	text-align: right;
}

.apom-text-button {
	padding: 6px 0;
	border: 0;
	background: transparent;
	color: #8a332c;
	cursor: pointer;
	font: inherit;
	font-size: 0.84rem;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 820px) {
	.apom-intro {
		grid-template-columns: 1fr;
	}

	.apom-intro-copy {
		padding-top: 0;
	}
}

@media (max-width: 620px) {
	.apom-tool {
		font-size: 16px;
	}

	.apom-header {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}

	.apom-setup,
	.apom-question,
	.apom-section-intro,
	.apom-review-section {
		padding-right: 20px;
		padding-left: 20px;
	}

	.apom-work-header {
		align-items: flex-start;
		flex-direction: column;
		gap: 6px;
	}

	.apom-progress-copy {
		white-space: normal;
	}

	.apom-form-actions,
	.apom-manual-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.apom-button {
		width: 100%;
	}

	.apom-manual-title,
	.apom-manual-note,
	.apom-manual-section,
	.apom-manual-footer {
		padding-right: 22px;
		padding-left: 22px;
	}

	.apom-manual-answer {
		grid-template-columns: 1fr;
		gap: 5px;
	}
}

@media print {
	body * {
		visibility: hidden !important;
	}

	.apom-tool,
	.apom-tool * {
		visibility: visible !important;
	}

	.apom-tool {
		position: absolute;
		top: 0;
		left: 0;
		max-width: none;
		font-size: 10.5pt;
	}

	.apom-tool > :not([data-apom-view="manual"]),
	.apom-tool [data-apom-view="manual"] > :not(.apom-manual),
	.no-print {
		display: none !important;
	}

	.apom-manual {
		max-width: none;
		border: 0;
		box-shadow: none;
	}

	.apom-manual-title {
		padding: 30px 34px;
		background: #101827 !important;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	.apom-manual-note,
	.apom-manual-section,
	.apom-manual-footer {
		padding: 20px 34px;
	}

	.apom-manual-section,
	.apom-manual-answer {
		break-inside: avoid;
	}
}

