* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 16px;
}


/* Hamburger icon hide by default */
.hamburger {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    justify-content: center;
    margin-left: auto;
    margin-top: -38px;
}

/* Mobile Menu hidden by default */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    background: white;
    height: 100vh;
    width: 250px;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 9999;
}

.mobile-menu a, .mobile-menu .login-button {
    text-decoration: none;
    color: #333;
}

.mobile-menu.show {
    transform: translateX(0);
}

.close-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    align-self: flex-end;
    cursor: pointer;
}

/* Mobile / Tablet view */
@media (max-width: 1024px) {
    .nav-desktop {
        display: none;
    }
    .hamburger {
        display: block;
    }
}


/* Tablet view (max-width: 1024px) */
@media (max-width: 1024px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-desktop {
    display: none;
  }

  .nav-mobile {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 0.5rem;
  }

  .hero-section h1 {
    font-size: 1.8rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .promo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .our-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-content-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Tablet (2 columns) */
@media (max-width: 992px) {
  .apart-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile (1 column) */
@media (max-width: 576px) {
  .apart-features-grid {
    grid-template-columns: 1fr;
  }

  .feature-item {
    padding: 15px;
  }
}
 /* Mobile Responsive */
    @media (max-width: 768px) {
      .form-grid {
        grid-template-columns: 1fr; 
      }
      .swap-button {
        margin: 10px auto; /
      }
    }

/* Mobile view (max-width: 768px) */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .header-content {
    flex-direction: column;
    text-align: center;
    padding-bottom: 5px;
  }

  .nav-desktop {
    display: none;
  }

  .nav-mobile {
    display: flex;
    justify-content: center;
    gap: 1rem;
  }

  .hero-section {
    padding: 1rem;
    text-align: center;
  }

  .hero-section h1 {
    font-size: 1.5rem;
  }
  
    .service-card img {
    width: 100%;
    height: auto;
  }

  .hero-section p {
    font-size: 0.9rem;
  }

  .booking-card {

  display: none;

}

  .form-grid {
    grid-template-columns: 1fr;
  }

  .promo-grid {
    grid-template-columns: 1fr;
  }

  .our-services-grid {
    grid-template-columns: 1fr;
  }

  .apart-features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-link-group{
    align-items: center;
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }
}

/* Extra small mobile (max-width: 480px) */
@media (max-width: 480px) {
  .apart-features-grid {
    grid-template-columns: 1fr;
  }

  .promo-card img {
    width: 100%;
    height: auto;
  }

    .service-card img {
    width: 100%;
    height: auto;
  }
}


/* car booking  */
@media (max-width:1024px) {
 .right-form input, textarea{
    width: 200px;
    padding: 7px;
} 
}
@media (max-width:300px) {
 .right-form input, textarea{
    width: 100px;
    padding: 7px;
} 
}

/* Car Booking Form  */


@media (max-width: 1160px){
    .modal-form{
        display: contents;
    }
     .modal-content{
      margin-top: 0px;
    }
}

@media (max-width: 730px){
    .modal-form{
        display: contents;
      }
      .modal{
        width: 100%;
        display: flex;
        height: 1200%
       /* align-items: center; */
    }
    .close{
      margin-right: 23px;
    }
    .modal-content{
      margin-top: 0px;
    }
}

@media (max-width:566){
  .carbooking-btn{
    display: contents;
    /* font-display:fallback; */
  }

}

@media (max-width:365px) {
  .modal-content h2{
    display: flex;
  }
}
@media (max-width:365px) {
  .close{
    margin-top: 23px;
  }
}

@media (max-width:506px){
  overlay2{
    display: contents;
    font-display:fallback;
    font-size: 3px;
  }
} 


@media (max-width: 800px) {
     .car-view {
    padding: 50;
    width: 100%;
    flex-direction: row;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
}

@media (max-width: 570px) {
    .car-view {
        padding: 80px;
        flex-direction: column;
    }
}

@media (max-width: 360px) {
    .car-view {
        padding: 23px;
        flex-direction: column;
    }
    .carbooking-btn{
        text-decoration: underline;
    }
}

@media(max-width: 725px){
    .modal-content{
        display: table-cell;
    }
}

@media (max-width:500px){
    .form-section {
    display: block;
}
.tab-buttons-main{
    display: none;
}
}