/* ==========================================================================
   Group Fare Booking — Premium Frontend UI
   ========================================================================== */

.gfb-flight-list,
.gfb-booking-page,
.gfb-confirmation {
	--gfb-font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--gfb-primary: #014B51;
	--gfb-primary-dark: #013a3f;
	--gfb-primary-soft: rgba(1, 75, 81, 0.1);
	--gfb-accent: #B5841C;
	--gfb-accent-hover: #967010;
	--gfb-header-bg: #014B51;
	--gfb-header-text: #ffffff;
	--gfb-surface: #ffffff;
	--gfb-surface-alt: #f0f7f7;
	--gfb-border: #d4e4e5;
	--gfb-text: #1a2e30;
	--gfb-text-muted: #5a7174;
	--gfb-success: #014B51;
	--gfb-danger: #c0392b;
	--gfb-radius: 12px;
	--gfb-radius-sm: 6px;
	--gfb-shadow: 0 4px 24px rgba(1, 75, 81, 0.1);
	--gfb-shadow-sm: 0 2px 8px rgba(1, 75, 81, 0.06);

	font-family: var(--gfb-font);
	color: var(--gfb-text);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
}

.gfb-widget-root,
.gfb-booking-wrap {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.gfb-flight-list *,
.gfb-booking-page *,
.gfb-confirmation * {
	box-sizing: border-box;
}

.gfb-svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.gfb-svg--arrow {
	width: 18px;
	height: 18px;
}

.gfb-svg--check {
	width: 32px;
	height: 32px;
}

/* ---- Flight List ---- */

.gfb-flight-list {
	width: 100%;
}

/* Filter bar */
.gfb-filters-bar {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 18px 20px;
	margin-bottom: 24px;
	background-color: var(--gfb-primary);
	border-radius: var(--gfb-radius);
	box-shadow: var(--gfb-shadow);
}

.gfb-filters-bar__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.gfb-filters-scroll {
	width: 100%;
	overflow: hidden;
}

.gfb-filters {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 4px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
}

.gfb-filters::-webkit-scrollbar {
	height: 4px;
}

.gfb-filters::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.35);
	border-radius: 4px;
}

.gfb-filters-bar__label {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	font-weight: 700;
	font-size: 1.05rem;
}

.gfb-filters-bar__icon .gfb-svg {
	width: 22px;
	height: 22px;
	stroke: #fff;
}

.gfb-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.gfb-filter-btn {
	border: 1px solid rgba(255, 255, 255, 0.25);
	padding: 9px 18px;
	border-radius: 999px;
	cursor: pointer;
	font-weight: 600;
	font-size: 0.875rem;
	font-family: inherit;
	transition: all 0.2s ease;
	background: rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.95);
	white-space: nowrap;
}

.gfb-filter-btn:hover {
	background: rgba(255, 255, 255, 0.22);
	transform: translateY(-1px);
}

.gfb-filter-btn.is-active {
	background-color: var(--gfb-accent);
	border-color: var(--gfb-accent);
	color: #fff;
	box-shadow: 0 4px 12px rgba(181, 132, 28, 0.35);
}

/* Route group card */
.gfb-route-group {
	margin-bottom: 28px;
	border: 1px solid var(--gfb-border);
	border-radius: var(--gfb-radius);
	overflow: hidden;
	background: var(--gfb-surface);
	box-shadow: var(--gfb-shadow-sm);
	transition: box-shadow 0.25s ease;
}

.gfb-route-group:hover {
	box-shadow: var(--gfb-shadow);
}

.gfb-route-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 24px;
	background-color: var(--gfb-surface-alt);
	border-bottom: 1px solid var(--gfb-border);
}

.gfb-route-header__left {
	flex-shrink: 0;
}

.gfb-airline-logo {
	background: #fff;
	border: 1px solid var(--gfb-border);
	border-radius: var(--gfb-radius-sm);
	padding: 8px 14px;
	box-shadow: var(--gfb-shadow-sm);
}

