.flight-search-wrapper {
  background: #eaf5ff;
  padding: 15px;
  border-radius: 10px;
}

.fbf-tab-button {
  justify-content: space-between;
  margin-bottom: 30px;
}

.fbf-tab-button {
  flex: 1;
  background: #d6eaff;
  border: none;
  padding: 15px;
  font-weight: bold;
  cursor: pointer;
}

.fbf-tab-button.active {
  background: #3778be;
  color: white;
  padding: 15px;
}

.trip-fields {
  display: none;
}

.trip-fields.active {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.multi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.search-btn,
.add-row-btn {
  background-color: orange;
  border: none;
  padding: 15px;
  color: white;
  cursor: pointer;
  font-weight: bold;
  border-radius: 6px;
  width: 100%;
  margin-top: 32px;
}

.search-btn {
    background: #28a745;
    color: #fff;
    padding: 20px;
}

.rp-row-btn {
  background-color: #000;
  border: none;
  padding: 10px;
  color: white;
  cursor: pointer;
  font-weight: bold;
  border-radius: 6px;
  margin-bottom: 30px;
}

.select-air {
    width: 100%;
    background: #f2f4f600;
    border: 1px solid var(--bs-neutral-200);
    box-shadow: none;
    font-size: 16px;
    color: var(--bs-neutral-1000);
    padding: 12px 15px 12px 15px;
    height: 56px;
    border-radius: 8px;
}

.cabin_class {
    width: 100%;
    border: 1px solid var(--bs-neutral-200);
    box-shadow: none;
    font-size: 16px;
    color: var(--bs-neutral-1000);
    padding: 12px 15px 12px 15px;
    height: 56px;
    border-radius: 8px;
}


.form-group input {
    background: #f2f4f600;
    border: 1px solid var(--bs-neutral-200);
    height: 56px;
    box-shadow: none;
    padding: 12px 15px 12px 15px;
    font-size: 16px;
    width: 100%;
    border-radius: 8px;
}

select {
    width: 100%;
    background: #000000ad;
    border: 1px solid var(--bs-neutral-200);
    box-shadow: none;
    font-size: 16px;
    color: var(--bs-neutral-1000);
    padding: 12px 15px 12px 15px;
    height: 56px;
    border-radius: 8px;
}

.full-width {
  grid-column: span 4;
}

/* Make the columns fill the row when return date is hidden */
#roundtrip-fields.oneway-mode .form-group {
    flex: 1 1 100%;
    max-width: 100%;
}


/* Mobile */
@media (max-width: 768px) {
  .form-row,
  .multi-row {
    grid-template-columns: 1fr;
  }
}







/* Step 2 */
  #traveller-step {
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 1200px;
    margin: auto;
  }
  
  .sub-btn {
    background: #f29039;
    color: #fff;
    padding: 15px;
    border-radius: 8px;
}

  .sub-btn:hover {
    background: #000;
    color: #fff;
    padding: 15px;
    border-radius: 8px;
}

  .traveller-group {
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    background: #f9f9f9;
    transition: all 0.3s ease-in-out;
  }

  .traveller-group h4 {
    margin-bottom: 20px;
    font-size: 1.25rem;
    color: #222;
  }

  .traveller-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
  }

  .traveller-grid label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
    color: #333;
  }
  
  input::placeholder {
  color: #999;        /* Change text color */
  font-size: 14px;    /* Adjust font size */
  font-style: italic; /* Optional styling */
  opacity: 1;         /* Make sure it's visible (default is 0.5 in some browsers) */
}


  .traveller-grid input,
  .traveller-grid select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    background-color: #fff;
    transition: border-color 0.2s;
  }

  .traveller-grid input:focus,
  .traveller-grid select:focus {
    border-color: #0073aa;
    outline: none;
  }

  #add-traveller {
    margin-top: 15px;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
  }

  #add-traveller:hover {
    background: #005f8a;
  }

  .search-btn,
  #back-to-step1 {
    padding: 17px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
  }

  .search-btn {
    background: #28a745;
    color: #fff;
  }

  .search-btn:hover {
    background: #218838;
  }

  #back-to-step1 {
    background: #ccc;
    color: #000;
  }

  #back-to-step1:hover {
    background: #bbb;
  }

 
/* ----------- Mobile Responsive Styling ----------- */
@media screen and (max-width: 768px) {
    
      .traveller-group .traveller-fields > div {
    flex: 1 1 100% !important;
  }

  .traveller-row {
    flex-direction: column; /* Stack fields on small screens */
    gap: 10px;
  }

  .traveller-row .form-group {
    width: 100%; /* Make inputs full-width under 768px */
  }

  .traveller-box {
    padding: 16px;
  }

  input, select, textarea {
    font-size: 14px;
    width: 100%;
  }

  .traveller-label {
    font-size: 13px;
  }
  
  #add-traveller {
      margin-bottom: 30px;
}
}
