/* ==========================================================================
   SkyTrade Aviation — Booking Forms
   Loaded on charter/helicopter/medevac/tours/empty-leg page templates.
   ========================================================================== */

.booking-page {
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
}

.booking-page--flush {
	padding-top: 0;
}

.trip-type-toggle {
	display: flex;
	background-color: var(--st-navy-light);
	border-radius: 4px;
	overflow: hidden;
}

.trip-type-toggle__option {
	flex: 1;
	padding: var(--st-space-sm) 0;
	background: none;
	border: none;
	color: var(--st-white-60);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.trip-type-toggle__option.is-active {
	color: var(--st-gold);
	background-color: rgba(201, 168, 76, 0.12);
}

.counter {
	display: flex;
	align-items: center;
	gap: var(--st-space-md);
}

.counter__btn {
	width: 42px;
	height: 42px;
	border: 1px solid var(--st-navy-mid);
	background: none;
	border-radius: 3px;
	color: var(--st-white-60);
	font-size: 18px;
	cursor: pointer;
}

.counter__btn:hover {
	border-color: var(--st-gold);
	color: var(--st-gold);
}

.counter__value {
	font-family: monospace;
	font-size: 18px;
	color: var(--st-white);
	min-width: 24px;
	text-align: center;
}

.category-pills {
	display: flex;
	flex-wrap: wrap;
	gap: var(--st-space-sm);
}

.category-pill {
	padding: var(--st-space-sm) var(--st-space-md);
	background-color: var(--st-navy-light);
	border: 1px solid var(--st-navy-mid);
	border-radius: 3px;
	color: var(--st-white-60);
	font-size: 12px;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.category-pill.is-active {
	border-color: var(--st-gold);
	color: var(--st-gold);
	background-color: rgba(201, 168, 76, 0.08);
}

.extra-chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--st-space-sm);
}

.extra-chip {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: var(--st-space-xs) var(--st-space-md);
	background-color: var(--st-navy-light);
	border: 1px solid var(--st-navy-mid);
	border-radius: 3px;
	color: var(--st-white-60);
	font-size: 12px;
	cursor: pointer;
}

.extra-chip input {
	width: auto;
	min-height: auto;
	accent-color: var(--st-gold);
}

.quote-loading {
	text-align: center;
	padding: var(--st-space-lg);
	color: var(--st-gold);
	font-size: 13px;
}

.booking-confirmation {
	text-align: center;
	max-width: 480px;
	margin: var(--st-space-3xl) auto;
}

.booking-confirmation__icon {
	width: 52px;
	height: 52px;
	margin: 0 auto var(--st-space-lg);
	border: 1px solid var(--st-green);
	border-radius: 50%;
	position: relative;
}

.booking-confirmation__icon::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 45%;
	width: 10px;
	height: 18px;
	border-right: 2px solid var(--st-green);
	border-bottom: 2px solid var(--st-green);
	transform: translate(-50%, -50%) rotate(45deg);
}

.booking-ref-card {
	background-color: var(--st-navy-light);
	border: 1px solid var(--st-navy-mid);
	border-radius: var(--st-radius-card);
	padding: var(--st-space-lg);
	margin: var(--st-space-lg) 0;
}

.booking-ref-card__label {
	color: var(--st-white-60);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 4px;
}

.booking-ref-card__value {
	font-family: monospace;
	color: var(--st-gold);
	font-size: 20px;
	font-weight: 700;
	margin-bottom: var(--st-space-md);
}

.trip-type-toggle--3 .trip-type-toggle__option {
	font-size: 10px;
}

.swap-row {
	display: flex;
	justify-content: center;
	margin: -6px 0;
	position: relative;
	z-index: 1;
}

.swap-btn {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid var(--st-navy-mid);
	background-color: var(--st-navy);
	color: var(--st-gold);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
	cursor: pointer;
}

.swap-btn:hover {
	border-color: var(--st-gold);
}

.leg-card {
	margin-bottom: var(--st-space-md);
}

.leg-card__number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background-color: rgba(201, 168, 76, 0.12);
	border: 1px solid rgba(201, 168, 76, 0.5);
	color: var(--st-gold);
	font-size: 11px;
	font-weight: 700;
}

.leg-remove {
	background: none;
	border: none;
	color: var(--st-white-60);
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	cursor: pointer;
	padding: 4px;
}

.leg-remove:hover {
	color: var(--st-red);
}

.toggle-switch {
	display: inline-block;
	position: relative;
}

.toggle-switch input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.toggle-switch__track {
	display: block;
	width: 46px;
	height: 26px;
	background-color: var(--st-navy-mid);
	border-radius: 13px;
	cursor: pointer;
	position: relative;
	transition: background-color 0.15s ease;
}

.toggle-switch__track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	background-color: var(--st-white);
	border-radius: 50%;
	transition: transform 0.15s ease;
}

.toggle-switch input:checked ~ .toggle-switch__track {
	background-color: var(--st-gold);
}

.toggle-switch input:checked ~ .toggle-switch__track::after {
	transform: translateX(20px);
}

.terms-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--st-space-lg);
}