.gfb-airline-logo img {
	max-height: 44px;
	width: auto;
	display: block;
}

.gfb-airline-badge {
	background-color: var(--gfb-primary);
	color: #fff;
	padding: 10px 16px;
	border-radius: var(--gfb-radius-sm);
	font-weight: 700;
	font-size: 0.9rem;
}

.gfb-route-header__right {
	text-align: right;
	min-width: 0;
}

.gfb-route-title {
	margin: 0 0 4px;
	font-size: 1.15rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--gfb-primary);
}

.gfb-route-sub {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin: 0;
	font-size: 0.875rem;
	color: var(--gfb-text-muted);
	font-weight: 500;
}

.gfb-route-sub .gfb-svg--arrow {
	stroke: var(--gfb-primary);
}

/* Table */
.gfb-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.gfb-flight-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	min-width: 860px;
}

.gfb-flight-table thead th {
	background: var(--gfb-header-bg);
	color: var(--gfb-header-text);
	font-weight: 700;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 14px 16px;
	text-align: center;
	border: none;
	white-space: nowrap;
}

.gfb-flight-table thead th:first-child {
	border-radius: 0;
}

.gfb-flight-table tbody td {
	padding: 16px 14px;
	text-align: center;
	vertical-align: middle;
	border-bottom: 1px solid var(--gfb-border);
	background: var(--gfb-surface);
	transition: background 0.15s ease;
}

.gfb-flight-table tbody tr:last-child td {
	border-bottom: none;
}

.gfb-flight-table tbody tr:nth-child(even) td {
	background: var(--gfb-surface-alt);
}

.gfb-flight-table tbody tr:hover td {
	background: var(--gfb-primary-soft);
}

.gfb-flight-row--sold {
	opacity: 0.65;
}

.gfb-flight-row--sold:hover td {
	background: var(--gfb-surface-alt) !important;
}

/* Leg cells */
.gfb-cell-stack {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
}

.gfb-leg {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: center;
}

.gfb-leg__tag {
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--gfb-primary);
	background: var(--gfb-primary-soft);
	padding: 2px 6px;
	border-radius: 4px;
	width: 100%;
	text-align: center;
}

.gfb-leg__icon {
	display: flex;
	color: var(--gfb-text-muted);
}

.gfb-leg__icon .gfb-svg {
	width: 14px;
	height: 14px;
}

.gfb-leg__value {
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--gfb-text);
}

.gfb-leg__value--flight {
	font-family: ui-monospace, 'Cascadia Code', monospace;
	letter-spacing: 0.03em;
}

/* Badges */
.gfb-meal-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 12px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.8rem;
	text-transform: uppercase;
}

.gfb-meal-badge--yes {
	background: #dcfce7;
	color: var(--gfb-success);
}

.gfb-meal-badge--no {
	background: #fee2e2;
	color: var(--gfb-danger);
}

.gfb-meal-badge .gfb-svg {
	width: 14px;
	height: 14px;
}

.gfb-seats-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-weight: 700;
	font-size: 1rem;
	color: var(--gfb-text);
}

.gfb-seats-badge--low {
	color: var(--gfb-danger);
}

.gfb-seats-hint {
	display: block;
	margin-top: 4px;
	font-size: 0.7rem;
	font-weight: 600;
	color: var(--gfb-danger);
	text-transform: uppercase;
}

/* Fare & action */
.gfb-col-fare {
	min-width: 120px;
}

.gfb-fare-price {
	display: block;
	color: var(--gfb-accent);
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.gfb-fare-note {
	display: block;
	margin-top: 2px;
	font-size: 0.72rem;
	color: var(--gfb-text-muted);
	font-weight: 500;
}

.gfb-ref-id {
	display: inline-block;
	margin-bottom: 8px;
	padding: 3px 10px;
	background: var(--gfb-surface-alt);
	border: 1px solid var(--gfb-border);
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--gfb-text-muted);
	font-family: ui-monospace, monospace;
}

