/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f0f4f8;
  color: #1a1a2e;
  line-height: 1.6;
}

/* ===== Navbar ===== */
.navbar {
  background: linear-gradient(135deg, #0b1d51, #1a3a8a);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .logo {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.navbar .logo span { color: #f4a524; }

.navbar nav { display: flex; gap: .25rem; }

.navbar nav a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  padding: .5rem 1rem;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 500;
  transition: background .2s, color .2s;
}

.navbar nav a:hover,
.navbar nav a.active {
  background: rgba(255,255,255,.15);
  color: #fff;
}

/* ===== Hero / Banner ===== */
.hero {
  background: linear-gradient(135deg, #0b1d51 0%, #1a3a8a 50%, #2563eb 100%);
  color: #fff;
  text-align: center;
  padding: 3rem 1rem 2rem;
}

.hero h1 { font-size: 2rem; margin-bottom: .5rem; }
.hero p { opacity: .8; font-size: 1.05rem; }

/* ===== Container ===== */
.container {
  max-width: 900px;
  margin: -2rem auto 3rem;
  padding: 0 1rem;
  position: relative;
  z-index: 10;
}

/* ===== Card ===== */
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,.1);
  padding: 2rem;
}

.card h2 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: #0b1d51;
  border-bottom: 2px solid #f4a524;
  padding-bottom: .5rem;
  display: inline-block;
}

/* ===== Form Grid ===== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #555;
  margin-bottom: .35rem;
}

.form-group input,
.form-group select {
  padding: .65rem .85rem;
  border: 1.5px solid #d0d5dd;
  border-radius: 8px;
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .1s;
}

.btn:active { transform: scale(.98); }

.btn-primary {
  background: linear-gradient(135deg, #f4a524, #e08e10);
  color: #0b1d51;
}

.btn-primary:hover { background: linear-gradient(135deg, #e08e10, #c97a00); }

.btn-secondary {
  background: #2563eb;
  color: #fff;
}

.btn-secondary:hover { background: #1d4ed8; }

.btn-block { width: 100%; margin-top: .5rem; }

/* ===== Results Panel ===== */
.results {
  margin-top: 1.5rem;
  display: none;
}

.results.visible { display: block; }

.results h3 {
  font-size: 1rem;
  color: #0b1d51;
  margin-bottom: .75rem;
}

.flight-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
  transition: box-shadow .2s;
}

.flight-result:hover { box-shadow: 0 2px 12px rgba(0,0,0,.08); }

.flight-result .route {
  font-weight: 700;
  font-size: 1rem;
  color: #0b1d51;
}

.flight-result .time { font-size: .85rem; color: #555; }
.flight-result .price { font-weight: 700; color: #16a34a; font-size: 1.1rem; }

/* ===== PNR Result ===== */
.pnr-result {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
  margin-top: 1rem;
  display: none;
}

.pnr-result.visible { display: block; }

.pnr-result .detail-row {
  display: flex;
  justify-content: space-between;
  padding: .4rem 0;
  border-bottom: 1px solid #eee;
  font-size: .9rem;
}

.pnr-result .detail-row:last-child { border-bottom: none; }
.pnr-result .detail-row span:first-child { color: #555; font-weight: 500; }

/* ===== Login ===== */
.login-wrapper {
  max-width: 420px;
  margin: -2rem auto 3rem;
  padding: 0 1rem;
  position: relative;
  z-index: 10;
}


/* ===== Error ===== */
.error-msg {
  color: #dc2626;
  font-size: .85rem;
  margin-top: .25rem;
  display: none;
}

.error-msg.visible { display: block; }

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 1.5rem;
  font-size: .8rem;
  color: #888;
  border-top: 1px solid #e2e8f0;
  margin-top: 2rem;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .navbar { padding: 0 1rem; }
  .navbar nav a { padding: .5rem .6rem; font-size: .8rem; }
  .hero h1 { font-size: 1.4rem; }
  .flight-result { flex-direction: column; align-items: flex-start; gap: .5rem; }
}
