:root {
  --green: #1dbf73;
}

/* ===== FONT IMPORT ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  background: #f9fafb;
  color: #333;
  padding-top: 100px; /* Ensure navbar space */
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #000;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 60px;
  transition: top 0.3s ease;
  z-index: 1000;
}

/* Hamburger Menu Button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.bar {
  width: 30px;
  height: 3px;
  background: #fff;
  border-radius: 10px;
  transition: all 0.3s ease;
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 999;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.mobile-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 24px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.mobile-nav a:hover {
  color: var(--green);
}

.mobile-nav .btn-get-started,
.mobile-nav .btn-driver-app {
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: 600;
  text-align: center;
  margin-top: 10px;
}

.mobile-nav .btn-get-started {
  background-color: var(--green);
  color: #fff;
}

.mobile-nav .btn-driver-app {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}

/* Brand */
.brand {
  font-size: 26px;
  font-weight: 700;
}
.brand .apus {
  color: #fff;
}
.brand .fly {
  color: var(--green);
}

.brand-link {
  text-decoration: none;
  color: inherit;
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 35px;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover {
  color: var(--green);
}
.nav-buttons {
  display: flex;
  gap: 15px;
}

/* Get Started button */
.btn-get-started,
.btn-driver-app {
  color: #fff;
  padding: 10px 25px;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  text-decoration: none;
}
.btn-get-started {
  background-color: var(--green);
  color: #fff;
}
.btn-get-started:hover {
  background-color: #03c55d;
  transform: scale(1.05);
}
.btn-driver-app {
  border: 2px solid #ffffff;
  color: #ffffff;
  background-color: transparent;
}
.btn-driver-app:hover {
  background-color: var(--green);
  color: #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .navbar {
    padding: 18px 40px;
  }
}

@media (max-width: 992px) {
  .navbar {
    padding: 18px 30px;
  }
}

/* Mobile Navbar */
@media (max-width: 768px) {
  .navbar {
    padding: 18px 20px;
  }

  .nav-links {
    display: none;
  }

  .nav-buttons {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hamburger Animation */
  .hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}

/* === MAIN CONTAINER === */
.driver-application {
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 40px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Mobile adjustments for Pilot Application */
@media (max-width: 768px) {
  .driver-application {
    padding: 20px;
    margin: 0 auto 30px;
    border-radius: 12px;
  }

  .driver-application h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .application-form h3 {
    margin-top: 20px;
    font-size: 18px;
  }

  label {
    margin-top: 8px;
    font-size: 14px;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  input[type="number"],
  input[type="url"],
  input[type="file"],
  select {
    padding: 8px;
    margin-top: 3px;
    font-size: 14px;
  }

  .checkbox-group, .radio-group {
    gap: 3px;
    margin-top: 5px;
  }

  .contact-number-group {
    flex-wrap: wrap;
    gap: 8px;
  }

  .contact-number-group select {
    flex: 0 0 180px;
    font-size: 13px;
  }

  .contact-number-group input {
    min-width: 200px;
    font-size: 13px;
  }

  /* Stack contact number vertically on very small screens */
  @media (max-width: 480px) {
    .contact-number-group {
      flex-direction: column;
      gap: 5px;
    }

    .contact-number-group select {
      flex: 1;
      width: 100%;
    }

    .contact-number-group input {
      flex: 1;
      width: 100%;
      min-width: unset;
    }
  }

  .other-option input[type="text"] {
    max-width: 200px;
  }

  .submit-btn {
    width: 200px;
    padding: 10px 0;
    margin: 20px auto 0;
    font-size: 15px;
  }
}

.driver-application h2 {
  text-align: center;
  margin-bottom: 25px;
  color: var(--green);
  font-size: 28px;
  font-weight: 600;
}

/* === SECTION TITLES === */
.application-form h3 {
  margin-top: 30px;
  color: var(--green);
  font-size: 20px;
  border-bottom: 2px solid var(--green);
  padding-bottom: 5px;
}

/* === FORM ELEMENTS === */
label {
  display: block;
  margin-top: 12px;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
input[type="url"],
input[type="file"],
select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: border 0.2s ease;
}

input:focus, select:focus {
  border-color: var(--green);
}

/* === CHECKBOX & RADIO GROUPS === */
.checkbox-group, .radio-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 8px;
}

/* === SUBMIT BUTTON === */
.submit-btn {
  background-color: var(--green);
  color: white;
  padding: 12px 0;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s ease;
  width: 250px;             /* button width */
  display: block;           /* allow margin centering */
  margin: 30px auto 0;      /* centers the box itself */
}


.submit-btn:hover {
  background-color: #179f5e;
}

/* === CONTACT NUMBER GROUP === */
.contact-number-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap; /* Allow wrapping for flexibility */
}

.contact-number-group select {
  flex: 1 1 auto; /* Flexible width - can grow and shrink */
  min-width: 180px; /* Minimum width to prevent too small */
  max-width: 250px; /* Maximum width to prevent too large */
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #fff;
  font-size: 14px;
}

.contact-number-group input {
  flex: 2 1 auto; /* Take more space than select, flexible */
  min-width: 200px; /* Prevent from shrinking too much */
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

/* Makes "Others:" appear inline with the input box */
.other-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.other-option input[type="text"] {
  flex: 1;
  max-width: 250px; /* keeps it short and neat */
}

/* ===== FOOTER ===== */
.footer {
  margin-top: 50px; /* Add top margin to prevent overlap */
}

