/**
 * [ao_edu_booking_form] — AO_Edu_Booking (plugin 2.329.0).
 *
 * Fields, labels, alerts and the button come from the theme's shared
 * .ao-form__* rules (dashboard.css, loaded site-wide), as for the Contact
 * form. This file adds the grouping and the radio / checkbox rows.
 */

.ao-edu-booking {
	max-width: 760px;
	margin-block: var(--space-6, 1.5rem);
}

.ao-edu-booking .ao-form__alert p {
	margin: 0;
}

.ao-edu-booking .ao-form__alert ul {
	margin: var(--space-2, 0.5rem) 0 0;
	padding-left: var(--space-5, 1.25rem);
}

.ao-edu-booking .ao-form__alert a {
	color: inherit;
	text-decoration: underline;
}

.ao-edu-booking__intro {
	margin-bottom: var(--space-5, 1.25rem);
}

.ao-edu-booking__group {
	margin: 0 0 var(--space-6, 1.5rem);
	padding: var(--space-5, 1.25rem) 0 0;
	border: 0;
	border-top: 1px solid var(--color-border, #e2e2e2);
	min-width: 0;
}

.ao-edu-booking__group[hidden] {
	display: none;
}

.ao-edu-booking__legend {
	padding: 0;
	margin: 0 0 var(--space-4, 1rem);
	font-family: var(--font-display, inherit);
	font-size: var(--text-lg, 1.125rem);
	font-weight: 700;
}

/* A radio / checkbox group is its own fieldset; drop the browser frame. */
.ao-edu-booking .ao-edu-booking__choices {
	margin: 0 0 var(--space-5, 1.25rem);
	padding: 0;
	border: 0;
	min-width: 0;
}

.ao-edu-booking__choices > legend {
	padding: 0;
	float: left;
	width: 100%;
}

.ao-edu-booking__options {
	clear: both;
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2, 0.5rem) var(--space-5, 1.25rem);
}

.ao-edu-booking__option {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	cursor: pointer;
	line-height: 1.4;
}

.ao-edu-booking__option input {
	width: 1.1em;
	height: 1.1em;
	margin: 0;
	accent-color: var(--color-primary, currentColor);
}

.ao-edu-booking__choices[aria-invalid="true"] .ao-edu-booking__options {
	padding: var(--space-2, 0.5rem);
	outline: 2px solid var(--color-error, #b42318);
	outline-offset: 2px;
	border-radius: var(--radius-sm, 4px);
}

.ao-edu-booking__fixed {
	margin: 0;
	font-weight: 600;
}

/* A hint under a two-field row (arrival / departure times). */
.ao-edu-booking__row-hint {
	margin: calc(-1 * var(--space-2, 0.5rem)) 0 var(--space-5, 1.25rem);
}

.ao-edu-booking__narrow .ao-form__input {
	max-width: 10rem;
}

.ao-edu-booking__space-req {
	margin: 0 0 var(--space-5, 1.25rem);
	padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
	background: var(--color-surface-alt, #f6f6f6);
	border-radius: var(--radius-md, 6px);
}

.ao-edu-booking__space-req[hidden] {
	display: none;
}

.ao-edu-booking__space-req p {
	margin: 0;
	white-space: pre-line;
}

.ao-edu-booking [data-ao-bk-funding][hidden] {
	display: none;
}

.ao-edu-booking .ao-form__checkbox-wrap {
	display: flex;
	align-items: flex-start;
	gap: 0.6em;
}

.ao-edu-booking .ao-form__checkbox-wrap .ao-form__checkbox {
	flex: none;
	margin-top: 0.2em;
}

.ao-edu-booking__turnstile {
	margin-bottom: var(--space-5, 1.25rem);
}

.ao-edu-booking .ao-edu-booking__submit {
	width: auto;
	min-width: 14rem;
}

.ao-edu-booking__submit[aria-disabled="true"] {
	opacity: 0.7;
	cursor: progress;
}

@media (max-width: 600px) {
	.ao-edu-booking .ao-edu-booking__submit {
		width: 100%;
	}
}
