/*
 Theme Name:        Uptown Charity Theme
 Text Domain:       uptown-child-charity
 Author:            April Auger
 Author URI:        https://aprilauger.com
 Description:       Charity is a child theme designed to be used alongside the Uptown theme.
 Template:          uptown
 Version:           1.0.0
 Requires at least: 6.4
 Tested up to:      6.4
 Requires PHP:      8.0
 License:           GNU General Public License v2 or later
 License URI:       http://www.gnu.org/licenses/gpl-2.0.html
*/

body {
	background-color: var(--xui-gray-100);
}

.subtitle {
	color: var(--xui-primary-darker);
	display: inline-block;
	font-size: var(--xui-font-size-xs);
	font-weight: 600;
	letter-spacing: 0.32em;
	line-height: 1;
	margin-bottom: 0.875rem;
	text-transform: uppercase;
}

.wp-block-image.is-style-rounded img {
	box-shadow: 1.25rem 1rem 0 0.15rem var(--xui-gray-200);
	height: auto;
	margin-bottom: 1.25rem;
	max-width: 100%;
	width: 450px;
}

@media (max-width: 991.98px) {
	.wp-block-image.is-style-rounded img {
		box-shadow: 0.75rem 0.5rem 0 0.15rem var(--xui-gray-200);
		width: 350px;
	}
}

.kt-blocks-accordion-header {
	font-weight: 600;
}

.wp-block-button.is-style-outline--1 .wp-block-button__link:hover {
	background: var(--xui-secondary);
	color: var(--xui-white);
	border-color: var(--xui-secondary);
}

.header-fixed-mt {
	padding-top: 100px;
}

/* ============================================================
   GLOBAL GRAVITY FORMS OVERRIDES
   ============================================================ */

.gform_wrapper {
	--gf-local-border-color: var(--xui-gray-400);
}

.gform_wrapper input[type='text'],
.gform_wrapper input[type='email'],
.gform_wrapper input[type='tel'],
.gform_wrapper input[type='url'],
.gform_wrapper input[type='password'],
.gform_wrapper input[type='number'],
.gform_wrapper textarea,
.gform_wrapper select {
	border: 0.0625rem solid var(--xui-gray-400);
	box-shadow: none !important;
}

.gform_wrapper .ginput_card_field,
.gform_wrapper .gform-theme-field-control {
	background: var(--xui-white);
	border: 0.09375rem solid var(--xui-gray-400);
	border-radius: 0.25rem;
	box-shadow: none !important;
}

.gform_wrapper input:focus,
.gform_wrapper textarea:focus,
.gform_wrapper select:focus,
.gform_wrapper .ginput_card_field:focus-within {
	border-color: var(--xui-gray-400);
	box-shadow: none !important;
	outline: none;
}

input,
select {
	box-shadow: none !important;
}

.gform_required_legend {
	display: none;
}

.gform_button {
	background: var(--xui-primary) !important;
	border-radius: 2rem !important;
	color: var(--xui-secondary) !important;
	font-size: var(--xui-font-size-sm) !important;
	font-weight: var(--xui-font-weight-semibold) !important;
	padding: 0.75rem 1.25rem !important;
	transition:
		background-color 0.3s ease,
		border-color 0.3s ease,
		color 0.3s ease !important;
}

.gform_button:hover {
	background: var(--xui-secondary) !important;
	color: var(--xui-white) !important;
}

/* ============================================================
   SELECT OVERRIDES
   ============================================================ */

.booking-form-modern select,
.gform_wrapper select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: none !important;
	box-shadow: none !important;
	outline: none !important;
}

.booking-form-modern select::-moz-focus-inner,
.gform_wrapper select::-moz-focus-inner {
	border: 0;
}

.booking-form-modern select:-moz-focusring,
.gform_wrapper select:-moz-focusring {
	color: transparent;
	text-shadow: 0 0 0 var(--xui-secondary);
}

