/* CLEANED: Only one mobile Flatpickr calendar block below this line. */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    position: relative;
    font-family: 'Montserrat', Arial, sans-serif;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    accent-color: #d5001c !important;
    color-scheme: only light; /* Chrome/Edge specific hack to force accent-color on popups */
}

body {
    background: #f4f4f4;
    color: #333;
}

/* Header & Navigation Redesign */
.main-header {
    background: linear-gradient(135deg, #d5001c 0%, #b80018 100%);
    padding: 0.5rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 2000;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.header-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Header Left - Menu Button */
.header-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.menu-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    padding: 8px 15px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.menu-toggle-btn:hover {
    background: #fff;
    color: #d5001c;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.burger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.burger-icon span {
    width: 28px;
    height: 3px;
    background: currentColor;
    border-radius: 4px;
    transition: 0.3s;
}

.menu-text {
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
}

/* Header Center - Logo */
.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.logo-container {
    padding: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
}

.logo-container:hover {
    transform: scale(1.08); /* More dynamic scale */
}

.logo {
    height: 85px;
    max-width: 320px;
    display: block;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Turns your red logo into a sharp, premium white branding */
    transition: all 0.3s ease;
}

.logo:hover {
    filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
}

/* Header Right - Account */
.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.header-account-btn {
    background: #fff;
    color: #d5001c;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.header-account-btn:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    color: #b5001a;
}

/* Smart Sidebar Styling */
.smart-sidebar {
    position: fixed;
    top: 0;
    left: -350px; /* Hidden by default */
    width: 350px;
    height: 100vh;
    background: #fff;
    z-index: 3000;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: 20px 0 50px rgba(0,0,0,0.1);
    padding: 2rem;
    overflow-y: auto;
}

body.sidebar-open .smart-sidebar {
    left: 0;
}

.smart-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s ease;
}

body.sidebar-open .smart-sidebar-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-logo {
    height: 50px;
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    transition: color 0.3s;
}

.close-sidebar:hover {
    color: #d5001c;
}

.sidebar-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu-list li {
    margin-bottom: 0.5rem;
}

.sidebar-menu-list a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.sidebar-menu-list a i {
    width: 24px;
    color: #888;
    transition: color 0.3s;
}

.sidebar-menu-list a:hover {
    background: #fff4f5;
    color: #d5001c;
    padding-left: 28px;
}

.sidebar-menu-list a:hover i {
    color: #d5001c;
}

.sidebar-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 1.5rem 0;
}

/* Responsive Cleanup */
@media (max-width: 900px) {
    .menu-text, .header-account-btn span {
        display: none;
    }
    .header-account-btn {
        padding: 0.8rem;
        min-width: 45px;
        justify-content: center;
    }
    .menu-toggle-btn {
        padding: 8px;
    }
    .logo {
        height: 50px;
    }
    .smart-sidebar {
        width: 100%;
        left: -100%;
    }
    /* Mobile optimization for time row */
    .time-row-mobile {
        display: flex !important;
        flex-direction: row !important;
        gap: 10px !important;
    }

    .time-row-mobile .search-field {
        flex: 1 !important;
    }

    .time-row-mobile .search-field input {
        padding: 1rem 0.5rem !important; /* Smaller horizontal padding for mobile */
        font-size: 0.9rem !important;
    }

    .time-row-mobile label {
        font-size: 0.75rem !important;
        white-space: nowrap;
    }

    /* Stack them if really narrow */
    @media (max-width: 480px) {
        .time-row-mobile {
            flex-direction: column !important;
        }
    }
}

/* Old navigation cleanup */
.main-nav, .menu-toggle {
    display: none !important;
}

/* Hero Section Adjustments */
.hero {
    background: url('bannerGMla.webp') no-repeat center center/cover;
    min-height: 90vh; /* Increased height for better look */
    display: flex;
    align-items: center;
    position: relative;
    padding: 4rem 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); /* Slightly darker for better text contrast */
}

.hero-container {
    display: flex;
    flex-direction: column-reverse; /* Put form on top */
    width: 100%;
    max-width: 1400px; /* Increased width for more space */
    margin: 0 auto;
    z-index: 10;
    gap: 3rem;
    padding: 0 2rem;
    align-items: center;
    text-align: center; /* Center everything */
}

