.tutorhelper-student-booking {
	--tutorhelper-booking-ink: #07354d;
	--tutorhelper-booking-border: #b8c9d1;
	--tutorhelper-booking-background: #faf1eb;
	--tutorhelper-booking-panel: #ffffff;
	--tutorhelper-booking-accent: #ffb49c;
	--tutorhelper-booking-muted: #6f7f87;

	position: relative;
	overflow: hidden;
	padding: 28px 22px 20px;
	border: 1px solid var(--tutorhelper-booking-ink);
	border-radius: 20px;
	background: var(--tutorhelper-booking-background);
	color: var(--tutorhelper-booking-ink);
}

.tutorhelper-student-booking::before {
	position: absolute;
	top: -55px;
	right: -55px;
	width: 140px;
	height: 140px;
	border-radius: 50%;
	background: rgba(255, 180, 156, 0.4);
	content: "";
}

.tutorhelper-student-booking__header {
	position: relative;
	margin-bottom: 22px;
}

.tutorhelper-student-booking__heading {
	margin: 0 0 6px;
	color: var(--tutorhelper-booking-ink);
	font-size: clamp(1.6rem, 3vw, 2rem);
	line-height: 1.2;
}

.tutorhelper-student-booking__introduction {
	margin: 0;
	color: var(--tutorhelper-booking-ink);
}

.tutorhelper-student-booking__selection-grid {
	display: grid;
	grid-template-columns:
		minmax(0, 1fr)
		minmax(0, 1fr)
		minmax(0, 0.75fr);
	gap: 18px;
	align-items: start;
}

.tutorhelper-student-booking__panel,
.tutorhelper-student-booking__summary {
	border: 1px solid var(--tutorhelper-booking-border);
	border-radius: 16px;
	background: var(--tutorhelper-booking-panel);
	box-shadow: 0 8px 20px rgba(7, 53, 77, 0.08);
}

.tutorhelper-student-booking__panel {
	min-height: 320px;
	padding: 18px;
}

.tutorhelper-student-booking__panel-heading,
.tutorhelper-student-booking__summary-heading {
	margin: 0 0 16px;
	color: var(--tutorhelper-booking-ink);
	font-size: 1.15rem;
	line-height: 1.3;
}

.tutorhelper-student-booking__required {
	color: #e8472d;
}

.tutorhelper-student-booking__placeholder {
	margin: 0;
	color: var(--tutorhelper-booking-muted);
	font-size: 0.95rem;
}

.tutorhelper-student-booking__summary {
	margin-top: 20px;
	padding: 20px;
}

.tutorhelper-student-booking__summary-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	padding-bottom: 18px;
	border-bottom: 1px solid #d9e1e5;
}

.tutorhelper-student-booking__summary-grid > div {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.tutorhelper-student-booking__summary-label {
	color: var(--tutorhelper-booking-muted);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.tutorhelper-student-booking__policy {
	margin-top: 16px;
	padding: 16px;
	border: 1px solid #e0d7d0;
	border-radius: 14px;
	background: #f8f0ea;
}

.tutorhelper-student-booking__policy h4 {
	margin: 0 0 8px;
	color: var(--tutorhelper-booking-ink);
}

.tutorhelper-student-booking__policy p {
	margin: 0 0 12px;
}

.tutorhelper-student-booking__policy-agreement {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-weight: 600;
}

.tutorhelper-student-booking__actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 18px;
}

.tutorhelper-student-booking__submit {
	min-width: 145px;
	padding: 11px 20px;
	border: 0;
	border-radius: 999px;
	background: var(--tutorhelper-booking-accent);
	color: #ffffff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
    transition:
		opacity 150ms ease,
		filter 150ms ease,
		transform 150ms ease,
		box-shadow 150ms ease;
}

.tutorhelper-student-booking__submit:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	box-shadow: none;
	filter: grayscale(0.25);
}

.tutorhelper-student-booking__submit:not(:disabled) {
	opacity: 1;
	cursor: pointer;
	filter: none;
}

.tutorhelper-student-booking__message {
	margin-bottom: 18px;
	padding: 12px 14px;
	border-radius: 10px;
	background: #ffffff;
}

.tutorhelper-student-booking__footer {
	margin-top: 16px;
	text-align: center;
	font-size: 0.75rem;
}

.tutorhelper-student-booking-notice {
	padding: 14px 16px;
	border: 1px solid #d9e1e5;
	border-radius: 10px;
	background: #ffffff;
}

.tutorhelper-student-booking-notice--warning {
	border-color: #e8bd63;
	background: #fff8e5;
}