.booking-form-modern select:focus,
.booking-form-modern select:hover,
.booking-form-modern select:focus-visible,
.gform_wrapper select:focus,
.gform_wrapper select:hover,
.gform_wrapper select:focus-visible {
	border-color: var(--xui-gray-400) !important;
	box-shadow: none !important;
	outline: none !important;
}

.booking-form-modern .ginput_container_select,
.gform_wrapper .ginput_container_select {
	position: relative;
}

.booking-form-modern .ginput_container_select::after,
.gform_wrapper .ginput_container_select::after {
	color: var(--xui-gray-600);
	content: '›';
	font-size: 1.25rem;
	line-height: 1;
	pointer-events: none;
	position: absolute;
	right: 1rem;
	top: 50%;
	transform: translateY(-50%) rotate(90deg);
}

#input_28_6,
#input_2_4 {
	max-width: 100%;
	width: 50rem;
}

/* ============================================================
   HERO
   ============================================================ */

.hero-content {
	max-width: 34.375rem;
}

@media (max-width: 61.99875rem) {
	.hero-content .wp-block-buttons {
		align-items: center;
		justify-content: center;
	}
}

.hero-content h1,
.hero-content p {
	text-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.4);
}

.hero p {
	background: rgba(0, 0, 0, 0.35);
	border-radius: 0.5rem;
	display: inline-block;
	padding: 0.5rem 0.75rem;
}

/* ============================================================
   SPLIDE PAGINATION
   ============================================================ */

.kb-splide .splide__pagination__page {
	background: var(--xui-gray-700) !important;
	border: 0;
	border-radius: 1rem;
	display: inline-block;
	height: 0.25rem;
	margin: 0.25rem;
	transition: opacity 0.2s ease-in-out;
	width: 2rem;
}

.kb-splide .splide__pagination__page.is-active {
	background: var(--xui-primary) !important;
}

/* ============================================================
   BOOKING FORM - MODERN STYLED LAYOUT
   Uses xUI design tokens
   ============================================================ */

.booking-form-modern {
	font-family: var(--xui-font-base);
	margin: 0 auto;
	max-width: 56.25rem;
}

.booking-form-modern .gform_heading {
	display: none;
}

.booking-form-modern .gform-body {
	background: transparent;
}

.booking-form-modern .gform_fields {
	display: block;
	padding: 0;
}

.booking-form-modern .gform_validation_container {
	display: none !important;
}

/* --- Form fields wrapper --- */
.gform-theme--framework input[type].gform-text-input-reset {
	background: transparent !important;
}

#gform_fields_2 {
	background: var(--xui-gray-50);
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	border-radius: var(--xui-radius-lg);
	padding: var(--xui-space-4) var(--xui-space-5);
}

/* --- Field labels --- */
.booking-form-modern legend.gfield_label,
.gfield_label.gform-field-label {
	color: var(--xui-secondary) !important;
	font-family: var(--xui-font-heading);
	font-size: 1.25rem !important;
	font-weight: var(--xui-font-weight-semibold) !important;
}

.booking-form-modern .gform-field-label--type-sub {
	color: var(--xui-gray-600);
	font-size: var(--xui-font-size-xs);
	font-weight: var(--xui-font-weight-semibold);
}

/* --- Text inputs --- */
.booking-form-modern input[type='text'],
.booking-form-modern input[type='email'],
.booking-form-modern input[type='tel'],
.booking-form-modern select {
	background: var(--xui-white);
	border: 0.09375rem solid var(--xui-gray-400);
	border-radius: var(--xui-radius);
	box-sizing: border-box;
	color: var(--xui-secondary);
	font-family: var(--xui-font-base);
	font-size: 0.875rem;
	height: 3rem;
	line-height: 2.75rem;
	padding: 0 0.875rem;
	transition: border-color var(--xui-duration-1) var(--xui-ease-standard);
	width: 100%;
}

/* ============================================================
   SECTION 1: STUDENT INFORMATION
   ============================================================ */