.hero-text {
    flex: 1;
    color: #fff;
    max-width: 1400px; /* Even wider welcome & desc box */
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.hero-text p {
    background: rgba(0,0,0,0.6);
    padding: 1.5rem;
    border-left: 0; /* Remove side border for centered style */
    border-top: 5px solid #d5001c; /* Move border to top */
    font-size: 1.25rem;
    line-height: 1.7;
}

/* Search Form - Premium Wide Version */
.search-overlay {
    background: rgba(0, 0, 0, 0.85); /* Slightly transparent */
    padding: 2.5rem;
    border-radius: 12px;
    width: 100%;
    max-width: 1000px; /* Much wider */
    color: #fff;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
}

.search-form-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-field {
    margin-bottom: 0;
    text-align: left;
}

.search-field label {
    display: block;
    margin-bottom: 0.8rem !important; /* Slightly more space */
    font-size: 0.85rem;
    color: #fff !important; /* Ensure readable against dark overlay */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Force exact uniform height (62px) for all primary inputs and selects in search form */
.search-field input:not([type="checkbox"]):not([type="radio"]),
.search-field select {
    width: 100% !important;
    height: 62px !important;
    padding: 0 1.2rem !important; 
    border-radius: 8px !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    background: #fff !important;
    color: #333 !important;
    font-size: 1rem !important;
    font-weight: 700 !important; /* Made BOLD to match Time design */
    transition: all 0.3s ease !important;
    display: block !important;
    line-height: normal !important; 
    box-sizing: border-box !important;
    cursor: pointer !important;
    outline: none !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.search-field input::placeholder {
    font-weight: 700 !important;
    opacity: 0.6;
}

.search-field {
    position: relative;
}

/* Custom arrow for the select dropdowns */
.search-field::after {
    display: none; /* Default none, only for select containers */
}

.search-field.select-field::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 1.2rem;
    bottom: 22px;
    color: #d5001c;
    pointer-events: none;
    font-size: 1.2rem;
    display: block;
    z-index: 5;
}

/* Luxury Custom Dropdown Styles */
.custom-time-dropdown {
    position: relative;
    width: 100%;
}

.time-dropdown-display {
    width: 100%;
    height: 62px;
    background: #fff;
    border-radius: 8px;
    padding: 0 1.2rem;
    display: flex;
    align-items: center;
    color: #333;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    transition: 0.3s;
}

.time-dropdown-list {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    max-height: 300px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    z-index: 9999;
    overflow-y: auto;
    display: none; /* Hidden by default */
    border: 1px solid #eee;
}

.time-dropdown-list div {
    padding: 12px 1.5rem;
    cursor: pointer;
    font-weight: 700;
    color: #333;
    transition: 0.2s;
    border-bottom: 1px solid #f9f9f9;
}

.time-dropdown-list div:last-child {
    border-bottom: none;
}

/* MESTI MERAH BILA HOVER / POINTER GERAK KE SITU */
.time-dropdown-list div:hover {
    background: #d5001c !important;
    color: #fff !important;
}

.time-dropdown-list div.selected {
    background: #f8f8f8;
    color: #d5001c;
}

.custom-time-dropdown.open .time-dropdown-list {
    display: block;
    animation: dropFade 0.2s ease-out;
}

@keyframes dropFade {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-field input[type="date"], 
.search-field input[type="time"],
.search-field input[readonly] {
    cursor: pointer;
    accent-color: #d5001c !important;
    color-scheme: light;
}

/* 
   Target native Chrome/Edge/Android time picker highlights.
   Note: Some browser pickers are OS-level and cannot be styled.
*/
::-webkit-datetime-edit-hour-field:focus,
::-webkit-datetime-edit-minute-field:focus,
::-webkit-datetime-edit-ampm-field:focus {
    background-color: #d5001c !important;
    color: #fff !important;
}

/* Target the time picker dropdown if supported by browser */
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(18%) sepia(85%) saturate(7483%) hue-rotate(344deg) brightness(91%) contrast(110%);
    cursor: pointer;
}

/* Force tap highlights on mobile to be red */
* {
    -webkit-tap-highlight-color: rgba(213, 0, 28, 0.2) !important;
}

input[type="time"] {
    -webkit-user-select: none;
    user-select: none;
}


/* Global selection color */
::selection {
    background: #d5001c !important;
    color: #fff !important;
}

::-moz-selection {
    background: #d5001c !important;
    color: #fff !important;
}


.search-row-container {
    display: flex;
    gap: 2rem; /* Gap between Pick-up info and Return info */
}

.search-row {
    flex: 1;
    display: flex;
    gap: 1rem;
}

.search-row > .search-field {
    flex: 1; /* Date range box */
}

.search-row > .time-row-mobile {
    flex: 1.2; /* Times side (ada 2 box) */
}

/* Icon kalendar & masa dalam input */
.search-field {
    position: relative;
}

#pickup-time, #return-time {
    padding-right: 0.5rem !important;
}

.search-btn {
    width: 100%;
    padding: 1.2rem;
    background: #d5001c;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.search-btn:hover {
    background: #b30018;
    transform: scale(1.02);
}

/* Car grid - inspired by reference image */
.fleet-section {
    padding: 80px 20px;
    background-color: #fcfcfc;
    max-width: 100% !important;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.8rem;
    color: #222;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #d5001c;
    border-radius: 2px;
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1600px;
    margin: 0 auto;
}

@media (max-width: 1300px) { .car-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 850px) { .car-grid { grid-template-columns: 1fr; } }

.car-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.car-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    border-color: #f0f0f0;
}

.select-btn-final:hover {
    background: #b5001a !important;
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(213, 0, 28, 0.45) !important;
}

