/* Flight Search & Booking — front-end styles
   Palette: deep ink navy (text), warm sunset accent (primary action),
   cool horizon teal (secondary/links) — a nod to runway/sky without
   copying any particular airline's brand. */

.fsb-widget, .fsb-results-wrap, .fsb-modal {
	--fsb-ink: #101b2d;
	--fsb-ink-soft: #4a5a72;
	--fsb-line: #e2e7ee;
	--fsb-surface: #ffffff;
	--fsb-tint: #f4f7fb;
	--fsb-accent: #ef5b2b;
	--fsb-accent-dark: #d84c1f;
	--fsb-teal: #0e7c86;
	--fsb-teal-tint: #e6f3f4;
	--fsb-radius: 16px;
	--fsb-shadow: 0 10px 30px -12px rgba(16, 27, 45, 0.18);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--fsb-ink);
	box-sizing: border-box;
}
.fsb-widget *, .fsb-results-wrap *, .fsb-modal * { box-sizing: border-box; }

/* ---------------- Search widget ---------------- */

.fsb-widget {
	max-width: 960px;
	margin: 0 auto;
}

.fsb-toprow {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}

.fsb-pill-select {
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid var(--fsb-line);
	background: var(--fsb-surface);
	color: var(--fsb-ink);
	font-weight: 600;
	font-size: 13px;
	padding: 8px 30px 8px 14px;
	border-radius: 999px;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%234a5a72' stroke-width='1.6' fill='none' fill-rule='evenodd' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	transition: border-color 0.15s ease;
}
.fsb-pill-select:hover, .fsb-pill-select:focus-visible { border-color: var(--fsb-accent); outline: none; }

.fsb-searchbar {
	display: flex;
	align-items: stretch;
	background: var(--fsb-surface);
	border: 1px solid var(--fsb-line);
	border-radius: var(--fsb-radius);
	box-shadow: var(--fsb-shadow);
	padding: 6px;
	gap: 4px;
	flex-wrap: wrap;
}

.fsb-field {
	position: relative;
	flex: 1 1 150px;
	min-width: 130px;
	padding: 8px 14px;
	border-radius: 12px;
	transition: background-color 0.15s ease;
}
.fsb-field:hover, .fsb-field:focus-within { background: var(--fsb-tint); }

.fsb-field label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--fsb-ink-soft);
	margin-bottom: 2px;
}

.fsb-field input[type="text"],
.fsb-field input[type="date"] {
	width: 100%;
	border: 0;
	background: transparent;
	font-size: 15px;
	font-weight: 600;
	color: var(--fsb-ink);
	padding: 2px 0;
	font-variant-numeric: tabular-nums;
}
.fsb-field input[type="text"]:focus,
.fsb-field input[type="date"]:focus { outline: none; }
.fsb-field input::placeholder { color: #9aa7ba; font-weight: 500; }

.fsb-field-date { flex: 0 1 130px; }

.fsb-swap {
	flex: 0 0 auto;
	align-self: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid var(--fsb-line);
	background: var(--fsb-surface);
	color: var(--fsb-teal);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: transform 0.25s ease, background-color 0.15s ease;
	z-index: 1;
}
.fsb-swap:hover { background: var(--fsb-teal-tint); }
.fsb-swap.fsb-swapped { transform: rotate(180deg); }

.fsb-search-btn {
	flex: 0 0 auto;
	align-self: center;
	background: var(--fsb-accent);
	color: #fff;
	border: 0;
	font-weight: 700;
	font-size: 15px;
	padding: 14px 30px;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.1s ease;
	white-space: nowrap;
}
.fsb-search-btn:hover { background: var(--fsb-accent-dark); }
.fsb-search-btn:active { transform: scale(0.98); }
.fsb-search-btn:disabled { opacity: 0.6; cursor: default; }

.fsb-suggestions {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	background: var(--fsb-surface);
	border: 1px solid var(--fsb-line);
	border-radius: 12px;
	box-shadow: var(--fsb-shadow);
	max-height: 280px;
	overflow-y: auto;
	z-index: 20;
	padding: 6px;
}
.fsb-suggestion-item {
	padding: 9px 10px;
	border-radius: 8px;
	font-size: 13.5px;
	cursor: pointer;
}
.fsb-suggestion-item:hover { background: var(--fsb-teal-tint); }

.fsb-error {
	color: #b3261e;
	font-size: 13px;
	font-weight: 600;
	margin: 10px 4px 0;
}

@media (max-width: 720px) {
	.fsb-searchbar { flex-direction: column; }
	.fsb-swap { align-self: center; transform: rotate(90deg); margin: -4px auto; }
	.fsb-swap.fsb-swapped { transform: rotate(270deg); }
	.fsb-search-btn { width: 100%; padding: 14px; }
}

/* ---------------- Results page ---------------- */

.fsb-results-wrap { max-width: 780px; margin: 0 auto; }

.fsb-results-summary {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.fsb-results-note {
	color: var(--fsb-ink-soft);
	font-size: 13px;
	margin: 4px 0 20px;
}

.fsb-empty, .fsb-loading {
	padding: 32px 20px;
	text-align: center;
	color: var(--fsb-ink-soft);
	background: var(--fsb-tint);
	border-radius: var(--fsb-radius);
}

.fsb-flight-card {
	position: relative;
	background: var(--fsb-surface);
	border: 1px solid var(--fsb-line);
	border-radius: var(--fsb-radius);
	box-shadow: var(--fsb-shadow);
	margin-bottom: 16px;
	overflow: hidden;
}

.fsb-itin {
	padding: 16px 20px;
	border-bottom: 1px dashed var(--fsb-line);
}
.fsb-itin:last-of-type { border-bottom: none; }

.fsb-itin-times {
	font-size: 18px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.01em;
}
.fsb-itin-route {
	font-size: 13px;
	color: var(--fsb-ink-soft);
	margin-top: 2px;
	font-weight: 600;
}
.fsb-itin-meta {
	font-size: 12.5px;
	color: var(--fsb-ink-soft);
	margin-top: 4px;
}
.fsb-itin-operated {
	font-size: 11.5px;
	color: #8a93a3;
	font-style: italic;
}

.fsb-flight-price {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	background: var(--fsb-tint);
	position: relative;
}
/* boarding-pass-style perforation notches */
.fsb-flight-price::before,
.fsb-flight-price::after {
	content: "";
	position: absolute;
	top: -9px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--fsb-tint);
	border: 1px solid var(--fsb-line);
}
.fsb-flight-price::before { left: -9px; }
.fsb-flight-price::after { right: -9px; }

.fsb-price {
	font-size: 20px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	color: var(--fsb-ink);
}

.fsb-select-btn {
	background: var(--fsb-accent);
	color: #fff;
	border: 0;
	font-weight: 700;
	font-size: 14px;
	padding: 10px 22px;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.15s ease;
}
.fsb-select-btn:hover { background: var(--fsb-accent-dark); }

/* ---------------- Booking modal ---------------- */

.fsb-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(16, 27, 45, 0.55);
	backdrop-filter: blur(2px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	padding: 16px;
}

.fsb-modal {
	background: var(--fsb-surface);
	border-radius: 20px;
	max-width: 480px;
	width: 100%;
	max-height: 88vh;
	overflow-y: auto;
	padding: 28px 26px;
	position: relative;
	box-shadow: 0 24px 60px -12px rgba(16, 27, 45, 0.4);
}

.fsb-modal h2 { margin: 0 0 4px; font-size: 20px; }

.fsb-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: var(--fsb-tint);
	border: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	color: var(--fsb-ink-soft);
}
.fsb-modal-close:hover { background: var(--fsb-line); }

