:root {
	font-family:
		Inter,
		-apple-system,
		BlinkMacSystemFont,
		'Segoe UI',
		Arial,
		sans-serif;
	background: #f5f8fd;
	color: #172033;
	font-synthesis: none;
}

* {
	box-sizing: border-box;
}
html,
body {
	min-height: 100%;
}

body {
	display: flex;
	min-height: 100vh;
	margin: 0;
	flex-direction: column;
	background: #f5f8fd;
}

.site-header {
	position: relative;
	z-index: 3;
	flex: 0 0 80px;
	border-bottom: 1px solid #dfe5ef;
	background: rgba(255, 255, 255, 0.94);
}

.header-inner {
	display: flex;
	width: min(1280px, calc(100% - 48px));
	height: 100%;
	margin: 0 auto;
	align-items: center;
	gap: 14px;
}

.brand-mark {
	display: grid;
	width: 48px;
	height: 48px;
	place-items: center;
	border-radius: 10px;
	background: #2862cb;
	box-shadow: 0 8px 18px rgba(40, 98, 203, 0.18);
	color: #fff;
	font-size: 25px;
	font-weight: 700;
}

.header-inner strong {
	font-size: 22px;
	letter-spacing: -0.25px;
}

.brand-section {
	margin-left: 10px;
	padding-left: 24px;
	border-left: 1px solid #cbd3df;
	color: #58667c;
	font-size: 16px;
}

.page {
	position: relative;
	z-index: 1;
	display: flex;
	width: 100%;
	min-height: 650px;
	flex: 1 0 auto;
	align-items: flex-start;
	justify-content: center;
	overflow: hidden;
	padding: 96px 24px 72px;
	background:
		radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.9), transparent 38%),
		linear-gradient(135deg, #f9fbff 0%, #eef4fc 100%);
}

.background-dots {
	position: absolute;
	top: 170px;
	left: 6.5%;
	width: 130px;
	height: 130px;
	background-image: radial-gradient(circle, #bfd0ef 3px, transparent 3.5px);
	background-size: 28px 28px;
	opacity: 0.55;
}

.background-rings {
	position: absolute;
	right: -210px;
	bottom: -330px;
	width: 700px;
	height: 700px;
	border: 1px solid #c6d7f2;
	border-radius: 50%;
	opacity: 0.75;
}

.background-rings::before {
	position: absolute;
	inset: 120px;
	border: 1px solid #c6d7f2;
	border-radius: 50%;
	content: '';
}

.card {
	position: relative;
	z-index: 2;
	border: 1px solid rgba(215, 223, 236, 0.9);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.97);
	box-shadow: 0 18px 50px rgba(45, 68, 105, 0.1);
}

.hero {
	width: min(680px, 100%);
	padding: 36px 48px 38px;
	text-align: center;
}

.hero-icon {
	display: grid;
	width: 82px;
	height: 82px;
	margin: 0 auto 22px;
	place-items: center;
	border-radius: 50%;
	background: #edf3fd;
}

.hero-icon svg {
	width: 48px;
	height: 48px;
	fill: #2862cb;
}

h1 {
	margin: 0 0 12px;
	font-size: 36px;
	line-height: 1.2;
	letter-spacing: -0.7px;
}

h2 {
	color: #172033;
}
p {
	margin: 0;
	color: #66748a;
	line-height: 1.55;
}

label {
	display: block;
	margin-bottom: 8px;
	color: #263247;
	font-size: 14px;
	font-weight: 650;
}

small {
	color: #8190a5;
	font-weight: 400;
}
.access-form {
	margin-top: 38px;
	text-align: left;
}
.input-row {
	display: flex;
	gap: 14px;
}

input,
textarea {
	width: 100%;
	min-width: 0;
	border: 1px solid #b9c5d6;
	border-radius: 8px;
	background: #fff;
	color: #172033;
	padding: 13px 15px;
	font: inherit;
	outline: none;
	transition:
		border-color 0.15s ease,
		box-shadow 0.15s ease;
}

input:focus,
textarea:focus {
	border-color: #2862cb;
	box-shadow: 0 0 0 3px rgba(40, 98, 203, 0.12);
}

button {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	gap: 12px;
	border: 1px solid #2458b6;
	border-radius: 8px;
	padding: 0 24px;
	background: #2862cb;
	box-shadow: 0 8px 18px rgba(40, 98, 203, 0.16);
	color: #fff;
	font: inherit;
	font-weight: 650;
	cursor: pointer;
	transition:
		background 0.15s ease,
		transform 0.15s ease;
}

button:hover {
	background: #204fa6;
}
button:active {
	transform: translateY(1px);
}
button:disabled {
	opacity: 0.55;
	cursor: wait;
}
.button-arrow {
	font-size: 23px;
	font-weight: 400;
}

