/* --- BASE STYLE --- */
body {
    background-color: #121212;
    color: #ffffff;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

.section-title {
    text-align: center;
    font-weight: bold;
    margin-bottom: 40px;
    font-size: 27px;
    color: #ffffff;
}

/* --- CARDS & OPTIONS --- */
.card-option {
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s;
    background-color: #1e1e1e;
    color: #ffffff;
    margin-bottom: 15px;
}

.card-option:hover,
.card-option.active {
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.card-option .card-body {
    background-color: #1e1e1e;
}

.step-title {
    margin: 30px 0 15px;
    font-weight: 600;
    color: #ffffff;
}

.hidden {
    display: none;
}

/* --- LAYANAN CARD --- */
.layanan-card {
    height: auto;
    min-height: 100px;
    display: flex;
    flex-direction: column;
}

.layanan-card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 10px;
}

.layanan-card .card-title {
    font-size: 16px;
    margin-bottom: 5px;
}

/* --- BARBER CARD --- */
.card.barber-card {
    max-width: 100%;
    margin: auto;
    border-radius: 8px;
    overflow: hidden;
}

.card.barber-card img {
    height: 150px;
    object-fit: cover;
}

.barber-card.active {
    border: 2px solid #007bff;
    transform: scale(1.02);
}

/* --- CALENDAR SYSTEM --- */
.calendar-box {
    border: 1px solid #333;
    padding: 15px;
    border-radius: 8px;
    background: #1e1e1e;
}

.calendar-grid, .calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-grid div, .calendar-days div {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    border: 1px solid #353434;
}

.calendar-days {
    font-weight: bold;
    color: #94a3b8;
    margin-bottom: 5px;
}

.calendar-grid .active {
    background-color: #0d6efd !important;
    color: white;
}

.calendar-grid .disabled {
    background-color: #121212;
    color: #3c3c3c;
    pointer-events: none;
}

/* --- TIME SLOTS GRID --- */
#jam-terpilih {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.time-slot {
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #474646;
    cursor: pointer;
    font-size: 14px;
    border-radius: 6px;
    background-color: black;
    color: white;
    margin: 0; /* Margin diatur oleh gap grid */
}

.time-slot.active {
    background-color: #198754;
    border-color: #198754;
}

.booked-slot {
    background-color: #331c1c;
    color: #f2b3b3;
    cursor: not-allowed;
}

/* --- SUMMARY & FORM --- */
.booking-summary-card, .booking-form-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    width: 100%;
}

.text-gradient {
    background: linear-gradient(90deg, #ff8a00, #e52e71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.custom-input {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    border-radius: 10px;
    padding: 12px;
}

.btn-gradient {
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    border: none;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
}

/* --- MOBILE RESPONSIVE (MEDIA QUERIES) --- */
@media (max-width: 768px) {
    .section-title {
        font-size: 22px;
    }

    /* Cabang & Barber jadi 2 kolom di HP */
    #step-cabang .row, #step-barber .row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .col-md-4 {
        max-width: 100%;
        flex: 0 0 100%;
    }

    /* Kalender memenuhi layar */
    .calendar-grid div, .calendar-days div {
        height: 45px;
    }

    /* Jam jadi 3 kolom agar tombol besar & mudah ditekan */
    #jam-terpilih {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Form & Summary tumpuk vertikal */
    .tab-pane .d-flex {
        flex-direction: column !important;
        align-items: center;
    }

    .booking-summary-card, .booking-form-card {
        max-width: 100% !important;
    }
}

/* Efek Animasi */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}