.car-card:hover .car-image-container img {
    transform: scale(1.08);
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.car-header {
    background: #fff;
    padding: 1rem 0.5rem;
    min-height: 70px; /* Sikit tinggi supaya text tak mampat */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.car-name {
    font-weight: 800;
    font-size: 1.05rem; /* Besarkan sikit supaya "Gah" */
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
    text-transform: capitalize;
    max-width: 90%;
}

.group-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fdfdfd;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.group-badge {
    background: #d5001c; /* Warna merah rasmi GGM */
    color: #fff;
    padding: 6px 18px;
    border-radius: 4px;
    text-align: center;
    min-width: 100px;
    box-shadow: 0 2px 5px rgba(213, 0, 28, 0.2);
    display: inline-flex;
}

.group-badge .group-label {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    line-height: 1;
    text-transform: uppercase;
}

.car-card img.car-image {
    width: 100%;
    height: 170px; /* Focus on image */
    object-fit: contain;
    padding: 10px;
    box-sizing: border-box;
    background: #fff;
    display: block;
    margin: 0 auto;
    mix-blend-mode: multiply;
}

.car-specs {
    background: #1a1a1a;
    color: #fff;
    display: flex;
    justify-content: space-between;
    padding: 10px 15px; /* Sikit lebar */
    font-size: 0.75rem;
    align-items: center;
    gap: 5px;
}

.car-specs span {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.car-specs i {
    font-size: 0.85rem;
    color: #fff;
    opacity: 0.8;
}

.car-footer {
    padding: 1.2rem 1.2rem;
    margin-top: auto;
    background: #fff;
}

.car-price {
    color: #d5001c;
    font-weight: 800;
    font-size: 1.5rem; /* Besarkan sikit harga */
    margin-bottom: 5px;
}

.price-desc {
    font-size: 0.75rem;
    color: #777;
    margin-bottom: 15px;
    font-style: italic;
}

.select-btn {
    display: block;
    background: #d5001c;
    color: #fff;
    text-decoration: none;
    padding: 12px;
    font-weight: 800;
    font-size: 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(213, 0, 28, 0.15);
}

.select-btn:hover {
    background: #b5001a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(213, 0, 28, 0.25);
}

/* Footer Section - Premium Dark Theme */
.main-footer {
    background: #111;
    color: #fff;
    padding: 80px 0 40px;
    width: 100%;
    border-top: 5px solid #d5001c;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 4rem;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 15px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: #d5001c;
}

.footer-col a {
    color: #bbb;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 2.4;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col a:hover {
    color: #d5001c;
    transform: translateX(8px);
}

.footer-col p {
    margin: 1.2rem 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #bbb;
}

.social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 1rem;
}

.social-links a {
    color: #fff;
    font-size: 1.4rem;
    background: rgba(255,255,255,0.05);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #d5001c;
    color: #fff;
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .social-links {
        justify-content: center;
    }
    .hero-container {
        flex-direction: column-reverse; /* Keep form on top if that's what user prefers */
        text-align: center;
        padding: 2rem 1rem;
    }
    .hero-text h1 {
        font-size: 2.2rem;
    }
    .hero-text p {
        font-size: 1.1rem;
        padding: 1.2rem;
    }
    .search-overlay {
        padding: 1.2rem; /* Sikit smaller padding for mobile space */
        width: 100%;
        max-width: 100%;
        background: rgba(0,0,0,0.85) !important; /* Make it more readable */
        box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
        border-radius: 12px !important;
        backdrop-filter: blur(10px) !important; /* Modern touch */
    }
    .search-row-container {
        flex-direction: column !important;
        gap: 1.2rem !important; /* Balance gap */
    }
    .search-form-layout {
        gap: 1.2rem !important; 
    }
    .search-field label {
        font-size: 0.85rem !important;
        margin-bottom: 0.45rem !important;
        color: #fff !important; /* Make labels clearer against black */
    }
    .search-field input {
        padding: 1rem !important; 
        font-size: 0.95rem !important;
        border: 1px solid rgba(255,255,255,0.2) !important;
    }
    .search-btn {
        padding: 1.2rem !important;
        font-size: 1.1rem !important;
        margin-top: 5px !important;
    }
}

body.menu-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .main-header {
        padding: 0.5rem 1rem;
    }
    .logo {
        height: 55px; /* Smaller logo for mobile */
    }
    .header-right {
        visibility: hidden; /* Sembunyikan content tapi kekalkan ruang supaya logo tetap CENTER */
        pointer-events: none;
    }
    .main-nav {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
    body.menu-open .main-nav {
        display: block;
        position: fixed;
        top: 100px; /* Diturunkan supaya tak tutup logo & butang close */
        left: 0; 
        width: 100%; 
        height: calc(100vh - 100px);
        background: #d5001c;
        padding: 2rem;
        z-index: 999;
        overflow-y: auto;
    }
    body.menu-open .main-nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }
    body.menu-open .main-nav a {
        font-size: 1.2rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        width: 100%;
        justify-content: flex-start;
    }
    body.menu-open .login-btn-header {
        border-bottom: none !important;
        margin-top: 1rem;
        justify-content: center !important;
        background: #fff;
    }
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    .hero-container {
        padding: 0 1.5rem;
        gap: 2rem;
    }
    .hero-text h1 {
        font-size: 1.8rem;
    }
    .search-row {
        flex-direction: column;
        gap: 1rem;
    }
    .search-field:not(#return-location-field) {
        display: flex !important;
        flex-direction: column !important;
    }
    .search-field-header {
        display: contents !important;
    }
    .search-field label {
        order: 2 !important;
        margin-bottom: 8px !important;
    }
    .search-field input,
    .search-field select,
    .search-field .select2-container,
    .time-dropdown-display {
        order: 3 !important;
        width: 100% !important;
    }
    .different-location-toggle {
        order: 1 !important;
        margin-bottom: 15px !important;
        margin-top: 5px !important;
        align-self: flex-start !important;
    }
    .toggle-checkbox {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        padding: 4px 10px 4px 6px !important; /* Kurangkan padding sikit */
        font-size: 0.55rem !important; /* Kecilkan lagi font size */
        background: rgba(255, 255, 255, 0.1) !important;
        width: fit-content !important;
        letter-spacing: 0px !important; /* Rapatkan sikit huruf */
    }
    .toggle-label-text {
        font-size: 0.55rem !important;
        white-space: nowrap !important;
    }
    .toggle-checkbox .checkmark {
        width: 32px !important;
        height: 16px !important;
        margin-right: 8px !important;
    }
    .toggle-checkbox .checkmark::before {
        width: 10px !important;
        height: 10px !important;
        top: 3px !important;
        left: 3px !important;
    }
    .toggle-checkbox input:checked + .checkmark::before {
        transform: translateX(16px) !important;
    }
    .toggle-checkbox .checkmark::after {
        font-size: 6px !important;
        right: 4px !important;
    }
}

/* SweetAlert2 Backdrop Blur & Custom Focus Styling */
.swal2-container {
    backdrop-filter: blur(12px) saturate(130%) brightness(100%); /* Premium Glassmorphism Blur */
    background: rgba(0, 0, 0, 0.45) !important;
    z-index: 1000000 !important; /* Extremely high to stay on top */
}

/* SweetAlert2 Base Styles & Resets */
.swal2-popup {
    font-family: 'Mulish', sans-serif !important;
    border-radius: 20px !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
}

/* Base style for our premium Lightboxes */
.swal2-login-popup-custom, 
.swal2-account-popup-custom,
.swal2-edit-popup-custom,
.swal2-history-popup-custom {
    border-radius: 24px !important; 
    overflow: hidden !important;
    padding: 0 !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

@keyframes swalPremiumOpen {
    0% { transform: scale(0.95) translateY(30px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* Ensure Close Button (X) is always on top & clickable */
.swal2-close {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 10000 !important; /* Extremely high z-index inside popup */
    color: #333 !important;
    font-size: 1.8rem !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    background: #fff !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    cursor: pointer !important;
}

.swal2-close:hover {
    color: #fff !important;
    background: #d5001c !important;
    transform: rotate(90deg) scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(213, 0, 28, 0.4) !important;
}

.swal-form-container {
    display: flex;
    justify-content: space-between;
    text-align: left;
    padding: 3rem;
    gap: 3rem;
    background: #fff;
    min-height: 500px;
}

.swal-login-section {
    flex: 0.85; /* Mengecilkan sedikit ruangan login */
    display: flex;
    flex-direction: column;
}

.search-field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 10px;
}

.search-field-header label {
    margin-bottom: 0 !important; /* Overriding default label margin */
    flex-shrink: 0;
}

/* Search Form - Premium Switch Toggle */
.different-location-toggle {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.toggle-checkbox {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    cursor: pointer;
    font-size: 0.65rem;
    font-family: 'Mulish', sans-serif;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    user-select: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    padding: 6px 15px 6px 10px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    white-space: nowrap;
    flex-shrink: 0;
    width: fit-content;
}

.toggle-checkbox input {
    display: none !important;
}

.toggle-checkbox .checkmark {
    width: 38px;
    height: 20px;
    background: rgba(0,0,0,0.3);
    border-radius: 20px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

/* The Switch Knob */
.toggle-checkbox .checkmark::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    top: 2px;
    left: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Active State */
.toggle-checkbox input:checked + .checkmark {
    background: #d5001c;
    border-color: #d5001c;
    box-shadow: 0 0 15px rgba(213, 0, 28, 0.4);
}

.toggle-checkbox input:checked + .checkmark::before {
    transform: translateX(18px);
    background: #fff;
}

/* Optional Tic inside Knob when active */
.toggle-checkbox .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%) scale(0);
    color: #fff;
    font-size: 8px;
    transition: all 0.3s ease;
    opacity: 0;
}

.toggle-checkbox input:checked + .checkmark::after {
    transform: translateY(-50%) scale(1);
    opacity: 1;
}

.toggle-label-text {
    transition: all 0.3s ease;
    display: inline-block;
    padding-left: 5px;
}

.toggle-checkbox input:checked ~ .toggle-label-text {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    font-weight: 700;
}

/* Animations for search field visibility */
#return-location-field {
    animation: formSlideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: top;
    margin-top: 5px;
}

@keyframes formSlideUp {
    from { opacity: 0; transform: translateY(-10px) scaleY(0.8); }
    to { opacity: 1; transform: translateY(0) scaleY(1); }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid #fff;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #20ba5a;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
    color: #fff;
}

/* Subtle Pulse Effect */
.whatsapp-float::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    z-index: -1;
    animation: wa-pulse 2s infinite;
    opacity: 0.6;
}

@keyframes wa-pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Premium Autocomplete UI Styling */
.ui-autocomplete {
    background: #ffffff !important;
    border-radius: 12px !important;
    border: 1px solid #eee !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important;
    padding: 8px 0 !important;
    max-height: 400px !important;
    overflow-y: auto !important;
    z-index: 10001 !important;
    font-family: 'Montserrat', sans-serif !important;
}

.ui-menu-item {
    margin: 4px 8px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.ui-menu-item div {
    padding: 12px 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    border: none !important;
}

.location-item-ui i {
    color: #d5001c;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff4f5;
    border-radius: 50%;
    font-size: 1rem;
    flex-shrink: 0;
}

.location-text-ui {
    font-size: 0.88rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    white-space: normal !important; /* Allow wrap for long locations on mobile */
}

.ui-state-active, .ui-widget-content .ui-state-active {
    background: #d5001c !important;
    border: none !important;
    margin: 0 !important;
}

.ui-state-active .location-text-ui {
    color: #ffffff !important;
}

.ui-state-active .location-item-ui i {
    background: rgba(255,255,255,0.2) !important;
    color: #fff !important;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .ui-autocomplete {
        width: 90% !important;
        left: 5% !important;
        position: fixed !important;
        top: 20% !important;
    }
}

/* Red High-End Datepicker Styling */
#ui-datepicker-div {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2) !important;
    font-family: 'Montserrat', sans-serif !important;
    background: #fff !important;
    padding: 0 !important;
    overflow: hidden !important;
    z-index: 10000 !important;
}

.ui-datepicker-header {
    background: #d5001c !important;
    border: none !important;
    color: #fff !important;
    padding: 15px 0 !important;
    border-radius: 0 !important;
}

.ui-datepicker-calendar thead th {
    color: #d5001c !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    padding: 10px 0 !important;
}

.ui-datepicker-calendar td a {
    text-align: center !important;
    padding: 12px !important;
    border: none !important;
    border-radius: 0 !important;
    transition: all 0.2s ease !important;
    color: #555 !important;
    font-size: 0.9rem !important;
    display: block !important;
}

.ui-datepicker-calendar .ui-state-active {
    background: #d5001c !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(213, 0, 28, 0.3) !important;
}

.ui-datepicker-calendar .ui-state-default {
    background: transparent !important;
    border: none !important;
}

.ui-datepicker-calendar td a:hover {
    background: #fff4f5 !important;
    color: #d5001c !important;
}

.ui-datepicker-title select {
    background: #fff !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    color: #333 !important;
    border-radius: 0 !important;
    padding: 2px 5px !important;
    margin: 0 5px !important;
}

.ui-datepicker-prev, .ui-datepicker-next {
    cursor: pointer !important;
    top: 15px !important;
}

.ui-datepicker-prev span, .ui-datepicker-next span {
    filter: brightness(0) invert(1) !important;
}

/* Flatpickr Red Theme Customization */
.flatpickr-calendar {
    box-shadow: 0 15px 40px rgba(0,0,0,0.2) !important;
    border-radius: 0 !important;
    border: none !important;
    background: #fff !important;
    z-index: 1999 !important; /* Ensure it stays below the main header (z-index: 2000) */
}

@media (max-width: 768px) {
    .flatpickr-calendar {
        width: 100% !important;
        max-width: 100% !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.2) !important;
        animation: flatpickrSlideUp 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.1) !important;
        z-index: 1999 !important;
    }

    /* Small handle on top */
    .flatpickr-calendar::before, .flatpickr-calendar::after {
        display: none !important;
    }

    /* Add custom pull handle for aesthetics */
    .flatpickr-calendar::before {
        content: "" !important;
        display: block !important;
        width: 40px !important;
        background: #e0e0e0 !important;

        position: absolute !important;
        top: 0px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
    }

    /* --- MOBILE INTERLEAVED LAYOUT FOR FLATPICKR --- */
    /* This overrides the default layout to stack Month 1 -> Days 1 -> Month 2 -> Days 2 */
    .flatpickr-calendar.mobile-interleaved {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    .flatpickr-calendar.mobile-interleaved .flatpickr-months {
        display: contents !important;
    }

    .flatpickr-calendar.mobile-interleaved .flatpickr-innerContainer {
        display: contents !important;
    }
    
    .flatpickr-calendar.mobile-interleaved .flatpickr-rContainer {
        display: contents !important;
    }
    
    .flatpickr-calendar.mobile-interleaved .flatpickr-weekdays {
        display: contents !important;
    }
    
    .flatpickr-calendar.mobile-interleaved .flatpickr-days {
        display: contents !important;
    }

    /* --- GROUP 1: MONTH 1 --- */
    /* Header (Title Month 1) */
    /* Target divs only, skipping the span arrows */
    .flatpickr-calendar.mobile-interleaved .flatpickr-months .flatpickr-month:nth-of-type(1),
    .flatpickr-calendar.mobile-interleaved .flatpickr-months .flatpickr-month.mobile-month-1 {
        order: 1 !important;
        position: relative !important;
        height: 56px !important;
        background: linear-gradient(135deg, #d5001c 0%, #a30015 100%) !important;
        color: #fff !important;
        overflow: hidden !important;
        padding: 0 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-top: 8px !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-shadow: 0 16px 28px rgba(213, 0, 28, 0.25) !important;
        border-radius: 0 !important;
    }
    
    /* Weekdays (Sun Mon...) Month 1 */
    .flatpickr-calendar.mobile-interleaved .flatpickr-weekdaycontainer:nth-of-type(1),
    .flatpickr-calendar.mobile-interleaved .flatpickr-weekdaycontainer.mobile-weekdays-1 {
        order: 2 !important;
        display: flex !important;
        width: 100% !important;
        background: transparent !important; /* Transparent background */
        color: #333 !important; /* Dark text */
        font-weight: bold !important;
        margin-bottom: 5px !important;
        padding-bottom: 5px !important;
        padding-top: 10px !important; /* Space between header and weekdays */
    }
    
    /* Ensures weekday labels are dark and visible */
    .flatpickr-calendar.mobile-interleaved .flatpickr-weekday {
        color: #333 !important; /* Ensure text is dark */
        background: transparent !important;
        font-weight: bold !important;
    }

    /* Days Grid Month 1 */
    .flatpickr-calendar.mobile-interleaved .dayContainer:nth-of-type(1),
    .flatpickr-calendar.mobile-interleaved .dayContainer.mobile-days-1 {
        order: 3 !important;
        width: 100% !important;
        box-shadow: none !important;
        padding-bottom: 20px !important; /* Space at bottom of grid */
    }

    /* --- GROUP 2: MONTH 2 --- */
    /* Header (Title Month 2) */
    .flatpickr-calendar.mobile-interleaved .flatpickr-months .flatpickr-month:nth-of-type(2),
    .flatpickr-calendar.mobile-interleaved .flatpickr-months .flatpickr-month.mobile-month-2 {
        order: 4 !important;
        width: 100% !important;
        position: relative !important;
        height: 56px !important;
        background: linear-gradient(135deg, #d5001c 0%, #a30015 100%) !important;
        color: #fff !important;
        margin-top: 28px !important;
        border-top: none !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-shadow: 0 16px 28px rgba(213, 0, 28, 0.25) !important;
        padding: 0 44px !important;
    }

    /* Weekdays (Sun Mon...) Month 2 */
    .flatpickr-calendar.mobile-interleaved .flatpickr-weekdaycontainer:nth-of-type(2),
    .flatpickr-calendar.mobile-interleaved .flatpickr-weekdaycontainer.mobile-weekdays-2 {
        order: 5 !important;
        display: flex !important;
        width: 100% !important;
        background: transparent !important; /* Transparent background */
        color: #333 !important; /* Dark text */
        font-weight: bold !important;
        margin-bottom: 5px !important;
        padding-bottom: 5px !important;
        padding-top: 10px !important; /* Space between header and weekdays */
    }

    /* Days Grid Month 2 */
    .flatpickr-calendar.mobile-interleaved .dayContainer:nth-of-type(2),
    .flatpickr-calendar.mobile-interleaved .dayContainer.mobile-days-2 {
        order: 6 !important;
        width: 100% !important;
        box-shadow: none !important;
    }

    /* Remove stray borders or shadows from flattened elements */
    .flatpickr-calendar.mobile-interleaved .flatpickr-weekdays {
        background: transparent !important;
        box-shadow: none !important;
    }

    /* Month Title Styling */
    .flatpickr-calendar.mobile-interleaved .flatpickr-current-month {
        font-size: 1.5rem !important; /* Bigger title matching the design */
        font-weight: 800 !important; /* Extra bold */
        text-transform: uppercase !important; /* Make it uppercase like the design */
        padding-top: 0 !important;
        position: static !important; /* Remove absolute positioning */
        width: 100% !important;
        left: auto !important;
        right: auto !important;
        color: #fff !important;
        height: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1.2 !important;
    }

    .flatpickr-calendar.mobile-interleaved .flatpickr-current-month .cur-month {
        font-weight: 800 !important;
    }

    .flatpickr-calendar.mobile-interleaved .flatpickr-current-month .numInputWrapper {
        font-size: 1.2rem !important; /* Slightly smaller year */
        font-weight: normal !important;
        margin-left: 10px !important;
        width: auto !important;
        display: inline-flex !important;
    }
    
    .flatpickr-calendar.mobile-interleaved .numInputWrapper span.arrowUp:after {
        border-bottom-color: #d5001c !important;
    }
    .flatpickr-calendar.mobile-interleaved .numInputWrapper span.arrowDown:after {
        border-top-color: #d5001c !important;
    }

    /* Fix Arrows Positioning */
    /* Prev Arrow - Top Left of Month 1 */
    .flatpickr-calendar.mobile-interleaved .flatpickr-prev-month {
        order: 0 !important; 
        position: absolute !important;
        top: 32px !important; /* Visual center */
        transform: translateY(-50%) !important;
        left: 15px !important;
        z-index: 100 !important;
        height: 32px !important;
        width: 32px !important;
        background: rgba(0,0,0,0.05) !important;
        border-radius: 0% !important;
        padding: 6px !important; /* Slightly larger internal padding */
    }
    /* Next Arrow - Top Right of Month 1 (hide only for first month header) */
    .flatpickr-calendar.mobile-interleaved .flatpickr-months .flatpickr-month:nth-of-type(1) .flatpickr-next-month {
        display: none !important;
    }

    /* Always show both month headers in mobile-interleaved mode */
    .flatpickr-calendar.mobile-interleaved .flatpickr-months .flatpickr-month {
        display: flex !important;
    }
    /* Show next arrow for second month header so user can go to next month */
    .flatpickr-calendar.mobile-interleaved .flatpickr-months .flatpickr-month:nth-of-type(1) .flatpickr-prev-month,
    .flatpickr-calendar.mobile-interleaved .flatpickr-months .flatpickr-month:nth-of-type(2) .flatpickr-next-month {
        display: flex !important;
        position: absolute !important;
        top: 32px !important;
        bottom: auto !important;
        margin: 0 !important;
        transform: translateY(-50%) !important;
        z-index: 100 !important;
        height: 36px !important;
        width: 36px !important;
        background: #fff !important;
        border-radius: 8px !important;
        padding: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
        border: 1px solid #eee !important;
    }
    .flatpickr-calendar.mobile-interleaved .flatpickr-months .flatpickr-month:nth-of-type(1) .flatpickr-prev-month {
        left: 8px !important;
    }
    .flatpickr-calendar.mobile-interleaved .flatpickr-months .flatpickr-month:nth-of-type(2) .flatpickr-next-month {
        right: 8px !important;
    }
    }

    /* Remove excessive padding */
    .flatpickr-days {
        margin-top: -10px !important;
    }


@keyframes flatpickrSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.flatpickr-day.selected, 
.flatpickr-day.startRange, 
.flatpickr-day.endRange, 
.flatpickr-day.selected.inRange, 
.flatpickr-day.startRange.inRange, 
.flatpickr-day.endRange.inRange, 
.flatpickr-day.selected:focus, 
.flatpickr-day.startRange:focus, 
.flatpickr-day.endRange:focus, 
.flatpickr-day.selected:hover, 
.flatpickr-day.startRange:hover, 
.flatpickr-day.endRange:hover, 
.flatpickr-day.selected.prevMonthDay, 
.flatpickr-day.startRange.prevMonthDay, 
.flatpickr-day.endRange.prevMonthDay, 
.flatpickr-day.selected.nextMonthDay, 
.flatpickr-day.startRange.nextMonthDay, 
.flatpickr-day.endRange.nextMonthDay {
    background: #d5001c !important;
    border-color: #d5001c !important;
}

.flatpickr-day.inRange {
    background: #fff4f5 !important;
    border-color: #fff4f5 !important;
    box-shadow: -5px 0 0 #fff4f5, 5px 0 0 #fff4f5 !important;
}

/* Only apply these heavy overrides on mobile or if specifically targeted */
@media (max-width: 768px) {
    .flatpickr-months .flatpickr-month {
        background: linear-gradient(135deg, #d5001c 0%, #a30015 100%) !important;
        color: #fff !important;
        fill: #fff !important;
        padding: 0px !important;
        border: none !important;
        border-radius: 0px !important;
        box-shadow: 0 16px 28px rgba(213, 0, 28, 0.25) !important;
    }
    .flatpickr-months .flatpickr-month {
        margin: 0 !important;
    }
    .flatpickr-months .flatpickr-month:first-child {
        margin-top: 8px !important;
    }
    .flatpickr-calendar.mobile-interleaved .flatpickr-months .flatpickr-month:nth-child(2) {
        margin-top: 0px !important;
    }

    /* Make sure prev/next month arrows are visible and positioned correctly */
    .flatpickr-months .flatpickr-prev-month,
    .flatpickr-months .flatpickr-next-month {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: absolute !important;
        top: 10px !important;
        width: 32px !important;
        height: 32px !important;
        z-index: 20 !important;
        background: #fff !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
        border: 1px solid #eee !important;
        cursor: pointer !important;
        opacity: 1 !important;
    }
    .flatpickr-months .flatpickr-prev-month {
        left: 10px !important;
    }
    .flatpickr-months .flatpickr-next-month {
        right: 10px !important;
    }
    .flatpickr-months .flatpickr-prev-month svg,
    .flatpickr-months .flatpickr-next-month svg {
        width: 18px !important;
        height: 18px !important;
        fill: #d5001c !important;
        display: block !important;
    }
    /* For interleaved (multiMonth) mode, ensure arrows are visible in each header */
    .flatpickr-calendar.mobile-interleaved .flatpickr-months .flatpickr-prev-month,
    .flatpickr-calendar.mobile-interleaved .flatpickr-months .flatpickr-next-month {
        position: absolute !important;
        top: 32px !important;
        bottom: auto !important;
        margin: 0 !important;
        transform: translateY(-50%) !important;
        width: 36px !important;
        height: 36px !important;
        background: #fff !important;
        border-radius: 6px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
        border: 1px solid #eee !important;
        z-index: 30 !important;
    }
    .flatpickr-calendar.mobile-interleaved .flatpickr-months .flatpickr-prev-month {
        left: 12px !important;
    }
    .flatpickr-calendar.mobile-interleaved .flatpickr-months .flatpickr-next-month {
        right: 12px !important;
    }

    .flatpickr-current-month .flatpickr-monthDropdown-months {
        background: transparent !important;
        font-weight: 700 !important;
        color: #fff !important;
        border: none !important;
    }

    .flatpickr-current-month input.cur-year {
        color: #ffe1e5 !important;
        background: transparent !important;
    }

    .flatpickr-weekday {
        background: transparent !important;
        color: #444 !important;
        font-weight: 700 !important;
    }
}

.flatpickr-months .flatpickr-prev-month, 
.flatpickr-months .flatpickr-next-month {
    color: #d5001c !important;
    fill: #d5001c !important;
}

.flatpickr-day.today {
    border-color: #d5001c !important;
    color: #d5001c !important;
    font-weight: 800 !important;
}

.flatpickr-day.today:hover {
    background: #d5001c !important;
    color: #fff !important;
}

.flatpickr-calendar.arrowTop:before, .flatpickr-calendar.arrowTop:after,
.flatpickr-calendar.arrowBottom:before, .flatpickr-calendar.arrowBottom:after {
    display: none !important; /* Cleaner without arrow on mobile */
}

/* Time Picker Specific Red Styling */
.flatpickr-time {
    border-top: 1px solid #f0f0f0 !important;
    padding: 10px 0 !important;
}

.flatpickr-time .flatpickr-am-pm:focus,
.flatpickr-time .flatpickr-am-pm:hover,
.flatpickr-time input:focus,
.flatpickr-time input:hover {
    background: #fff4f5 !important;
    color: #d5001c !important;
}

.numInputWrapper span.arrowUp:after {
    border-bottom-color: #d5001c !important;
}

.numInputWrapper span.arrowDown:after {
    border-top-color: #d5001c !important;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 25px;
        right: 20px;
        font-size: 28px;
    }
}

.swal-signup-section {
    flex: 1.15; /* Melebarkan ruangan signup */
    display: flex;
    flex-direction: column;
}

.swal-title {
    color: #d5001c;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid #d5001c;
    padding-bottom: 10px;
    display: inline-block;
}

.swal-input-group {
    position: relative;
    margin-bottom: 1.8rem; /* Besarkan sikit jarak untuk ruang notice */
    width: 100%;
}

.swal-input-group i {
    position: absolute;
    left: 15px;
    top: 24px; /* Center icon vertically dalam input */
    transform: translateY(-50%);
    color: #d5001c;
    font-size: 1.1rem;
}

.swal-input-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 45px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fdfdfd;
    display: block;
}

.swal-input-group input:focus {
    border-color: #d5001c;
    box-shadow: 0 0 0 3px rgba(213, 0, 28, 0.1);
    outline: none;
    background: #fff;
}

.swal-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0;
}

