:root {
	font-family: Arial, Helvetica, sans-serif;
	background: #f5f6f8;
	color: #20242a;
	font-synthesis: none;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	background: #f5f6f8;
}

.shell {
	width: min(900px, calc(100% - 32px));
	margin: 0 auto;
	padding-bottom: 48px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 64px;
	margin-bottom: 56px;
	border-bottom: 1px solid #dfe3e8;
}

.brand-mark {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 6px;
	background: #2563a9;
	color: #ffffff;
	font-weight: 700;
}

.brand strong {
	font-size: 18px;
}

.brand > span:last-child {
	padding-left: 10px;
	border-left: 1px solid #cfd5dc;
	color: #66707c;
	font-size: 14px;
}

.card {
	background: #ffffff;
	border: 1px solid #d8dde5;
	border-radius: 8px;
}

.hero {
	max-width: 560px;
	margin: 0 auto;
	padding: 32px;
}

h1 {
	margin: 0 0 10px;
	font-size: 28px;
	line-height: 1.25;
}

h2 {
	color: #20242a;
}

p {
	margin: 0;
	color: #66707c;
	line-height: 1.5;
}

label {
	display: block;
	margin-bottom: 7px;
	color: #343a42;
	font-size: 14px;
	font-weight: 600;
}

small {
	color: #7c8590;
	font-weight: 400;
}

.access-form {
	margin-top: 28px;
}

.input-row {
	display: flex;
	gap: 10px;
}

input,
textarea {
	width: 100%;
	border: 1px solid #bfc7d1;
	border-radius: 6px;
	background: #ffffff;
	color: #20242a;
	padding: 11px 12px;
	font: inherit;
	outline: none;
}

input:focus,
textarea:focus {
	border-color: #2563a9;
	box-shadow: 0 0 0 2px rgba(37, 99, 169, 0.12);
}

button {
	border: 1px solid #1f578f;
	border-radius: 6px;
	padding: 0 18px;
	min-height: 42px;
	background: #2563a9;
	color: #ffffff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

button:hover {
	background: #1f578f;
}

button:disabled {
	opacity: 0.55;
	cursor: wait;
}

.secondary {
	background: #ffffff;
	color: #2563a9;
	border-color: #9fb2c8;
}

.secondary:hover {
	background: #f2f5f8;
}

.hidden {
	display: none !important;
}

.error {
	min-height: 20px;
	margin: 8px 0 0;
	color: #b42318;
	font-size: 14px;
}

.test-heading {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	align-items: flex-start;
	margin-bottom: 24px;
}

.test-heading h1 {
	font-size: 30px;
}

.pill {
	white-space: nowrap;
	padding: 6px 9px;
	border-radius: 4px;
	background: #e9eef4;
	color: #46515e;
	font-size: 13px;
}

.student-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	padding: 20px;
	margin-bottom: 16px;
}

.question {
	padding: 22px;
	margin: 12px 0;
}

.question-head {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 18px;
}

.question-number {
	display: grid;
	place-items: center;
	flex: 0 0 30px;
	height: 30px;
	border-radius: 4px;
	background: #e9eef4;
	color: #344251;
	font-size: 14px;
	font-weight: 700;
}

.question h2 {
	margin: 3px 0 0;
	font-size: 18px;
}

.options {
	display: grid;
	gap: 8px;
}

.option {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 11px 12px;
	border: 1px solid #d8dde5;
	border-radius: 6px;
	cursor: pointer;
	color: #343a42;
	font-weight: 400;
}

.option:hover {
	background: #f7f8fa;
	border-color: #aeb7c2;
}

.option input {
	width: 16px;
	height: 16px;
	accent-color: #2563a9;
}

.submit-row {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 20px;
}

.submit-row .error {
	margin: 0;
}

.result {
	max-width: 560px;
	margin: 0 auto;
	padding: 32px;
	display: flex;
	gap: 24px;
	align-items: center;
}

.result h1 {
	font-size: 26px;
}

.result-score {
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 120px;
	height: 88px;
	flex: 0 0 120px;
	padding: 12px;
	border: 1px solid #d8dde5;
	border-radius: 6px;
	background: #f5f6f8;
	text-align: center;
}

.result-score strong {
	font-size: 28px;
}

.result-score span {
	margin-top: 3px;
	color: #66707c;
	font-size: 12px;
}

.result .secondary {
	margin-top: 16px;
}

@media (max-width: 640px) {
	.brand {
		margin-bottom: 32px;
	}

	.hero,
	.result {
		padding: 22px;
	}

	.input-row,
	.result,
	.submit-row {
		flex-direction: column;
		align-items: stretch;
	}

	.student-fields {
		grid-template-columns: 1fr;
	}

	.test-heading {
		flex-direction: column;
	}

	.result-score {
		width: 100%;
		flex-basis: auto;
	}
}
