.flight-search-section {
  position: relative;
  z-index: 2; /* above hero */
  margin-top: -100px; /* overlaps hero */
  display: flex;
  justify-content: center;
  background-color: transparent;
  padding: 0;
}

.flight-search-wrapper {
  width: 100%;
  background-color: #e8eefa; /* matches Awards section */
  display: flex;
  justify-content: center;
  padding: 40px 0 20px; /* spacing before card and Awards */
}

.flight-search {
  background-color: #fff;
  margin: 0 var(--global-h-spacing);
  width: 100%;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  margin-top: -80px; /* floats slightly over hero */
}

.trip-type {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.trip-type label {
  font-weight: bold;
  cursor: pointer;
}

.trip-type input[type="radio"] {
  margin-right: 5px;
}

/* ---------- Flight form row (inline fields) ---------- */
.flight-form-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap; /* wrap on small screens */
  margin-bottom: 15px;
}

.flight-form-row input {
  flex: 1;
}

.flight-form-row input[type="text"],
.flight-form-row input[type="date"] {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  width: 140px;
  box-sizing: border-box;
}

/* ---------- Passengers dropdown ---------- */
.passengers {
  position: relative;
  width: 150px; /* inline in form row */
}

.passengers-toggle {
  width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #fff;
  cursor: pointer;
  text-align: left;
}

.passengers-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 220px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #ccc;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 10;
  display: block; /* JS handles .hidden */
}

.pax {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.pax button {
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #aaa;
  background: #f0f0f0;
  cursor: pointer;
  transition: background 0.2s ease;
}

.pax button:hover {
  background: #e0e0e0;
}

/* Search button inline with form row */
.flight-submit-inline {
  background: linear-gradient(to bottom, #FF101B, #80080E);
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.flight-submit-inline:hover {
  background: #0056b3;
}

/* ---------- Flight options row ---------- */
.flight-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 15px;
}

.flight-options select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23666' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  cursor: pointer;
  width: 200px;
  box-sizing: border-box;
}

/* ---------- Hidden class ---------- */
.hidden {
  display: none !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .flight-form-row input,
  .passengers,
  .flight-submit-inline {
    width: 120px;
  }
}

@media (max-width: 768px) {
  .flight-form-row {
    flex-direction: column;
  }

  .flight-form-row input,
  .passengers,
  .flight-submit-inline {
    width: 100%;
  }

  .flight-options {
    flex-direction: column;
  }

  .passengers-dropdown {
    width: 100%;
  }

  .passengers-toggle {
    width: 100%;
  }
}
