/* Style CSS Floating Button Whatsapp */


/* Floating button wrapper */

#wa-floating {
    position: fixed;
    bottom: 92px;
    right: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 1s ease-in-out;
}


/* Balloon text */

#wa-balloon {
    background: #25d366;
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.4s ease;
    white-space: nowrap;
    pointer-events: none;
}


/* Button */

#wa-btn {
    background-color: #25d366;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#wa-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

#wa-btn img {
    width: 32px;
    height: 32px;
}


/* Responsiveness */

@media (max-width: 768px) {
    #wa-floating {
        bottom: 95px;
        right: 15px;
    }
    #wa-btn {
        width: 50px;
        height: 50px;
    }
    #wa-balloon {
        font-size: 13px;
    }
}


/* Animation */

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


/* Style CSS Form Simulasi dan Compare Produk */
        /* --- RESET & BASIC --- */
        
        .bm-widget * {
            box-sizing: border-box;
            color: #040424;
            font-family: 'Segoe UI', Arial, sans-serif;
        }
        /* --- FLOATING MENU WRAPPER --- */
        
        .bm-fab-container {
            position: fixed;
            left: 20px;
            bottom: 90px;
            z-index: 99999;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 15px;
        }
        /* --- MAIN TOGGLE BUTTON (BURGER) --- */
        
        .bm-fab-main {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #cc0000;
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(204, 0, 0, 0.4);
            transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            font-size: 24px;
            border: none;
            outline: none;
        }
        
        .bm-fab-main i {
            transition: 0.3s;
        }
        /* Icon Burger (Strip 3) dibuat dengan CSS murni agar ringan */
        
        .icon-burger {
            display: block;
            width: 20px;
            height: 3px;
            background: #fff;
            position: relative;
            transition: 0.3s;
        }
        
        .icon-burger::before,
        .icon-burger::after {
            content: '';
            position: absolute;
            width: 100%;
            height: 3px;
            background: #fff;
            left: 0;
            transition: 0.3s;
        }
        
        .icon-burger::before {
            top: -8px;
        }
        
        .icon-burger::after {
            top: 8px;
        }
        /* State Active (Menjadi X) */
        
        .bm-fab-main.active {
            background: #333;
            transform: rotate(90deg);
        }
        
        .bm-fab-main.active .icon-burger {
            background: transparent;
        }
        
        .bm-fab-main.active .icon-burger::before {
            top: 0;
            transform: rotate(45deg);
        }
        
        .bm-fab-main.active .icon-burger::after {
            top: 0;
            transform: rotate(-45deg);
        }
        /* --- SUB BUTTONS --- */
        
        .bm-fab-action {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #fff;
            color: #cc0000;
            border: 2px solid #cc0000;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            opacity: 0;
            transform: translateY(20px) scale(0.8);
            pointer-events: none;
            transition: 0.3s;
            position: relative;
            font-size: 20px;
        }
        /* Tooltip Label untuk Sub Button */
        
        .bm-fab-action::after {
            content: attr(data-label);
            position: absolute;
            left: 60px;
            background: #333;
            color: #fff;
            padding: 5px 10px;
            border-radius: 4px;
            font-size: 12px;
            white-space: nowrap;
            opacity: 0;
            transition: 0.2s;
            pointer-events: none;
        }
        
        .bm-fab-action:hover::after {
            opacity: 1;
            left: 65px;
        }
        /* Show Actions when Active */
        
        .bm-fab-container.show .bm-fab-action {
            opacity: 1;
            transform: translateY(0) scale(1);
            pointer-events: all;
        }
        /* --- BUBBLE MESSAGE HINT (NEW FEATURE - MODIFIED) --- */
        
        .bm-bubble-message {
            position: absolute;
            /* Diubah: Gunakan 'left' untuk memposisikan di sebelah kanan FAB */
            left: 50px;
            bottom: 0px;
            /* Sesuaikan dengan posisi FAB */
            background: #fff;
            color: #cc0000;
            padding: 8px 13px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            font-size: 14px;
            font-weight: bold;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            transform: translateX(-10px) scale(0.8);
            transition: all 0.3s ease-in-out;
            z-index: 99998;
            border: 2px solid #cc0000;
        }
        
        .bm-bubble-message.show {
            opacity: 1;
            visibility: visible;
            transform: translateX(0) scale(1);
        }
        /* Arrow/Segitiga Kecil (Sekarang mengarah ke kiri) */
        
        .bm-bubble-message::after {
            content: '';
            position: absolute;
            /* Diubah: Posisikan di kiri bubble */
            left: -10px;
            bottom: 15px;
            width: 0;
            height: 0;
            border-top: 8px solid transparent;
            border-bottom: 8px solid transparent;
            /* Diubah: Gunakan border-right agar panah menghadap kiri */
            border-right: 10px solid #cc0000;
        }
        
        .bm-bubble-message::before {
            content: '';
            position: absolute;
            /* Diubah: Posisikan di kiri bubble */
            left: -8px;
            bottom: 15px;
            width: 0;
            height: 0;
            border-top: 8px solid transparent;
            border-bottom: 8px solid transparent;
            /* Diubah: Gunakan border-right agar panah menghadap kiri (warna putih) */
            border-right: 10px solid #fff;
            z-index: 99999;
        }
        /* --- MODAL STYLES (SHARED) --- */
        
        .bm-modal {
            display: none;
            position: fixed;
            z-index: 99998;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(3px);
            align-items: center;
            justify-content: center;
            padding: 10px;
        }
        
        .bm-panel {
            background: #f9f9f9;
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            animation: fadeIn .3s ease;
            max-height: 90vh;
        }
        /* Modal Simulasi (Kecil) */
        
        .bm-panel-sim {
            width: 400px;
            max-width: 95%;
        }
        /* Modal Compare (Lebar) */
        
        .bm-panel-wide {
            width: 900px;
            max-width: 98%;
        }
        
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: scale(0.95)
            }
            to {
                opacity: 1;
                transform: scale(1)
            }
        }
        
        .bm-head {
            background: #cc0000;
            color: #fff;
            padding: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-weight: bold;
        }
        
        .bm-close {
            background: rgba(255, 255, 255, 0.2);
            padding: 5px 10px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 12px;
            color: #fff;
        }
        
        .bm-close:hover {
            background: rgba(255, 255, 255, 0.4);
        }
        
        .bm-content {
            padding: 15px;
            overflow-y: auto;
            flex: 1;
        }
        /* --- STYLES FOR SIMULATION FORM --- */
        
        .bm-tabs {
            display: flex;
            gap: 6px;
            padding: 10px 15px 0;
            background: #fff;
            border-bottom: 1px solid #eee;
        }
        
        .bm-tabs button {
            flex: 1;
            padding: 10px;
            border: none;
            background: transparent;
            border-bottom: 3px solid transparent;
            cursor: pointer;
            font-weight: 600;
            color: #666;
        }
        
        .bm-tabs button.active {
            border-color: #cc0000;
            color: #cc0000;
        }
        
        .bm-row {
            margin-bottom: 12px;
        }
        
        .bm-label {
            display: block;
            font-weight: 700;
            margin-bottom: 6px;
            font-size: 13px;
        }
        
        .bm-input {
            width: 100%;
            padding: 10px;
            border-radius: 8px;
            border: 1px solid #ddd;
            background: #fff;
        }
        
        .bm-pay-toggle {
            display: flex;
            gap: 8px;
        }
        
        .bm-pay-toggle button {
            flex: 1;
            padding: 8px;
            border-radius: 6px;
            border: 1px solid #ddd;
            background: #fff;
            cursor: pointer;
        }
        
        .bm-pay-toggle button.active {
            background: #cc0000;
            color: #fff;
            border-color: #cc0000;
        }
        
        .bm-tenor {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 6px;
        }
        
        .bm-tenor button {
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 6px;
            cursor: pointer;
            font-size: 13px;
        }
        
        .bm-tenor button.active {
            background: #fff0f0;
            border-color: #ffbebe;
            color: #cc0000;
            font-weight: bold;
        }
        
        .bm-summary {
            display: flex;
            justify-content: space-between;
            background: #fff;
            padding: 12px;
            border-radius: 8px;
            border: 1px solid #e0e0e0;
            margin-top: 15px;
        }
        
        .bm-summary .value {
            font-weight: 900;
            color: #cc0000;
            font-size: 16px;
            margin-top: 4px;
        }
        
        .bm-btn {
            width: 100%;
            padding: 12px;
            border: 0;
            border-radius: 8px;
            background: #cc0000;
            color: #fff;
            font-weight: 700;
            cursor: pointer;
            margin-top: 10px;
        }
        
        .bm-btn:hover {
            background: #aa0000;
        }
        
        .bm-secondary {
            background: #fff;
            color: #333;
            border: 1px solid #ddd;
            margin-top: 0;
        }
        /* --- STYLES FOR COMPARE MODAL --- */
        
        .comp-header {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin-bottom: 15px;
            /* position: sticky; <-- DIHAPUS */
            /* top: 0; <-- DIHAPUS */
            background: #f9f9f9;
            z-index: 10;
            padding-bottom: 10px;
            border-bottom: 1px solid #ddd;
        }
        
        .comp-select-box {
            text-align: center;
        }
        
        .comp-select-box select {
            width: 100%;
            padding: 8px;
            border: 1px solid #ccc;
            border-radius: 6px;
            font-weight: bold;
        }
        
        .comp-img-container {
            height: 120px;
            margin: 10px 0;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            overflow: hidden;
            background: #ffffff;
        }
        
        .comp-img-container img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            display: none;
        }
        
        .comp-img-placeholder {
            /* Perbaikan: hanya untuk teks placeholder */
            color: #888;
            font-size: 12px;
            text-align: center;
        }
        
        .comp-price-tag {
            font-size: 18px;
            font-weight: bold;
            color: #cc0000;
            text-align: center;
            margin-bottom: 10px;
        }
        
        .comp-pros-cons {
            font-size: 13px;
            background: #fff;
            padding: 10px;
            border-radius: 8px;
            border: 1px solid #eee;
            margin-bottom: 15px;
            min-height: 80px;
        }
        
        .comp-pros-cons h5 {
            margin: 0 0 5px 0;
            font-size: 12px;
            color: #555;
            text-transform: uppercase;
        }
        
        .comp-pros-cons ul {
            padding-left: 20px;
            margin: 0;
        }
        
        .comp-pros-cons li {
            margin-bottom: 2px;
        }
        
        .comp-section-title {
            background: #d8d8d8;
            /* Warna Header Spesifikasi Diperjelas */
            padding: 8px 10px;
            font-weight: bold;
            font-size: 14px;
            color: #333;
            margin-top: 15px;
            border-radius: 4px;
            margin-bottom: 0;
        }
        
        .comp-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
        }
        
        .comp-table td {
            padding: 8px;
            border-bottom: 1px dashed #ddd;
            /* Mengganti solid ke dashed untuk pemisah */
            vertical-align: top;
            width: 50%;
        }
        
        .comp-table tr:nth-child(odd) {
            /* Menggunakan odd/even untuk membedakan baris */
            background: #f0f0f0;
        }
        
        .comp-table tr:nth-child(even) {
            background: #fff;
        }
        
        .comp-row-label {
            display: block;
            font-size: 11px;
            color: #888;
            margin-bottom: 2px;
            font-weight: bold;
        }
        /* Responsive Compare */
        
        @media (max-width: 600px) {
            .comp-header {
                grid-template-columns: 1fr;
                gap: 5px;
            }
            .comp-table td {
                display: block;
                width: 100%;
                border-bottom: none;
                /* Hapus border bawah di mobile td */
            }
            .comp-table tr {
                border-bottom: 1px solid #ddd;
                /* Pindahkan border di mobile ke tr */
                display: grid;
                grid-template-columns: 1fr 1fr;
            }
            .comp-row-label {
                grid-column: 1 / -1;
                margin-top: 5px;
                color: #cc0000;
            }
        }

