.flight-search-container {
  background: #e7f5ff;
  padding: 20px;
  border-radius: 10px;
  font-family: Arial, sans-serif;
  max-width: 100%;
  position: relative;
}

.trip-type {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 16px;
}

.flight-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  background: white;
  padding: 20px;
  border-radius: 10px;
  position: relative;
}

.input-group {
  display: flex;
  flex-direction: column;
  min-width: 180px;
  position: relative;
}

.input-group label {
  font-weight: bold;
  margin-bottom: 4px;
  font-size: 14px;
}

.input-group input,
.input-group select {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.swap-icon {
  font-size: 24px;
  justify-content: center;
  align-items: center;
  display: flex;
  padding-top: 22px;
}

#search_button {
  margin-top: 22px;
  padding: 12px 20px;
  background-color: #2daeff;
  border: none;
  color: white;
  border-radius: 6px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  white-space: nowrap;
}

#passenger_dropdown_toggle {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  min-width: 220px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

#passenger_dropdown {
  display: none;
  position: absolute;
  background: #fff;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 12px;
  margin-top: 8px;
  z-index: 999;
  width: 320px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  font-size: 14px;
}

.traveller-section strong,
.class-section strong {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 15px;
}

.traveller-type {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.traveller-type span {
  font-size: 14px;
  font-weight: 500;
}

.traveller-type small {
  display: block;
  font-size: 11px;
  color: #666;
}

.counter {
  display: flex;
  align-items: center;
  gap: 10px;
}

.counter button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background: #f4f4f4;
  font-size: 18px;
  line-height: 1;
  text-align: center;
  cursor: pointer;
}

.counter span {
  font-weight: bold;
  font-size: 15px;
  min-width: 10px;
  display: inline-block;
}

.class-section {
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.class-section label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 14px;
}

.class-section input[type="radio"] {
  accent-color: #007bff;
  width: 16px;
  height: 16px;
}


/* Result flight */
#amadeus-flights-list {
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 16px;
}

.amaf-card {
  display: flex;
  justify-content: space-between;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  padding: 24px 28px;
  border-left: 5px solid #2daeff;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.amaf-leg {
  margin-bottom: 10px;
}

.amaf-leg-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #444;
}

.amaf-leg-info {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.amaf-time-block {
  text-align: center;
}

.amaf-time {
  font-size: 1.3rem;
  font-weight: 700;
  color: #222;
}

.amaf-loc {
  font-size: 0.95rem;
  color: #333;
}

.amaf-date {
  font-size: 0.85rem;
  color: #777;
}

.amaf-duration {
  text-align: center;
  font-weight: 600;
  color: #111;
}

.amaf-duration span {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: #555;
}

.amaf-card-right {
  text-align: right;
  min-width: 200px;
  margin-left: auto;
}

.amaf-plane-icon {
  font-size: 28px;
  margin-bottom: 6px;
  color: #5a4fff;
}

.amaf-airline-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 8px;
}

.amaf-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2daeff;
  margin-bottom: 4px;
}

.amaf-baggage {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 10px;
}

.amaf-book-btn {
  background-color: #2daeff;
  color: #fff;
  padding: 8px 20px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  margin-bottom: 6px;
  transition: background-color 0.3s ease;
}

.amaf-book-btn:hover {
  background-color: #219de0;
}

.amaf-details-link {
  font-size: 0.85rem;
  text-decoration: underline;
  color: #444;
}

.amaf-error {
  background: #fff4f4;
  color: #c0392b;
  padding: 12px;
  border-radius: 6px;
  margin: 10px 0;
  border-left: 4px solid #e74c3c;
}

/* Flight Fields Styling */
.flight-fields {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  flex-wrap: nowrap;
  margin-bottom: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.input-group label {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
}

.input-group input,
.input-group select {
  padding: 9px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.swap-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 22px;
  font-size: 24px;
  color: #2daeff;
}

/* Select2 override to match other inputs */
.select2-container {
  width: 100% !important;
}

.select2-container--default .select2-selection--single {
  height: 42px;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: normal;
  padding-left: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 8px;
  right: 8px;
}