/* Name fields grid - matches phone/email two column layout */
.booking-form-modern .ginput_container_name.gform-grid-row {
	display: grid;
	gap: var(--xui-space-3);
	grid-template-columns: 1fr 1fr;
}

/* Phone and email - two column layout matching name fields above */
.booking-form-modern #field_2_18,
.booking-form-modern #field_2_25 {
	box-sizing: border-box;
	display: inline-block;
	margin-bottom: var(--xui-space-3);
	margin-top: var(--xui-space-4);
	vertical-align: top;
	width: calc(50% - 0.0625rem);
}

@media (min-width: 992px) {
	.booking-form-modern #field_2_18 {
		padding-right: 0.75rem;
	}

	.booking-form-modern #field_2_25 {
		padding-left: 0.75rem;
	}
}

.booking-form-modern #field_2_25 {
	padding-right: 0;
	width: 50%;
}

/* ============================================================
   SECTION 2: RIDER DETAILS
   ============================================================ */

.booking-form-modern .rider-details-row {
	display: flex;
	gap: 3rem;
	margin-top: var(--xui-space-4);
}

.rider-details-row {
	margin-bottom: 2rem;
}

.rider-details-row fieldset {
	margin-bottom: 2rem;
}

.booking-form-modern #field_2_21,
.booking-form-modern #field_2_22,
.booking-form-modern #field_2_23 {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	padding: 0;
	width: auto;
}

/* ============================================================
   RADIO BUTTONS
   ============================================================ */

.booking-form-modern .gchoice {
	align-items: center;
	display: flex;
}

.booking-form-modern .gchoice input[type='radio'] {
	appearance: none;
	-webkit-appearance: none;
	background: var(--xui-white);
	border: 0.125rem solid var(--xui-gray-500);
	border-radius: var(--xui-radius-pill);
	cursor: pointer;
	flex-shrink: 0;
	height: 1rem;
	margin-right: 0.625rem;
	min-width: 1rem;
	transition: all var(--xui-duration-1) var(--xui-ease-standard);
	width: 1rem;
}

.booking-form-modern .gchoice input[type='radio']:checked {
	background: var(--xui-primary);
	border-color: var(--xui-primary);
	box-shadow: inset 0 0 0 0.1875rem var(--xui-white);
}

.booking-form-modern .gchoice label {
	color: var(--xui-secondary);
	cursor: pointer;
	font-size: var(--xui-font-size-xs);
	font-weight: var(--xui-font-weight-normal);
	letter-spacing: normal;
	text-transform: none;
}

/* ============================================================
   SECTION 3: CHOOSE CLASS
   ============================================================ */

.booking-form-modern #field_2_4 {
	border-bottom: none;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	margin-bottom: 0;
}

.booking-form-modern #field_2_4 .gfield_description {
	color: var(--xui-gray-600);
	font-size: 0.75rem;
	margin-bottom: var(--xui-space-2);
}

.booking-form-modern #field_2_19 {
	background: var(--xui-gray-300);
	border-radius: var(--xui-radius-lg);
	margin-bottom: var(--xui-space-4);
	padding: var(--xui-space-3) var(--xui-space-5);
}

.booking-form-modern #field_2_19 h3 {
	color: var(--xui-primary-darker);
	font-family: var(--xui-font-base);
	font-size: var(--xui-font-size-xs);
	font-weight: var(--xui-font-weight-medium);
	margin: var(--xui-space-1) 0;
}

.form-notes p {
	font-weight: 600;
	margin-bottom: 0.75rem;
}

.form-notes ul {
	margin: 0;
	padding-left: 1rem;
}

/* ============================================================
   SECTION 4: SELECT DATES + CALENDAR
   ============================================================ */

.booking-form-modern #field_2_1 {
	margin-bottom: var(--xui-space-3);
	overflow: visible;
}

.booking-form-modern #field_2_1::before {
	color: var(--xui-secondary);
	content: 'Select Your Lesson Dates';
	display: block;
	font-family: var(--xui-font-heading);
	font-size: 1.25rem;
	font-weight: var(--xui-font-weight-semibold);
	margin-top: var(--xui-space-4);
}

