/* =============================== Hero Section =============================== */

.hero-section {
  width: 100%;
  height: 100vh;
  background: #181818;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

.hero-section h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #ff6b35;
}

/* =============================== Flights Container & Form =============================== */
.flights-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.flights-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #222;
  padding: 20px 24px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  max-width: 900px;
  width: 100%;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.flights-form input[type="text"] {
  background: #1f1f1f;
  color: #fff;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  flex: 1;
  min-width: 180px;
  transition: border 0.2s, background 0.2s;
}

.flights-form input[type="text"]:focus {
  border-color: #ff6b35;
  background: #2a2a2a;
  outline: none;
}

.flights-form button[type="submit"] {
  background: #ff6b35;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 12px 28px;
  font-size: 15px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.flights-form button[type="submit"]:hover {
  background: #e55a2c;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .form-row>* {
    width: 100%;
    max-width: 360px;
  }
}

/* General input styling reuse */
.input-text {
  background: #1f1f1f;
  color: #fff;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  flex: 1;
  min-width: 180px;
  transition: border 0.2s, background 0.2s;
}

.input-text:focus {
  border-color: #ff6b35;
  background: #2a2a2a;
  outline: none;
}

/* Contact Number Group */
.contact-number {
  display: flex;
  flex: 1;
  min-width: 220px;
  gap: 8px;
}

.contact-number .country-code {
  background: #1f1f1f;
  color: #fff;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 12px 10px;
  font-size: 15px;
  min-width: 80px;
  cursor: pointer;
  transition: border 0.2s, background 0.2s;
}

.contact-number .country-code:focus {
  border-color: #ff6b35;
  background: #2a2a2a;
  outline: none;
}

/* Responsive - Stack on mobile */
@media (max-width: 768px) {
  .contact-number {
    flex-direction: row;
    width: 100%;
  }

  .contact-number select, .contact-number input {
    flex: 1;
  }
}

/* =============================== Dropdown General Styling =============================== */
.dropdown {
  position: relative;
  /* min-width: 200px; */
}

.dropdown-btn {
  width: 100%;
  background: #1f1f1f;
  color: #fff;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 15px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border 0.2s, background 0.2s;
}

.dropdown-btn:hover, .dropdown.is-open .dropdown-btn {
  border-color: #ff6b35;
  background: #2a2a2a;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  background: #2b2b2b;
  border: 1px solid #444;
  border-radius: 10px;
  padding: 8px;
  z-index: 1000;
  min-width: 240px;
  box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.45);
  animation: fadeIn 0.25s ease;
}

.dropdown.is-open .dropdown-content {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================== Radio-Style Dropdowns (Trip & Class) =============================== */
.trip-dropdown .dropdown-content, .class-dropdown .dropdown-content {
  display: none;
  flex-direction: column;
  gap: 4px;
}

.trip-dropdown.is-open .dropdown-content, .class-dropdown.is-open .dropdown-content {
  display: flex;
}

.dropdown-content input[type="radio"] {
  display: none;
}

.dropdown-content label {
  display: block;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 6px;
  transition: background 0.2s;
  /* width: 100%; box-sizing: border-box; */
}

.dropdown-content label:hover {
  background: #3a3a3a;
}

.dropdown-content input[type="radio"]:checked+label {
  background: #ff6b35;
  color: #fff;
  font-weight: bold;
}

/* =============================== Passengers Dropdown Specifics =============================== */
.passengers .passenger-inner {
  padding: 4px 0;
}

.passengers .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
}

.passengers .labels {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.passengers .label-title {
  font-weight: 500;
}

.passengers .label-sub {
  font-size: 12px;
  color: #aaa;
}

.counter {
  display: flex;
  align-items: center;
  gap: 10px;
}

.counter button {
  background: #3a3a3a;
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.2s;
  padding: 0;
  line-height: 1;
}

.counter button:hover:not([disabled]) {
  background: #ff6b35;
}

.counter button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.counter input {
  width: 40px;
  background: transparent;
  border: none;
  color: #fff;
  text-align: center;
  font-size: 15px;
  font-weight: bold;
  pointer-events: none;
}

.dropdown-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid #444;
  margin-top: 8px;
}

.btn-cancel, .btn-done {
  background: transparent;
  color: #ff6b35;
  border: 1px solid transparent;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s ease;
}

.btn-done {
  background: #ff6b35;
  color: #fff;
}

.btn-cancel:hover {
  border-color: #ff6b35;
}

.btn-done:hover {
  background: #e55a2c;
}

/* =============================== NEW STYLES FOR DYNAMIC FORM =============================== */
.date-picker {
  background: #1f1f1f;
  color: #fff;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  flex: 1;
  min-width: 180px;
  transition: border 0.2s, background 0.2s;
}

.date-picker:focus {
  border-color: #ff6b35;
  background: #2a2a2a;
  outline: none;
}

.multi-city-leg {
  margin-bottom: 12px;
}

.multi-city-leg:last-of-type {
  margin-bottom: 0;
}

.remove-flight-btn {
  background: #444;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 20px;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
  padding: 0;
  margin-left: 8px;
  flex-shrink: 0;
  transition: background 0.2s;
}

.remove-flight-btn:hover {
  background: #ff3b30;
}

#add-flight-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  margin-right: auto;
}

#add-flight-btn:hover {
  background: #0056b3;
}

#form-actions-row {
  justify-content: flex-start;
}

#form-actions-row button[type="submit"] {
  margin-left: auto;
}

/* =============================== ALIGNMENT FIX FOR TOP ROW =============================== */
.top-options-row {
  justify-content: start;
  align-items: flex-end;
}

.dropdown-group-left {
  display: flex;
  gap: 12px;
}