.gfb-book-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 110px;
	background-color: var(--gfb-accent);
	background-image: none;
	color: #fff;
	text-decoration: none;
	padding: 10px 22px;
	border-radius: var(--gfb-radius-sm);
	font-weight: 700;
	font-size: 0.875rem;
	font-family: inherit;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 4px 14px rgba(181, 132, 28, 0.3);
}

.gfb-book-btn:hover {
	background-color: var(--gfb-accent-hover);
	background-image: none;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(181, 132, 28, 0.4);
	color: #fff;
}

.gfb-sold-out {
	display: inline-block;
	padding: 8px 16px;
	background: #f1f5f9;
	color: var(--gfb-text-muted);
	border-radius: var(--gfb-radius-sm);
	font-weight: 700;
	font-size: 0.8rem;
	text-transform: uppercase;
}

/* Empty state */
.gfb-empty {
	padding: 60px 24px;
	text-align: center;
	background: var(--gfb-surface);
	border: 2px dashed var(--gfb-border);
	border-radius: var(--gfb-radius);
}

.gfb-empty__icon {
	display: inline-flex;
	padding: 16px;
	background: var(--gfb-primary-soft);
	border-radius: 50%;
	margin-bottom: 16px;
	color: var(--gfb-primary);
}

.gfb-empty__icon .gfb-svg {
	width: 32px;
	height: 32px;
}

.gfb-empty h3 {
	margin: 0 0 8px;
	font-size: 1.2rem;
}

.gfb-empty p {
	margin: 0;
	color: var(--gfb-text-muted);
}

.gfb-flight-row.is-hidden,
.gfb-route-group.is-hidden {
	display: none;
}

/* ---- Booking Page ---- */

.gfb-booking-page {
	display: grid;
	grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
	gap: 28px;
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 0 32px;
}

.gfb-summary-card {
	background: var(--gfb-surface);
	border: 1px solid var(--gfb-border);
	border-radius: var(--gfb-radius);
	overflow: hidden;
	box-shadow: var(--gfb-shadow);
	position: sticky;
	top: 24px;
}

.gfb-summary-card__head {
	display: flex;
	gap: 14px;
	padding: 24px;
	background-color: var(--gfb-primary);
	color: #fff;
}

.gfb-summary-logo {
	max-height: 48px;
	background: #fff;
	border-radius: 6px;
	padding: 6px 10px;
	flex-shrink: 0;
}

.gfb-summary-label {
	display: block;
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	opacity: 0.85;
	margin-bottom: 4px;
}

.gfb-summary-card__head h2 {
	margin: 0 0 4px;
	font-size: 1.1rem;
	font-weight: 800;
	line-height: 1.3;
}

.gfb-summary-airline {
	margin: 0;
	font-size: 0.875rem;
	opacity: 0.9;
}

.gfb-route-timeline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	background: var(--gfb-surface-alt);
	border-bottom: 1px solid var(--gfb-border);
}

.gfb-route-point {
	text-align: center;
	flex: 1;
}

.gfb-route-point__city {
	display: block;
	font-weight: 800;
	font-size: 1rem;
	color: var(--gfb-text);
}

.gfb-route-point__country {
	display: block;
	font-size: 0.75rem;
	color: var(--gfb-text-muted);
	margin-top: 2px;
}

.gfb-route-line {
	flex-shrink: 0;
	padding: 0 12px;
	color: var(--gfb-primary);
}

.gfb-route-line .gfb-svg {
	width: 24px;
	height: 24px;
	transform: rotate(90deg);
}