.booking-form-modern #field_2_1 > .gfield_label {
	display: none;
}

.booking-form-modern #gappointments_calendar {
	width: 100%;
}

.booking-form-modern .ga_monthly_schedule_wrapper,
.booking-form-modern #ga_appointments_calendar {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Calendar header */
.booking-form-modern .ga_appointments_calendar_header {
	align-items: center !important;
	background: transparent !important;
	border: none !important;
	border-bottom: 0.0625rem solid var(--xui-gray-200) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	display: flex !important;
	justify-content: center !important;
	margin: 0 !important;
	padding: 0 0 var(--xui-space-3) 0 !important;
}

.booking-form-modern .ga_appointments_calendar_header h3 {
	background: transparent !important;
	border: none !important;
	color: var(--xui-secondary) !important;
	font-family: var(--xui-font-heading) !important;
	font-size: 0.9375rem !important;
	font-weight: var(--xui-font-weight-bold) !important;
	letter-spacing: normal !important;
	margin: 0 !important;
	padding: 0 !important;
	text-transform: none !important;
}

.booking-form-modern .ga_appointments_calendar_header a {
	background: transparent !important;
	border: none !important;
	color: var(--xui-secondary) !important;
	font-size: 1rem !important;
	padding: 0 !important;
	text-decoration: none !important;
}

.booking-form-modern .ga_appointments_calendar_header a i {
	color: var(--xui-primary) !important;
}

/* Calendar table */
.booking-form-modern .table_fixed {
	background: transparent !important;
	border: none !important;
	border-collapse: collapse !important;
	table-layout: fixed !important;
	width: 100% !important;
}

.booking-form-modern thead tr {
	background: transparent !important;
}

.booking-form-modern .ga_header {
	background: var(--xui-gray-100) !important;
	border-bottom: 0.0625rem solid var(--xui-gray-200) !important;
	border-left: none !important;
	border-right: none !important;
	border-top: none !important;
	color: var(--xui-gray-600) !important;
	font-weight: var(--xui-font-weight-bold) !important;
	letter-spacing: 0.06em !important;
	padding: 0.625rem 0.25rem !important;
	text-align: center !important;
	text-transform: uppercase !important;
}

/* Day cells */
.booking-form-modern .table_fixed tbody td {
	background: transparent !important;
	border: none !important;
	height: 2.5rem !important;
	padding: 0.1875rem 0.125rem !important;
	text-align: center !important;
	vertical-align: middle !important;
}

.booking-form-modern .table_fixed tbody td span {
	align-items: center !important;
	background: transparent !important;
	border-radius: var(--xui-radius-pill) !important;
	display: flex !important;
	float: none !important;
	font-size: var(--xui-font-size-xs) !important;
	height: 2rem !important;
	justify-content: center !important;
	margin: 0 auto !important;
	position: static !important;
	transition:
		background var(--xui-duration-1) var(--xui-ease-standard),
		color var(--xui-duration-1) var(--xui-ease-standard) !important;
	width: 2rem !important;
}

.booking-form-modern td.day_available span {
	color: var(--xui-secondary) !important;
	cursor: pointer !important;
	font-weight: var(--xui-font-weight-medium) !important;
}

.booking-form-modern td.day_available:hover span {
	background: var(--xui-primary-light) !important;
	color: var(--xui-primary-dark) !important;
}

.booking-form-modern td.day_unavailable span {
	background: transparent !important;
	color: var(--xui-gray-400) !important;
	cursor: default !important;
}

.booking-form-modern td.ga_day_past {
	background: transparent !important;
}

.booking-form-modern td.ga_day_past span {
	color: var(--xui-gray-300) !important;
	cursor: default !important;
}

.booking-form-modern td.ga_day_future {
	background: transparent !important;
}

.booking-form-modern td.ga_day_future span {
	color: transparent !important;
}

