:root {
  --bg: #090c28;
  --bg2: #1a1442;
  --accent: #9b7bff;
  --accent2: #b97bff;
  --muted: #cbbaff;
  font-family: 'Inter', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(180deg, var(--bg), var(--bg2));
  color: #fff;
  min-height: 100vh;
}

/* NAV */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 36px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  font-weight: 800;
  letter-spacing: 1px;
  color: white;
  font-size: 1.2rem;
}

.nav nav a {
  margin-left: 18px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.nav nav a.active {
  color: var(--accent2);
}

/* ===== BOOKING CONTAINER ===== */
.booking-container {
  background: rgba(25, 10, 60, 0.7);
  border: 1px solid rgba(180, 120, 255, 0.4);
  box-shadow: 0 0 40px rgba(170, 120, 255, 0.5);
  border-radius: 20px;
  padding: 2rem 3rem;
  margin: 100px auto 40px;
  max-width: 1100px;
  transition: 0.3s;
  backdrop-filter: blur(12px);
  animation: glow 3s infinite alternate;
}

.booking-container:hover {
  transform: translateY(-5px);
}

/* ===== HEADINGS ===== */
.booking-container h1 {
  text-align: center;
  color: #fff;
  margin-bottom: 10px;
}

.booking-container p {
  text-align: center;
  color: #cbbaff;
  margin-bottom: 25px;
}

/* ===== FORM FIELDS ===== */
.form-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.labeled-field {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 180px;
}

.labeled-field label {
  color: #9b7bff;
  font-size: 0.85rem;
  margin-bottom: 5px;
}

/* ===== INPUTS ===== */
input {
  background: #13003b;
  border: 1px solid rgba(160, 120, 255, 0.5);
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  width: 100%;
  outline: none;
  font-size: 0.95rem;
  transition: all 0.3s;
}

input:focus {
  border-color: #b97bff;
  box-shadow: 0 0 15px rgba(190, 130, 255, 0.8);
}

/* ===== BUTTON ===== */
.btn {
  background: linear-gradient(90deg, #7a3cff, #b27cff);
  color: #fff;
  border: none;
  padding: 14px 40px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: block;
  margin: 20px auto 0;
  box-shadow: 0 0 25px rgba(150, 100, 255, 0.5);
}

.btn:hover {
  background: linear-gradient(90deg, #a56eff, #caa0ff);
  box-shadow: 0 0 35px rgba(190, 140, 255, 0.9);
  transform: translateY(-2px);
}

/* ===== SEARCH RESULT BOX ===== */
.search-result {
  text-align: center;
  max-width: 700px;
  margin: 1rem auto 2rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(-10px);
}

.search-result.show {
  opacity: 1;
  transform: translateY(0);
}

.search-result.available {
  background: linear-gradient(90deg, #00e0a1, #00b377);
  box-shadow: 0 0 30px #00e0a1;
}

.search-result.unavailable {
  background: linear-gradient(90deg, #ff7f7f, #ff4f4f);
  box-shadow: 0 0 30px #ff4f4f;
}

.hidden {
  display: none;
}

/* ===== BOOKED FLIGHTS ===== */
.booked-flights {
  margin: 20px auto 60px;
  max-width: 1100px;
  box-shadow: 0 0 70px rgba(170, 120, 255, 0.5);
  padding: 2rem 3rem;
  background: rgba(25, 10, 60, 0.5);
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(150, 100, 255, 0.3);
}

.booked-flights h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #ffffff;
}

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

.flight-card {
  background: rgba(20, 10, 50, 0.8);
  border: 1px solid rgba(180, 120, 255, 0.4);
  padding: 1rem 1.2rem;
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.flight-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(180, 120, 255, 0.6);
}

.flight-card strong {
  color: #fff;
  display: block;
  margin-bottom: 5px;
}

.flight-card p {
  color: #cbbaff;
  font-size: 0.9rem;
  margin: 2px 0;
}

.status {
  display: inline-block;
  margin-top: 5px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}

.status.active {
  background: #00d18a;
}
.status.upcoming {
  background: #7a3cff;
}
.status.confirmed {
  background: #ffb347;
  color: #000;
}
.status.pending {
  background: #ff5b5b;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
  color: #aaa;
  background: rgba(10, 4, 37, 0.9);
}

/* ===== ANIMATION ===== */
@keyframes glow {
  0% {
    box-shadow: 0 0 30px rgba(150, 100, 255, 0.4);
  }
  100% {
    box-shadow: 0 0 60px rgba(200, 140, 255, 0.8);
  }
}