/* End CSS Form Simulasi dan Compare Produk */

.back-to-top {
    display: none !important;
}

.footer-col {
    text-align: center;
    color: white;
    font-family: 'Poppins', sans-serif;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    justify-items: center;
}

.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: scale(1.05);
}

.grid-item img {
    width: 100px;
    height: 60px;
    object-fit: contain;
    object-position: center;
    background: transparent;
}

.grid-item span {
    margin-top: 8px;
    font-size: 0.9rem;
    text-align: center;
}

.footer {
    background: transparent;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    padding: 10px;
}


/* --- TOP FOOTER --- */

.footer-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    text-align: left;
}

.footer-col h4 {
    margin-bottom: 10px;
    font-size: 1.4rem;
    color: #fff;
}

.footer-col table {
    width: 100%;
    border-collapse: collapse;
}

.footer-col td {
    padding: 2px 0;
    border: none;
    color: #fff;
    font-size: 12px;
}

.footer-col a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #ffcccc;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.grid-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.grid-item img {
    width: 24px;
    height: 24px;
}

.grid-item span {
    font-size: 0.9rem;
}


/* --- END FOOTER --- */

.footer-end {
    margin-top: 40px;
    text-align: center;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.subscribe h4 {
    color: #fff;
}

.subscribe form {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    color: #fff;
}

.subscribe input {
    padding: 10px;
    border-radius: 6px;
    border: none;
    outline: none;
    width: 240px;
}

.subscribe button {
    padding: 10px 20px;
    border: none;
    background: #c00;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.subscribe button:hover {
    background: #a00;
}

.subscribe input {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #fff;
    outline: none;
    width: 240px;
    background: transparent;
    color: #fff;
    /* warna teks putih */
}


/* warna placeholder putih */

.subscribe input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.footer-menu {
    margin-bottom: 20px;
}

.footer-menu a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-menu a:hover {
    color: #ffcccc;
}


/* --- RESPONSIVE --- */

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }
    .subscribe button {
        padding: 5px 15px;
        border: none;
        background: #c00;
        color: #fff;
        border-radius: 6px;
        cursor: pointer;
        transition: background 0.3s;
    }
    .subscribe h4 {
        font-size: 12px;
    }
}


/* Tombol utama */

.btn-bantuan {
    background-color: #c00;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-bantuan:hover {
    background-color: #a00;
}


/* Modal background */

.modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    padding: 10px;
}


/* Modal box */

.modal-content {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: fadeIn 0.3s ease;
}


/* Close button */

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #888;
    cursor: pointer;
}

.close:hover {
    color: #000;
}


/* Tabs */

.tab-header {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 15px;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 10px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    transition: 0.3s;
}

.tab-btn.active {
    color: #c00;
    border-bottom: 3px solid #c00;
}


/* Tab content */

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}


/* Form */

.form-bantuan {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input,
select,
textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-btn {
    background: #c00;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #a00;
}


/* Responsive */

@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        padding: 15px;
    }
    .tab-btn {
        font-size: 14px;
    }
    .btn-bantuan {
        background-color: #c00;
        color: #fff;
        border: none;
        padding: 5px 15px;
        border-radius: 8px;
        font-weight: bold;
        cursor: pointer;
        transition: background 0.3s;
        font-size: 12px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}