.booking-form-modern td.ga_today span {
	background: transparent !important;
	border: 0.09375rem solid var(--xui-primary) !important;
	color: var(--xui-primary-dark) !important;
	font-weight: var(--xui-font-weight-bold) !important;
}

.booking-form-modern td.ga_selected span,
.booking-form-modern td.selected span {
	background: var(--xui-primary) !important;
	border: none !important;
	color: var(--xui-white) !important;
}

.booking-form-modern .ga_tooltip_wrapper,
.booking-form-modern .ga_tooltip_content {
	display: none !important;
}

/* gAppointments color overrides */
.ga_wrapper_small .ga_monthly_schedule_wrapper td.day_available:hover span,
.ga_wrapper_small .ga_monthly_schedule_wrapper td.selected span,
.ga_wrapper_medium .ga_monthly_schedule_wrapper td.day_available:hover span,
.ga_wrapper_medium .ga_monthly_schedule_wrapper td.selected span,
.ga_wrapper_large .ga_monthly_schedule_wrapper td.day_available:hover span,
.ga_wrapper_large .ga_monthly_schedule_wrapper td.selected span {
	background: var(--xui-primary) !important;
	border: 0.125rem solid var(--xui-primary) !important;
}

.ga_wrapper_small .ga_monthly_schedule_wrapper td.day_available:hover span,
.ga_wrapper_medium .ga_monthly_schedule_wrapper td.day_available:hover span,
.ga_wrapper_large .ga_monthly_schedule_wrapper td.day_available:hover span {
	background: var(--xui-primary-light) !important;
	border: 0.125rem solid var(--xui-primary-light) !important;
}

.ga_wrapper_small .ga_monthly_schedule_wrapper td.selected span,
.ga_wrapper_medium .ga_monthly_schedule_wrapper td.selected span,
.ga_wrapper_large .ga_monthly_schedule_wrapper td.selected span {
	background: var(--xui-primary) !important;
	border: 0.125rem solid var(--xui-primary) !important;
}

.ga_wrapper_small .ga_monthly_schedule_wrapper td.ga_today span,
.ga_wrapper_medium .ga_monthly_schedule_wrapper td.ga_today span,
.ga_wrapper_large .ga_monthly_schedule_wrapper td.ga_today span {
	border: 0.125rem solid var(--xui-primary) !important;
}

/* Slots section */
.booking-form-modern #ga_slots_data {
	border-top: 0.0625rem solid var(--xui-gray-200);
	margin-top: var(--xui-space-4);
	padding-top: var(--xui-space-3);
}

.booking-form-modern .slots-title {
	background: transparent !important;
	color: var(--xui-gray-600) !important;
	font-family: var(--xui-font-base) !important;
	font-size: var(--xui-font-size-xs) !important;
	font-weight: var(--xui-font-weight-bold) !important;
	letter-spacing: 0.06em !important;
	margin: var(--xui-space-3) 0 var(--xui-space-2) !important;
	padding: 0 !important;
	text-transform: uppercase !important;
}

.booking-form-modern .time_slot {
	background: var(--xui-white) !important;
	border: 0.09375rem solid var(--xui-gray-400) !important;
	border-radius: var(--xui-radius-pill) !important;
	color: var(--xui-secondary) !important;
	cursor: pointer !important;
	display: inline-block !important;
	font-family: var(--xui-font-base) !important;
	font-size: var(--xui-font-size-xs) !important;
	font-weight: var(--xui-font-weight-medium) !important;
	margin: var(--xui-space-1) !important;
	padding: 0.5rem 1.25rem !important;
	text-align: center !important;
	transition: all var(--xui-duration-1) var(--xui-ease-standard) !important;
}

.booking-form-modern .time_slot:hover {
	background: var(--xui-primary-light) !important;
	border-color: var(--xui-primary) !important;
	color: var(--xui-primary-dark) !important;
}

.booking-form-modern .time_slot.selected_slot {
	background: var(--xui-primary) !important;
	border-color: var(--xui-primary) !important;
	color: var(--xui-white) !important;
}

