/* LGBS booking page. Self-contained: everything is under .lgbs so the theme is not affected. */

.lgbs {
	--lgbs-accent: #003554; /* MCF blue, as on the site */
	--lgbs-accent-ink: #fff;
	--lgbs-ink: #222;
	--lgbs-muted: #666;
	--lgbs-line: #ddd;
	--lgbs-soft: #f6f6f4;
	--lgbs-ok: #e8f4ea;
	--lgbs-radius: 10px;
	color: var(--lgbs-ink);
	font-size: 16px;
	line-height: 1.45;
	max-width: 760px;
	margin: 0 auto 2em;
	background: #fff;
	padding: 16px;
	border-radius: var(--lgbs-radius);
	box-sizing: border-box;
}

.lgbs *,
.lgbs *::before,
.lgbs *::after {
	box-sizing: border-box;
}

.lgbs button,
.lgbs input,
.lgbs select,
.lgbs textarea {
	font: inherit;
	color: inherit;
}

/* The theme styles every <button>: reset ours. */
.lgbs button {
	text-shadow: none;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	min-width: 0;
	width: auto;
	margin: 0;
}

.lgbs-title {
	font-size: 1.35em;
	margin: 0.4em 0 0.8em;
}

.lgbs-progress {
	display: flex;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.8em;
	color: var(--lgbs-muted);
}

.lgbs-progress li {
	flex: 1;
	border-top: 3px solid var(--lgbs-line);
	padding-top: 4px;
}

.lgbs-progress li.done,
.lgbs-progress li.current {
	border-color: var(--lgbs-accent);
}

.lgbs-progress li.current {
	color: var(--lgbs-ink);
	font-weight: 600;
}

@media (max-width: 480px) {
	.lgbs-progress li:not(.current) {
		font-size: 0;
	}
}

/* Buttons */

.lgbs .lgbs-btn {
	display: inline-block;
	background: var(--lgbs-accent);
	color: var(--lgbs-accent-ink);
	border: 0;
	border-radius: 999px;
	padding: 0.7em 1.4em;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
}

.lgbs .lgbs-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.lgbs .lgbs-btn-secondary {
	background: var(--lgbs-soft);
	color: var(--lgbs-ink);
}

.lgbs-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: space-between;
	margin-top: 1.4em;
}

.lgbs-nav .lgbs-btn:last-child {
	margin-left: auto;
}

@media (max-width: 480px) {
	.lgbs-nav .lgbs-btn {
		flex: 1 1 100%;
	}
	.lgbs-nav .lgbs-btn:last-child {
		order: -1;
	}
}

/* Step 1: lessons */

.lgbs-lessons {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

/* Lesson cards, as on the home page. The theme styles every <button> (padding forced with
   !important, a grey box on hover): reset for these. */
.lgbs .lgbs-lesson,
.lgbs .lgbs-lesson:hover,
.lgbs .lgbs-lesson:focus,
.lgbs .lgbs-lesson:active {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0 !important;
	overflow: hidden;
	text-align: left;
	white-space: normal;
	line-height: 1.4;
	font-weight: 400;
	color: var(--lgbs-ink);
	background: #fff;
	background-image: none;
	border: 1px solid #e3eaef;
	border-radius: 14px;
	box-shadow: 0 6px 18px rgba(0, 53, 84, 0.07);
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.lgbs .lgbs-lesson:hover {
	transform: translateY(-3px);
	border-color: #bfd6e4;
	box-shadow: 0 14px 30px rgba(0, 53, 84, 0.14);
}

.lgbs .lgbs-lesson:focus-visible {
	outline: 3px solid #087dba;
	outline-offset: 3px;
}

/* The group lesson leads, full width, photo beside the text (in every state: the reset
   above would otherwise stack it on hover). */
.lgbs .lgbs-lesson-group,
.lgbs .lgbs-lesson-group:hover,
.lgbs .lgbs-lesson-group:focus,
.lgbs .lgbs-lesson-group:active {
	grid-column: 1 / -1;
	flex-direction: row;
}

.lgbs-lesson-photo {
	display: block;
	flex: none;
	height: 170px;
	background: #dfe8ee;
}

.lgbs-lesson-group .lgbs-lesson-photo {
	width: 46%;
	height: auto;
	min-height: 220px;
}

.lgbs-lesson-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s;
}

.lgbs .lgbs-lesson:hover .lgbs-lesson-photo img {
	transform: scale(1.04);
}

.lgbs-lesson-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 18px 20px 20px;
}