.gfb-summary-details {
	padding: 16px 24px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.gfb-detail-item {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.gfb-detail-item__label {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--gfb-text-muted);
}

.gfb-detail-item strong {
	font-size: 0.95rem;
}

.gfb-detail-item span:last-child {
	font-size: 0.85rem;
	color: var(--gfb-text-muted);
}

.gfb-summary-price-box {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 24px;
	background-color: rgba(181, 132, 28, 0.12);
	border-top: 1px solid rgba(181, 132, 28, 0.25);
}

.gfb-summary-price-box span {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--gfb-primary);
}

.gfb-summary-price-box strong {
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--gfb-accent);
}

/* Booking form */
.gfb-booking-form {
	background: var(--gfb-surface);
	border: 1px solid var(--gfb-border);
	border-radius: var(--gfb-radius);
	padding: 28px 32px;
	box-shadow: var(--gfb-shadow-sm);
	width: 100%;
	min-width: 0;
}

.gfb-form-section {
	margin-bottom: 24px;
	padding-bottom: 8px;
}

.gfb-form-section__title {
	margin: 0 0 16px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--gfb-primary);
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--gfb-primary);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.gfb-form-field {
	min-width: 0;
}

/* Form grid — Elementor-safe two column layout */
.gfb-booking-form .gfb-form-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0 16px;
	width: 100%;
}

.gfb-booking-form .gfb-form-grid--2 {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.gfb-booking-form .gfb-form-grid .gfb-form-row {
	width: 100%;
	min-width: 0;
}

.gfb-label {
	display: block;
	width: 100%;
	margin-bottom: 8px;
	font-weight: 600;
	font-size: 0.875rem;
	color: var(--gfb-text);
	line-height: 1.4;
}

.gfb-label .gfb-svg {
	display: inline-block;
	vertical-align: middle;
	margin-right: 4px;
	color: var(--gfb-primary);
}

/* Ticket type (Outbound / Return / Both) */
.gfb-leg-options {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	width: 100%;
}

.gfb-leg-option {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	padding: 14px 16px;
	border: 2px solid var(--gfb-border);
	border-radius: var(--gfb-radius-sm);
	background: var(--gfb-surface);
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
	position: relative;
	min-width: 0;
}

.gfb-leg-option input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.gfb-leg-option.is-active,
.gfb-leg-option:has(input:checked) {
	border-color: var(--gfb-accent);
	background: rgba(181, 132, 28, 0.08);
	box-shadow: 0 0 0 1px var(--gfb-accent);
}

.gfb-leg-option__title {
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--gfb-primary);
}

.gfb-leg-option__sub {
	font-size: 0.78rem;
	color: var(--gfb-text-muted);
	line-height: 1.3;
}

.gfb-leg-option__price {
	font-weight: 800;
	font-size: 0.95rem;
	color: var(--gfb-accent);
	margin-top: 4px;
}

.gfb-form-row--leg {
	margin-bottom: 0;
}

.gfb-form-header {
	margin-bottom: 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--gfb-border);
}

.gfb-form-header h2 {
	margin: 0 0 6px;
	font-size: 1.35rem;
	font-weight: 800;
}

.gfb-form-header p {
	margin: 0;
	color: var(--gfb-text-muted);
	font-size: 0.925rem;
}

.gfb-form-row {
	margin-bottom: 18px;
}

.gfb-form-row label,
.gfb-form-row .gfb-label {
	display: block;
	width: 100%;
	margin-bottom: 8px;
	font-weight: 600;
	font-size: 0.875rem;
	color: var(--gfb-text);
}

.gfb-form-row label .gfb-svg,
.gfb-form-row .gfb-label .gfb-svg {
	display: inline-block;
	vertical-align: middle;
	margin-right: 4px;
	color: var(--gfb-primary);
}

.gfb-form-row input,
.gfb-form-row select,
.gfb-form-row textarea,
.gfb-input {
	width: 100%;
	max-width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--gfb-border);
	border-radius: var(--gfb-radius-sm);
	font-size: 0.95rem;
	font-family: inherit;
	color: var(--gfb-text);
	background: var(--gfb-surface);
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
	display: block;
	margin: 0;
	min-height: 46px;
}

