/* Navbar Custom */
.navbar-custom {
    background: linear-gradient(to right, #ffffff, #e0f0ff);
}

.navbar-custom .nav-link {
    color: #333 !important;
    transition: color 0.3s ease;
}

.navbar-custom .nav-link:hover {
    color: #007bff !important;
}

.navbar-custom .btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.navbar-brand img {
    max-height: 40px;
    height: auto;
    width: auto;
}

/* Buat gambar lebih konsisten */
.user-avatar {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border: 1px solid #ddd;
  transition: border-color 0.2s;
}
.user-avatar:hover {
  border-color: #007bff;
}

/* Buka dropdown bila hover */
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0; /* Buang gap supaya tak hilang bila hover */
}

/* Pastikan dropdown tak tersembunyi */
.dropdown-menu {
  margin-top: 8px;
}


.brand-text {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #0d6efd;
    letter-spacing: 1px;
}

.brand-subtext {
    font-size: 0.8rem;
    color: #555;
    margin-top: -4px;
    line-height: 1;
}

/* Section General */
section {
    padding: 60px 0;
    margin: 0;
}

/* Services */
.services {
    background: linear-gradient(to bottom, #f8f9fa, #e3f2fd);
    padding-top: 40px;
    padding-bottom: 60px;
}

.services h1, .services h2, .services p {
    color: #333;
}

.services .card {
    transition: transform 0.2s ease-in-out;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    background-color: #fff;
}

.services .card:hover {
    transform: translateY(-5px);
}

.services .card-body i {
    font-size: 2.2rem;
    margin-bottom: 15px;
    display: block;
    color: #0d6efd;
}

/* Car Listing */
.car-listing {
    background: linear-gradient(to bottom, #ffffff, #f1f1f1);
    padding: 60px 0;
    margin-bottom: 0;
}

.car-listing h2 {
    color: #212529;
}

/* Footer */
footer {
    margin-top: 0;
    padding-top: 20px;
    background-color: #f8f9fa;
}

/* Buttons WhatsApp */
.btn-whatsapp {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    background-color: #25D366;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.4);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-whatsapp:hover, 
.btn-whatsapp:focus {
    background-color: #1ebe57;
    box-shadow: 0 6px 12px rgba(37, 211, 102, 0.6);
    outline: none;
}

.float-whatsapp {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background-color: #25D366;
    color: #fff;
    font-size: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    text-decoration: none;
}

.float-whatsapp:hover {
    background-color: #1ebe57;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #343a40;
    color: #fff;
    font-size: 20px;
    padding: 12px 16px;
    border-radius: 50%;
    z-index: 999;
    display: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: background-color 0.3s;
}

.back-to-top:hover {
    background-color: #000;
}


.hero-title-wrapper {
  background-color: rgba(5, 165, 239, 0.7);
  color: rgb(23, 219, 9);
  padding: 0.55rem 1rem;
  border-radius: 0.75rem;
  max-width: 100%;
  margin-left: 0;         /* kiri */
  margin-right: auto;     /* auto kanan = align kiri */
  display: inline-block;
  text-align: left;
}


.hero-title-wrapper .subtitle {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0;
  color: rgb(250, 250, 250);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}




/* Pastikan parent .banner ada position: relative */
section.banner {
  position: relative;
}

/* Badge yang terapung */
.promo-badge {
  position: absolute;
  top: 80%; /* ubah ikut keperluan */
  right: 10px;
  z-index: 10;
}

.badge-title {
  display: inline-block;
  background-color: #dc3545;
  color: white;
  padding: 0.5rem 1.2rem;
  font-weight: bold;
  transform: rotate(-5deg);
  font-size: 1.2rem;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
  border-radius: 0.5rem;
  animation: pulse 1.5s infinite alternate;
}

/* Animasi pulse */
@keyframes pulse {
  from { transform: rotate(-5deg) scale(1); }
  to { transform: rotate(-5deg) scale(1.05); }
}

/* Responsif */
@media (max-width: 576px) {
  .badge-tilted {
    font-size: 0.95rem;
    padding: 0.4rem 1rem;
  }

  .promo-badge {
    top: 90%;
    right: 8px;
  }
}



/* Banner Booking Form */
.banner-form {
    background: #bfbcbc;
    border-radius: 10px;
    padding: 30px;
    max-width: 800px;
    margin: 30px auto 0;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
}

.banner-form h5 {
    color: #0d6efd;
    font-weight: 600;
    margin-bottom: 20px;
}

.banner-form .form-control,
.banner-form .form-select {
    border-radius: 8px;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    font-size: 1rem;
}

.banner-form .form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.banner-form .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
}

.banner-form .btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}



/* Label Styling */
.form-label {
  color: #000 !important;
  text-shadow: none !important;
  font-weight: 500;
}

.form-check-label {
  color: #000 !important;
  text-shadow: none !important;
  font-weight: 500;
}

/* Book Now Button on Mobile */
.mobile-book-now {
    display: none;
    margin-top: 20px;
    text-align: center;
}

.mobile-book-now button {
    background-color: #0d6efd;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 10px 30px;
    border: none;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
    transition: background-color 0.3s ease;
}

.mobile-book-now button:hover {
    background-color: #0b5ed7;
}

/* Banner */
section.banner {
    width: 100vw;
    min-height: 40vh;
    padding: 20px 0; /* kurangkan lagi jika mahu */

    background: linear-gradient(to right, rgba(255,255,255,0.10), rgba(240,248,255,0.30)),
                url('../img/seremban.webp') center center/cover no-repeat;
    display: flex;
    align-items: center;
}

section.banner .container {
    max-width: 1140px;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.banner h1,
.banner p {
    color: #212529;
    text-shadow: none;
}

/* Responsive for max-width 767.98px */
@media (max-width: 767.98px) {
    .banner {
        height: auto;
        padding: 80px 20px;
        text-align: center;
        flex-direction: column;
    }

    section {
        padding: 30px 0;
    }

    .services, .car-listing {
        padding-left: 15px;
        padding-right: 15px;
        text-align: center;
    }

    .services .card-body i {
        font-size: 1.8rem;
    }

    .btn-whatsapp {
        font-size: 1rem;
        padding: 10px 20px;
    }

    .banner-form {
        padding: 20px;
        box-shadow: none;
    }

    .mobile-book-now {
        display: block;
    }

    .desktop-form {
        display: none;
    }

    section.banner {
        min-height: 650px;
        padding: 2rem 1rem;
    }

    section.banner form {
        padding: 1rem !important;
    }

    section.banner form .row.g-2 > div {
        margin-bottom: 1rem;
    }

    #bookingForm .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    #bookingForm button[type="submit"] {
        margin-top: 10px;
    }
}

/* Gaya form lebih padat di mobile */
form.compact-form {
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.8); 
}