.lgbs-lesson-group .lgbs-lesson-body {
	justify-content: center;
	padding: 24px 28px;
}

.lgbs-lesson-name {
	font-size: 1.2em;
	font-weight: 700;
	color: #123042;
	letter-spacing: -0.01em;
}

.lgbs-lesson-group .lgbs-lesson-name {
	font-size: 1.45em;
}

.lgbs-lesson-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.lgbs-tag {
	padding: 3px 10px;
	border-radius: 999px;
	background: #eaf6fc;
	color: #0b5f8a;
	font-size: 0.8em;
	font-weight: 600;
	white-space: nowrap;
}

.lgbs-lesson-desc {
	color: var(--lgbs-muted);
	font-size: 0.92em;
}

.lgbs-lesson-foot {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 6px;
}

.lgbs-lesson-price {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.lgbs-lesson-price b {
	font-size: 1.5em;
	font-weight: 800;
	color: #087dba;
}

.lgbs-lesson-price small {
	color: var(--lgbs-muted);
	font-size: 0.78em;
}

.lgbs-lesson-go {
	flex: none;
	padding: 8px 14px;
	border: 1.5px solid #087dba;
	border-radius: 8px;
	color: #087dba;
	font-size: 0.85em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	transition: background 0.2s, color 0.2s;
}

.lgbs .lgbs-lesson:hover .lgbs-lesson-go {
	background: #087dba;
	color: #fff;
}

.lgbs-lessons + .lgbs-hint {
	margin-top: 18px;
}

@media (max-width: 640px) {
	.lgbs-lessons {
		grid-template-columns: 1fr;
	}
	.lgbs .lgbs-lesson-group,
	.lgbs .lgbs-lesson-group:hover,
	.lgbs .lgbs-lesson-group:focus,
	.lgbs .lgbs-lesson-group:active {
		flex-direction: column;
	}
	.lgbs-lesson-group .lgbs-lesson-photo {
		width: auto;
		height: 180px;
		min-height: 0;
	}
	.lgbs-lesson-photo {
		height: 160px;
	}
	.lgbs-lesson-group .lgbs-lesson-body {
		padding: 18px 20px 20px;
	}
}

/* Step 2: date */

.lgbs-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	align-items: center;
	margin-bottom: 1em;
}

.lgbs-stepper {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* − and +: round buttons with drawn signs, so they sit exactly in the middle (the theme
   forces padding on every button, which pushed the characters off-centre). */
.lgbs .lgbs-stepper button,
.lgbs .lgbs-stepper button:hover,
.lgbs .lgbs-stepper button:focus,
.lgbs .lgbs-stepper button:active {
	position: relative;
	flex: none;
	width: 40px;
	height: 40px;
	padding: 0 !important;
	border: 1px solid var(--lgbs-line);
	border-radius: 50%;
	background: #fff;
	box-shadow: none;
	color: var(--lgbs-accent);
	cursor: pointer;
}

.lgbs .lgbs-stepper button:hover:not(:disabled) {
	background: var(--lgbs-soft);
	border-color: var(--lgbs-accent);
}

.lgbs .lgbs-sign {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 14px;
	height: 2px;
	margin: -1px 0 0 -7px;
	border-radius: 1px;
	background: currentColor;
}

/* The + adds the same bar, turned upright, on top of the first. */
.lgbs .lgbs-plus .lgbs-sign::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 1px;
	background: currentColor;
	transform: rotate(90deg);
}

.lgbs-stepper button:disabled {
	opacity: 0.35;
}

.lgbs-stepper output {
	min-width: 1.5em;
	text-align: center;
	font-weight: 700;
}

.lgbs-label {
	font-weight: 600;
}

.lgbs-hint {
	color: var(--lgbs-muted);
	font-size: 0.9em;
	margin: 0.4em 0;
	flex-basis: 100%;
}

.lgbs-calendar {
	border: 1px solid var(--lgbs-line);
	border-radius: var(--lgbs-radius);
	padding: 10px;
}

.lgbs-busy {
	opacity: 0.5;
	pointer-events: none;
}

.lgbs-cal-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
	text-transform: capitalize;
}

/* Month arrows: round buttons big enough to tap (the theme gives buttons a grey box on hover). */
.lgbs .lgbs-cal-head button,
.lgbs .lgbs-cal-head button:hover,
.lgbs .lgbs-cal-head button:focus,
.lgbs .lgbs-cal-head button:active {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0 !important; /* the theme forces padding on every button (!important) */
	border: 1px solid var(--lgbs-line);
	border-radius: 50%;
	background: #fff;
	box-shadow: none;
	text-shadow: none;
	color: var(--lgbs-accent);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
}