.swal-row .swal-input-group {
    flex: 1;
}

.swal-captcha-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 6px;
}

.captcha-label {
    font-weight: 700;
    color: #444;
    font-size: 0.9rem;
    white-space: nowrap;
}

.captcha-input {
    margin-bottom: 0;
    max-width: 160px;
}

.swal-form-btn {
    width: 100%;
    padding: 1.1rem;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.swal-form-btn:hover {
    background: #d5001c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(213, 0, 28, 0.3);
}

.swal-section-divider {
    width: 1px;
    background: #eee;
}

.swal-forgot-link {
    display: block;
    margin-top: 1.5rem;
    color: #d5001c;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: right;
    font-style: italic;
    transition: color 0.2s ease;
}

.swal-forgot-link:hover {
    text-decoration: underline;
    color: #b5001a;
}

.swal-input-group.invalid input {
    border-color: #d5001c !important;
    background: #fffafa !important;
}

.swal-error-msg {
    position: absolute;
    bottom: -20px; /* Posisi di bawah box input */
    left: 2px;
    color: #d5001c;
    font-size: 0.7rem;
    font-weight: 700;
    display: none;
    animation: fadeIn 0.3s ease;
    line-height: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .swal-form-container {
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
    }
    .swal-section-divider {
        height: 1px;
        width: 100%;
    }
    .swal-row {
        flex-direction: column;
        gap: 0;
    }
    .swal-captcha-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .captcha-input {
        max-width: 100%;
    }
    .swal-title {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
}

/* Account Popup Style */
.swal-account-container {
    padding: 2rem;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    background: #fff;
    border-radius: 12px;
}

.swal-account-header {
    text-align: center;
    margin-bottom: 2.5rem;
    border-bottom: 2px solid #f5f5f5;
    padding-bottom: 1.5rem;
}

.swal-account-header h2 {
    color: #d5001c;
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.swal-account-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
}

.account-info-card {
    background: #fdfdfd;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.account-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.account-item:last-child {
    margin-bottom: 0;
}

.account-item i {
    width: 35px;
    height: 35px;
    background: rgba(213, 0, 28, 0.1);
    color: #d5001c;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1rem;
}

.account-label {
    display: block;
    font-size: 0.75rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.account-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
}

.affiliate-section h4 {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
}

.affiliate-link-container {
    margin-bottom: 1.2rem;
}

.affiliate-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9f9f9;
    padding: 0.8rem;
    border-radius: 6px;
    border: 1px solid #eee;
}

.link-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #d5001c;
    width: 80px;
    flex-shrink: 0;
}

