/*
====================================================
SECTION: GLOBAL VARIABLES & BASE
====================================================
*/
:root {
    --table-card-min-width: 100px;
    --gap-size: 10px;
}
 
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #f4f4f9;
    /* PERUBAHAN: Memberi ruang di atas untuk header yang fixed */
    padding-top: 77px;
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
}

html {
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
}

/* PERUBAHAN: Sembunyikan scrollbar untuk browser berbasis Webkit (Chrome, Safari, Opera) */
html::-webkit-scrollbar, ::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
    width: 0px;
    background: transparent;
}

/* PERUBAHAN: Style header dibuat fixed */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 15px 30px;
    position: fixed; /* Kunci agar header tetap di atas */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030; /* Pastikan header di atas konten lain */
    height: 77px; /* Menyamakan tinggi header */
}
.header-logo-img {
    height: 45px;
    display: block;
}

/*
====================================================
SECTION: PLAN YOUR VISIT & BOOKING STEPS
====================================================
*/

.plan-visit-section {
    background-color: #f8f9fa; /* Warna latar belakang abu-abu muda */
    border-bottom: 1px solid #e9ecef;
}

.plan-visit-section h2 {
    color: #343a40;
    font-size: 3.15rem;
}

.plan-visit-section p {
    color: #343a40;
    font-size: 0.95rem; /* PERBAIKAN: Menyamakan ukuran font dengan deskripsi lain */
}

.booking-steps {
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #6c757d; /* Warna abu-abu untuk teks yang tidak aktif */
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ced4da; /* Border abu-abu */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    background-color: #fff;
}

.step-label {
    font-size: 0.9rem;
    font-weight: 500;
}


/*
====================================================
SECTION: MAIN CONTENT & FORMS
====================================================
*/
.form-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.25rem;
}

/*
====================================================
STYLE BARU UNTUK ITEM KERANJANG GAYA INVOICE
====================================================
*/
.cart-item-invoice {
    background-color: #f8f9fa; /* Latar belakang abu-abu sangat muda */
    border: 1px solid #e9ecef; /* Border abu-abu muda */
    border-radius: 8px; /* Sudut membulat */
    padding: 1rem; /* Padding di dalam kartu */
    margin-bottom: 1rem; /* Jarak antar kartu */
}

.cart-item-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cart-item-spot-name {
    font-weight: 600; /* Bold */
    font-size: 1.05rem;
    color: #244797; /* Warna biru kustom */
    flex-grow: 1; /* Ambil ruang sebanyak mungkin */
    margin-right: 1rem; /* Jarak ke harga */
}

.cart-item-details {
    display: flex;
    flex-wrap: wrap; /* Agar bisa turun baris di layar kecil */
    gap: 0.5rem 1rem; /* Jarak vertikal dan horizontal antar detail */
    font-size: 0.8rem; /* Sedikit diperkecil */
    color: #6c757d; /* Abu-abu (text-muted) */
    padding-left: 2px; /* Sedikit indentasi agar rapi */
}

.detail-item {
    display: flex;
    align-items: center;
}

.detail-item i {
    margin-right: 0.4rem; /* Jarak antara ikon dan teks */
    font-size: 1rem;
}

.cart-item-price-action {
    display: flex;
    flex-direction: column; /* Tumpuk harga di atas tombol hapus */
    align-items: flex-end; /* Ratakan ke kanan */
    text-align: right;
}

.cart-item-price {
    font-weight: 700; /* Sangat bold */
    font-size: 1.1rem;
    color: #fd7e14; /* Warna oranye */
}

.btn-close-cart-item {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0 0.5rem;
    cursor: pointer;
    text-decoration: none;
    color: #6c757d;
}
.btn-close-cart-item:hover {
    color: #dc3545;
}

/* PERBAIKAN: Style untuk garis pemisah putus-putus */
.cart-divider {
    height: 1px;
    background-image: linear-gradient(to right, #ced4da 50%, transparent 50%);
    background-size: 8px 1px;
    border: 0;
    margin: 1rem 0;
}

/*
====================================================
STYLE BARU UNTUK FOOTER CHECKOUT
====================================================
*/
.fixed-checkout-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 1rem 0;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    z-index: 1020; /* Di bawah modal tapi di atas konten lain */
    border-top: 1px solid #dee2e6;
}

.total-display {
    color: #212529;
}

.total-label {
    font-size: 1rem;
    color: #6c757d;
    margin-right: 10px;
}
.total-amount {
    font-size: 1.5rem;
    font-weight: bold;
}

/*
====================================================
PERBAIKAN: Style untuk intl-tel-input (Phone Number)
====================================================
*/

/* Paksa wrapper intl-tel-input untuk menjadi block-level dan mengambil lebar penuh */
.iti {
    width: 100%;
    display: block;
}

/* Samakan tinggi input telepon dengan input form-control lainnya */
.iti .form-control {
    height: calc(1.5em + .75rem + 2px);
}

/*
====================================================
PERUBAHAN: Kustomisasi Warna Tombol Utama
====================================================
*/
.btn-outline-primary {
    color: #244797;
    border-color: #244797;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #244797;
    border-color: #244797;
}

.btn-outline-primary:focus, .btn-outline-primary.focus {
    box-shadow: 0 0 0 0.2rem rgba(36, 71, 151, 0.5);
}

.btn-outline-primary.disabled, .btn-outline-primary:disabled {
    color: #244797;
    background-color: transparent;
}

/*
====================================================
PERUBAHAN: Animasi untuk Ikon Tombol
====================================================
*/
@keyframes icon-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.icon-bounce {
    animation: icon-bounce 0.6s ease;
}

/*
====================================================
PERBAIKAN: Style untuk Tombol Checkout dengan Spinner
====================================================
*/

/* PERBAIKAN ULANG: Animasi titik yang lebih andal */
@keyframes loading-dots {
    0%, 100% {
        content: '.';
    }
    33% {
        content: '..';
    }
    66% {
        content: '...';
    }
}

/* Sembunyikan elemen loading secara default */
.btn .checkout-processing-text {
    display: none;
}

/* Saat tombol dalam status .is-loading */
.btn.is-loading .checkout-button-text {
    display: none; /* Sembunyikan teks asli */
}

.btn.is-loading .checkout-processing-text {
    display: inline; /* Tampilkan teks "Processing" */
}

.btn.is-loading .loading-dots::after {
    content: '';
    animation: loading-dots 1.5s infinite;
}

.btn.is-loading .checkout-button-text {
    display: none; /* Sembunyikan teks asli */
}