/**
 * Pelican Units – Reservation form styles.
 *
 * Layout and typography for .booking-step-contract, .booking-step-page,
 * .phone-field, .form-checkbox etc. are provided by the theme.
 * This file adds reservation-specific elements.
 */

/* Business toggle --------------------------------------------------------- */
.booking-reservation-form__toggle {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	font-size: 15px;
	line-height: 1.4;
	color: #17191c;
}

/* Business fields animated reveal ----------------------------------------- */
.booking-reservation-form__business-fields {
	overflow: hidden;
	transition: max-height 0.25s ease, opacity 0.2s ease;
	max-height: 0;
	opacity: 0;
}

.booking-reservation-form__business-fields[hidden] {
	display: block;
	max-height: 0;
	opacity: 0;
	pointer-events: none;
}

.booking-reservation-form__business-fields.is-visible {
	max-height: 200px;
	opacity: 1;
	pointer-events: auto;
}

/* Error message (reuse step 2 pattern) ------------------------------------ */
.booking-step-contract__error {
	padding: 14px 18px;
	margin-bottom: 24px;
	border-radius: 10px;
	background: #fef2f2;
	border: 1px solid #fca5a5;
	color: #991b1b;
	font-size: 14px;
	line-height: 1.5;
}

/* Submit button loading state --------------------------------------------- */
.booking-step-contract__submit.is-loading {
	opacity: 0.6;
	pointer-events: none;
	cursor: wait;
}

/* Success message --------------------------------------------------------- */
.booking-reservation-form__success {
	text-align: center;
	padding: 48px 24px;
}

.booking-reservation-form__success .booking-step-contract__title {
	margin-bottom: 16px;
}

.booking-reservation-form__success p {
	font-size: 16px;
	line-height: 1.5;
	color: #5f6661;
	max-width: 440px;
	margin: 0 auto;
}

/* Timeslot picker --------------------------------------------------------- */
.booking-reservation-form__timeslots {
	margin-bottom: 24px;
}

.booking-reservation-form__loading {
	padding: 24px 0;
	color: #5f6661;
	font-size: 14px;
}

.booking-reservation-form__timeslot-date {
	font-weight: 800;
	font-size: 15px;
	line-height: 1.4;
	color: #17191c;
	margin-bottom: 12px;
	margin-top: 20px;
}

.booking-reservation-form__timeslot-date:first-child {
	margin-top: 0;
}

.booking-reservation-form__timeslot-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.booking-reservation-form__timeslot-option {
	position: relative;
}

.booking-reservation-form__timeslot-option input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.booking-reservation-form__timeslot-option label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 80px;
	padding: 10px 16px;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	background: #fff;
	font-size: 14px;
	line-height: 1.4;
	color: #17191c;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.booking-reservation-form__timeslot-option label:hover {
	border-color: #f47b00;
}

.booking-reservation-form__timeslot-option input[type="radio"]:checked + label {
	border-color: #f47b00;
	background: #fff5eb;
	color: #f47b00;
	font-weight: 600;
}

.booking-reservation-form__timeslot-option input[type="radio"]:focus-visible + label {
	outline: 2px solid #f47b00;
	outline-offset: 2px;
}

/* Timeslot submit disabled state ------------------------------------------ */
.js-reservation-timeslot-submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* No timeslots message ---------------------------------------------------- */
.booking-reservation-form__no-slots {
	padding: 24px 0;
	color: #5f6661;
	font-size: 15px;
	line-height: 1.5;
}

/* Phone field error state ------------------------------------------------- */
.phone-field.is-error {
	border-color: #f47b00 !important;
	box-shadow: 0 0 6px 0 rgba(244, 123, 0, 0.25);
}