.secondary {
	background: #fff;
	box-shadow: none;
	color: #2862cb;
	border-color: #9eb3d3;
}

.secondary:hover {
	background: #f3f7fd;
}
.hidden {
	display: none !important;
}

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

.test-view {
	position: relative;
	z-index: 2;
	width: min(900px, 100%);
}

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

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

.pill {
	flex: 0 0 auto;
	padding: 7px 10px;
	border-radius: 6px;
	background: #e4edfb;
	color: #3f5474;
	font-size: 13px;
}

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

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

.block-heading {
	position: relative;
	z-index: 2;
	margin: 34px 0 14px;
	padding: 0 4px 12px;
	border-bottom: 1px solid #ccd8e9;
}

.block-heading span {
	color: #2862cb;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.block-heading h2 {
	margin: 5px 0 0;
	font-size: 24px;
}

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

.question-required {
	margin-left: auto;
	padding: 4px 7px;
	border-radius: 5px;
	background: #eef3fa;
	color: #64748b;
	font-size: 12px;
}

.question-number {
	display: grid;
	width: 32px;
	height: 32px;
	flex: 0 0 32px;
	place-items: center;
	border-radius: 6px;
	background: #e4edfb;
	color: #2862cb;
	font-size: 14px;
	font-weight: 700;
}

.question h2 {
	margin: 4px 0 0;
	font-size: 18px;
}
.options {
	display: grid;
	gap: 8px;
}

.option {
	display: flex;
	margin: 0;
	padding: 12px 14px;
	align-items: center;
	gap: 11px;
	border: 1px solid #d8e0eb;
	border-radius: 8px;
	color: #344258;
	font-weight: 400;
	cursor: pointer;
}

.option:hover {
	border-color: #9bb3d5;
	background: #f7faff;
}

.other-option {
	align-items: center;
}

.other-answer {
	padding: 8px 10px;
	border-width: 0 0 1px;
	border-radius: 0;
	background: transparent;
}

.other-answer:disabled {
	opacity: 0.55;
}

.option input,
.consent-label input {
	width: 17px;
	height: 17px;
	flex: 0 0 17px;
	padding: 0;
	accent-color: #2862cb;
}

.consent-card {
	margin-top: 16px;
	padding: 20px 22px;
}

.consent-label {
	display: flex;
	margin: 0;
	align-items: flex-start;
	gap: 11px;
	color: #46556c;
	font-weight: 400;
	line-height: 1.5;
}

a {
	color: #2862cb;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}
a:hover {
	color: #1d4f9f;
}

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

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

.result {
	display: flex;
	width: min(680px, 100%);
	padding: 36px;
	align-items: center;
	gap: 26px;
}

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

.result-score {
	display: flex;
	width: 130px;
	height: 96px;
	flex: 0 0 130px;
	flex-direction: column;
	justify-content: center;
	border: 1px solid #d5dfed;
	border-radius: 10px;
	background: #f0f5fc;
	text-align: center;
}

.result-score strong {
	font-size: 30px;
}
.result-score span {
	margin-top: 3px;
	color: #66748a;
	font-size: 12px;
}
.result .secondary {
	margin-top: 18px;
}

.site-footer {
	position: relative;
	z-index: 3;
	display: flex;
	min-height: 76px;
	padding: 18px 24px;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	border-top: 1px solid #dfe5ef;
	background: #fff;
	color: #68768b;
	font-size: 14px;
}

@media (max-width: 700px) {
	.site-header {
		flex-basis: 68px;
	}
	.header-inner {
		width: calc(100% - 32px);
	}
	.brand-mark {
		width: 40px;
		height: 40px;
		font-size: 21px;
	}
	.header-inner strong {
		font-size: 19px;
	}
	.brand-section {
		margin-left: 2px;
		padding-left: 12px;
		font-size: 14px;
	}
	.page {
		min-height: 560px;
		padding: 40px 16px 48px;
	}
	.background-dots {
		display: none;
	}
	.hero {
		padding: 28px 22px;
	}
	.hero-icon {
		width: 66px;
		height: 66px;
		margin-bottom: 18px;
	}
	.hero-icon svg {
		width: 39px;
		height: 39px;
	}
	h1 {
		font-size: 29px;
	}
	.access-form {
		margin-top: 28px;
	}
	.input-row,
	.result,
	.submit-row {
		flex-direction: column;
		align-items: stretch;
	}
	.input-row button,
	.submit-row button {
		width: 100%;
	}
	.student-fields {
		grid-template-columns: 1fr;
	}
	.test-heading {
		flex-direction: column;
		gap: 12px;
	}
	.question {
		padding: 20px;
	}
	.question-head {
		flex-wrap: wrap;
	}
	.question-required {
		margin-left: 44px;
	}
	.result-score {
		width: 100%;
		flex-basis: auto;
	}
	.site-footer {
		min-height: 88px;
		font-size: 13px;
	}
}
