/**
 * Multi-step booking wizard — Apex-style layout.
 */

.rr-booking-wizard {
	max-width: 40rem;
	margin: 0 auto var(--wp--preset--spacing--70, 2rem);
	padding-left: clamp(0.75rem, 3vw, 1.25rem);
	padding-right: clamp(0.75rem, 3vw, 1.25rem);
}

.rr-booking-wizard__card {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
	padding: clamp(1.5rem, 4.5vw, 2.5rem) clamp(1.35rem, 5vw, 2.25rem);
	/* Isolate from dark site theme (ivory headings / mist text on reserve page) */
	--rr-wiz-text: #0f172a;
	--rr-wiz-label: #1e293b;
	--rr-wiz-muted: #475569;
	--rr-wiz-placeholder: #64748b;
	color: var(--rr-wiz-text);
}

/* Headings inside wizard must not inherit ivory from .rr-service-page / theme.json */
.rr-booking-wizard__card :where(h1, h2, h3, h4, h5, h6) {
	color: var(--rr-wiz-text);
	font-family: var(--wp--preset--font-family--outfit, system-ui, sans-serif);
}

.rr-booking-wizard__card :where(p, li, label, dt, dd, span, em) {
	color: inherit;
}

.rr-booking-wizard__card strong {
	color: var(--rr-wiz-text);
}

/* Step sections: no nested box — spacing comes from the card */
.rr-booking-wizard .rr-booking-panel {
	margin: 0;
	padding: 0;
	border: none;
	box-shadow: none;
	background: transparent;
}

.rr-booking-wizard__panels {
	margin-top: 0.25rem;
}

.rr-booking-wizard .is-hidden {
	display: none !important;
}

.rr-booking-wizard__steps-list {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	margin: 0 0 var(--wp--preset--spacing--60, 1.5rem);
	padding: 0;
	list-style: none;
	flex-wrap: wrap;
}

.rr-booking-wizard__step {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.75rem;
	color: #64748b;
}

.rr-booking-wizard__step::after {
	content: "›";
	margin-left: 0.35rem;
	color: #cbd5e1;
}

.rr-booking-wizard__step:last-child::after {
	content: none;
}

.rr-booking-wizard__step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.65rem;
	height: 1.65rem;
	border-radius: 50%;
	background: #e2e8f0;
	font-weight: 700;
	font-size: 0.7rem;
}