.terms-modal[hidden] {
	display: none !important;
}

.terms-modal__backdrop {
	position: absolute;
	inset: 0;
	background-color: rgba(10, 22, 40, 0.85);
}

.terms-modal__panel {
	position: relative;
	z-index: 1;
	max-width: 480px;
	width: 100%;
	background-color: var(--st-navy-light);
	border: 1px solid var(--st-navy-mid);
	border-radius: var(--st-radius-card);
	padding: var(--st-space-lg);
}

/* Flight card (empty leg detail) */
.flight-card {
	padding: var(--st-space-lg);
	background: linear-gradient(135deg, var(--st-navy-light) 0%, var(--st-navy) 100%);
	border: 1px solid rgba(201, 168, 76, 0.3);
	border-radius: 8px;
}

.flight-card__badge {
	display: inline-block;
	padding: 3px 8px;
	background-color: rgba(201, 168, 76, 0.15);
	border: 1px solid rgba(201, 168, 76, 0.5);
	border-radius: 2px;
	color: var(--st-gold);
	font-size: 8px;
	letter-spacing: 0.15em;
	margin-bottom: var(--st-space-lg);
}

.flight-card__route {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--st-space-md);
}

.flight-card__code {
	font-family: monospace;
	font-size: 28px;
	font-weight: 700;
	color: var(--st-white);
}

.flight-card__city {
	color: var(--st-white-60);
	font-size: 13px;
}

.flight-card__airport-name {
	color: var(--st-white-60);
	font-size: 10px;
	margin-top: 2px;
}

.flight-card__airport--right {
	text-align: right;
}

.flight-card__mid {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	color: var(--st-gold);
	padding-top: 8px;
}

.flight-card__duration {
	font-size: 10px;
}

.flight-card__divider {
	height: 1px;
	background-color: rgba(201, 168, 76, 0.2);
	margin: var(--st-space-md) 0;
}

.flight-card__details {
	display: flex;
	gap: var(--st-space-lg);
}

.flight-card__detail-label {
	display: block;
	color: var(--st-white-60);
	font-size: 8px;
	letter-spacing: 0.1em;
}

.flight-card__detail-value {
	display: block;
	color: var(--st-white);
	font-size: 13px;
	font-weight: 600;
	margin-top: 2px;
}

.flight-card__price-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.flight-card__price {
	font-family: monospace;
	color: var(--st-gold);
	font-size: 22px;
	font-weight: 600;
	margin-top: 2px;
}

.flight-card__rate-badge {
	padding: 6px 10px;
	background-color: rgba(56, 161, 105, 0.12);
	border: 1px solid rgba(56, 161, 105, 0.4);
	border-radius: 3px;
	color: var(--st-green);
	font-size: 9px;
	letter-spacing: 0.1em;
}

.flight-card__note {
	margin-top: var(--st-space-md);
	padding: var(--st-space-sm) var(--st-space-md);
	background-color: rgba(255, 255, 255, 0.04);
	border-radius: 4px;
	color: var(--st-white-60);
	font-size: 12px;
	line-height: 1.5;
}

.included-badges {
	display: flex;
	flex-wrap: wrap;
	gap: var(--st-space-sm);
	margin-top: var(--st-space-sm);
}

.included-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px 10px;
	background-color: var(--st-navy-light);
	border: 1px solid var(--st-navy-mid);
	border-radius: 20px;
	color: var(--st-white-60);
	font-size: 11px;
}

.included-badge.is-included {
	background-color: rgba(56, 161, 105, 0.08);
	border-color: rgba(56, 161, 105, 0.4);
	color: var(--st-green);
}

/* Tours page */
.tour-country-group {
	margin-bottom: var(--st-space-lg);
}

.tour-scroll-row {
	display: flex;
	gap: var(--st-space-sm);
	overflow-x: auto;
	padding-bottom: var(--st-space-sm);
	scrollbar-width: thin;
}

.tour-card {
	flex-shrink: 0;
	width: 176px;
	padding: var(--st-space-md);
	background-color: var(--st-navy-light);
	border: 1px solid var(--st-navy-mid);
	border-radius: 6px;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.tour-card.is-selected {
	background-color: rgba(201, 168, 76, 0.10);
	border-color: var(--st-gold);
}

.tour-card__name {
	color: var(--st-white);
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
	min-height: 34px;
}

.tour-card__price {
	font-family: monospace;
	color: var(--st-gold);
	font-size: 11px;
}

.tour-card__addon {
	margin-top: 3px;
	color: var(--st-white-60);
	font-size: 9px;
}

.departure-pills {
	display: flex;
	flex-wrap: wrap;
	gap: var(--st-space-sm);
}

.price-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--st-space-md);
	margin-top: var(--st-space-lg);
	background-color: var(--st-navy-light);
	border: 1px solid rgba(201, 168, 76, 0.3);
	border-radius: var(--st-radius-card);
	color: var(--st-white-60);
	font-size: 12px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.price-summary__value {
	font-family: monospace;
	color: var(--st-gold);
	font-size: 20px;
	font-weight: 700;
	text-transform: none;
	letter-spacing: normal;
}

