/**
 * Aerotravelo Flights — front-end styles.
 * Brand tokens: navy #0a1f44 · gold #c9a227 · page bg #f6f8fc ·
 * footer headings #7fb0ff · footer body #a9c6ff.
 */

.afb-search-card {
	background: #ffffff;
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 12px 40px rgba(10, 31, 68, 0.18);
	max-width: 1020px;
	margin: 0 auto;
}

.afb-trip-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 18px;
}

.afb-trip-tab {
	border: 1px solid #d8e1ec;
	background: #f6f8fc;
	color: #0a1f44;
	border-radius: 999px;
	padding: 8px 18px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.afb-trip-tab.afb-active {
	background: #0a1f44;
	border-color: #0a1f44;
	color: #ffffff;
}

.afb-field-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #0a1f44;
	margin-bottom: 8px;
}

.afb-cabin-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.afb-cabin-tab {
	border: 1px solid #d8e1ec;
	background: #f6f8fc;
	color: #0a1f44;
	border-radius: 999px;
	padding: 8px 18px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.afb-cabin-tab.afb-active {
	background: #0a1f44;
	border-color: #0a1f44;
	color: #ffffff;
}

.afb-search-form { width: 100%; }

.afb-search-row--top { margin-bottom: 14px; }

.afb-search-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.afb-search-grid .afb-field {
	min-width: 0;
}

.afb-field label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #53657d;
	margin-bottom: 6px;
}

.afb-field input,
.afb-field select {
	width: 100%;
	border: 1px solid #d8e1ec;
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 15px;
	color: #0a1f44;
	background: #ffffff;
	box-sizing: border-box;
}

.afb-field input:focus,
.afb-field select:focus {
	outline: 2px solid #c9a227;
	border-color: #c9a227;
}

.afb-search-submit { margin-top: 18px; }

.afb-search-note {
	margin: 12px 0 0;
	font-size: 12px;
	color: #53657d;
}

.afb-btn {
	display: inline-block;
	border: none;
	cursor: pointer;
	border-radius: 10px;
	padding: 12px 26px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	text-align: center;
}

.afb-btn--primary {
	background: #c9a227;
	color: #0a1f44;
}

