@font-face {
    font-family: "RobotoCondensed";
    src: url("/font/RobotoCondensed-VariableFont_wght.ttf") format("truetype");
}

body {
    font-family: "RobotoCondensed" !important;
    background-color: #edeef2;
    width: 100%;
    height: 100%;
}
.wrapper {
    max-width: 1280px;
    width: 100%;
    min-height: 100vh;
    height: max-content;
    margin-inline: auto;
    background-color: #edeef2;
}

.navbar .sub-navbar {
    position: absolute;
    top: initial;
    left: 0;
    min-width: 100%;
    height: max-content;
    max-height: 0;
    overflow: hidden;
    background-color: red;
    transition: max-height 0.3s ease;
}

.navbar .sub-navbar.active {
    max-height: 200px;
}

.navbar .navbar-toggle {
    text-align: center;
    background-color: white;
    color: black;
}

.navbar .navbar-toggle.active,
.navbar .navbar-toggle:hover {
    color: white;
    background-color: red;
}

.section1 {
    width: 100%;
    height: max-content;
    position: relative;
    background-color: #edeef2;
    box-sizing: border-box;
    overflow: visible;
}

.carousel {
    position: relative;
    height: 420px;
    width: 100%;
    overflow: hidden;
    touch-action: pan-y; /* Memastikan vertical scroll tidak terganggu */
}

.slides {
    display: flex;
    /* flex-wrap: nowrap;  */
    height: 100%;
    transition: transform 0.3s ease-out; /* Animasi transisi slide */
    will-change: transform; /* Optimasi performa */}

.slides .slide {
    flex: 0 0 100%;
    width: 100vw; 
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s ease-in-out; 
}

.slides .slide .image {
    object-fit: cover;
    object-position: center !important;
    width: 100%;
    height: 100%;
}


.carousel .prev,
.carousel .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    -ms-transform: translateY(-50%);
}

.carousel .prev {
    left: 30px;
}
.carousel .next {
    right: 30px;
}

.dot-container {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #bbb;
    border-radius: 50%;
    transition: background-color 0.3s ease-in-out;
}

.dot.active {
    background-color: #ff0000; /* Warna merah untuk dot aktif */
}


#navbar {
    transition: background-color 0.5s ease-in-out;
}

.bg-white-fade {
    background-color: white;
}

.booking {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    min-height: 110px;
    width: 80%;
}

.booking-tab,
.booking-form {
    min-height: 60px;
}

.booking-tab {
    cursor: pointer;
    width: 400px;
    text-align: center;
    border-top-left-radius: 2.5rem;
    border-top-right-radius: 2.5rem;
    overflow: hidden;
}
.booking-tab div {
    background-color: #fff;
}
.booking-tab div.active {
    background-color: #cc0000;
}

.booking-form {
    background-color: #fff;
    border-top-right-radius: 2.5rem;
    border-bottom-right-radius: 2.5rem;
    border-bottom-left-radius: 2.5rem;
    width: 100%;
    overflow: hidden;
}

.booking-form form {
    display: none;
}

.booking-form .active {
    display: block;
    width: 100%;
}

#booking-car {
    height: 60px;
}

#booking-service {
    position: relative;
    height: 120px;
    z-index: 10;
}

.populer-car {
    position: relative;
    width: 100%;
    height: fit-content;
    margin-top: 1.5rem;
    padding-inline: 1.5rem;
}

.banner-price {
    position: relative;
    top: 0;
    left: 10px;
    background-color: red;
    width: 300px;
    height: 440px;
}

.populer-car .car {
    position: absolute;
    top: 60px;
    left: 35px;
    width: 60rem;
    height: inherit;
}

.feature {
    position: absolute;
    top: -2.5rem;
    right: 0;
}

.bubble-text {
    width: 100px;
    min-height: 30px;
    position: absolute;
    bottom: -8px;
    left: -50px;
    color: white;
    font-size: 8px;
    text-align: center;
    padding: 0.2rem;
    background-color: #515c67;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.bubble-text::after {
    content: "";
    position: absolute;
    top: 0px; /* Position the tip at the bottom */
    right: -5px; /* Position the tip */
    border-width: 0 0 10px 10px; /* Control the size of the tip */
    border-style: solid;
    border-color: transparent transparent transparent #515c67; /* Color the tip */
}

@media (min-width: 1024px) {
    .bubble-text {
        width: 169px;
        min-height: 55px;
        bottom: -8px;
        left: -80px;
        font-size: small;
        padding: 0.5rem;
    }

    .bubble-text::after {
        right: -15px; /* Position the tip */
        border-width: 0 0 20px 20px; /* Control the size of the tip */
    }
}