.fsb-modal-flight-summary {
	font-size: 13.5px;
	color: var(--fsb-ink-soft);
	font-weight: 600;
	margin-bottom: 18px;
	font-variant-numeric: tabular-nums;
}

.fsb-modal-tabs {
	display: flex;
	gap: 4px;
	background: var(--fsb-tint);
	border-radius: 999px;
	padding: 4px;
	margin-bottom: 18px;
}
.fsb-tab-btn {
	flex: 1;
	border: 0;
	background: transparent;
	padding: 9px 10px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 13.5px;
	color: var(--fsb-ink-soft);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.fsb-tab-btn.active { background: var(--fsb-surface); color: var(--fsb-ink); box-shadow: 0 2px 8px rgba(16,27,45,0.12); }

.fsb-tab-panel p { font-size: 13.5px; color: var(--fsb-ink-soft); margin-top: 0; }

.fsb-phone-btn {
	display: block;
	text-align: center;
	text-decoration: none;
	background: var(--fsb-teal-tint);
	color: var(--fsb-teal);
	font-weight: 700;
	padding: 13px;
	border-radius: 12px;
	margin-bottom: 10px;
	font-variant-numeric: tabular-nums;
}
.fsb-phone-btn:hover { background: #d7edee; }

.fsb-form-row { margin-bottom: 14px; }
.fsb-form-row label { display: block; font-size: 12.5px; font-weight: 700; color: var(--fsb-ink-soft); margin-bottom: 4px; }
.fsb-form-row input,
.fsb-form-row select,
.fsb-form-row textarea {
	width: 100%;
	border: 1px solid var(--fsb-line);
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 14px;
	font-family: inherit;
	color: var(--fsb-ink);
	background: var(--fsb-surface);
}
.fsb-form-row input:focus,
.fsb-form-row select:focus,
.fsb-form-row textarea:focus { outline: 2px solid var(--fsb-teal); outline-offset: 1px; }
.fsb-form-row textarea { min-height: 80px; resize: vertical; }

.fsb-submit-btn { width: 100%; margin-top: 4px; }

.fsb-form-message { font-size: 13.5px; font-weight: 600; padding: 10px 12px; border-radius: 10px; margin: 4px 0 12px; }
.fsb-form-message.fsb-success { background: #e5f6ec; color: #1a7a42; }
.fsb-form-message.fsb-error { background: #fbe9e7; color: #b3261e; }

@media (max-width: 480px) {
	.fsb-modal { padding: 22px 18px; }
}
