/* Warna Utama Berdasarkan Brand Little Menu */
:root {
    --main-color: #f0be49;
    /* Kuning Utama */
    --main-dark: #dd5c36;
    /* Oranye Gelap */
    --success-color: #28a745;
    --text-dark: #133020;
    --bg-light: #f8f9fa;
}

/* 1. PERBAIKAN LAYOUT (Agar Footer Tidak Terpotong) */
#main-footer {
    /* Memberikan ruang di bawah agar konten tidak tertutup floating nav */
    padding-bottom: 90px !important;
}

/* Hapus selector Modal karena sudah menggunakan View Biasa */
#consultationModal .modal-dialog,
#consultationModal .modal-content {
    display: none;
}

/* 2. STEP INDICATOR (Modern Stepper) */
.step-indicator {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 30px;
    padding: 0 10px;
}

.step-indicator::before {
    content: "";
    position: absolute;
    top: 25px;
    /* Menyesuaikan tengah icon */
    left: 20%;
    right: 20%;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.step-item {
    position: relative;
    z-index: 2;
    background: transparent;
    /* Ubah ke transparan agar menyatu dengan bg */
    text-align: center;
    flex: 1;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #ccc;
    font-size: 1.2rem;
}

/* State Aktif pada Stepper */
.step-item.active .step-icon {
    background: var(--main-dark);
    color: white;
    border-color: var(--main-dark);
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(221, 92, 54, 0.4);
}

.step-item.active span {
    color: var(--main-dark) !important;
    font-weight: bold;
}

/* 3. INTERACTIVE CARDS (Action States) */
.service-card,
.date-item,
.time-slot {
    cursor: pointer;
    border: 2px solid #f0f0f0 !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: #fff;
}

/* Efek Hover & Active */
.service-card:hover,
.date-item:hover,
.time-slot:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--main-dark) !important;
}

.service-card.active,
.date-item.active,
.time-slot.active {
    border-color: var(--main-color) !important;
    background-color: #fffdf7 !important;
    animation: subtle-pulse 2s infinite;
}

/* Khusus Date Item Active */
.date-item.active {
    background: var(--main-color) !important;
    color: var(--text-dark) !important;
}

/* 4. FLOATING NAVIGATION (Glassmorphism) */
.floating-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    /* Efek Kaca */
    -webkit-backdrop-filter: blur(15px);
    padding: 15px 25px;
    padding-bottom: calc(15px + env(safe-area-inset-bottom));
    /* Support iPhone */
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-radius: 25px 25px 0 0;
}

/* Tombol Lanjut (Primary Action) */
#btnNext {
    background-color: var(--main-dark);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 15px;
    transition: all 0.3s ease;
}

#btnNext:hover {
    background-color: #c44d2b;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(221, 92, 54, 0.3);
}

/* 5. ANIMASI GENTAR (Error Feedback) */
.shake-error {
    animation: shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
    /* Tambahkan !important agar warna merah muncul mengalahkan style default */
    border: 2px solid #dc3545 !important;
    background-color: #fff5f5 !important;
    /* Tambah warna background merah muda tipis */
    color: #dc3545 !important;
}

.service-card.shake-error,
.date-item.shake-error,
.time-slot.shake-error {
    transform: none;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

@keyframes subtle-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(221, 92, 54, 0.2);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(221, 92, 54, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(221, 92, 54, 0);
    }
}

/* Tab Pane Smooth Transition */
.tab-pane {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s ease-out;
}

.tab-pane.active.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* --- PERBAIKAN LAYOUT TANGGAL (HORIZONTAL SCROLL) --- */
.custom-date-picker {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 15px 5px;
    gap: 12px;
    margin: 0 -15px;
    /* Biar bisa scroll sampai mentok layar */
    padding-left: 20px;
    padding-right: 20px;
}

.custom-date-picker::-webkit-scrollbar {
    display: none;
    /* Sembunyikan scrollbar agar rapi */
}

.date-item {
    min-width: 85px;
    height: 110px;
    background: #fff;
    border: 2px solid #f0f0f0 !important;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
}

.date-item .day {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
}

.date-item .date {
    font-size: 1.8rem;
    font-weight: 800;
    color: #333;
    line-height: 1;
    margin: 6px 0;
}

.date-item .month {
    font-size: 0.85rem;
    color: #888;
}

/* State Tanggal Aktif (Action) */
.date-item.active {
    background: var(--main-color) !important;
    border-color: var(--main-color) !important;
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 10px 20px rgba(240, 190, 73, 0.4) !important;
}

.date-item.active .day,
.date-item.active .date,
.date-item.active .month {
    color: var(--text-dark) !important;
}

/* --- PERBAIKAN LAYOUT JAM (GRID) --- */
.time-slot {
    background: #fff;
    border: 2px solid #f0f0f0 !important;
    border-radius: 15px;
    padding: 12px;
    text-align: center;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
    margin-bottom: 10px;
}


/* Feedback saat diklik */
.date-item:active,
.time-slot:active {
    transform: scale(0.9);
}




/* Desktop & Default */
.custom-card {
    border-radius: 25px;
    /* Lengkungan modern */
    transition: all 0.3s ease;
    background: #ffffff;
}

/* Penyesuaian untuk Layaran Mobile (di bawah 768px) */
@media (max-width: 767.98px) {
    .custom-card {
        border-radius: 18px;
        /* Lengkungan sedikit lebih kecil di HP */
        margin-left: 10px;
        /* Beri jarak sedikit dari pinggir layar */
        margin-right: 10px;
    }

    /* Jika ada padding px-5, kita paksa jadi lebih kecil di mobile */
    .px-5 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

.service-card.active .price-tag {
    color: var(--main-dark) !important;
    transform: scale(1.05);
    display: inline-block;
}

@media (max-width: 767.98px) {
    .service-card {
        padding: 1rem !important;
    }

    .price-tag {
        display: block;
        margin-top: 5px;
    }
}

.disabled-date {
    opacity: 0.3;
    background-color: #f8f9fa;
    filter: grayscale(1);
    pointer-events: none;
    /* Supaya tidak bisa diklik sama sekali */
}

.date-item.disabled-date span {
    color: #adb5bd !important;
}