/* ==========================================================================
   Floating Contact Buttons CSS
   ========================================================================== */

/* Pastikan variabel warna tersedia jika diletakkan di file terpisah, 
   atau gunakan warna fallback jika var() tidak ditemukan */
:root {
    --dark-navy: #001f3f; /* Contoh warna navy, sesuaikan dengan aslinya */
    --primary-blue: #0074D9; /* Contoh warna biru, sesuaikan dengan aslinya */
    --wa-green: #25D366;
    --tel-red: #D32F2F;
}

.floating-contact-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    pointer-events: none; /* Mencegah container menutupi elemen lain */
}

/* =========================================
   Tampilan Mobile & Tablet (<= 768px)
   ========================================= */
.floating-contact-mobile {
    display: none; /* Sembunyikan secara default (di desktop) */
    background: linear-gradient(135deg, var(--dark-navy), var(--primary-blue));
    padding: 15px 20px 20px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
    pointer-events: auto; /* Mengaktifkan kembali interaksi di elemen ini */
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.floating-text {
    color: #ffffff;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.floating-buttons-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.btn-float {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-float:active {
    transform: scale(0.95);
}

.btn-tel {
    background-color: var(--tel-red);
    /* Sedikit efek shadow untuk tombol */
    box-shadow: 0 4px 6px rgba(211, 47, 47, 0.3);
}

.btn-wa {
    background-color: var(--wa-green);
    box-shadow: 0 4px 6px rgba(37, 211, 102, 0.3);
}

/* =========================================
   Tampilan Desktop (> 768px)
   ========================================= */
.floating-contact-desktop {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: block; /* Tampilkan di desktop */
    pointer-events: auto;
}

.btn-float-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #2ed573; /* Warna hijau cerah seperti di referensi desktop */
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
}

.btn-float-circle:hover {
    transform: scale(1.1);
    background-color: #26b963;
}


/* =========================================
   Media Queries untuk Kontrol Responsif
   ========================================= */

/* Aturan ketika layar di bawah 768px (Tablet & Mobile) */
@media (max-width: 768px) {
    .floating-contact-desktop {
        display: none; /* Sembunyikan tombol bulat desktop */
    }
    .floating-contact-mobile {
        display: block; /* Tampilkan bar melayang mobile */
    }
    
    /* Mencegah konten utama tertutup oleh bar melayang */
    body {
        padding-bottom: 120px; 
    }
}