.gfb-textarea {
	min-height: 90px;
	resize: vertical;
}

.gfb-form-row input:focus,
.gfb-form-row select:focus,
.gfb-form-row textarea:focus,
.gfb-input:focus {
	outline: none;
	border-color: var(--gfb-primary);
	box-shadow: 0 0 0 3px rgba(1, 75, 81, 0.15);
}

.gfb-form-row--half {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 16px;
}

.gfb-form-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 20px;
	background-color: var(--gfb-surface-alt);
	border: 1px solid var(--gfb-border);
	border-radius: var(--gfb-radius-sm);
	margin: 8px 0 16px;
}

.gfb-form-total__label {
	display: block;
	font-weight: 700;
	font-size: 1rem;
}

.gfb-form-total small {
	color: var(--gfb-text-muted);
	font-size: 0.8rem;
}

.gfb-total-amount {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--gfb-accent);
}

.gfb-submit-btn {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 24px;
	background-color: var(--gfb-accent);
	background-image: none;
	color: #fff;
	border: none;
	border-radius: var(--gfb-radius-sm);
	font-size: 1rem;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 4px 16px rgba(181, 132, 28, 0.35);
}

.gfb-submit-btn .gfb-svg {
	stroke: #fff;
}

.gfb-submit-btn:hover {
	background-color: var(--gfb-accent-hover);
	background-image: none;
	transform: translateY(-2px);
	box-shadow: 0 6px 24px rgba(181, 132, 28, 0.45);
}

.gfb-submit-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
	transform: none;
}

.gfb-form-message {
	margin-bottom: 12px;
	font-weight: 600;
	font-size: 0.9rem;
}

.gfb-form-message.is-error { color: var(--gfb-danger); }
.gfb-form-message.is-success { color: var(--gfb-success); }

/* ---- Confirmation ---- */

.gfb-confirmation {
	max-width: 560px;
	margin: 40px auto;
	padding: 0 16px;
}

.gfb-confirmation-card {
	background: var(--gfb-surface);
	border: 1px solid var(--gfb-border);
	border-radius: var(--gfb-radius);
	padding: 40px 32px;
	text-align: center;
	box-shadow: var(--gfb-shadow);
}

.gfb-confirmation-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	background: #dcfce7;
	color: var(--gfb-success);
	border-radius: 50%;
	margin-bottom: 20px;
}

.gfb-confirmation-card h2 {
	margin: 0 0 8px;
	font-size: 1.5rem;
	font-weight: 800;
}

.gfb-confirmation-lead {
	margin: 0 0 28px;
	color: var(--gfb-text-muted);
}

.gfb-confirmation-details {
	text-align: left;
	background: var(--gfb-surface-alt);
	border-radius: var(--gfb-radius-sm);
	padding: 4px 0;
	margin-bottom: 24px;
}

.gfb-confirmation-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 20px;
	border-bottom: 1px solid var(--gfb-border);
	gap: 16px;
}

.gfb-confirmation-row:last-child {
	border-bottom: none;
}

.gfb-confirmation-row span {
	font-size: 0.875rem;
	color: var(--gfb-text-muted);
}

.gfb-confirmation-row strong {
	font-size: 0.925rem;
	text-align: right;
}

.gfb-confirmation-row--total {
	background: #fff7ed;
}

.gfb-confirmation-row--total strong {
	color: var(--gfb-danger);
	font-size: 1.1rem;
}

.gfb-confirmation-note {
	margin: 0;
	font-size: 0.875rem;
	color: var(--gfb-text-muted);
}

/* ---- Notices ---- */

.gfb-notice {
	padding: 20px 24px;
	border-radius: var(--gfb-radius-sm);
}

.gfb-notice--error {
	background: #fee2e2;
	color: var(--gfb-danger);
	border: 1px solid #fecaca;
}