.rr-booking-wizard__step.is-active .rr-booking-wizard__step-num {
	background: var(--wp--preset--color--gold, #c9a962);
	color: #0a0b0d;
}

.rr-booking-wizard__step.is-done .rr-booking-wizard__step-num {
	background: #22c55e;
	color: #fff;
}

.rr-booking-wizard__step.is-active .rr-booking-wizard__step-label {
	color: #0f172a;
	font-weight: 600;
}

.rr-booking-panel__title {
	margin: 0 0 var(--wp--preset--spacing--50, 1.25rem);
	padding-top: 0.15rem;
	font-size: 1.35rem;
	font-weight: 700;
	color: #0f172a;
}

.rr-booking-field {
	display: flex;
	flex-direction: column;
	margin-bottom: var(--wp--preset--spacing--40, 1rem);
	min-width: 0;
}

.rr-booking-field > span {
	display: block;
	font-size: 0.8125rem;
	font-weight: 600;
	margin-bottom: 0.4rem;
	color: var(--rr-wiz-label, #1e293b);
	line-height: 1.3;
}

.rr-booking-field input:not([type="checkbox"]):not([type="radio"]),
.rr-booking-field select,
.rr-booking-field textarea {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	padding: 0.65rem 0.85rem;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: 1rem;
	line-height: 1.4;
	color: #0f172a;
	background-color: #fff;
}

.rr-booking-field input::placeholder,
.rr-booking-field textarea::placeholder {
	color: var(--rr-wiz-placeholder, #64748b);
	opacity: 1;
}

.rr-booking-field select {
	appearance: auto;
	color: #0f172a;
}

/* Pin icon on the label row (not inside the input) */
.rr-booking-field.rr-booking-field--places {
	display: grid;
	grid-template-columns: 1.125rem 1fr;
	column-gap: 0.5rem;
	row-gap: 0.4rem;
	align-items: center;
}

.rr-booking-field.rr-booking-field--places::before {
	content: "";
	grid-column: 1;
	grid-row: 1;
	width: 1.125rem;
	height: 1.125rem;
	justify-self: center;
	align-self: center;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a5 5 0 0 0-5 5c0 3.5 5 11 5 11s5-7.5 5-11a5 5 0 0 0-5-5zm0 7a2 2 0 1 1 0-4 2 2 0 0 1 0 4z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 1.125rem 1.125rem;
}

.rr-booking-field.rr-booking-field--places > span {
	grid-column: 2;
	grid-row: 1;
	margin-bottom: 0;
	align-self: center;
}

.rr-booking-field.rr-booking-field--places .rr-booking-places-input {
	grid-column: 1 / -1;
	grid-row: 2;
	padding-left: 0.85rem;
	background-image: none;
}

/* Google Places suggestion dropdown above wizard card */
.pac-container {
	z-index: 100050 !important;
	font-family: inherit;
	border-radius: 6px;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.rr-booking-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--wp--preset--spacing--40, 1rem);
	align-items: start;
}

.rr-booking-field-row > .rr-booking-field {
	margin-bottom: 0;
}

.rr-booking-field-row--thirds {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--40, 1rem);
	align-items: start;
}

.rr-booking-field-row--thirds > .rr-booking-field {
	margin-bottom: 0;
}

@media (max-width: 600px) {
	.rr-booking-field-row,
	.rr-booking-field-row--thirds {
		grid-template-columns: 1fr;
	}

	.rr-booking-field-row > .rr-booking-field,
	.rr-booking-field-row--thirds > .rr-booking-field {
		margin-bottom: var(--wp--preset--spacing--40, 1rem);
	}

	.rr-booking-field-row--thirds > .rr-booking-field:last-child {
		margin-bottom: 0;
	}
}

.rr-booking-roundtrip-block {
	margin-bottom: var(--wp--preset--spacing--40, 1rem);
	padding: var(--wp--preset--spacing--40, 1rem);
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	background: #f8fafc;
}

.rr-booking-roundtrip {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	margin: 0 0 var(--wp--preset--spacing--40, 1rem);
	cursor: pointer;
	line-height: 1.45;
}

.rr-booking-roundtrip input[type="checkbox"] {
	appearance: auto;
	width: 1.125rem;
	height: 1.125rem;
	min-width: 1.125rem;
	margin: 0.15rem 0 0;
	padding: 0;
	flex-shrink: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
	accent-color: var(--wp--preset--color--gold, #c9a227);
}

.rr-booking-roundtrip__text {
	flex: 1;
	min-width: 0;
}

.rr-booking-roundtrip__text strong {
	white-space: nowrap;
}

.rr-booking-roundtrip__note {
	display: inline;
	color: var(--rr-wiz-muted, #475569);
	font-weight: 400;
}

.rr-booking-roundtrip__return {
	margin-bottom: 0;
}

.rr-booking-field--datetime .rr-booking-datetime-input {
	padding-left: 0.85rem;
	padding-right: 2.5rem;
	background-image: none;
}

.rr-booking-field--datetime .rr-booking-datetime-input::-webkit-calendar-picker-indicator {
	cursor: pointer;
	opacity: 0.75;
	margin-left: 0.25rem;
}

.rr-booking-flight {
	padding: var(--wp--preset--spacing--40, 1rem);
	margin-bottom: var(--wp--preset--spacing--40, 1rem);
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	background: #f8fafc;
}

.rr-booking-flight__kicker {
	margin: 0 0 0.75rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rr-wiz-muted, #475569);
}

.rr-booking-hint {
	font-size: 0.8rem;
	color: var(--rr-wiz-muted, #475569);
	margin: 0.35rem 0 0;
}

.rr-booking-add-stop {
	width: 100%;
	margin-bottom: var(--wp--preset--spacing--40, 1rem);
	padding: 0.65rem;
	border: 1px dashed #cbd5e1;
	border-radius: 6px;
	background: transparent;
	cursor: pointer;
}

.rr-booking-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0.85rem 1.25rem;
	border: none;
	border-radius: 6px;
	font-weight: 700;
	cursor: pointer;
}

.rr-booking-btn--primary {
	background: var(--wp--preset--color--gold, #c9a962);
	color: #0a0b0d;
}

/* Full-width step actions (Continue, etc.) — space above fields */
.rr-booking-panel > .rr-booking-btn--primary {
	margin-top: var(--wp--preset--spacing--50, 1.25rem);
}

.rr-booking-btn--ghost {
	background: #f1f5f9;
	color: #0f172a;
}

.rr-booking-actions-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--wp--preset--spacing--40, 1rem);
}

.rr-booking-link {
	display: block;
	margin-top: var(--wp--preset--spacing--50, 1.25rem);
	background: none;
	border: none;
	color: var(--rr-wiz-muted, #475569);
	cursor: pointer;
	text-align: center;
	width: 100%;
}

.rr-booking-trip-summary {
	color: var(--rr-wiz-muted, #475569);
	margin: -0.5rem 0 0.35rem;
	font-size: 0.9rem;
}

.rr-booking-trip-meta {
	color: var(--rr-wiz-muted, #475569);
	margin: 0 0 var(--wp--preset--spacing--50, 1.25rem);
	font-size: 0.8rem;
}

.rr-booking-breakdown-toggle {
	display: inline-block;
	margin: 0.35rem 0 0;
	padding: 0;
	font-size: 0.8rem;
	color: var(--rr-wiz-muted, #475569);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.rr-booking-breakdown {
	margin-top: 0.5rem;
	padding: 0.65rem 0.75rem;
	background: #f8fafc;
	border-radius: 6px;
	border: 1px solid #e2e8f0;
	font-size: 0.8rem;
}

.rr-booking-breakdown__list {
	margin: 0;
}

.rr-booking-breakdown__list div {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.2rem 0;
}

.rr-booking-breakdown__list dt {
	margin: 0;
	font-weight: 600;
	color: var(--rr-wiz-label, #1e293b);
}

.rr-booking-breakdown__list dd {
	margin: 0;
	font-weight: 600;
	color: var(--rr-wiz-text, #0f172a);
}

.rr-booking-vehicle {
	display: grid;
	grid-template-columns: 120px 1fr auto;
	gap: var(--wp--preset--spacing--40, 1rem);
	align-items: center;
	padding: var(--wp--preset--spacing--40, 1rem);
	margin-bottom: var(--wp--preset--spacing--40, 1rem);
	border: 1px solid #e2e8f0;
	border-radius: 8px;
}

.rr-booking-vehicle__img {
	width: 120px;
	height: 72px;
	object-fit: cover;
	border-radius: 4px;
	background: #f1f5f9;
}

.rr-booking-vehicle__img--placeholder {
	min-height: 72px;
}

.rr-booking-vehicle__body h3 {
	margin: 0 0 0.35rem;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--rr-wiz-text, #0f172a);
}

.rr-booking-vehicle__cap,
.rr-booking-vehicle__desc {
	font-size: 0.85rem;
	color: var(--rr-wiz-muted, #475569);
	margin: 0.25rem 0;
}

.rr-booking-vehicle__price {
	margin: 0.5rem 0 0.25rem;
	font-size: 1rem;
	color: var(--rr-wiz-text, #0f172a);
}

.rr-booking-vehicle__price strong {
	font-size: 1.25rem;
	color: var(--rr-wiz-text, #0f172a);
}

.rr-booking-vehicle__price span {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--rr-wiz-muted, #475569);
}

.rr-booking-vehicle__book {
	width: auto;
	min-width: 8rem;
}

@media (max-width: 700px) {
	.rr-booking-vehicle {
		grid-template-columns: 1fr;
	}
	.rr-booking-vehicle__book {
		width: 100%;
	}
}

.rr-booking-child-seats {
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: var(--wp--preset--spacing--40, 1rem);
	margin-bottom: var(--wp--preset--spacing--40, 1rem);
}

.rr-booking-child-seats__head {
	display: flex;
	justify-content: space-between;
	margin: 0 0 0.75rem;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--rr-wiz-label, #1e293b);
}

.rr-booking-child-seats__head span {
	text-transform: none;
	letter-spacing: normal;
	font-weight: 400;
	color: var(--rr-wiz-muted, #475569);
}

.rr-booking-child-seat {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.5rem 0;
	border-top: 1px solid #f1f5f9;
}

.rr-booking-child-seat > span {
	color: var(--rr-wiz-label, #1e293b);
	font-weight: 500;
}

.rr-booking-child-seat em {
	color: var(--rr-wiz-muted, #475569);
	font-style: normal;
}

.rr-booking-qty {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.rr-booking-qty button {
	width: 2rem;
	height: 2rem;
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
}

.rr-booking-review {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.35rem 1rem;
	margin: 0 0 var(--wp--preset--spacing--60, 1.75rem);
	padding-bottom: var(--wp--preset--spacing--50, 1.25rem);
	border-bottom: 1px solid #e2e8f0;
	font-size: 0.9rem;
}

.rr-booking-review dt {
	font-weight: 600;
	color: var(--rr-wiz-label, #1e293b);
}

.rr-booking-review dd {
	color: var(--rr-wiz-text, #0f172a);
}

.rr-booking-tips {
	margin-bottom: var(--wp--preset--spacing--50, 1.25rem);
}

.rr-booking-tips__label {
	margin: 0 0 0.65rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--rr-wiz-label, #1e293b);
}

.rr-booking-tips__label span {
	font-weight: 400;
	color: var(--rr-wiz-muted, #475569);
}

.rr-booking-tips__buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0;
}

.rr-booking-tip {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 3.25rem;
	height: 2.75rem;
	padding: 0 0.9rem;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	background: #fff;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.rr-booking-tip:hover {
	border-color: #cbd5e1;
	background: #f8fafc;
}

.rr-booking-tip.is-active {
	background: var(--wp--preset--color--gold, #c9a962);
	border-color: var(--wp--preset--color--gold, #c9a962);
	color: #0a0b0d;
}

.rr-booking-tip-custom {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	flex: 0 0 auto;
}

.rr-booking-tip-custom__label {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--rr-wiz-label, #1e293b);
	white-space: nowrap;
}

.rr-booking-tip-custom__field {
	display: inline-flex;
	align-items: center;
	height: 2.75rem;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
}

.rr-booking-tip-custom__field:focus-within {
	border-color: var(--wp--preset--color--gold, #c9a227);
	box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

.rr-booking-tip-custom__field input {
	width: 3.25rem !important;
	min-width: 3.25rem;
	max-width: 3.75rem;
	height: 100%;
	margin: 0;
	padding: 0 0.25rem 0 0.55rem;
	border: none !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	font-size: 0.95rem;
	font-weight: 600;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

.rr-booking-tip-custom__field input::-webkit-outer-spin-button,
.rr-booking-tip-custom__field input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.rr-booking-tip-custom__suffix {
	padding-right: 0.55rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--rr-wiz-muted, #475569);
	line-height: 1;
}

.rr-booking-payment {
	margin-bottom: var(--wp--preset--spacing--50, 1.25rem);
	padding-bottom: var(--wp--preset--spacing--50, 1.25rem);
	border-bottom: 1px solid #e2e8f0;
}

.rr-booking-payment__label {
	margin: 0 0 0.65rem;
	font-size: 0.85rem;
	font-weight: 700;
	color: #0f172a;
}

.rr-booking-payment__label--confirm {
	margin-top: var(--wp--preset--spacing--40, 1rem);
}

.rr-booking-paypal-mount {
	margin-bottom: var(--wp--preset--spacing--40, 1rem);
	min-height: 2.75rem;
}

.rr-booking-btn--pay:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.rr-booking-wizard__message {
	margin-top: var(--wp--preset--spacing--40, 1rem);
	text-align: center;
	font-size: 0.9rem;
}

.rr-booking-wizard__message.is-error {
	color: #b91c1c;
}

.rr-booking-wizard.is-complete .rr-booking-wizard__card {
	opacity: 0.85;
	pointer-events: none;
}

/* Round-trip + status messages */
.rr-booking-wizard__card .rr-booking-roundtrip {
	color: var(--rr-wiz-label, #1e293b);
}

.rr-booking-wizard__card .rr-booking-roundtrip strong {
	color: var(--rr-wiz-text, #0f172a);
}

.rr-booking-wizard__message {
	color: var(--rr-wiz-label, #1e293b);
}

.rr-booking-wizard__card [data-gratuity],
.rr-booking-wizard__card [data-total] {
	color: var(--rr-wiz-text, #0f172a);
}