/* Calendar slots row */
#gappointments_calendar_slots td.calendar_slots {
	background: transparent !important;
	border: none !important;
	height: auto !important;
	padding: var(--xui-space-3) 0 0 0 !important;
}

.booking-form-modern .calendar_time_slots {
	background: var(--xui-gray-100);
	border: 0.0625rem solid var(--xui-gray-200);
	border-radius: var(--xui-radius-lg);
	margin-top: var(--xui-space-2);
	padding: var(--xui-space-3) var(--xui-space-4);
}

.booking-form-modern .calendar_time_slots .slots-title {
	background: transparent !important;
	border: none !important;
	color: var(--xui-gray-600) !important;
	font-family: var(--xui-font-base) !important;
	font-size: var(--xui-font-size-xs) !important;
	font-weight: var(--xui-font-weight-bold) !important;
	letter-spacing: 0.08em !important;
	margin: 0 0 var(--xui-space-2) 0 !important;
	padding: 0 !important;
}

.booking-form-modern .calendar_time_slots .time_slot {
	align-items: center !important;
	background: var(--xui-white) !important;
	border: 0.09375rem solid var(--xui-gray-400) !important;
	border-radius: var(--xui-radius-pill) !important;
	color: var(--xui-secondary) !important;
	cursor: pointer !important;
	display: inline-flex !important;
	font-family: var(--xui-font-base) !important;
	font-size: var(--xui-font-size-xs) !important;
	font-weight: var(--xui-font-weight-medium) !important;
	justify-content: center !important;
	margin: var(--xui-space-1) !important;
	padding: 0.625rem 1.5rem !important;
	transition: all var(--xui-duration-1) var(--xui-ease-standard) !important;
}

.booking-form-modern .calendar_time_slots .time_slot:hover {
	background: var(--xui-primary-light) !important;
	border-color: var(--xui-primary) !important;
	color: var(--xui-primary-dark) !important;
}

.booking-form-modern .calendar_time_slots .time_slot.time_selected,
#gappointments_calendar_slots label.time_selected {
	background: var(--xui-primary) !important;
	border-color: var(--xui-primary) !important;
	color: var(--xui-white) !important;
}

#gappointments_calendar_slots label.time_selected div {
	background: transparent !important;
	color: var(--xui-white) !important;
}

#gappointments_calendar_slots .slot_large label.time_slot div {
	color: var(--xui-secondary) !important;
	padding: 0;
}

.booking-form-modern .calendar_time_slots .slot_large {
	padding: 0 !important;
}

.booking-form-modern .calendar_time_slots .grid_no_pad {
	margin: 0 !important;
}

/* Spinner */
.ga_monthly_schedule_wrapper.ga_spinner:after {
	border-color: var(--xui-primary) transparent transparent !important;
}

/* Selected bookings */
.booking-form-modern #ga_selected_bookings {
	display: flex;
	flex-wrap: wrap;
	gap: var(--xui-space-2);
	margin-top: var(--xui-space-3);
}

#ga_selected_bookings .ga_selected_booking:last-child {
	margin-bottom: 0;
}

.booking-form-modern .ga_selected_booking {
	align-items: center;
	background: var(--xui-primary-light);
	border: 0.0625rem solid var(--xui-gray-300);
	border-radius: var(--xui-radius-pill);
	color: var(--xui-primary-darker);
	display: inline-flex;
	font-size: var(--xui-font-size-xs);
	font-weight: var(--xui-font-weight-medium);
	gap: var(--xui-space-2);
	padding: 0.3125rem 0.875rem;
}

.booking-form-modern .ga_delete_booking {
	color: var(--xui-primary-dark);
	cursor: pointer;
	font-size: 0.9375rem;
	line-height: 1;
}

/* Icon fallbacks */
.booking-form-modern .ga_appointments_calendar_header a i.fa-caret-left::before,
.booking-form-modern #ga_calendar_prev_month i::before {
	color: var(--xui-primary) !important;
	content: '❮';
	font-family: var(--xui-font-base) !important;
	font-size: 1.25rem !important;
	font-style: normal !important;
}