form.compact-form .form-label {
  margin-bottom: 0.25rem;
  font-size: 0.875rem; /* kecilkan sedikit saiz */
}

form.compact-form .form-select,
form.compact-form .form-control {
  padding: 0.3rem 0.6rem;
  font-size: 0.875rem;
}

form.compact-form .btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  form.compact-form {
    padding: 0.75rem;
  }

  form.compact-form .row {
    margin-bottom: 0.5rem;
  }

  form.compact-form .form-label {
    font-size: 0.8rem;
  }

  form.compact-form .btn {
    font-size: 0.85rem;
  }
}

/* Checkbox padding kecil */
form.compact-form .form-check-label,
form.compact-form .form-check-input {
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* Susun lebih rapat di bawah */
form.compact-form .row:last-child {
  margin-top: 0.75rem;
}

@media (max-width: 768px) {
  form.compact-form .row:last-child {
    margin-top: 0.5rem;
  }
}


@media (max-width: 576px) {
  form {
    padding-top: 0.3rem !important;
    padding-bottom: 0.3rem !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  form .row {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  form .form-label {
    margin-bottom: 0.25rem !important;
  }

  form .form-control,
  form .form-select {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    font-size: 0.875rem;
  }

  form .col-md-2,
  form .col-md-3,
  form .col-md-6 {
    margin-bottom: 0.25rem !important;
  }

  form .text-end {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  /* Remove spacing from checkbox row */
  form .row:last-child {
    margin-top: 0.25rem !important;
    margin-bottom: 0 !important;
  }
}


.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* Jarak antara kotak dan teks */
}

.form-check-input {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}


.hero-title {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.main-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #222;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1.125rem;
  color: #e63946; /* warna utama teks */
  font-weight: 500;
  margin-top: 0;
  
  /* Text shadow untuk inner effect */
  text-shadow:
    1px 1px 0 #add8e6,  /* light blue shadow bawah kanan */
    -1px -1px 0 #add8e6, /* light blue shadow atas kiri */
    1px -1px 0 #add8e6,  /* light blue shadow atas kanan */
    -1px 1px 0 #add8e6;  /* light blue shadow bawah kiri */
}

@media (max-width: 576px) {
  .main-title {
    font-size: 1.8rem;
  }

  .subtitle {
    font-size: 1rem;
  }
}

.select2-container--default .select2-selection--single {
  height: 32px !important; /* sama dengan Bootstrap .form-select */
  padding: 6px 12px;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  font-size: 1rem;
  line-height: 1.5;
}

.select2-selection__rendered {
  line-height: 16px !important;
}

.select2-selection__arrow {
  height: 100% !important;
  right: 10px;
}

.select2-container {
  width: 100% !important; /* agar muat penuh parent */
}

/* Untuk susun dan spacing option dalam dropdown */
.option-block {
  padding: 5px 10px;
  line-height: 1.2;
}
.option-desc {
  font-size: 0.85em;
}


/*section senarai kereta*/
.car-listing .card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 0px;
}

.car-listing .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.car-listing .card-img-top {
    height: 220px;
    object-fit: cover;
    width: 100%;
    border-bottom: 1px solid #ddd;
}

.car-listing .card-body {
    padding: 1.2rem;
}

.car-listing .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #0d6efd;
}

.car-listing .card-text {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.75rem;
}

.car-listing .price-tag {
    font-size: 1.1rem;
    font-weight: 700;
    color: #28a745;
}

.car-listing .btn-book {
    background-color: #0d6efd;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    margin-top: 0.5rem;
    transition: background-color 0.3s ease;
}

.car-listing .btn-book:hover {
    background-color: #0b5ed7;
}

@media (max-width: 576px) {
    .car-listing .card-img-top {
        height: 180px;
    }

    .car-listing .card-title {
        font-size: 1.1rem;
    }

    .car-listing .card-text {
        font-size: 0.875rem;
    }

    .car-listing .btn-book {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .car-listing .price-tag {
        font-size: 1rem;
    }
}

/* Kemaskan border kiri pada tajuk kategori */
.car-listing h4 {
    font-weight: 600;
    border-left: 5px solid #0d6efd;
    padding-left: 12px;
}

/* Pastikan gambar muat elok dalam kad */
.object-fit-cover {
    object-fit: cover;
}

/* Laraskan kedudukan butang carousel */
.carousel-control-prev,
.carousel-control-next {
    top: 50%;
    transform: translateY(-50%);
    width: 4rem;
    height: 4rem;
    opacity: 0.5;

    transition: all 0.3s ease;
    z-index: 10;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 70% 70%;
    background-color: transparent;
    filter: brightness(5); /* Lebih cerah */    
}


@media (max-width: 576px) {

  .carousel-control-prev,
  .carousel-control-next {
    opacity: 1 !important;
    width: 2.5rem;
    height: 2.5rem;
  }
}




.booking-now-btn {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 1050;
  padding: 12px 24px;
  border-radius: 50px;
}


/* Panel penuh skrin */
#searchPanel {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background-color: rgba(0, 0, 0, 0.4); /* semi-gelap */
  z-index: 1040;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

/* Kotak form */
.search-inner {
  background: #fff;
  margin-top: 20px;
  border-radius: 16px;
  position: relative;
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.4s ease;
  max-width: 900px;
  width: 100%;
}

/* Apabila aktif */
#searchPanel.show .search-inner {
  transform: translateY(0);
  opacity: 1;
}

/* Butang tutup */
.custom-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: #f8f9fa;
  border-radius: 50%;
  padding: 6px;
  box-shadow: 0 0 4px rgba(0,0,0,0.1);
}