.gfb-notice--success {
	background: #dcfce7;
	color: #166534;
	border: 1px solid #bbf7d0;
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
	.gfb-booking-page {
		grid-template-columns: 1fr;
	}

	.gfb-summary-card {
		position: static;
	}
}

@media (max-width: 768px) {
	.gfb-filters-bar {
		padding: 14px 16px;
	}

	.gfb-filters {
		flex-wrap: nowrap;
	}

	.gfb-route-header {
		flex-direction: column;
		text-align: center;
	}

	.gfb-route-header__right {
		text-align: center;
	}

	.gfb-route-sub {
		justify-content: center;
	}

	.gfb-form-row--half,
	.gfb-booking-form .gfb-form-grid--2 {
		grid-template-columns: 1fr;
	}

	.gfb-leg-options {
		grid-template-columns: 1fr;
	}

	.gfb-booking-form {
		padding: 20px;
	}
}

@media (max-width: 480px) {
	.gfb-route-title {
		font-size: 0.95rem;
	}

	.gfb-fare-price {
		font-size: 0.95rem;
	}

	.gfb-book-btn {
		min-width: 90px;
		padding: 9px 16px;
		font-size: 0.8rem;
	}
}

/* ---- Elementor compatibility ---- */

.elementor-widget-gfb_group_fare_list .gfb-widget-root,
.elementor-widget-gfb_group_fare_list .gfb-flight-list {
	width: 100%;
	max-width: 100%;
}

.elementor-widget-gfb_group_fare_list .gfb-flight-list {
	overflow: hidden;
}

.elementor-widget-gfb_group_fare_list .gfb-route-group {
	width: 100%;
}

.elementor-widget-gfb_group_fare_list .gfb-table-wrap {
	max-width: 100%;
}

.elementor-widget-gfb_group_fare_list .gfb-book-btn {
	background-image: none;
}

.elementor-widget-gfb_group_fare_list .gfb-book-btn:hover {
	background-image: none;
}

/* Prevent theme/Elementor from breaking form inputs on booking page & modal */
.gfb-booking-wrap .gfb-input,
.gfb-booking-wrap input.gfb-input,
.gfb-booking-wrap select.gfb-input,
.gfb-booking-wrap textarea.gfb-input,
.gfb-book-modal .gfb-input,
.gfb-book-modal input.gfb-input,
.gfb-book-modal select.gfb-input,
.gfb-book-modal textarea.gfb-input,
.gfb-modal .gfb-input,
.gfb-modal input.gfb-input,
.gfb-modal select.gfb-input,
.gfb-modal textarea.gfb-input {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	margin-bottom: 0 !important;
	flex: none !important;
	box-sizing: border-box !important;
	display: block !important;
	appearance: auto !important;
	-webkit-appearance: auto !important;
	background: #eef6fc !important;
	border: 1px solid #7eb8dc !important;
	border-radius: 4px !important;
	color: #1a2b32 !important;
	font-size: 0.875rem !important;
	line-height: 1.4 !important;
	padding: 8px 10px !important;
	min-height: 38px !important;
	opacity: 1 !important;
	visibility: visible !important;
}

.gfb-booking-wrap .gfb-form-grid .gfb-form-row,
.gfb-book-modal .gfb-form-row {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
}

.gfb-booking-form .gfb-form-grid {
	display: grid !important;
	width: 100% !important;
}

/* ---- Booking modal (Book Now popup) ---- */

.gfb-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	align-items: flex-start;
	justify-content: center;
	padding: 24px 16px;
	overflow-y: auto;
}

.gfb-modal.is-open {
	display: flex;
}

.gfb-modal.is-loading .gfb-modal__dialog {
	opacity: 0.7;
}

body.gfb-modal-open {
	overflow: hidden;
}

.gfb-modal__overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.gfb-modal__dialog {
	position: relative;
	width: min(1100px, 100%);
	margin: 20px auto 40px;
	z-index: 1;
}

