/**
 * DS Debt Stress Quiz – Front-end styles
 * Scoped entirely to .ds-quiz. Mobile-first. No external dependencies.
 */

/* =========================================================
   Reset / base (scoped)
   ========================================================= */
.ds-quiz *,
.ds-quiz *::before,
.ds-quiz *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

.ds-quiz {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: #1a202c;
	-webkit-font-smoothing: antialiased;
}

/* =========================================================
   Card container
   ========================================================= */
.ds-card {
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.09);
	padding: 32px 28px;
	max-width: 640px;
	margin: 0 auto;
	width: 100%;
}

/* =========================================================
   Screens
   ========================================================= */
.ds-screen {
	width: 100%;
	padding: 16px 0;
}

.ds-screen[hidden] {
	display: none !important;
}

.ds-screen--active {
	animation: ds-fade-in 0.35s ease both;
}

@keyframes ds-fade-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* =========================================================
   Welcome screen
   ========================================================= */
.ds-card--welcome {
	text-align: center;
}

.ds-welcome-top {
	margin-bottom: 24px;
}

.ds-welcome-hero {
	margin-bottom: 12px;
}

.ds-hero-icon {
	width: 56px;
	height: 56px;
}

.ds-time-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 14px;
	background: #f0f5ff;
	border: 1px solid #c0d4ff;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 600;
	color: #1161eb;
	margin-bottom: 16px;
}

.ds-time-icon {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.ds-heading {
	font-size: 1.6rem;
	font-weight: 700;
	color: #1a202c;
	margin-bottom: 10px;
	line-height: 1.25;
}

.ds-subhead {
	font-size: 1rem;
	color: #4a5568;
	margin-bottom: 0;
	line-height: 1.6;
	max-width: 440px;
	margin-left: auto;
	margin-right: auto;
}

/* "What you'll receive" section */
.ds-welcome-value {
	text-align: left;
	background: #f7fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 16px 18px;
	margin-bottom: 24px;
}

.ds-value-label {
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #4a5568;
	margin-bottom: 12px;
}

.ds-value-items {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ds-value-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.ds-value-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	flex-shrink: 0;
	background: #edf2ff;
	border-radius: 8px;
	color: #1161eb;
}

.ds-value-icon svg {
	width: 18px;
	height: 18px;
}

.ds-value-item div {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.ds-value-item strong {
	font-size: 0.93rem;
	font-weight: 600;
	color: #1a202c;
}

.ds-value-item span {
	font-size: 0.84rem;
	color: #718096;
	line-height: 1.4;
}

/* Trust strip below CTA */
.ds-welcome-trust {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
	font-size: 0.78rem;
	color: #718096;
	font-weight: 500;
}

.ds-trust-sep {
	width: 3px;
	height: 3px;
	background: #cbd5e0;
	border-radius: 50%;
	flex-shrink: 0;
}

/* =========================================================
   Buttons
   ========================================================= */
.ds-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	font-size: 1rem;
	font-weight: 600;
	border-radius: 8px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease, transform 0.1s ease;
	text-decoration: none;
	min-height: 52px;
	min-width: 120px;
	line-height: 1.2;
}

.ds-btn:focus-visible {
	outline: 3px solid #1161eb;
	outline-offset: 3px;
}

.ds-btn--primary {
	background: #1161eb;
	color: #ffffff;
	border-color: #1161eb;
}

.ds-btn--primary:hover:not(:disabled) {
	background: #0e4fbf;
	border-color: #0e4fbf;
}

.ds-btn--primary:active:not(:disabled) {
	transform: scale(0.98);
}

.ds-btn--primary:disabled {
	background: #a0aec0;
	border-color: #a0aec0;
	cursor: not-allowed;
	opacity: 0.7;
}

.ds-btn--secondary {
	background: transparent;
	color: #1161eb;
	border-color: #c0d4ff;
}

.ds-btn--secondary:hover:not(:disabled) {
	background: #f0f5ff;
	border-color: #1161eb;
}

.ds-btn--start {
	width: 100%;
	font-size: 1.1rem;
	padding: 16px 28px;
}

.ds-btn--submit {
	width: 100%;
	font-size: 1.05rem;
	padding: 16px;
	margin-top: 8px;
	border-radius: 10px;
}

/* =========================================================
   Progress bar
   ========================================================= */
.ds-progress {
	margin-bottom: 24px;
}

.ds-progress__label {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.ds-progress__step-text {
	font-size: 0.82rem;
	font-weight: 600;
	color: #718096;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.ds-progress__bar {
	height: 6px;
	background: #e2e8f0;
	border-radius: 99px;
	overflow: hidden;
}

.ds-progress__fill {
	height: 100%;
	background: #1161eb;
	border-radius: 99px;
	transition: width 0.35s ease;
	width: 0%;
}

/* =========================================================
   Question
   ========================================================= */
.ds-question-text {
	font-size: 1.2rem;
	font-weight: 600;
	color: #1a202c;
	margin-bottom: 8px;
	line-height: 1.4;
}

.ds-question-helper {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	font-size: 0.875rem;
	color: #4a5568;
	line-height: 1.55;
	margin-top: 6px;
	margin-bottom: 22px;
	padding: 10px 14px;
	background: #f0f7ff;
	border-left: 3px solid #90cdf4;
	border-radius: 0 6px 6px 0;
}

.ds-question-helper::before {
	content: 'ℹ';
	font-size: 0.85rem;
	color: #1161eb;
	flex-shrink: 0;
	margin-top: 1px;
	line-height: 1.55;
}

/* =========================================================
   Option tiles
   ========================================================= */
.ds-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 24px;
}

.ds-option-tile {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border: 2px solid #e2e8f0;
	border-radius: 8px;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
	background: #f7fafc;
	min-height: 52px;
	user-select: none;
}

.ds-option-tile:hover {
	border-color: #90cdf4;
	background: #ebf8ff;
}

.ds-option-tile:focus-visible {
	outline: 3px solid #1161eb;
	outline-offset: 2px;
}

.ds-option-tile--selected {
	border-color: #1161eb;
	background: #ebf8ff;
}

.ds-option-tile input[type="radio"],
.ds-option-tile input[type="checkbox"] {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	accent-color: #1161eb;
	cursor: pointer;
}

.ds-option-label {
	font-size: 0.97rem;
	color: #2d3748;
	font-weight: 500;
	line-height: 1.4;
}

.ds-option-tile--selected .ds-option-label {
	color: #1a365d;
	font-weight: 600;
}

/* =========================================================
   Navigation (Back / Next)
   ========================================================= */
.ds-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: 8px;
}