/* The arrow inside: a drawn chevron. */
.lgbs .lgbs-chev {
	display: block;
	box-sizing: border-box;
	width: 12px;
	height: 12px;
	border-left: 3px solid var(--lgbs-accent);
	border-bottom: 3px solid var(--lgbs-accent);
}

.lgbs .lgbs-chev-prev {
	transform: translateX(3px) rotate(45deg);
}

.lgbs .lgbs-chev-next {
	transform: translateX(-3px) rotate(-135deg);
}

.lgbs .lgbs-cal-head button:hover {
	background: var(--lgbs-soft);
	border-color: var(--lgbs-accent);
}

.lgbs .lgbs-cal-head button:focus-visible {
	outline: 2px solid var(--lgbs-accent);
	outline-offset: 2px;
}

.lgbs-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 4px;
	text-align: center;
}

.lgbs-wd {
	font-size: 0.75em;
	color: var(--lgbs-muted);
	text-transform: uppercase;
}

.lgbs .lgbs-day {
	aspect-ratio: 1;
	min-height: 38px;
	min-width: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #bbb;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.lgbs .lgbs-day.lgbs-ok {
	background: var(--lgbs-ok);
	color: var(--lgbs-ink);
	font-weight: 600;
	cursor: pointer;
}

.lgbs-day.lgbs-ok:hover {
	outline: 2px solid var(--lgbs-accent);
}

.lgbs .lgbs-day.lgbs-selected {
	background: var(--lgbs-accent);
	color: var(--lgbs-accent-ink);
}

.lgbs-day small {
	font-size: 0.6em;
	font-weight: 400;
	margin-top: 2px;
}

.lgbs-chosen {
	font-weight: 600;
	margin: 1em 0 0.3em;
	text-transform: capitalize;
}

.lgbs-time-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 0.6em;
}

.lgbs .lgbs-time {
	border: 1px solid var(--lgbs-line);
	background: #fff;
	border-radius: 999px;
	padding: 0.5em 1em;
	cursor: pointer;
}

.lgbs .lgbs-time.lgbs-selected {
	background: var(--lgbs-accent);
	border-color: var(--lgbs-accent);
	color: var(--lgbs-accent-ink);
}

.lgbs-price {
	font-size: 1.3em;
	font-weight: 700;
	margin: 0.6em 0 0;
}

/* Step 3: riders */

.lgbs-rider {
	border: 1px solid var(--lgbs-line);
	border-radius: var(--lgbs-radius);
	padding: 10px 12px 12px;
	margin: 0 0 12px;
	display: grid;
	grid-template-columns: 1fr 80px 1fr;
	gap: 10px;
}

.lgbs-rider legend {
	font-weight: 600;
	padding: 0 4px;
}

.lgbs-own-pass {
	grid-column: 1 / -1;
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 0.9em;
	cursor: pointer;
}

.lgbs .lgbs-own-pass input {
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	flex: none;
}

@media (max-width: 560px) {
	.lgbs-rider {
		grid-template-columns: 1fr 1fr;
	}
	.lgbs-field-name {
		grid-column: 1 / -1;
	}
}

.lgbs-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.9em;
}

.lgbs-field input,
.lgbs-field select,
.lgbs-field textarea {
	width: 100%;
	padding: 0.55em 0.6em;
	border: 1px solid #bbb;
	border-radius: 6px;
	background: #fff;
	font-size: 16px; /* stops iOS zooming in */
}

/* Step 4: instructor */

.lgbs-instructors {
	display: grid;
	gap: 8px;
}

.lgbs-choice {
	display: flex;
	align-items: center;
	gap: 12px;
	border: 1px solid var(--lgbs-line);
	border-radius: var(--lgbs-radius);
	padding: 10px 12px;
	cursor: pointer;
}

.lgbs-choice.lgbs-selected {
	border-color: var(--lgbs-accent);
	box-shadow: 0 0 0 1px var(--lgbs-accent);
}

.lgbs-choice input {
	accent-color: var(--lgbs-accent);
}

.lgbs-choice img,
.lgbs-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	flex: none;
}

.lgbs-avatar {
	background: var(--lgbs-soft);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
}

.lgbs-choice small {
	display: block;
	color: var(--lgbs-muted);
}

/* Step 5: summary */