.booking-form-modern .ga_appointments_calendar_header a i.fa-caret-right::before,
.booking-form-modern #ga_calendar_next_month i::before {
	color: var(--xui-primary) !important;
	content: '❯';
	font-family: var(--xui-font-base) !important;
	font-size: 1.25rem !important;
	font-style: normal !important;
}

.booking-form-modern .ga_delete_booking i.fa-times-circle::before,
.booking-form-modern .ga_selected_booking i::before {
	content: '×' !important;
	font-family: var(--xui-font-base) !important;
	font-size: 1rem !important;
	font-style: normal !important;
	font-weight: var(--xui-font-weight-bold) !important;
}

/* ============================================================
   AGE NOTICE
   ============================================================ */

.booking-form-modern #field_2_15 {
	background: var(--xui-primary-light);
	border-radius: var(--xui-radius-lg);
	color: var(--xui-primary-darker);
	font-size: var(--xui-font-size-xs);
	margin-bottom: var(--xui-space-3);
	padding: var(--xui-space-2) var(--xui-space-4);
}

/* ============================================================
   HIDDEN FIELDS
   ============================================================ */

.booking-form-modern #field_2_20 {
	display: none;
}

/* ============================================================
   SECTION 5: PARTICIPANT AGREEMENT
   ============================================================ */

#field_2_26 {
	margin-bottom: 2rem !important;
}

.booking-form-modern #field_2_26::before {
	color: var(--xui-secondary);
	content: 'Participant Agreement';
	display: block;
	font-family: var(--xui-font-heading);
	font-size: 1.25rem;
	font-weight: var(--xui-font-weight-semibold);
	margin-bottom: var(--xui-space-2);
	padding-bottom: 0.25rem;
}

.booking-form-modern #field_2_26 > .gfield_label {
	display: none;
}

.booking-form-modern #field_2_26 .gfield_description {
	color: var(--xui-gray-700);
	font-size: var(--xui-font-size-xs);
	margin-bottom: var(--xui-space-3);
}

.booking-form-modern .gpnf-add-entry {
	background: var(--xui-primary);
	border: none;
	border-radius: var(--xui-radius-pill);
	color: var(--xui-white);
	cursor: pointer;
	font-family: var(--xui-font-base);
	font-size: var(--xui-font-size-xs);
	font-weight: var(--xui-font-weight-bold);
	letter-spacing: 0.05em;
	padding: 0.625rem var(--xui-space-4);
	transition: background var(--xui-duration-1) var(--xui-ease-standard);
}

.booking-form-modern .gpnf-add-entry:hover {
	background: var(--xui-primary-dark);
}

.booking-form-modern .gpnf-nested-entries {
	border-collapse: collapse;
	font-size: var(--xui-font-size-xs);
	margin-bottom: var(--xui-space-3);
	width: 100%;
}

.booking-form-modern .gpnf-nested-entries th {
	border-bottom: 0.0625rem solid var(--xui-gray-300);
	color: var(--xui-gray-600);
	font-size: var(--xui-font-size-xs);
	font-weight: var(--xui-font-weight-bold);
	letter-spacing: 0.06em;
	padding: var(--xui-space-2) var(--xui-space-3);
	text-align: left;
}

.booking-form-modern .gpnf-nested-entries td {
	color: var(--xui-secondary);
	padding: var(--xui-space-2) var(--xui-space-3);
}

button.edit-button.gform-theme-button--secondary {
	background: var(--xui-gray-400) !important;
	border: var(--xui-gray-200) !important;
	box-shadow: none !important;
	color: var(--xui-secondary) !important;
}

/* ============================================================
   SECTION 6: PAYMENT
   ============================================================ */

.booking-form-modern #field_2_28::before {
	color: var(--xui-secondary);
	content: 'Payment';
	display: block;
	font-family: var(--xui-font-heading);
	font-size: 1.25rem;
	font-weight: var(--xui-font-weight-semibold);
	margin-bottom: var(--xui-space-2);
	padding-bottom: 0.25rem;
}