.link-url {
    flex: 1;
    font-size: 0.8rem;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: monospace;
}

.copy-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.copy-btn:hover {
    color: #d5001c;
}

.account-actions-footer {
    grid-column: span 2;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.action-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.action-link-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #555;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.2s;
    padding: 8px 15px;
    border-radius: 6px;
    border: 1px solid transparent;
}

.action-link-btn:hover {
    color: #d5001c;
    background: rgba(213, 0, 28, 0.05);
    border-color: rgba(213, 0, 28, 0.1);
}

.logout-container {
    margin-top: 1rem;
    text-align: left;
}

.logout-btn-account {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    background: #d5001c;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 800;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(213, 0, 28, 0.2);
}

.logout-btn-account:hover {
    background: #b5001a;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(213, 0, 28, 0.3);
}

/* Booking History Styles */
.booking-table-wrapper {
    margin: 1rem 0;
    overflow-x: auto;
    border: 1px solid #eee;
    border-radius: 10px;
}

.booking-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.booking-history-table thead {
    background: #f9f9f9;
}

.booking-history-table th {
    padding: 1rem 0.8rem;
    text-align: left;
    color: #d5001c;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.booking-history-table td {
    padding: 1rem 0.8rem;
    border-top: 1px solid #f5f5f5;
    color: #444;
}