.lgbs-summary dl {
	display: grid;
	grid-template-columns: fit-content( 45% ) 1fr; /* long labels wrap instead of squeezing the values */
	gap: 6px 16px;
	margin: 0 0 1em;
}

.lgbs-summary dt {
	color: var(--lgbs-muted);
}

.lgbs-summary dd {
	margin: 0;
	font-weight: 600;
}

.lgbs-summary dd::first-letter {
	text-transform: uppercase;
}

/* Several private days: the list of days uses the full width. */
.lgbs-summary .lgbs-wide {
	grid-column: 1 / -1;
}

.lgbs-summary dd.lgbs-wide {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 150px, 1fr ) );
	gap: 4px 12px;
	padding: 8px 12px;
	background: var(--lgbs-soft);
	border-radius: var(--lgbs-radius);
	font-weight: 500;
}

/* Messages */

.lgbs-error {
	background: #fdecea;
	color: #8a1c12;
	border-radius: 6px;
	padding: 0.6em 0.8em;
}

.lgbs-basket {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	background: var(--lgbs-ok);
	border-radius: var(--lgbs-radius);
	padding: 10px 14px;
	margin-bottom: 1em;
}

.lgbs-loading {
	color: var(--lgbs-muted);
}

.lgbs-waiver {
	margin-bottom: 1em;
}

.lgbs-voucher input {
	max-width: 220px;
	padding: 0.55em 0.6em;
	border: 1px solid #bbb;
	border-radius: 6px;
}

.lgbs-voucher-form {
	display: grid;
	gap: 10px;
}

/* Chosen lesson, above every step after the first. */
.lgbs .lgbs-lesson-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: #eaf1f6;
	border-left: 4px solid var(--lgbs-accent);
	border-radius: var(--lgbs-radius);
	padding: 12px 16px;
	margin: 0 0 16px;
}

.lgbs .lgbs-lesson-banner-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.lgbs .lgbs-lesson-banner-label {
	font-size: 13px;
	color: var(--lgbs-muted);
	text-transform: uppercase;
	letter-spacing: .04em;
}

.lgbs .lgbs-lesson-banner-name {
	font-size: 20px;
	color: var(--lgbs-accent);
}

.lgbs .lgbs-lesson-banner-price {
	font-size: 15px;
	color: var(--lgbs-ink);
}

.lgbs .lgbs-link {
	background: none;
	border: 0;
	padding: 6px 0;
	color: #0b55b0;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
	white-space: nowrap;
}

/* Private lessons: instructor choice above the calendar. */
.lgbs .lgbs-instructor-pick {
	margin: 0 0 16px;
}

.lgbs .lgbs-picks {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.lgbs .lgbs-pick {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px 6px 6px;
	border: 2px solid var(--lgbs-line);
	border-radius: 999px;
	background: #fff;
	color: var(--lgbs-ink);
	font: inherit;
	font-size: 15px;
	cursor: pointer;
	min-height: 44px;
}

.lgbs .lgbs-pick:first-child {
	padding-left: 14px;
}

.lgbs .lgbs-pick img,
.lgbs .lgbs-pick .lgbs-avatar {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 30px;
}

.lgbs .lgbs-pick.lgbs-selected {
	border-color: var(--lgbs-accent);
	background: #eaf1f6;
	font-weight: 600;
}

/* Participation declaration on the summary step. */
.lgbs .lgbs-waiver {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 16px 0;
	padding: 14px 16px;
	border: 2px solid var(--lgbs-line);
	border-radius: var(--lgbs-radius);
	background: #fff;
	font-size: 15px;
	line-height: 1.45;
	cursor: pointer;
}

.lgbs .lgbs-waiver input {
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
	margin: 1px 0 0;
	accent-color: var(--lgbs-accent);
}

.lgbs .lgbs-waiver.lgbs-selected {
	border-color: var(--lgbs-accent);
	background: #eaf1f6;
}

.lgbs .lgbs-waiver a {
	color: #0b55b0;
	text-decoration: underline;
}

/* Private lessons, several days: a time for each day. */
.lgbs .lgbs-day-times {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 8px 0 12px;
}

.lgbs .lgbs-day-time {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 8px 12px;
	border: 1px solid var(--lgbs-line);
	border-radius: var(--lgbs-radius);
	background: #fff;
}

.lgbs .lgbs-day-time select {
	min-width: 140px;
	padding: 6px 8px;
	font: inherit;
}

.lgbs .lgbs-price s {
	color: var(--lgbs-muted);
	font-weight: 400;
}