/* Sembunyikan pointer inner klik */
.search-inner {
  pointer-events: auto;
}




.booking-steps-responsive {
  max-width: 900px;
  margin: 0 auto;
}

/* Flex container for steps */
.stepper {
  display: flex;
  flex-direction: column; /* default vertical for mobile */
  position: relative;
  margin-left: 40px;
  border-left: 3px solid #4facfe;
  padding-left: 20px;
}

/* Each step */
.step {
  position: relative;
  padding: 20px 0 20px 40px;
}

.step:last-child {
  padding-bottom: 0;
}

.step-icon {
  position: absolute;
  left: -55px;
  top: 20px;
  background: linear-gradient(45deg, #4facfe, #00f2fe);
  color: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  font-size: 20px;
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.7);
  transition: background 0.3s ease;
}

.step:hover .step-icon {
  background: linear-gradient(45deg, #00f2fe, #4facfe);
  box-shadow: 0 0 12px rgba(79, 172, 254, 1);
}

.step-content h5 {
  font-weight: 600;
  margin-bottom: 8px;
  color: #222;
}

.step-content p {
  color: #555;
  margin: 0;
  font-size: 0.95rem;
}

/* --- Media query for desktop (large screens) --- */
@media (min-width: 768px) {
  .stepper {
    flex-direction: row;
    margin-left: 0;
    border-left: none;
    border-bottom: 3px solid #4facfe; /* horizontal line */
    padding-left: 0;
    padding-bottom: 20px;
    justify-content: space-between;
  }
  .step {
    padding: 0 20px 0 0;
    position: relative;
    flex: 1;
    padding-left: 0;
    padding-bottom: 0;
    text-align: center;
  }
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: 10px;
    right: 0;
    width: 100%;
    height: 3px;
    background: #4facfe;
    z-index: -1;
  }
  .step-icon {
    position: relative;
    left: auto;
    top: auto;
    margin: 0 auto 10px auto;
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.7);
  }
}