/* Emergency tab (medevac-specific — direct call/WhatsApp, no form) */
.emergency-banner {
	display: flex;
	align-items: center;
	gap: var(--st-space-sm);
	padding: var(--st-space-md);
	background-color: rgba(229, 62, 62, 0.08);
	border: 1px solid rgba(229, 62, 62, 0.6);
	border-radius: var(--st-radius-card);
	color: var(--st-red);
	font-size: 13px;
	margin-bottom: var(--st-space-lg);
}

.emergency-card {
	margin-bottom: var(--st-space-sm);
	padding: var(--st-space-md);
	background-color: var(--st-navy-light);
	border: 1px solid var(--st-navy-mid);
	border-radius: var(--st-radius-card);
}

.emergency-card__region {
	font-weight: 600;
	margin-bottom: var(--st-space-sm);
}

.emergency-card__actions {
	display: flex;
	gap: var(--st-space-sm);
}

.emergency-card__actions a {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 44px;
	border-radius: 3px;
	font-size: 12px;
	font-family: monospace;
}

.emergency-card__call {
	background-color: rgba(229, 62, 62, 0.12);
	border: 1px solid rgba(229, 62, 62, 0.4);
	color: var(--st-red);
}

.emergency-card__whatsapp {
	background-color: rgba(37, 211, 102, 0.1);
	border: 1px solid rgba(37, 211, 102, 0.4);
	color: #25D366;
}

/* Map picker (helicopter/medevac) */
.map-picker {
	height: 320px;
	border-radius: var(--st-radius-card);
	overflow: hidden;
	margin-bottom: var(--st-space-sm);
}

.map-picker-hint {
	color: var(--st-white-60);
	font-size: 12px;
	margin-bottom: var(--st-space-sm);
}

/* Tabs (medevac Emergency/Planned) */
.booking-tabs {
	display: flex;
	border-bottom: 1px solid var(--st-navy-mid);
	margin-bottom: var(--st-space-lg);
}

.booking-tab {
	flex: 1;
	padding: var(--st-space-sm) 0;
	text-align: center;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	color: var(--st-white-60);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
}

.booking-tab.is-active {
	color: var(--st-gold);
	border-bottom-color: var(--st-gold);
}

.booking-tab.is-active.booking-tab--alert {
	color: var(--st-red);
	border-bottom-color: var(--st-red);
}

/* Premium Quote Cards — bell-curve estimate visualization */

.quote-card--premium {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 22px 24px;
	background: var(--st-navy-light);
	border: 1px solid var(--st-navy-mid);
	border-radius: 14px;
	cursor: pointer;
	transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.quote-card--premium:hover {
	border-color: rgba(201, 168, 76, 0.4);
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.quote-card--premium.is-selected {
	border-color: var(--st-gold);
	background: rgba(201, 168, 76, 0.06);
}

.quote-card--premium + .quote-card--premium {
	margin-top: 14px;
}

.quote-card__top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
}

.quote-card__title {
	font-family: var(--st-font-display);
	font-size: 20px;
	font-weight: 700;
	color: var(--st-white);
	letter-spacing: 0.4px;
	line-height: 1.2;
}

.quote-card__subtitle {
	font-size: 12px;
	color: var(--st-white-60);
	margin-top: 3px;
}

.quote-card__duration {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	color: var(--st-white-60);
	white-space: nowrap;
	padding: 5px 10px;
	border: 1px solid var(--st-navy-mid);
	border-radius: 20px;
	flex-shrink: 0;
}

.quote-card__duration-icon {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	border: 1.5px solid var(--st-gold);
	position: relative;
	flex-shrink: 0;
}

.quote-card__duration-icon::after {
	content: '';
	position: absolute;
	top: 0.5px;
	left: 3px;
	width: 1px;
	height: 3px;
	background: var(--st-gold);
}

.quote-curve {
	width: 100%;
	height: 52px;
	display: block;
}

.quote-curve__fill {
	fill: rgba(201, 168, 76, 0.08);
}

.quote-curve__line {
	stroke: var(--st-gold);
	stroke-width: 1.5;
	opacity: 0.85;
}

.quote-curve__dot {
	fill: var(--st-gold);
}

.quote-card__price-row {
	display: flex;
	align-items: baseline;
	justify-content: center;
	padding: 2px 0;
}

.quote-card__price-value {
	font-family: var(--st-font-display);
	font-size: 26px;
	font-weight: 700;
	color: var(--st-gold);
	letter-spacing: 0.3px;
}

.quote-card__estimate-note {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding-top: 12px;
	border-top: 1px solid var(--st-navy-mid);
}

.quote-card__estimate-badge {
	flex-shrink: 0;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 1.5px;
	color: var(--st-navy);
	background: var(--st-gold);
	padding: 3px 8px;
	border-radius: 4px;
	margin-top: 1px;
}

.quote-card__estimate-text {
	font-size: 11px;
	line-height: 1.55;
	color: var(--st-white-60);
}

.quote-card__select {
	margin-top: 4px;
}

@media (max-width: 640px) {
	.quote-card__top {
		flex-direction: column;
		align-items: flex-start;
	}
}