.wa-contact-us {
    position: relative;
}

.wa-contact-us .text {
    position: absolute;
    top: -15px;
    left: -50px;
}

.contact-us-menu {
    width: max-content;
    height: max-content;
    max-width: 0;
    transition: max-width 0.3s ease;
}
.contact-us-menu.active {
    max-width: 500px;
}

.contact-us-menu div {
    display: none;
    position: relative;
    background-color: white;
    margin-block: 0.5rem;
    transition-property: display;
    transition-delay: 3s;
}

.contact-us-menu.active div {
    display: flex;
}

.contact-us-menu div:nth-child(1) {
    border-top-left-radius: 2.5rem;
    border-bottom-left-radius: 2.5rem;
    border-top-right-radius: 2.5rem;
}
.contact-us-menu div:nth-child(2),
.contact-us-menu div:nth-child(3) {
    border-radius: 2.5rem;
}
.contact-us-menu div:nth-child(4) {
    border-top-left-radius: 2.5rem;
    border-bottom-left-radius: 2.5rem;
    border-bottom-right-radius: 2.5rem;
}
.contact-us-menu div:nth-child(1)::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: -20px;
    border-width: 25px 0 0 33px;
    border-style: solid;
    border-color: transparent transparent white white;
    transform: rotate(11deg);
}

.contact-us-menu div:nth-child(2)::after {
    content: "";
    position: absolute;
    bottom: 7px;
    right: -17px;
    border-width: 11px 0 12px 33px;
    border-style: solid;
    border-color: transparent transparent transparent white;
    transform: rotate(6deg);
}
.contact-us-menu div:nth-child(3)::after {
    content: "";
    position: absolute;
    top: 9px;
    right: -13px;
    border-width: 26px 24px 0px 11px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.contact-us-menu div:nth-child(4)::after {
    content: "";
    position: absolute;
    top: 0;
    right: -13px;
    border-width: 26px 24px 0px 11px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.section5 .menu {
    background-color: #edeef2;
    padding: 0.5rem;
}

.section5 .menu button.active {
    background-color: red;
    border-radius: 1.5rem;
    color: white;
}

.card-car {
    min-height: 18rem;
    width: 100%;
    border: 3px solid black;
    border-radius: 30px;
}
.red-primary {
    color: #cc0000;
}
.bg-red-primary {
    background-color: #cc0000;
}
.small-car {
    width: 90%;
}
.image-small-car {
    max-width: 100% !important;
    width: 100% !important;
}
.font-car {
    width: 100%;
    height: 50px;
}


.scroll-hide::-webkit-scrollbar {
    display: none;
}

/* Untuk Firefox */
.scroll-hide {
    scrollbar-width: none;
}

/* Untuk IE/Edge lama */
.scroll-hide {
    -ms-overflow-style: none;
}


/* calender */
#calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    font-family: Arial, sans-serif;
    font-size: 10px;
    text-align: center;
}

#calendar .header {
    grid-column: span 7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    background: red;
    border-radius: 25px;
}

#calendar .header button {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: white;
}

#calendar .header span {
    font-weight: bold;
    font-size: 12px;
    color: white;
}

#calendar .day {
    padding: 10px 0;
    font-weight: bold;
    background-color: #fff;
}

#calendar .date {
    padding: 5px 0;
    background-color: #fff;
    cursor: pointer;
}

#calendar .date:hover {
    background-color: #f0f0f0;
    border-radius: 50%;
}

#calendar .selected {
    background-color: #e60000;
    color: white;
    border-radius: 50%;
}

#calendar .date.disabled {
    background-color: #ccc;
    color: #666;
    border-radius: 50%;
    pointer-events: none; /* Mencegah klik */
    cursor: not-allowed;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}



@media (min-width: 1024px) {
    .carousel {
        border-radius: 1rem;
        height: 470px;
    }

    .section1 {
        padding-inline: 1.5rem;
    }

    .card-car {
        border: 2px solid black !important; 
        min-height: 25rem;
        width: 100%;
    }

    .font-car {
        height: 70px;
    }

    .small-car {
        max-width: 150% !important;
        width: 120% !important;
        height: 165px;
        object-fit: none;
        left: -12%;
    }

    #calendar {
        gap: 5px;
        font-size: 14px;
    }
    
    #calendar .header {
        
    }
    
    #calendar .header button {
      
    }
    
    #calendar .header span {
        font-size: 16px;
    }
    
    #calendar .day {
    
    }
    
    #calendar .date {

    }
    
    #calendar .date:hover {
      
    }
    
}