.ds-btn--back {
	min-width: 100px;
}

.ds-btn--next {
	margin-left: auto;
	min-width: 140px;
}

/* =========================================================
   Validation error (inline)
   ========================================================= */
.ds-validation-error {
	color: #c53030;
	font-size: 0.88rem;
	margin-bottom: 12px;
	padding: 8px 12px;
	background: #fff5f5;
	border-left: 3px solid #fc8181;
	border-radius: 4px;
}

/* =========================================================
   Result screen
   ========================================================= */
.ds-result-icon {
	font-size: 2.4rem;
	text-align: center;
	margin-bottom: 16px;
	display: block;
}

.ds-result-icon--low        { color: #276749; }
.ds-result-icon--moderate   { color: #c05621; }
.ds-result-icon--high       { color: #c53030; }
.ds-result-icon--critical   { color: #9b2c2c; }
.ds-result-icon--out_of_area{ color: #1161eb; }

.ds-result-title {
	font-size: 1.35rem;
	font-weight: 700;
	color: #1a202c;
	margin-bottom: 14px;
	line-height: 1.3;
}

.ds-result-body {
	font-size: 0.97rem;
	color: #4a5568;
	line-height: 1.7;
	margin-bottom: 28px;
}

.ds-btn--restart {
	width: 100%;
}

/* =========================================================
   Lead capture screen
   ========================================================= */
.ds-result-icon--qualified {
	color: #276749;
}

.ds-lead-title {
	font-size: 0.78rem;
	font-weight: 700;
	color: #718096;
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid #e2e8f0;
	line-height: 1.3;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* =========================================================
   Lead form
   ========================================================= */
.ds-lead-form {
	margin-top: 4px;
}

.ds-form-row {
	margin-bottom: 18px;
}

.ds-label {
	display: block;
	font-size: 0.9rem;
	font-weight: 600;
	color: #2d3748;
	margin-bottom: 6px;
}

.ds-required {
	color: #c53030;
	margin-left: 2px;
}

.ds-input {
	width: 100%;
	padding: 12px 14px;
	border: 2px solid #e2e8f0;
	border-radius: 8px;
	font-size: 1rem;
	color: #1a202c;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	appearance: none;
	-webkit-appearance: none;
}

.ds-input:focus {
	outline: none;
	border-color: #1161eb;
	box-shadow: 0 0 0 3px rgba(17, 97, 235, 0.15);
}

.ds-input.ds-input--error {
	border-color: #fc8181;
}

.ds-select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23718096' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
	cursor: pointer;
}

/* Fieldset / radio group */
.ds-fieldset {
	border: none;
	padding: 0;
}

.ds-fieldset legend.ds-label {
	display: block;
	width: 100%;
	margin-bottom: 8px;
}

.ds-radio-group {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 4px;
	clear: both;
}

.ds-radio-label {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border: 2px solid #e2e8f0;
	border-radius: 8px;
	cursor: pointer;
	font-size: 0.95rem;
	font-weight: 500;
	color: #2d3748;
	background: #f7fafc;
	transition: border-color 0.15s ease, background 0.15s ease;
	min-height: 46px;
}

.ds-radio-label:hover {
	border-color: #90cdf4;
	background: #ebf8ff;
}

.ds-radio-label input[type="radio"] {
	width: 18px;
	height: 18px;
	accent-color: #1161eb;
	flex-shrink: 0;
}

.ds-radio-label:has(input:checked) {
	border-color: #1161eb;
	background: #ebf8ff;
}

/* Checkbox labels */
.ds-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-size: 0.9rem;
	color: #2d3748;
	line-height: 1.5;
}

.ds-checkbox-label input[type="checkbox"] {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	margin-top: 2px;
	accent-color: #1161eb;
	cursor: pointer;
}

/* Field error */
.ds-field-error {
	display: block;
	color: #c53030;
	font-size: 0.82rem;
	margin-top: 5px;
}

.ds-field-error[hidden] {
	display: none;
}

/* Global form error */
.ds-form-error--global {
	background: #fff5f5;
	border: 1px solid #fc8181;
	border-radius: 6px;
	padding: 12px 14px;
	color: #c53030;
	font-size: 0.9rem;
	margin-bottom: 14px;
}

.ds-form-error--global[hidden] {
	display: none;
}

/* Privacy note */
.ds-privacy-note {
	font-size: 0.8rem;
	color: #a0aec0;
	margin-bottom: 16px;
	line-height: 1.5;
}

/* Urgent CTA */
.ds-urgent-cta {
	margin-top: 20px;
	padding: 14px 16px;
	background: #fff5f5;
	border: 1px solid #fc8181;
	border-radius: 8px;
	text-align: center;
}

.ds-urgent-text {
	font-size: 0.95rem;
	color: #c53030;
	font-weight: 600;
}

/* =========================================================
   Confirmation screen
   ========================================================= */
.ds-confirm-icon {
	font-size: 3rem;
	color: #276749;
	text-align: center;
	display: block;
	margin-bottom: 16px;
}

.ds-confirm-title {
	font-size: 1.4rem;
	font-weight: 700;
	color: #1a202c;
	text-align: center;
	margin-bottom: 12px;
}

.ds-confirm-body {
	font-size: 0.97rem;
	color: #4a5568;
	text-align: center;
	line-height: 1.7;
	margin-bottom: 18px;
}

.ds-confirm-timeline {
	text-align: center;
	margin-bottom: 22px;
}

.ds-confirm-expect {
	font-size: 0.92rem;
	font-weight: 600;
	color: #1161eb;
	background: #f0f5ff;
	border: 1px solid #c0d4ff;
	border-radius: 8px;
	padding: 10px 16px;
	display: inline-block;
	line-height: 1.5;
}

.ds-confirm-prepare {
	text-align: left;
	margin-bottom: 18px;
	padding: 16px 18px;
	background: #f7fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
}

.ds-confirm-prepare-title {
	font-size: 0.8rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #4a5568;
	margin-bottom: 8px;
}

.ds-confirm-urgent {
	margin-top: 16px;
	padding: 14px 16px;
	background: #fff5f5;
	border: 1px solid #fc8181;
	border-radius: 8px;
	text-align: center;
}

.ds-confirm-urgent-text {
	font-size: 0.95rem;
	color: #9b2c2c;
	font-weight: 600;
}

.ds-confirm-phone {
	color: #c53030;
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* =========================================================
   Status header
   ========================================================= */
.ds-status-header {
	text-align: center;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e2e8f0;
}

.ds-eyebrow {
	display: block;
	margin-bottom: 10px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #1161eb;
}

.ds-status-icon {
	width: 46px;
	height: 46px;
	margin: 0 auto 10px;
	border-radius: 50%;
	background: #fde8e8;
	border: 2px solid #e53e3e;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #9b2c2c;
	font-size: 1.3rem;
	font-weight: 800;
	line-height: 1;
}

/* Outcome-specific icon colours */
.ds-status-icon--low         { background: #f0fff4; border-color: #38a169; color: #276749; }
.ds-status-icon--moderate    { background: #fffbeb; border-color: #d69e2e; color: #b7791f; }
.ds-status-icon--high        { background: #fff5f5; border-color: #e53e3e; color: #c53030; }
.ds-status-icon--critical    { background: #fde8e8; border-color: #9b2c2c; color: #9b2c2c; }
.ds-status-icon--out-of-area { background: #ebf8ff; border-color: #1161eb; color: #1161eb; }

.ds-status-title {
	font-size: 1.3rem;
	font-weight: 800;
	color: #1a202c;
	line-height: 1.3;
	margin-bottom: 8px;
}

.ds-status-badge {
	display: inline-block;
	margin-top: 4px;
	padding: 4px 12px;
	border-radius: 999px;
	background: #e53e3e;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ds-status-badge--low         { background: #38a169; }
.ds-status-badge--moderate    { background: #d69e2e; color: #1a202c; }
.ds-status-badge--high        { background: #e53e3e; }
.ds-status-badge--critical    { background: #9b2c2c; }
.ds-status-badge--out-of-area { background: #4a5568; }

/* =========================================================
   Situation summary — "What This Means For You"
   ========================================================= */
.ds-situation-summary {
	margin: 0 0 20px;
	padding: 16px 18px;
	background: #f7fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
}

.ds-summary-title {
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #4a5568;
	margin-bottom: 6px;
}

.ds-summary-body {
	font-size: 0.97rem;
	color: #2d3748;
	line-height: 1.7;
	margin: 0;
}

/* =========================================================
   Action panel — "Recommended Next Step"
   ========================================================= */
.ds-action-panel {
	margin: 0 0 22px;
	padding: 18px 20px;
	border: 1px solid #c0d4ff;
	border-left: 4px solid #1161eb;
	border-radius: 10px;
	background: #f0f5ff;
}

.ds-action-label {
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #1161eb;
	margin-bottom: 8px;
}

.ds-action-headline {
	font-size: 1.05rem;
	font-weight: 700;
	color: #1a202c;
	margin: 0 0 6px;
	line-height: 1.4;
}

.ds-action-body {
	font-size: 0.92rem;
	color: #4a5568;
	margin: 0 0 8px;
	line-height: 1.6;
}

.ds-action-bullets {
	margin: 0 0 10px;
	padding-left: 20px;
	color: #2d3748;
	font-size: 0.92rem;
	line-height: 1.8;
}

.ds-action-footer {
	font-size: 0.85rem;
	font-weight: 700;
	color: #1161eb;
	margin: 0 0 14px;
}

.ds-action-cta {
	width: 100%;
	font-size: 1rem;
	padding: 14px 20px;
	border-radius: 10px;
}

/* =========================================================
   Chip label (personalization)
   ========================================================= */
.ds-chip-label {
	font-size: 0.78rem;
	font-weight: 600;
	color: #718096;
	margin: 10px 0 4px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* =========================================================
   Form header (headline + subtext inside form card)
   ========================================================= */
.ds-form-header {
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid #e2e8f0;
}

.ds-form-headline {
	font-size: 1.15rem;
	font-weight: 700;
	color: #1a202c;
	margin: 0 0 6px;
	line-height: 1.3;
}

.ds-form-subtext {
	font-size: 0.92rem;
	color: #4a5568;
	margin: 0;
	line-height: 1.6;
}

/* =========================================================
   Post-submit block (secure badge + reassurance + authority)
   ========================================================= */
.ds-post-submit {
	margin-top: 14px;
	text-align: center;
}

.ds-authority-statement {
	font-size: 0.78rem;
	color: #718096;
	margin-top: 8px;
	line-height: 1.5;
	text-align: center;
}

/* =========================================================
   Risk scale
   ========================================================= */
.ds-risk-scale {
	display: flex;
	border-radius: 999px;
	overflow: hidden;
	margin-top: 12px;
	height: 20px;
	background: #edf2f7;
	gap: 2px;
}

.ds-risk-seg {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.62rem;
	font-weight: 700;
	color: #fff;
	opacity: 0.3;
	transition: opacity 0.2s ease;
}

.ds-risk-seg:nth-child(1) { background: #38a169; }
.ds-risk-seg:nth-child(2) { background: #d69e2e; color: #1a202c; }
.ds-risk-seg:nth-child(3) { background: #e53e3e; }
.ds-risk-seg:nth-child(4) { background: #9b2c2c; }

.ds-risk-seg--past   { opacity: 0.65; }
.ds-risk-seg--active { opacity: 1; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.75); }

@media (max-width: 480px) {
	.ds-risk-scale { height: 14px; }
	.ds-risk-seg   { font-size: 0; }
}

/* =========================================================
   Form reassurance microcopy
   ========================================================= */
.ds-form-reassurance {
	font-size: 0.82rem;
	color: #718096;
	margin-top: 8px;
	text-align: center;
	line-height: 1.6;
}

/* =========================================================
   Dashboard (above-the-fold band-focused summary)
   ========================================================= */
.ds-dashboard {
	margin: 12px 0 18px;
	padding: 20px 22px;
	border: 1px solid #e2e8f0;
	border-left: 5px solid #4a5568;
	border-radius: 10px;
	background: #ffffff;
}

.ds-dashboard--low         { border-left-color: #38a169; }
.ds-dashboard--moderate    { border-left-color: #d69e2e; }
.ds-dashboard--high        { border-left-color: #e53e3e; }
.ds-dashboard--critical    { border-left-color: #9b2c2c; }
.ds-dashboard--out-of-area { border-left-color: #4a5568; }

.ds-assessment-header {
	margin-bottom: 14px;
}

.ds-assessment-label {
	display: block;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #718096;
	margin-bottom: 6px;
}

.ds-band-display {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
}

.ds-band-level {
	font-size: 1.6rem;
	font-weight: 800;
	line-height: 1.2;
	color: #4a5568;
}

.ds-band-display--low         .ds-band-level { color: #276749; }
.ds-band-display--moderate    .ds-band-level { color: #975a16; }
.ds-band-display--high        .ds-band-level { color: #c53030; }
.ds-band-display--critical    .ds-band-level { color: #9b2c2c; }
.ds-band-display--out-of-area .ds-band-level { color: #4a5568; }

.ds-band-descriptor {
	font-size: 0.88rem;
	font-weight: 500;
	color: #718096;
	line-height: 1.3;
}

/* Mini-report band row */
.ds-report-band-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	padding-bottom: 10px;
	margin-bottom: 12px;
	border-bottom: 1px solid #e2e8f0;
}

.ds-report-band-value {
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.ds-report-band-row--low         .ds-report-band-value { color: #276749; }
.ds-report-band-row--moderate    .ds-report-band-value { color: #975a16; }
.ds-report-band-row--high        .ds-report-band-value { color: #c53030; }
.ds-report-band-row--critical    .ds-report-band-value { color: #9b2c2c; }
.ds-report-band-row--out-of-area .ds-report-band-value { color: #4a5568; }

.ds-dashboard-interp {
	font-size: 0.97rem;
	font-weight: 500;
	color: #2d3748;
	line-height: 1.6;
	margin: 10px 0 8px;
}

.ds-chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}

.ds-chip {
	display: inline-block;
	padding: 5px 10px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 600;
	color: #2d3748;
	background: #edf2f7;
	border: 1px solid transparent;
	line-height: 1.3;
}

.ds-chip--danger {
	background: #fff5f5;
	color: #9b2c2c;
	border-color: #feb2b2;
}

.ds-chip--warning {
	background: #fffff0;
	color: #975a16;
	border-color: #fbd38d;
}

.ds-chip--info {
	background: #ebf8ff;
	color: #2b6cb0;
	border-color: #bee3f8;
}

/* Mini-report indicator severity bullets */
.ds-report-indicator--danger::marker  { color: #e53e3e; }
.ds-report-indicator--warning::marker { color: #d69e2e; }
.ds-report-indicator--info::marker    { color: #4299e1; }

/* =========================================================
   Report accordion
   ========================================================= */
.ds-report-accordion {
	margin: 0 0 18px;
}

.ds-acc-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 4px 0;
	font-size: 0.9rem;
	font-weight: 600;
	color: #718096;
	cursor: pointer;
	transition: color 0.15s ease;
	width: 100%;
	text-align: left;
	justify-content: flex-start;
	text-decoration: underline;
	text-decoration-color: #cbd5e0;
	text-underline-offset: 3px;
}

.ds-acc-toggle::after {
	content: '+';
	font-size: 0.95rem;
	color: #a0aec0;
	flex-shrink: 0;
	margin-left: auto;
	text-decoration: none;
}

.ds-acc-toggle[aria-expanded="true"]::after {
	content: '−';
}

.ds-acc-toggle:hover {
	color: #4a5568;
}

.ds-acc-toggle:focus-visible {
	outline: 2px solid #1161eb;
	outline-offset: 2px;
}

.ds-acc-panel {
	margin-top: 12px;
}

/* =========================================================
   Mini assessment report
   ========================================================= */
.ds-mini-report {
	margin: 18px 0 22px;
	padding: 14px 16px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #ffffff;
}

.ds-score-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}

.ds-score-title {
	font-size: 0.92rem;
	font-weight: 700;
	color: #2d3748;
}

.ds-score-value {
	font-size: 1.05rem;
	font-weight: 800;
	color: #1a202c;
	white-space: nowrap;
}

.ds-score-meter {
	height: 8px;
	background: #edf2f7;
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 10px;
}

.ds-score-meter-fill {
	height: 100%;
	width: 0%;
	border-radius: 999px;
	transition: width 0.55s ease;
	background: #1161eb;
}

.ds-report-section-title {
	font-size: 0.88rem;
	font-weight: 800;
	color: #2d3748;
	margin: 12px 0 6px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.ds-report-list {
	margin-left: 16px;
	color: #4a5568;
	font-size: 0.95rem;
	line-height: 1.6;
}

.ds-report-note {
	margin-top: 10px;
	font-size: 0.85rem;
	color: #718096;
	line-height: 1.5;
}

.ds-copy-row {
	margin-top: 12px;
	text-align: center;
}

.ds-btn--copy {
	background: none;
	border: none;
	padding: 0;
	min-height: auto;
	min-width: auto;
	font-size: 0.85rem;
	font-weight: 600;
	color: #1161eb;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ds-btn--copy:hover {
	color: #0e4fbf;
}

/* =========================================================
   Form card wrapper
   ========================================================= */
.ds-lead-form-card {
	background: #ffffff;
	border: 1px solid #c0d4ff;
	border-top: 3px solid #1161eb;
	border-radius: 12px;
	padding: 20px;
	margin-top: 18px;
	margin-bottom: 18px;
}

/* =========================================================
   Form secure badge (injected by JS)
   ========================================================= */
.ds-form-secure-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 14px;
	margin-bottom: 0;
	background: transparent;
	border: none;
	border-radius: 0;
}

.ds-secure-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	color: #1161eb;
}

.ds-secure-text {
	font-size: 0.82rem;
	color: #4a5568;
}

.ds-secure-text strong {
	font-weight: 700;
	color: #2d3748;
}


/* =========================================================
   Credibility strip
   ========================================================= */
.ds-cred-strip {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid #edf2f7;
}

.ds-cred-text {
	font-size: 0.8rem;
	color: #a0aec0;
	line-height: 1.5;
	margin-top: 4px;
}

/* =========================================================
   Urgent CTA (CRITICAL) — upgraded
   ========================================================= */
.ds-urgent-title {
	font-size: 1rem;
	font-weight: 800;
	margin-bottom: 6px;
	color: #9b2c2c;
}

.ds-urgent-text {
	font-size: 0.92rem;
	font-weight: 600;
	color: #c53030;
}

/* =========================================================
   "What happens next" panel (lead screen)
   ========================================================= */
.ds-next-steps-panel {
	margin: 22px 0 22px;
	padding: 16px 18px;
	background: #dbeafe;
	border: 1px solid #93c5fd;
	border-radius: 10px;
}

.ds-next-steps-title {
	font-size: 0.8rem;
	font-weight: 800;
	color: #1e3a5f;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.ds-next-steps-list {
	margin-left: 16px;
	color: #1e3a5f;
	font-size: 0.9rem;
	line-height: 1.7;
}

/* =========================================================
   Confirmation list
   ========================================================= */
.ds-confirm-list {
	margin: 14px 0 0 18px;
	color: #4a5568;
	font-size: 0.95rem;
	line-height: 1.7;
}

/* =========================================================
   Calculating transition screen
   ========================================================= */
.ds-card--calculating {
	text-align: center;
	padding: 48px 28px;
}

.ds-calc-spinner {
	width: 48px;
	height: 48px;
	margin: 0 auto 20px;
	border: 4px solid #e2e8f0;
	border-top-color: #1161eb;
	border-radius: 50%;
	animation: ds-spin 0.8s linear infinite;
}

@keyframes ds-spin {
	to { transform: rotate(360deg); }
}

.ds-calc-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: #1a202c;
	margin-bottom: 6px;
}

.ds-calc-sub {
	font-size: 0.92rem;
	color: #718096;
	margin-bottom: 24px;
	line-height: 1.5;
}

.ds-calc-steps {
	display: inline-flex;
	flex-direction: column;
	text-align: left;
}

.ds-calc-step {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	font-size: 0.9rem;
	color: #a0aec0;
	transition: color 0.3s ease;
}

.ds-calc-step::before {
	content: '';
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	border: 2px solid #e2e8f0;
	border-radius: 50%;
	transition: background 0.3s ease, border-color 0.3s ease;
}

.ds-calc-step--active {
	color: #1a202c;
	font-weight: 600;
}

.ds-calc-step--active::before {
	border-color: #1161eb;
	background: #ebf4ff;
}

.ds-calc-step--done {
	color: #38a169;
}

.ds-calc-step--done::before {
	border-color: #38a169;
	background: #38a169;
	/* Checkmark via box-shadow trick */
	box-shadow: inset 0 0 0 2px #38a169;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M8.5 13.3L5.2 10l-1.1 1.1 4.4 4.4 9.4-9.4-1.1-1.1z'/%3E%3C/svg%3E");
	background-size: 14px;
	background-position: center;
	background-repeat: no-repeat;
}

/* =========================================================
   Honeypot (must be invisible)
   ========================================================= */
.ds-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 480px) {
	.ds-card {
		padding: 24px 18px;
		border-radius: 8px;
	}

	.ds-heading {
		font-size: 1.35rem;
	}

	.ds-question-text {
		font-size: 1.1rem;
	}

	.ds-btn {
		padding: 13px 20px;
		font-size: 0.97rem;
	}

	.ds-option-tile {
		padding: 13px 14px;
	}

	.ds-radio-group {
		flex-direction: column;
	}

	.ds-radio-label {
		width: 100%;
	}

	.ds-nav {
		flex-direction: column-reverse;
		gap: 10px;
	}

	.ds-btn--back,
	.ds-btn--next {
		width: 100%;
		margin-left: 0;
	}
}

@media (min-width: 481px) and (max-width: 768px) {
	.ds-card {
		padding: 28px 22px;
	}
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
	.ds-progress__fill,
	.ds-btn,
	.ds-option-tile,
	.ds-input,
	.ds-calc-step,
	.ds-calc-step::before,
	.ds-tooltip-trigger {
		transition: none;
	}
	.ds-screen--active {
		animation: none;
	}
	.ds-calc-spinner {
		animation: none;
	}
}