@media (max-width: 900px) {
	.tutorhelper-student-booking__selection-grid {
		grid-template-columns: 1fr 1fr;
	}

	.tutorhelper-student-booking__selection-grid
		> :last-child {
		grid-column: 1 / -1;
	}
}

@media (max-width: 640px) {
	.tutorhelper-student-booking {
		padding: 22px 14px 16px;
	}

	.tutorhelper-student-booking__calendar-weekdays,
	.tutorhelper-student-booking__calendar-days {
		gap: 3px;
	}

	.tutorhelper-student-booking__calendar-day,
	.tutorhelper-student-booking__calendar-blank {
		min-height: 32px;
	}

	.tutorhelper-student-booking__calendar-day {
		border-radius: 7px;
		font-size: 0.78rem;
	}

	.tutorhelper-student-booking__selection-grid,
	.tutorhelper-student-booking__summary-grid {
		grid-template-columns: 1fr;
	}

	.tutorhelper-student-booking__selection-grid
		> :last-child {
		grid-column: auto;
	}

	.tutorhelper-student-booking__panel {
		min-height: auto;
	}

	.tutorhelper-student-booking__actions {
		justify-content: stretch;
	}

	.tutorhelper-student-booking__submit {
		width: 100%;
        transition:
		opacity 150ms ease,
		filter 150ms ease,
		transform 150ms ease,
		box-shadow 150ms ease;
	}
}

@media (max-width: 380px) {
	.tutorhelper-student-booking {
		padding-left: 10px;
		padding-right: 10px;
	}

	.tutorhelper-student-booking__panel,
	.tutorhelper-student-booking__summary {
		padding-left: 12px;
		padding-right: 12px;
	}

	.tutorhelper-student-booking__calendar-header {
		grid-template-columns: 32px 1fr 32px;
		padding: 6px;
	}
}




.tutorhelper-student-booking__preview-notice {
	position: relative;
	margin-bottom: 18px;
	padding: 12px 14px;
	border: 1px solid #e8bd63;
	border-radius: 10px;
	background: #fff8e5;
	color: var(--tutorhelper-booking-ink);
	font-weight: 600;
}

.tutorhelper-student-booking--preview {
	--tutorhelper-booking-accent: #9aa8af;
}


.tutorhelper-student-booking__services {
	display: grid;
	gap: 10px;
}