.booking-ref-link {
    color: #111;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

.booking-ref-link:hover {
    color: #d5001c;
    text-decoration: underline;
}

.status-badge-custom {
    padding: 4px 10px;
    background: #f0f0f0;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
    display: inline-block;
}

/* Pagination Styles */
.swal-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 2rem;
    padding: 1rem;
    background: #fdfdfd;
    border-radius: 50px;
    border: 1px solid #f0f0f0;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.pagination-btn {
    min-width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    background: #fff;
    color: #444;
    font-weight: 800;
    font-size: 0.9rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0 10px;
    white-space: nowrap;
}

.pagination-btn:hover {
    background: #fffafa;
    border-color: #d5001c;
    color: #d5001c;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(213, 0, 28, 0.1);
}

.pagination-btn.active {
    background: #d5001c;
    color: #fff;
    border-color: #d5001c;
    box-shadow: 0 8px 20px rgba(213, 0, 28, 0.3);
}

.pagination-dots {
    color: #ccc;
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .swal-pagination {
        gap: 8px;
        padding: 0.5rem;
    }
    .pagination-btn {
        min-width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .booking-history-table thead {
        display: none; /* Hide header on mobile */
    }
    .booking-history-table, .booking-history-table tbody, .booking-history-table tr, .booking-history-table td {
        display: block;
        width: 100%;
    }
    .booking-history-table tr {
        margin-bottom: 1.5rem;
        background: #fff;
        border-bottom: 2px solid #f5f5f5;
        padding-bottom: 0.5rem;
    }
    .booking-history-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-top: none;
        padding-top: 0.8rem;
        padding-bottom: 0.8rem;
    }
    .booking-history-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0.8rem;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: 800;
        color: #d5001c;
        font-size: 0.7rem;
    }
}