.logo-glow {
    filter: drop-shadow(0 0 8px white) drop-shadow(0 0 12px white);
}

  .alert-floating-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    width: 300px;
    max-width: 90%;
    animation: slideIn 0.4s ease-out;
  }

  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateX(100%);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

.license-image {
  width: 100%;
  max-width: 340px;
  height: auto;
  transition: transform 0.2s ease;
  cursor: pointer;
  border-radius: 10px;
}

.license-image:hover {
  transform: scale(1.03);
  opacity: 0.95;
}

.btn-circle {
  border-radius: 50%;
  padding: 8px 10px;
  font-size: 1rem;
  line-height: 1;
}

.discount-overlay {
  position: absolute;
  bottom: 0.8rem;
  right: 0.5rem;
  background-color: rgba(255, 0, 0, 0.75); /* Merah terang dengan sedikit lutsinar */
  color: #fff;
  padding: 6px 14px;
  font-size: 1.25rem;
  font-weight: bold;
  border-radius: 4px;
  transform: rotate(-8deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  z-index: 10;
  pointer-events: none;
}


  .glightbox-wrapper {
    position: relative;
  }

  .glightbox-wrapper .view-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(211, 205, 205, 0.65); /* 65% gelap */
    color: #0e0e0e;
    padding: 5px 18px;
    border-radius: 50%;
    font-size: 1.5rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }

  .glightbox-wrapper:hover .view-icon {
    opacity: 1;
  }



.car-img-wrapper {
  position: relative;
  overflow: hidden;
}

.car-list-discount-overlay {
  position: absolute;
  top: 10px;
  right: -40px;
  background-color: red;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  padding: 5px 40px;
  transform: rotate(45deg);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  z-index: 2;
}


.active-lang img {
  border: 2px solid #007bff;
  border-radius: 3px;
  box-shadow: 0 0 5px rgba(0,123,255,0.6);
  transform: scale(1.05);
  transition: all 0.2s ease-in-out;
}


/* Buat keseluruhan sebagai pautan */
.share-fb-wrapper {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 4px 8px 4px 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 10;
  text-decoration: none;
  transition: background-color 0.3s;
}

.share-fb-wrapper:hover {
  background-color: rgba(230, 230, 230, 0.95);
}

/* Icon bulat */
.share-fb-btn {
  background-color: #3b5998;
  color: white;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Teks di sebelah ikon */
.share-fb-text {
  font-size: 0.8rem;
  color: #3b5998;
  font-weight: 600;
  margin-left: 6px;
}

.info-line {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: #6c757d;
}

.info-line i {
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}


.popular-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
}

.popular-badge i {
  color: #dc3545;
  font-size: 1.3rem;
}

.popular-badge .badge-text {
  margin-left: 2px;
  font-size: 0.75rem;
  font-weight: bold;
  color: #dc3545;
  white-space: nowrap;
}


/* Terangkan overlay Glightbox */
.glightbox-container .glightbox-overlay {
  background: rgba(0, 50, 80, 0.4) !important; /* kebiruan */
}


@media (max-width: 576px) {
  .glightbox-container .glightbox-overlay {
    background: rgba(0, 0, 0, 0.3) !important;
  }
}