.tutorhelper-student-booking__service {
	--tutorhelper-service-colour: #328bb8;

	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 100%;
	padding: 13px 14px;
	border: 1px solid var(--tutorhelper-service-colour);
	border-left: 5px solid var(--tutorhelper-service-colour);
	border-radius: 9px;
    background: #f4f7f8;
	background:
		color-mix(
			in srgb,
			var(--tutorhelper-service-colour) 14%,
			#ffffff
		);
	color: var(--tutorhelper-booking-ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition:
		box-shadow 150ms ease,
		transform 150ms ease,
		background 150ms ease;
}

.tutorhelper-student-booking__service:hover {
	transform: translateY(-1px);
	box-shadow: 0 5px 12px rgba(7, 53, 77, 0.12);
}

.tutorhelper-student-booking__service:focus-visible {
	outline: 3px solid rgba(7, 53, 77, 0.25);
	outline-offset: 2px;
}

.tutorhelper-student-booking__service.is-selected {
    background: #e9f1f4;
	background:
		color-mix(
			in srgb,
			var(--tutorhelper-service-colour) 24%,
			#ffffff
		);
	box-shadow:
		0 0 0 2px
		var(--tutorhelper-service-colour);
}

.tutorhelper-student-booking__service-title {
	font-weight: 700;
	line-height: 1.3;
}

.tutorhelper-student-booking__service-meta {
	font-size: 0.82rem;
	font-weight: 600;
}

.tutorhelper-student-booking__service-description {
	margin-top: 4px;
	color: var(--tutorhelper-booking-muted);
	font-size: 0.82rem;
	line-height: 1.4;
}


.tutorhelper-student-booking__calendar-header {
	display: grid;
	grid-template-columns: 36px 1fr 36px;
	gap: 8px;
	align-items: center;
	margin-bottom: 14px;
	padding: 8px;
	border: 1px solid #e5d8cf;
	border-radius: 12px;
	background: #f8eee8;
	text-align: center;
}

.tutorhelper-student-booking__calendar-header strong {
	font-size: 0.88rem;
}


.tutorhelper-student-booking__calendar-header button {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 1px solid #cbd9df;
	border-radius: 50%;
	background: #ffffff;
	color: var(--tutorhelper-booking-ink);
	font: inherit;
	font-size: 1.15rem;
	line-height: 1;
	cursor: pointer;
}

.tutorhelper-student-booking__calendar-weekdays,
.tutorhelper-student-booking__calendar-days {
	display: grid;
	grid-template-columns:
		repeat(7, minmax(0, 1fr));
	gap: 5px;
}

.tutorhelper-student-booking__calendar-weekdays {
	margin-bottom: 8px;
	color: var(--tutorhelper-booking-ink);
	font-size: 0.68rem;
	font-weight: 700;
	text-align: center;
}

.tutorhelper-student-booking__calendar-weekdays,
.tutorhelper-student-booking__calendar-days {
	gap: 6px;
}

.tutorhelper-student-booking__calendar-day,
.tutorhelper-student-booking__calendar-blank {
	aspect-ratio: auto;
	min-height: 34px;
}

.tutorhelper-student-booking__calendar-day {
	display: grid;
	place-items: center;
	min-width: 0;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 9px;
	background: #f7e8df;
	color: #9b8d85;
	font: inherit;
	font-size: 0.82rem;
	font-weight: 600;
}

.tutorhelper-student-booking__calendar-day.is-available {
	border-color: #8bcfaa;
	background: #dff5e8;
	color: #195d3b;
	cursor: pointer;
}

.tutorhelper-student-booking__calendar-day.is-available:hover,
.tutorhelper-student-booking__calendar-day.is-available:focus-visible {
	border-color: #4fa879;
	background: #c9ecd8;
	color: #10472d;
}

.tutorhelper-student-booking__calendar-day.is-today {
	border-color: #ff8b62;
	box-shadow: inset 0 0 0 1px #ff8b62;
}

.tutorhelper-student-booking__calendar-day.is-selected {
	border-color: var(--tutorhelper-booking-ink);
	background: var(--tutorhelper-booking-ink);
	color: #ffffff;
	box-shadow: none;
}

.tutorhelper-student-booking__calendar-day:disabled {
	opacity: 1;
	cursor: default;
}

.tutorhelper-student-booking__calendar-empty {
	margin: 14px 0 0;
	color: var(--tutorhelper-booking-muted);
	font-size: 0.85rem;
	text-align: center;
}


.tutorhelper-student-booking__calendar[aria-busy="true"] {
	opacity: 0.6;
	pointer-events: none;
}


.tutorhelper-student-booking__times[aria-busy="true"] {
	opacity: 0.65;
	pointer-events: none;
}

.tutorhelper-student-booking__time-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 9px;
}

@media (max-width: 560px) {
	.tutorhelper-student-booking__time-list {
		grid-template-columns: 1fr;
	}
}


.tutorhelper-student-booking__time {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #efb49f;
	border-radius: 999px;
	background: #fce8df;
	color: var(--tutorhelper-booking-ink);
	font: inherit;
	font-size: 0.8rem;
	font-weight: 700;
	text-align: center;
	cursor: pointer;
	transition:
		background 150ms ease,
		border-color 150ms ease,
		box-shadow 150ms ease,
		transform 150ms ease;
}

.tutorhelper-student-booking__time:hover {
	border-color: #e78e70;
	background: #f9d8ca;
	transform: translateY(-1px);
}

.tutorhelper-student-booking__time:focus-visible {
	outline: 3px solid rgba(7, 53, 77, 0.22);
	outline-offset: 2px;
}

.tutorhelper-student-booking__time.is-selected {
	border-color: var(--tutorhelper-booking-ink);
	background: var(--tutorhelper-booking-ink);
	color: #ffffff;
	box-shadow:
		0 4px 10px
		rgba(7, 53, 77, 0.18);
}


.tutorhelper-student-booking__message {
	margin: 0 0 20px;
	padding: 13px 16px;
	border: 1px solid transparent;
	border-radius: 10px;
	font-weight: 600;
}

.tutorhelper-student-booking__message.is-success {
	border-color: #8bcfaa;
	background: #dff5e8;
	color: #195d3b;
}

.tutorhelper-student-booking__message.is-error {
	border-color: #e5a18e;
	background: #fbe3dc;
	color: #7b2e1b;
}

.tutorhelper-student-booking__submit[aria-busy="true"] {
	opacity: 0.7;
	cursor: wait;
}

.tutorhelper-student-booking-notice__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 6px;
	padding: 8px 16px;
	border-radius: 999px;
	background: #133949;
	color: #ffffff;
	font-weight: 700;
	text-decoration: none;
}

.tutorhelper-student-booking-notice__action:hover,
.tutorhelper-student-booking-notice__action:focus {
	color: #ffffff;
	text-decoration: none;
	opacity: 0.9;
}
