:root {
  --primary: #003366;
  --secondary: #e6a756;
  --light: #f8f9fa;
  --dark: #212529;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f5f5f5;
  color: var(--dark);
  line-height: 1.6;
  font-size: 16px; /* Base font size */
}

/* Navigation Bar Styles */
.navbar {
  background-color: rgba(0, 51, 102, 0.9);
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 40px;
  width: 50px;
  margin-right: 10px;
  border-radius: 10%;
}


.nav-menu {
  display: flex;
  list-style: none;
}

.nav-item {
  margin: 0 15px;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  background-color: var(--secondary);
  color: var(--primary);
}

.hamburger {
  display: none;
  cursor: pointer;
  color: white;
  font-size: 1.5rem;
}

/* Header Styles */
header {
  background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(24, 40, 55, 0.9)),
    url("https://images.unsplash.com/photo-1436491865332-7a61a109cc05?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1474&q=80")
      no-repeat center center/cover;
  color: var(--white);
  padding: 2rem 1rem;
  text-align: center;
  position: relative;
}

/* .logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.logo {
  height: 7rem;
  width: 10rem;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
  max-width: 100%;
  height: auto;
} */

.tagline {
  font-style: italic;
  margin-top: 0.5rem;
  font-weight: 300;
  letter-spacing: 1px;
}

/* Main Content Layout */
main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Booking Form Styles */
.booking-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.booking-form h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Flight Selector Styles */
.flight-selector {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.flight-type {
  display: flex;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  overflow: hidden;
}

.flight-type-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: #f0f0f0;
  color: var(--dark);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.flight-type-btn.active {
  background: var(--primary);
  color: white;
}

.date-selector {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.date-input {
  flex: 1;
}

.date-input label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-weight: 500;
}

.date-input input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.passenger-selector label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-weight: 500;
}

.passenger-controls {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.5rem;
}

.passenger-type {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.passenger-type:not(:last-child) {
  border-bottom: 1px solid #eee;
}

.counter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.counter-btn {
  width: 25px;
  height: 25px;
  border: 1px solid #ddd;
  background: #f9f9f9;
  color: var(--dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.counter-btn:hover {
  background: #003366;
  color: white;
}

.count {
  min-width: 20px;
  text-align: center;
}

/* Hide return date when one-way is selected */
.flight-type[data-active="one-way"] .return-date {
  display: none;
}

/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border 0.3s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
}

button {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  width: 100%;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

button:hover {
  background-color: #002244;
}

/* Contact Info Section */
.contact-info {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.contact-icon {
  color: var(--secondary);
  font-size: 1.5rem;
  margin-top: 3px;
}

.contact-text h3 {
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.social-media {
  color: var(--dark);
  font-size: 1.125rem; /* 18px equivalent */
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-links a {
  color: var(--primary);
  font-size: 1.8rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--secondary);
}

/* Testimonials Section */
.testimonials {
  margin-top: 3rem;
  grid-column: 1 / -1;
}

.testimonials h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
  font-size: 1.125rem; /* Matching social-media text size (18px) */
  line-height: 1.6;
  color: var(--dark);
}

.testimonial-author {
  font-weight: bold;
  color: var(--primary);
}

/* Footer */
footer {
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 1.5rem;
  margin-top: 2rem;
}

/* Responsive Design */
/* Extra small devices (340px and up) */
@media (min-width: 340px) {
  body {
    font-size: 15px;
  }

  .logo {
    height: 5.5rem;
    width: 7.5rem;
  }

  h1 {
    font-size: 1.4rem;
  }

  .booking-form h2,
  .contact-info h2,
  .testimonials h2 {
    font-size: 1.1rem;
  }

  .flight-type-btn {
    padding: 8px;
    font-size: 14px;
  }

  .date-input input {
    padding: 8px;
  }

  button {
    padding: 10px 15px;
    font-size: 15px;
  }

  .testimonial-text,
  .social-media {
    font-size: 1rem; /* Slightly smaller on very small devices */
  }
}

/* Small devices (576px and up) */
@media (min-width: 576px) {
  body {
    font-size: 15.5px;
  }

  .logo {
    height: 6rem;
    width: 8rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  .booking-form,
  .contact-info {
    padding: 1.5rem;
  }

  .testimonial-text,
  .social-media {
    font-size: 1.0625rem; /* 17px */
  }
}

/* Medium devices (768px and up) */
@media (min-width: 768px) {
  main {
    grid-template-columns: 1fr 1fr;
    padding: 0 2rem;
  }

  body {
    font-size: 16px;
  }

  .logo {
    height: 7rem;
    width: 10rem;
  }

  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-text,
  .social-media {
    font-size: 1.125rem; /* 18px */
  }

  .date-selector {
    flex-direction: row;
  }

  .passenger-type {
    flex-direction: row;
  }
}

/* Large devices (992px and up) */
@media (min-width: 992px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .logo {
    height: 8rem;
    width: 11rem;
  }
}

/* Extra large devices (1200px and up) */
@media (min-width: 1200px) {
  main {
    padding: 0;
  }

  .logo {
    height: 9rem;
    width: 12rem;
  }
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 60px;
    flex-direction: column;
    background-color: var(--primary);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    padding: 20px 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    margin: 15px 0;
  }

  .hamburger {
    display: block;
  }
}

/* Specific adjustments for very small screens */
@media (max-width: 340px) {
  body {
    font-size: 14px;
  }

  .logo {
    height: 5rem;
    width: 7rem;
    border-radius: 30rem;
  }

  header {
    padding: 1.5rem 0.5rem;
  }

  .booking-form,
  .contact-info {
    padding: 1rem;
  }

  .flight-type-btn {
    font-size: 13px;
    padding: 6px;
  }

  button {
    padding: 8px 12px;
    font-size: 14px;
  }

  .testimonial-text,
  .social-media {
    font-size: 0.9375rem; /* 15px */
  }

  .date-selector {
    flex-direction: column;
    gap: 0.5rem;
  }
  .date-input {
    width: 100%;
    min-width: 0;
    margin-bottom: 0.5rem;
  }
  .passenger-type {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .counter {
    margin-top: 0.5rem;
  }
}

/* Adjustments for landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
  header {
    padding: 1rem 0.5rem;
  }

  .logo {
    height: 4rem;
    width: 6rem;
  }

  main {
    margin: 1rem auto;
  }
}
