
/* === General Reset === */
body {
    font-family: 'Open Sans', sans-serif;
    background: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

 /* === HEADER === */
    .tb_header {
      background: #fff;
      color: #333;
      padding: 10px 0;
      position: sticky;
      top: 0;
      z-index: 999;
      border-bottom: 1px solid #eee;
      box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    }
    .tb_header .container {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .tb_header img {
      height: 45px;
    }
    .header-links ul {
      display: flex;
      gap: 20px;
      list-style: none;
      margin: 0;
      padding: 0;
      align-items: center;
    }
    .header-links a {
      color: #333;
      text-decoration: none;
      font-weight: 600;
      transition: 0.3s;
    }
    .header-links a:hover {
      color: #c00;
    }
   .btn-logout, .btn-primary {
      background: #c00;
      color: #fff !important;
      padding: 6px 14px;
      border-radius: 25px;
      font-weight: 600;
      transition: 0.3s;
    }
    .btn-logout:hover, .btn-primary:hover {
      background: #a00000;
    }

.signin_up ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: right;
}

.signin_up ul li {
    display: inline-block;
    margin-left: 12px;
    font-size: 14px;
}

.signin_up ul li a {
    color: #c00;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.signin_up ul li a:hover {
    color: #a80000;
}


#Search {
    background: #fff;
    padding: 60px;
    border-radius: 22px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-top: 150px; 
}

#Search h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #c00;
    text-align: center;
}

.inputLabel {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
    color: #555;
}

.XXinput, select {
    width: 100%;
    border: 1px solid #ddd;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.XXinput:focus, select:focus {
    border-color: #c00;
    box-shadow: 0 0 8px rgba(204,0,0,0.25);
    outline: none;
    background: #fff;
}

/* === Modern Buttons === */
.Xbutton, .RB, 
.login-block button,
.login-block input[type="button"] {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    color: #fff !important;
    font-weight: bold;
    padding: 14px 30px;
    border-radius: 30px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: block;
    margin: 25px auto 0 auto;
}

.Xbutton:hover, .RB:hover,
.login-block button:hover,
.login-block input[type="button"]:hover {
    background: linear-gradient(135deg, #b71c1c, #7f0000);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(204,0,0,0.3);
}

/* === Login & Signup Modal === */
.login-block {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.15);
    text-align: center;
    margin: 0 auto;
    max-width: 400px;
}

.login-block h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #c00;
}

.login-block input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 18px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.login-block input:focus {
    border-color: #c00;
    box-shadow: 0 0 8px rgba(204,0,0,0.2);
    outline: none;
    background: #fff;
}

.login-block .sign_in,
.login-block .account,
.login-block .forgot {
    margin-top: 15px;
    font-size: 14px;
}

.login-block a {
    color: #c00;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.login-block a:hover {
    color: #a80000;
    text-decoration: underline;
}

/* === Footer === */
.tb_footer {
    text-align: left;
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.tb_footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tb_footer ul li {
    display: inline-block;
    margin-right: 15px;
    font-size: 14px;
}

.tb_footer ul li a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.tb_footer ul li a:hover {
    color: #c00;
}

/* === Back to Top === */
#back-to-top {
    float: right;
    font-size: 22px;
    color: #c00;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s;
}
#back-to-top:hover {
    transform: translateY(-3px);
    color: #a80000;
}

.container-booking {
    display: flex;
    justify-content: center;   
    align-items: flex-start;  
    margin-top: 160px;        
    margin-bottom: 50px;
}

#Search {
    width: 100%;
    max-width: 700px;         
    margin: 0 auto;
}


/* === Modern Header === */
.tb_header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
}

.header-logo img {
  max-height: 55px;
  transition: transform 0.3s ease;
}

.header-logo img:hover {
  transform: scale(1.05);
}

.header-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-links ul li {
  font-size: 15px;
  font-weight: 500;
}