@media (max-width: 850px) {
    .swal2-account-popup-custom {
        padding: 0 !important;
    }
    .swal-account-container {
        padding: 1.5rem 1rem;
    }
    .swal-account-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .account-actions-footer {
        grid-column: span 1;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
    .action-links {
        justify-content: center;
        gap: 0.8rem;
    }
    .action-link-btn {
        flex: 1 1 100%;
        justify-content: center;
        background: #f9f9f9;
        border: 1px solid #eee;
    }
    
    .account-item {
        gap: 0.8rem;
        margin-bottom: 1.2rem;
    }
    
    .account-item i {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
    
    .account-label {
        font-size: 0.65rem;
    }
    
    .account-value {
        font-size: 0.85rem;
    }
    
    .logout-btn-account {
        width: 100%;
        justify-content: center;
    }

    .affiliate-link-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .link-label {
        width: 100%;
        margin-bottom: 5px;
    }

    .link-url {
        width: 100%;
        margin-bottom: 5px;
        overflow: hidden;
        text-overflow: clip;
        white-space: normal;
        word-break: break-all;
    }

    .copy-btn {
        align-self: flex-end;
        background: rgba(213, 0, 28, 0.1);
        padding: 8px 15px;
        border-radius: 4px;
        width: 100%;
    }
    
    /* Form Improvements on Mobile */
    .swal-form-row-responsive {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .swal-form-row-responsive button {
        width: 100% !important;
        margin-top: 5px !important;
        padding: 0.9rem !important;
    }
    
    .swal-edit-form-inner {
        padding: 1.2rem !important;
    }

    .swal-account-header h2 {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }
}

/* Universal Account Form Style */
.swal-account-form {
    max-width: 600px; 
    margin: 0 auto; 
    padding: 2.5rem; 
    background: #fdfdfd; 
    border-radius: 12px; 
    border: 1px solid #eee;
}

.swal-form-actions {
    display: flex; 
    gap: 1rem; 
    margin-top: 2rem;
    justify-content: center;
}

.swal-btn-cancel {
    background: #666 !important;
}

.swal-btn-cancel:hover {
    background: #444 !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
}



/* =========================================
   TRANSPORT / BOOKING PAGE STYLES (Modern)
   ========================================= */

.booking-container {
    padding: 20px; /* Offset for header */
    max-width: 1600px;
    margin: 0 auto;
    background: #fdfdfd;
}

/* 1. Progress Bar Step-by-Step (Image Style) */
.booking-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
    background: rgba(0,0,0,0.85); /* Slightly darker */
    padding: 1.5rem 1rem;
    border-radius: 12px;
    gap: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.step-icon {
    width: 45px;
    height: 45px;
    background: #444;
    color: #999;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 2;
    margin-bottom: 8px;
    transition: all 0.4s ease;
    border: 3px solid #333;
}

.step-label {
    font-size: 0.8rem;
    color: #888;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step-line {
    position: absolute;
    width: 100%;
    height: 3px;
    background: #444;
    top: 22px;
    left: 50%;
    z-index: 1;
}

.step.active .step-icon {
    background: #d5001c;
    color: #fff;
    box-shadow: 0 0 15px rgba(213, 0, 28, 0.4);
    transform: scale(1.1);
}

.step.active .step-label {
    color: #d5001c;
}

.step.active .step-line::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: #d5001c;
    left: 0;
}

/* 2. Search Summary Card (Details from Form) */
.search-summary-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-bottom: 40px;
    border: 1px solid #eee;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #f9f9f9;
}

.summary-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #333;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-header h3 i {
    color: #d5001c;
}

