/* assets/css/style.css */
/* Simple white-based theme inspired by tiket.com / trip.com / traveloka */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: #f5f7fb;
  color: #222;
}

a {
  color: #0070f3;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 95%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Navbar */

.navbar {
  background: #ffffff;
  border-bottom: 1px solid #e5e7f0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
}

.nav-links a {
  margin-left: 1rem;
  font-weight: 500;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  padding: 2rem 0;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.3rem;
  margin-bottom: 0.75rem;
}

.hero-text p {
  color: #555;
}

.hero-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

/* Forms */

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  border: 1px solid #d0d5e4;
  font-size: 0.95rem;
}

.form-row.inline {
  display: flex;
  gap: 1rem;
}

.form-row.inline > div {
  flex: 1;
}

/* Buttons */

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-primary {
  background: #0070f3;
  color: #ffffff;
}

.btn-primary:hover {
  background: #005ad1;
}

.btn-secondary {
  background: #ffffff;
  border: 1px solid #d0d5e4;
  color: #111827;
}

.btn-secondary:hover {
  background: #f3f4f8;
}

/* Cards & layout */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  padding-bottom: 2rem;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

/* Flight results */

.flight-results {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.flight-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.flight-route {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.flight-time {
  font-size: 0.9rem;
  color: #4b5563;
}

.flight-stops {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.flight-price {
  text-align: right;
}

.flight-price .amount {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

/* Alerts */

.alert {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Tracking */

.tracking-box {
  margin: 1rem 0;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: #ecfdf5;
  color: #047857;
  font-weight: 600;
}

/* Footer */

.footer {
  border-top: 1px solid #e5e7f0;
  margin-top: 2rem;
  padding: 1rem 0;
  background: #ffffff;
}

.footer-inner {
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
}

/* Responsive */

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .navbar-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0;
    height: auto;
    gap: 0.5rem;
  }

  .nav-links {
    display: flex;
    width: 100%;
    justify-content: space-between;
  }
}
