/*
 * One-step diagnosis layout.
 * Keep the current question, progress and every answer visible at once on
 * common viewports. Content can still grow and the document remains scrollable
 * on very short screens, narrow devices or with enlarged text.
 */

.diagnosis-section {
	display: flex;
	align-items: center;
	min-height: 100vh;
	min-height: 100svh;
	padding-block: 32px;
	padding-block: clamp(24px, 4svh, 42px);
}

.diagnosis-section--standalone {
	min-height: calc(100vh - 82px);
	min-height: calc(100svh - 82px);
}

.diagnosis-section .section-heading {
	margin-bottom: clamp(12px, 2svh, 18px);
}

.diagnosis-section .section-heading .eyebrow {
	margin-bottom: 4px;
}

.diagnosis-section .section-heading h1,
.diagnosis-section .section-heading h2 {
	margin: 0;
	color: var(--green-950);
	font-family: var(--font-serif);
	font-size: clamp(27px, 3vw, 36px);
	font-weight: 700;
	letter-spacing: .025em;
	line-height: 1.34;
}

.diagnosis-section .section-heading > p:last-child {
	margin-top: 7px;
	font-size: 13px;
	line-height: 1.55;
}

.diagnosis-progress {
	padding: 13px 28px 11px;
}

.diagnosis-progress__meta {
	margin-bottom: 5px;
}

.diagnosis-progress__track {
	height: 5px;
}

.diagnosis-form {
	min-height: 0;
}

.question-panel {
	padding: 15px 26px 13px;
}

.question-panel legend {
	font-size: clamp(21px, 2.4vw, 27px);
	line-height: 1.35;
}

.question-number {
	margin-bottom: 1px;
	font-size: 11px;
	line-height: 1.4;
}

.question-help {
	margin: 3px 0 10px;
	font-size: 12px;
	line-height: 1.45;
}

.answer-grid {
	gap: 8px;
}

.answer-button {
	min-height: 58px;
	gap: 11px;
	padding: 8px 13px;
	border-radius: 13px;
	font-size: 13px;
	line-height: 1.4;
}

.answer-icon {
	flex-basis: 34px;
	width: 34px;
	height: 34px;
	font-size: 12px;
}

.back-button {
	margin-top: 7px;
	padding-block: 3px;
	font-size: 11px;
	line-height: 1.4;
}

.diagnosis-disclaimer {
	margin-top: 8px;
	font-size: 10px;
	line-height: 1.5;
}

@media (max-width: 780px) {
	.diagnosis-section {
		min-height: 100vh;
		min-height: 100svh;
		padding-block: 16px;
	}

	.diagnosis-section--standalone {
		min-height: calc(100vh - 68px);
		min-height: calc(100svh - 68px);
	}

	.diagnosis-section .section-heading {
		margin-bottom: 9px;
	}

	.diagnosis-section .section-heading .eyebrow {
		margin-bottom: 2px;
		font-size: 9px;
		line-height: 1.4;
	}

	.diagnosis-section .section-heading h1,
	.diagnosis-section .section-heading h2 {
		font-size: clamp(22px, 6.7vw, 27px);
		line-height: 1.32;
	}

	.diagnosis-section .section-heading > p:last-child {
		margin-top: 4px;
		font-size: 11px;
		line-height: 1.45;
	}

	.diagnosis-card {
		border-radius: 17px;
	}

	.diagnosis-progress {
		padding: 9px 12px 8px;
	}

	.diagnosis-progress__meta {
		margin-bottom: 3px;
		font-size: 10px;
		line-height: 1.4;
	}

	.diagnosis-progress__track {
		height: 4px;
	}

	.question-panel {
		padding: 10px 10px 9px;
	}

	.question-panel legend {
		font-size: clamp(17px, 5vw, 20px);
		line-height: 1.32;
	}

	.question-number {
		margin-bottom: 0;
		font-size: 9px;
		line-height: 1.3;
	}

	.question-help {
		margin: 2px 0 7px;
		font-size: 10px;
		line-height: 1.4;
	}

	.answer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 6px;
	}

	.answer-button--wide {
		grid-column: 1 / -1;
	}

	.answer-button {
		min-height: 64px;
		gap: 7px;
		padding: 6px 7px;
		border-radius: 11px;
		font-size: 12px;
		line-height: 1.35;
	}

	.answer-icon {
		flex-basis: 30px;
		width: 30px;
		height: 30px;
		font-size: 11px;
	}

	.back-button {
		margin-top: 5px;
		padding-block: 2px;
		font-size: 10px;
	}

	.diagnosis-disclaimer {
		margin-top: 6px;
		font-size: 9px;
		line-height: 1.4;
	}
}

/* At this width the two-column labels become too compressed. The page is
 * intentionally allowed to scroll instead of clipping or shrinking content. */
@media (max-width: 359px) {
	.answer-grid {
		grid-template-columns: 1fr;
	}

	.answer-button--wide {
		grid-column: auto;
	}
}
