.bds-survey {
	--bds-ink: #182230;
	--bds-muted: #596579;
	--bds-border: #d7dee8;
	--bds-surface: #fff;
	--bds-soft: #f5f7fa;
	--bds-focus: #175cd3;
	box-sizing: border-box;
	width: min(100%, 860px);
	margin: 32px auto;
	color: var(--bds-ink);
	font-size: 17px;
	line-height: 1.6;
}

.bds-survey *,
.bds-survey *::before,
.bds-survey *::after {
	box-sizing: border-box;
}

.bds-test-badge {
	display: inline-flex;
	padding: 4px 10px;
	margin-bottom: 14px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	color: #344054;
	text-transform: uppercase;
	background: #eaecf0;
	border-radius: 999px;
}

.bds-survey-header,
.bds-step,
.bds-result-card,
.bds-alert {
	padding: clamp(22px, 4vw, 40px);
	background: var(--bds-surface);
	border: 1px solid var(--bds-border);
	border-radius: 18px;
	box-shadow: 0 12px 32px rgba(16, 24, 40, .07);
}

.bds-survey-header {
	margin-bottom: 18px;
	background: linear-gradient(135deg, #f8fafc 0%, #eef4ff 100%);
}

.bds-survey h2,
.bds-survey h3,
.bds-survey h4,
.bds-survey p {
	margin-top: 0;
}

.bds-survey-header h2 {
	margin-bottom: 10px;
	font-size: clamp(30px, 5vw, 46px);
	line-height: 1.12;
}

.bds-eyebrow,
.bds-band-label,
.bds-alert-type {
	margin-bottom: 7px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .08em;
	color: #475467;
	text-transform: uppercase;
}

.bds-step {
	margin-bottom: 18px;
}

.bds-js .bds-step {
	display: none;
}

.bds-js .bds-step.is-active {
	display: block;
}

.bds-progress {
	margin-bottom: 28px;
}

.bds-progress-meta {
	display: flex;
	gap: 16px;
	justify-content: space-between;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 650;
	color: var(--bds-muted);
}

.bds-progress progress {
	display: block;
	width: 100%;
	height: 10px;
	overflow: hidden;
	accent-color: #175cd3;
	background: #e4e7ec;
	border: 0;
	border-radius: 999px;
}

.bds-survey fieldset {
	padding: 0;
	margin: 0;
	border: 0;
}

.bds-survey legend {
	width: 100%;
	margin-bottom: 10px;
	font-size: clamp(24px, 4vw, 34px);
	font-weight: 760;
	line-height: 1.25;
}

.bds-question-content {
	margin-bottom: 22px;
	color: var(--bds-muted);
}

.bds-answer-list {
	display: grid;
	gap: 12px;
}

.bds-answer {
	display: flex;
	gap: 13px;
	align-items: flex-start;
	padding: 16px 18px;
	font-weight: 600;
	cursor: pointer;
	background: #fff;
	border: 1px solid #cfd7e3;
	border-radius: 12px;
	transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.bds-answer:hover {
	background: #f8faff;
	border-color: #84adff;
}

.bds-answer:has(input:checked) {
	background: #eff4ff;
	border-color: #528bff;
	box-shadow: 0 0 0 1px #528bff;
}

.bds-answer input {
	width: 20px;
	height: 20px;
	margin-top: 3px;
	accent-color: #175cd3;
}

.bds-answer input:focus-visible,
.bds-button:focus-visible,
.bds-survey a:focus-visible {
	outline: 3px solid rgba(23, 92, 211, .35);
	outline-offset: 3px;
}

.bds-step-controls {
	display: flex;
	gap: 12px;
	justify-content: space-between;
	margin-top: 28px;
}

.bds-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 11px 20px;
	font: inherit;
	font-weight: 750;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
	border-radius: 10px;
}

.bds-button-primary {
	color: #fff !important;
	background: #175cd3 !important;
	border-color: #175cd3 !important;
}

.bds-button-secondary {
	color: #344054 !important;
	background: #fff !important;
	border-color: #b8c2d0 !important;
}

.bds-start,
.bds-prev,
.bds-next {
	display: none;
}

.bds-js .bds-start,
.bds-js .bds-prev,
.bds-js .bds-next {
	display: inline-flex;
}

.bds-question-error,
.bds-form-errors {
	color: #b42318;
}

.bds-question-error {
	margin: 12px 0 0;
	font-weight: 650;
}

.bds-form-errors {
	padding: 16px 20px;
	margin-bottom: 18px;
	background: #fef3f2;
	border: 1px solid #fecdca;
	border-radius: 12px;
}

.bds-form-errors ul {
	margin-bottom: 0;
}

.bds-disclaimer {
	padding: 15px 18px;
	margin: 20px 0;
	font-size: 15px;
	color: #475467;
	background: var(--bds-soft);
	border-left: 4px solid #98a2b3;
	border-radius: 8px;
}

.bds-result-grid {
	display: grid;
	gap: 18px;
	margin-bottom: 24px;
}

.bds-result-card {
	background: linear-gradient(90deg, var(--bds-score-tint, var(--bds-surface)) 0, var(--bds-surface) 36%);
	border-left: 7px solid var(--bds-score-color, var(--bds-red));
}

.bds-result-card-heading {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 16px;
	align-items: center;
	margin-bottom: 20px;
}

.bds-result-card-heading img {
	width: 58px;
	height: 58px;
	object-fit: contain;
}

.bds-result-card-heading h3 {
	margin-bottom: 0;
	font-size: clamp(22px, 3vw, 30px);
}

.bds-percent {
	color: var(--bds-score-color, var(--bds-ink));
	font-size: clamp(34px, 6vw, 52px);
	line-height: 1;
}

.bds-alerts {
	margin: 30px 0;
}

.bds-alerts > h2 {
	margin-bottom: 16px;
}

.bds-alert {
	margin-bottom: 16px;
	background: #fffbf5;
	border-color: #fedf89;
}

.bds-alert-info {
	background: #f5f8ff;
	border-color: #b2ccff;
}

.bds-alert h3 {
	margin-bottom: 10px;
}

.bds-recommendations {
	padding-top: 16px;
	margin-top: 20px;
	border-top: 1px solid var(--bds-border);
}

.bds-recommendations ul {
	display: grid;
	gap: 8px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.bds-recommendations a {
	font-weight: 700;
}

.bds-restart {
	margin-top: 22px;
	text-align: center;
}

.bds-noscript,
.bds-survey-message {
	padding: 14px;
	background: #fffaeb;
	border: 1px solid #fedf89;
	border-radius: 10px;
}

@media (max-width: 600px) {
	.bds-survey {
		margin: 18px auto;
		font-size: 16px;
	}

	.bds-survey-header,
	.bds-step,
	.bds-result-card,
	.bds-alert {
		padding: 20px;
		border-radius: 14px;
	}

	.bds-progress-meta {
		align-items: flex-start;
		flex-direction: column;
		gap: 2px;
	}

	.bds-result-card-heading {
		grid-template-columns: 1fr auto;
	}

	.bds-result-card-heading img {
		display: none;
	}

	.bds-step-controls {
		align-items: stretch;
		flex-direction: column-reverse;
	}

	.bds-step-controls .bds-button {
		width: 100%;
	}
}