.gfb-modal__close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 5;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	color: #333;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.gfb-modal__body {
	width: 100%;
}

.gfb-modal-loading {
	background: #fff;
	border-radius: 12px;
	padding: 48px 24px;
	text-align: center;
	color: var(--gfb-primary, #014b51);
	font-weight: 600;
}

.gfb-book-modal__card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.gfb-booking-wrap--page {
	max-width: 1100px;
	margin: 24px auto;
	padding: 0 16px;
}

.gfb-book-modal__header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 20px;
	border-bottom: 1px solid #e8edf0;
}

.gfb-book-modal__brand {
	display: flex;
	align-items: center;
	gap: 12px;
}

.gfb-book-modal__logo {
	width: 56px;
	height: 56px;
	object-fit: contain;
}

.gfb-book-modal__airline {
	display: block;
	font-size: 1rem;
	color: #333;
}

.gfb-book-modal__sector-label {
	display: block;
	font-size: 0.85rem;
	color: #1a9a55;
	font-weight: 600;
	margin-top: 4px;
}

.gfb-book-modal__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	font-size: 0.85rem;
	color: #1a9a55;
}

.gfb-book-modal__meta strong {
	color: #1a9a55;
}

.gfb-book-modal__sectors {
	padding: 12px 20px;
	background: #f8fafb;
	border-bottom: 1px solid #e8edf0;
}

.gfb-book-modal__sectors p {
	margin: 0 0 4px;
	font-size: 0.88rem;
	color: #333;
	font-weight: 500;
}

.gfb-book-modal__sectors p:last-child {
	margin-bottom: 0;
}

.gfb-booking-form {
	padding: 0;
}

.gfb-pricing-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border-bottom: 1px solid #e8edf0;
}

.gfb-pricing-col__head {
	background: var(--gfb-primary, #014b51);
	color: #fff;
	text-align: center;
	padding: 10px 8px;
	font-size: 0.85rem;
	font-weight: 700;
}

.gfb-pricing-col__body {
	padding: 10px 14px 14px;
	background: #fff;
	min-height: 140px;
}

.gfb-pricing-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	padding: 6px 0;
	font-size: 0.85rem;
}

.gfb-pricing-row span:first-child {
	font-weight: 600;
	color: #333;
}

.gfb-book-modal .gfb-input:focus,
.gfb-modal .gfb-input:focus {
	border-color: var(--gfb-primary, #014b51) !important;
	box-shadow: 0 0 0 2px rgba(1, 75, 81, 0.18) !important;
	outline: none !important;
}

.gfb-book-modal .gfb-input::placeholder,
.gfb-modal .gfb-input::placeholder {
	color: #6b8491;
	opacity: 1;
}

.gfb-pricing-row--total,
.gfb-pricing-row--grand {
	border-top: 1px dashed #dce3e8;
	margin-top: 6px;
	padding-top: 10px;
	font-weight: 700;
}

.gfb-pricing-row--grand .gfb-total-amount {
	color: #1a9a55;
	font-size: 1rem;
}

.gfb-stepper {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid #7eb8dc;
	border-radius: 4px;
	overflow: hidden;
	background: #eef6fc;
	flex-shrink: 0;
}

.gfb-stepper__btn {
	width: 34px;
	min-width: 34px;
	height: 34px;
	border: 0;
	background: #d4eaf8;
	color: var(--gfb-primary, #014b51);
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	transition: background-color 0.15s, color 0.15s;
}

.gfb-stepper__btn:hover:not(:disabled) {
	background: var(--gfb-primary, #014b51);
	color: #fff;
}

.gfb-stepper__btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.gfb-count-input {
	width: 46px !important;
	min-width: 46px !important;
	max-width: 46px !important;
	height: 34px;
	min-height: 34px !important;
	padding: 0 4px !important;
	text-align: center;
	border: 0 !important;
	border-left: 1px solid #7eb8dc !important;
	border-right: 1px solid #7eb8dc !important;
	border-radius: 0 !important;
	background: #fff !important;
	font-weight: 700;
	font-size: 0.9rem !important;
	color: #1a2b32 !important;
	-moz-appearance: textfield;
	pointer-events: none;
}

.gfb-count-input::-webkit-outer-spin-button,
.gfb-count-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.gfb-contact-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	padding: 16px 20px;
	border-bottom: 1px solid #e8edf0;
	background: #fff;
}

.gfb-contact-row .gfb-label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.85rem;
	font-weight: 600;
	color: #333;
}

.gfb-passenger-table-wrap {
	overflow-x: auto;
	padding: 12px 16px 16px;
	background: #fafcfd;
}

.gfb-passenger-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 0.82rem;
	min-width: 920px;
	table-layout: fixed;
}