.edit-btn {
    font-size: 0.85rem;
    color: #d5001c;
    font-weight: 700;
    text-decoration: none;
    background: #fff4f5;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s;
}

.edit-btn:hover {
    background: #d5001c;
    color: #fff;
}

.summary-grid {
    display: grid;
    grid-template-columns: 2fr 2fr 1.2fr;
    gap: 2rem;
}

.summary-item label {
    display: block;
    font-size: 0.75rem;
    color: #999;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.summary-item .val strong {
    display: block;
    font-size: 1rem;
    color: #222;
    margin-bottom: 3px;
}

.summary-item .val span {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.duration-badge {
    background: #222;
    color: #fff;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 800;
    text-align: center;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .booking-container {
        padding-top: 15px;
        padding-left: 10px;
        padding-right: 10px;
    }
    .booking-steps {
        margin-bottom: 25px;
        padding: 1rem 0.5rem;
    }
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .step-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    .step-label {
        font-size: 0.6rem;
        text-align: center;
    }
    .step-line {
        top: 17px;
    }
}


/* Fix for progress bar step line active color */
.step.active + .step .step-line::before {
    background: #444; /* Default background for future steps */
}

/* Specific styling for the icons in the progress bar (Image Style) */
.booking-steps .step .step-icon i {
    font-size: 1.2rem;
}

.booking-steps .step.active .step-icon i {
    color: #fff;
}

/* Background gradient for the step bar to match image */
.booking-steps {
    background: linear-gradient(to right, #1a1a1a, #2d2d2d) !important;
    border: 1px solid #333;
}