.header-links ul li.welcome {
  color: #555;
  font-weight: 600;
  margin-right: 15px;
}

.header-links ul li a {
  text-decoration: none;
  color: #c00;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 8px 14px;
  border-radius: 6px;
}

.header-links ul li a:hover {
  color: #fff;
  background: #c00;
}

/* Special button look */
.header-links ul li a.btn-primary {
  background: #c00;
  color: #fff !important;
  border-radius: 20px;
  padding: 8px 18px;
  transition: all 0.3s ease;
}

.header-links ul li a.btn-primary:hover {
  background: #a80000;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(204,0,0,0.3);
}

.header-links ul li a.btn-logout {
  color: #555;
}

.header-links ul li a.btn-logout:hover {
  color: #c00;
}

.vehicle-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
  justify-content: flex-start;
}

.vehicle-card {
  flex: 0 0 160px;
  height: 210px;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  will-change: transform; /* Prevents browser re-layout flicker */
}

.vehicle-img-wrapper {
  width: 100%;
  height: 120px;
  overflow: hidden;
  background: #f8f9fa;
}

.vehicle-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vehicle-card .vehicle-info {
  padding: 8px;
}

.vehicle-card h5 {
  font-size: 14px;
  margin: 3px 0;
  color: #333;
}

.vehicle-card p {
  font-size: 12px;
  color: #666;
  margin: 0;
}

.vehicle-card.selected {
  border-color: #007bff;
  box-shadow: 0 0 12px rgba(0,123,255,0.3);
  transform: scale(1.02);
}



/* ==== Base Layout ==== */
.container-booking {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  font-family: "Poppins", sans-serif;
}

.booking-section {
  display: flex;
  flex-direction: column;
}

.company-title {
  text-align: center;
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 20px;
  color: #222;
}

/* ==== Input Fields ==== */
.search-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.input-group {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
}

.input-group label {
  font-size: 14px;
  color: #555;
  margin-bottom: 4px;
}

.search-input {
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 15px;
  transition: border 0.3s;
  width: 100%;
}

.search-input:focus {
  border-color: #c00;
  outline: none;
}

.switch-btn {
  background: #c00;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s;
}

.switch-btn:hover {
  background: #0056b3;
}

/* ==== Vehicle Cards ==== */
.vehicle-section {
  margin: 25px 0;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
}

.vehicle-card {
  background: #f9f9f9;
  border-radius: 15px;
  text-align: center;
  padding: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.vehicle-card:hover {
  background: #e8f2ff;
  transform: scale(1.03);
}

/* .vehicle-img img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 5px;
} */

.vehicle-info h5 {
  font-size: 14px;
  color: #333;
  margin: 0;
}

.vehicle-info p {
  font-size: 12px;
  color: #777;
  margin: 0;
}

/* ==== Button ==== */
.btn-submit {
  margin-top: 20px;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(90deg, #c00, #c00);
  color: #fff;
  transition: 0.3s ease;
  cursor: pointer;
}

.btn-submit:hover {
  background: linear-gradient(90deg, #c00, #c00);
}

/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
  .search-row {
    flex-direction: column;
    gap: 15px;
  }

  .input-group {
    flex: 1 1 100%;
  }

  .switch-btn {
    align-self: center;
    order: -1;
    margin-bottom: 5px;
  }

  .vehicle-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .company-title {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .container-booking {
    padding: 15px;
    border-radius: 12px;
    box-shadow: none;
  }

  .company-title {
    font-size: 18px;
  }

  .search-input {
    font-size: 14px;
    padding: 9px 12px;
  }

  .switch-btn {
    padding: 8px;
    font-size: 14px;
  }

  .vehicle-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .vehicle-card {
    padding: 8px;
  }

  .vehicle-img img {
    width: 60px;
    height: 60px;
  }

  .btn-submit {
    font-size: 15px;
    padding: 12px;
    border-radius: 8px;
  }

  

  
}