.afb-btn--primary:hover { background: #d5ae3e; }

.afb-btn--pill { border-radius: 999px; }

.afb-btn--large { padding: 15px 34px; font-size: 17px; }

.afb-btn--ghost {
	background: transparent;
	border: 1px solid #d8e1ec;
	color: #0a1f44;
}

.afb-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.afb-notice {
	background: #f2f6ff;
	border: 1px solid #b8c9e4;
	border-radius: 10px;
	padding: 14px 18px;
	margin: 16px 0;
	color: #0a1f44;
	font-size: 14px;
}

.afb-notice--error { background: #fdecec; border-color: #f0a3a3; color: #8c1d1d; }
.afb-notice--warn { background: #fff8e1; border-color: #e6bd45; color: #7a5b00; }
.afb-notice--info { background: #eef4ff; border-color: #b8c9e4; }

.afb-results-head h2 { color: #0a1f44; margin: 0 0 4px; }
.afb-results-sub { color: #53657d; margin: 0 0 4px; }
.afb-results-disclosure { font-size: 12px; color: #53657d; margin: 0 0 12px; }

.afb-results-controls {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 18px;
	background: #ffffff;
	border: 1px solid #d8e1ec;
	border-radius: 12px;
	padding: 12px 16px;
}

.afb-results-controls label {
	font-size: 13px;
	color: #53657d;
	display: flex;
	align-items: center;
	gap: 8px;
}

.afb-results-controls select {
	border: 1px solid #d8e1ec;
	border-radius: 8px;
	padding: 8px 10px;
	font-size: 14px;
	color: #0a1f44;
}

.afb-offer-list { display: flex; flex-direction: column; gap: 14px; }

.afb-offer {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	background: #ffffff;
	border: 1px solid #d8e1ec;
	border-radius: 14px;
	padding: 18px 22px;
	flex-wrap: wrap;
}

.afb-offer__main { flex: 1 1 420px; }

.afb-offer__airline strong { color: #0a1f44; font-size: 16px; }
.afb-offer__airline span { color: #53657d; font-size: 13px; margin-left: 8px; }

.afb-offer__times {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 12px 0;
}

.afb-offer__leg strong { font-size: 20px; color: #0a1f44; display: block; }
.afb-offer__leg span { font-size: 12px; color: #53657d; }

.afb-offer__path { flex: 1; text-align: center; min-width: 120px; }

.afb-offer__duration { font-size: 12px; color: #53657d; display: block; }
.afb-offer__line { display: block; height: 2px; background: #c9a227; margin: 6px 0; border-radius: 2px; }
.afb-offer__stops { font-size: 12px; color: #53657d; }

.afb-offer__perks { display: flex; gap: 8px; flex-wrap: wrap; }

.afb-tag {
	background: #eef6f1;
	color: #16734a;
	font-size: 12px;
	font-weight: 600;
	border-radius: 999px;
	padding: 4px 12px;
}

.afb-offer__side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	gap: 6px;
	min-width: 180px;
}

.afb-offer__price { font-size: 24px; color: #0a1f44; }
.afb-offer__travellers { font-size: 12px; color: #53657d; }

.afb-deals {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.afb-deal {
	background: #ffffff;
	border: 1px solid #d8e1ec;
	border-radius: 14px;
	padding: 20px;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	gap: 4px;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.afb-deal:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 28px rgba(10, 31, 68, 0.12);
}

.afb-deal__city { font-size: 20px; font-weight: 800; color: #0a1f44; }
.afb-deal__route { font-size: 13px; color: #53657d; }
.afb-deal__from { font-size: 12px; color: #53657d; margin-top: 8px; }
.afb-deal__price { font-size: 22px; font-weight: 800; color: #c9a227; }

.afb-checkout h2, .afb-checkout h3, .afb-account h2 { color: #0a1f44; }

.afb-summary {
	background: #ffffff;
	border: 1px solid #d8e1ec;
	border-radius: 14px;
	padding: 20px 24px;
	margin-bottom: 20px;
}

.afb-summary h3 { margin-top: 0; color: #0a1f44; }
.afb-summary p { color: #53657d; margin: 4px 0; }

.afb-totals { width: 100%; border-collapse: collapse; margin-top: 12px; }
.afb-totals th { text-align: left; font-weight: 600; color: #53657d; padding: 8px 0; font-size: 14px; }
.afb-totals td { text-align: right; color: #0a1f44; padding: 8px 0; font-size: 14px; }
.afb-totals__grand th, .afb-totals__grand td { font-size: 18px; font-weight: 800; color: #0a1f44; border-top: 2px solid #c9a227; }

.afb-form-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
	margin-bottom: 20px;
}

.afb-card-element {
	border: 1px solid #d8e1ec;
	border-radius: 10px;
	padding: 14px;
	background: #ffffff;
	margin-bottom: 16px;
}

.afb-confirmation {
	text-align: center;
	max-width: 640px;
	margin: 0 auto;
}

.afb-confirmation__badge {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: #eef6f1;
	color: #16734a;
	font-size: 36px;
	line-height: 72px;
	margin: 0 auto 16px;
}

.afb-confirmation .afb-totals { text-align: left; margin: 20px 0; }

.afb-booking {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: center;
	background: #ffffff;
	border: 1px solid #d8e1ec;
	border-radius: 12px;
	padding: 16px 20px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

.afb-booking__info { display: flex; flex-direction: column; gap: 2px; }
.afb-booking__info strong { color: #0a1f44; }
.afb-booking__info span { font-size: 13px; color: #53657d; }

.afb-status {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	text-transform: capitalize;
	border-radius: 999px;
	padding: 3px 12px;
	width: fit-content;
}

.afb-status--confirmed { background: #eef6f1; color: #16734a; }
.afb-status--cancelled { background: #fdecec; color: #8c1d1d; }
.afb-status--pending { background: #fff8e1; color: #7a5b00; }

.afb-booking__total { display: flex; align-items: center; gap: 12px; }
.afb-booking__total strong { font-size: 18px; color: #0a1f44; }

@media (max-width: 760px) {
	.afb-search-grid { grid-template-columns: 1fr; }
	.afb-deals { grid-template-columns: 1fr; }
	.afb-form-grid { grid-template-columns: 1fr; }
	.afb-offer__side { align-items: flex-start; }
}