.gfb-passenger-table th {
	background: var(--gfb-primary, #014b51);
	color: #fff;
	padding: 10px 8px;
	text-align: left;
	font-weight: 600;
	white-space: nowrap;
	border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.gfb-passenger-table th:last-child {
	border-right: 0;
}

.gfb-passenger-table td {
	padding: 10px 8px;
	border-bottom: 1px solid #dce8ef;
	vertical-align: middle;
	background: #fff;
}

.gfb-passenger-table tbody tr:nth-child(even) td {
	background: #f7fbfd;
}

.gfb-passenger-table .gfb-col-sr {
	width: 72px;
	font-weight: 600;
	color: var(--gfb-primary, #014b51);
	white-space: nowrap;
}

.gfb-passenger-table .gfb-col-title {
	width: 88px;
}

.gfb-passenger-table .gfb-col-name {
	width: 130px;
}

.gfb-passenger-table .gfb-col-passport {
	width: 120px;
}

.gfb-passenger-table .gfb-col-date {
	width: 132px;
}

.gfb-passenger-table .gfb-col-file {
	width: 130px;
}

.gfb-input--sm {
	padding: 8px 10px !important;
	font-size: 0.82rem !important;
	min-height: 36px !important;
}

.gfb-input--date {
	min-width: 0 !important;
}

.gfb-file-label {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 6px 10px;
	border: 1px dashed #7eb8dc;
	border-radius: 4px;
	background: #eef6fc;
	cursor: pointer;
	text-align: center;
}

.gfb-file-label:hover {
	border-color: var(--gfb-primary, #014b51);
	background: #e3f2fa;
}

.gfb-file-label__text {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--gfb-primary, #014b51);
	line-height: 1.2;
}

.gfb-file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.gfb-col-file {
	position: relative;
}

.gfb-book-modal__footer {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 16px;
	padding: 16px 20px 20px;
	border-top: 1px solid #e8edf0;
}

.gfb-cancel-btn {
	border: 0;
	background: none;
	color: #666;
	font-size: 0.9rem;
	cursor: pointer;
	text-decoration: underline;
	padding: 8px 4px;
}

.gfb-book-modal .gfb-submit-btn {
	min-width: 120px;
	padding: 10px 28px;
	border: 0;
	border-radius: 6px;
	background: var(--gfb-primary, #014b51);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.gfb-book-modal .gfb-submit-btn:hover {
	background: var(--gfb-accent, #b5841c);
}

.gfb-book-modal .gfb-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.gfb-book-modal .gfb-form-message {
	padding: 0 20px 8px;
	font-size: 0.85rem;
}

.gfb-book-modal .gfb-form-message.is-error {
	color: #c0392b;
}

.gfb-book-modal .gfb-form-message.is-success {
	color: #1a9a55;
}

@media (max-width: 768px) {
	.gfb-pricing-grid {
		grid-template-columns: 1fr;
	}

	.gfb-contact-row {
		grid-template-columns: 1fr;
	}

	.gfb-book-modal__meta {
		align-items: flex-start;
	}
}

