.lh-student-portal__notice--error {
	background: #faf0f0;
	border-color: #d4a0a8;
	border-left-color: #c45c5c;
	color: #6d3540;
}

.lh-student-portal__notice--success {
	background: #e4f0e6;
	border-color: #8fbf96;
	border-left-color: #2c6c42;
	color: #1f4a28;
}

/* Mirror portal account layout — drop inherited account-page top padding. */
.lh-page--student-account:has(.lh-student-onboarding) {
	padding-block: 0;
}

.lh-student-account:has(.lh-student-onboarding),
.lh-student-app .lh-student-account:has(.lh-student-onboarding) {
	padding-block: 0;
}

.lh-student-onboarding {
	margin: 0;
	min-width: 0;
	padding: clamp(0.25rem, 1vw, 0.5rem) 0 clamp(2rem, 5vw, 3rem);
}

.lh-student-onboarding__form,
.lh-student-onboarding .lh-avail-calendar {
	max-width: 100%;
	min-width: 0;
}

.lh-student-onboarding__header {
	margin-bottom: clamp(2.5rem, 5vw, 3.1rem);
	max-width: 42rem;
}

.lh-student-onboarding__title {
	margin: 0 0 0.65rem;
}

.lh-student-onboarding__intro {
	color: #6b625c;
	font-size: 0.95rem;
	line-height: 1.55;
	margin: 0;
}

.lh-student-onboarding__learners {
	margin-bottom: 1.5rem;
}

.lh-student-onboarding__step[hidden] {
	display: none;
}

.lh-student-onboarding__actions {
	align-items: center;
	display: grid;
	gap: 0.75rem;
	grid-template-columns: 1fr auto;
	margin-top: 1.25rem;
	width: 100%;
}

.lh-student-onboarding__actions-primary {
	grid-column: 2;
	grid-row: 1;
	justify-self: end;
}

.lh-student-onboarding__actions-secondary {
	grid-column: 1;
	grid-row: 1;
	justify-self: start;
}

.lh-student-onboarding__learners ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.lh-student-onboarding__learners a {
	background: #faf8f5;
	border: 1px solid #e8e2da;
	border-radius: 999px;
	display: inline-block;
	padding: 0.35rem 0.85rem;
	text-decoration: none;
}

.lh-student-onboarding__learners a[aria-current="true"] {
	background: #7a3e48;
	border-color: #7a3e48;
	color: #fff;
}

.lh-student-onboarding__form {
	background: #fff;
	border: 1px solid #e8e2da;
	border-radius: 14px;
	padding: clamp(1rem, 3vw, 1.75rem);
}

.lh-student-onboarding__form .description {
	color: #6b625c;
	margin: 0.35rem 0 1rem;
}

.lh-student-onboarding__holiday,
.lh-holiday-prefs {
	border: 0;
	margin: 1rem 0;
	padding: 0;
}

.lh-student-onboarding__holiday > p:not(.lh-holiday-prefs__notify) label,
.lh-holiday-prefs > p:not(.lh-holiday-prefs__notify) label {
	align-items: center;
	background: #faf8f5;
	border: 1px solid #e8e2da;
	border-radius: 10px;
	cursor: pointer;
	display: flex;
	gap: 0.55rem;
	margin: 0.5rem 0;
	padding: 0.65rem 0.85rem;
}

.lh-student-onboarding__holiday label input[type="radio"],
.lh-holiday-prefs label input[type="radio"],
.lh-holiday-prefs__notify label input[type="checkbox"] {
	flex-shrink: 0;
	margin: 0;
}

.lh-student-onboarding__holiday > p:not(.lh-holiday-prefs__notify) label:has(input:checked),
.lh-holiday-prefs > p:not(.lh-holiday-prefs__notify) label:has(input:checked) {
	border-color: #7a3e48;
	box-shadow: inset 0 0 0 1px #7a3e48;
}

.lh-holiday-prefs__notify {
	display: none;
	margin-top: 0.75rem;
}

.lh-holiday-prefs:has([name="wants_holiday_lessons"][value="1"]:checked) .lh-holiday-prefs__notify,
.lh-holiday-prefs:has([name="wants_holiday_lessons"][value="2"]:checked) .lh-holiday-prefs__notify {
	display: block;
}

.lh-holiday-prefs__notify label {
	align-items: flex-start;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: #6b625c;
	cursor: pointer;
	display: flex;
	font-size: 0.875rem;
	gap: 0.45rem;
	line-height: 1.45;
	margin: 0;
	padding: 0;
}

.lh-holiday-prefs__notify label:has(input:checked) {
	border-color: transparent;
	box-shadow: none;
}

.lh-student-onboarding .button,
.lh-student-onboarding .button-primary,
.lh-student-portal .button,
.lh-student-portal .button-primary {
	background: #7a3e48;
	border: 1px solid #7a3e48;
	border-radius: 8px;
	color: #fff;
	cursor: pointer;
	display: inline-block;
	font: inherit;
	font-weight: 600;
	padding: 0.75rem 1.25rem;
	text-decoration: none;
}

.lh-student-onboarding .button:hover,
.lh-student-onboarding .button-primary:hover,
.lh-student-portal .button:hover,
.lh-student-portal .button-primary:hover {
	background: #6d3540;
	border-color: #6d3540;
	color: #fff;
}

.lh-student-app__content:has(.lh-student-onboarding--complete) {
	display: flex;
	flex-direction: column;
}

.lh-student-onboarding--complete {
	align-items: center;
	display: flex;
	flex: 1 1 auto;
	justify-content: center;
	max-width: none;
	min-height: min(28rem, calc(100dvh - 5rem - env(safe-area-inset-top, 0) - env(safe-area-inset-bottom, 0)));
	padding: clamp(1rem, 4vw, 2rem) 0;
}

.lh-student-onboarding__complete-card {
	background: #fff;
	border: 1px solid #e8e2da;
	border-radius: 14px;
	box-shadow: 0 8px 28px rgb(50 35 25 / 0.06);
	max-width: 28rem;
	padding: clamp(1.5rem, 4vw, 2rem);
	text-align: center;
	width: 100%;
}

.lh-student-onboarding--complete .lh-student-onboarding__header {
	margin-bottom: 1rem;
	max-width: none;
}

.lh-student-onboarding--complete .lh-student-onboarding__title {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.35rem, 4vw, 1.65rem);
}

.lh-student-onboarding--complete .lh-student-onboarding__intro,
.lh-student-onboarding__complete-detail,
.lh-student-onboarding__beta-note {
	text-align: left;
}

.lh-student-onboarding__complete-detail {
	color: #6b625c;
	font-size: 0.95rem;
	line-height: 1.55;
	margin: 0;
}

.lh-student-onboarding__beta-note {
	background: #faf6f0;
	border: 1px solid #e8dfd4;
	border-radius: 8px;
	color: #6b625c;
	font-size: 0.9rem;
	line-height: 1.55;
	margin: 1.25rem 0 0;
	padding: 0.85rem 1rem;
}

.lh-student-onboarding--complete .lh-student-onboarding__actions {
	display: flex;
	grid-template-columns: 1fr;
	justify-content: center;
	margin-top: 1.5rem;
}