.booking-form-modern #field_2_28 > legend > .gfield_label {
	display: none;
}

.booking-form-modern .gform_ppcp_payment_method {
	margin-bottom: var(--xui-space-3);
}

.booking-form-modern .gform_ppcp_payment_method select {
	max-width: 18.75rem;
}

/* ============================================================
   TOTAL FIELD
   ============================================================ */

#field_2_27 {
	background: transparent !important;
	margin-top: 2rem;
}

.booking-form-modern .ginput_total {
	background: transparent;
	border: none;
	color: var(--xui-primary-dark);
	font-family: var(--xui-font-heading);
	font-size: 1.5rem;
	font-weight: var(--xui-font-weight-bold);
	padding: 0;
	width: auto;
}

/* ============================================================
   SUBMIT BUTTON
   ============================================================ */

.booking-form-modern .gform-footer.gform_footer {
	background: var(--xui-gray-50);
	border-bottom-left-radius: var(--xui-radius-lg);
	border-bottom-right-radius: var(--xui-radius-lg);
	margin-top: 0 !important;
	padding: var(--xui-space-4) var(--xui-space-5) !important;
}

.booking-form-modern #gform_submit_button_2,
#gform_submit_button_2 {
	background: var(--xui-primary);
	border: none;
	border-radius: var(--xui-radius-pill);
	color: var(--xui-white);
	cursor: pointer;
	letter-spacing: 0.08em;
	transition: background var(--xui-duration-1) var(--xui-ease-standard);
	width: auto;
}

.booking-form-modern #gform_submit_button_2:hover,
#gform_submit_button_2:hover {
	background: var(--xui-primary-dark);
}

/* ============================================================
   VALIDATION
   ============================================================ */

.booking-form-modern .gfield_error {
	border-color: var(--xui-danger) !important;
}

.booking-form-modern .validation_message {
	color: var(--xui-danger);
	font-size: 0.75rem;
	font-weight: var(--xui-font-weight-medium);
	margin-top: var(--xui-space-1);
}

.booking-form-modern .gform_validation_errors {
	background: transparent;
	border: 0.0625rem solid var(--xui-danger);
	border-radius: var(--xui-radius-lg);
	margin-bottom: var(--xui-space-4);
	padding: var(--xui-space-3) var(--xui-space-4);
}

.booking-form-modern .gform_submission_error {
	color: var(--xui-danger);
	font-size: 0.875rem;
	font-weight: var(--xui-font-weight-semibold);
}

/* Error box - displayed as full block above submit button */
#booking-validation-error {
	border: 0.0625rem solid var(--xui-danger);
	border-radius: var(--xui-radius-lg);
	color: var(--xui-danger);
	display: block;
	font-size: var(--xui-font-size-xs);
	font-weight: var(--xui-font-weight-medium);
	margin-bottom: var(--xui-space-3);
	padding: var(--xui-space-3);
	width: 100%;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 47.99875rem) {
	.booking-form-modern #field_2_18,
	.booking-form-modern #field_2_25 {
		border-radius: 0;
		display: block;
		padding-right: 0;
		width: 100%;
	}

	.booking-form-modern #field_2_25 {
		border-bottom-left-radius: var(--xui-radius-lg);
		border-bottom-right-radius: var(--xui-radius-lg);
	}

	.rider-details-row {
		margin-bottom: 2rem !important;
	}

	.booking-form-modern .rider-details-row {
		flex-direction: column;
		gap: 0 !important;
	}

	.booking-form-modern #field_2_21,
	.booking-form-modern #field_2_22,
	.booking-form-modern #field_2_23 {
		width: 100% !important;
	}

	.booking-form-modern .ginput_container_name.gform-grid-row {
		grid-template-columns: 1fr;
	}

	.gfield--type-email {
		padding-right: 0;
	}
}
