/* 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 Floating Button Form Simulasi */


/* Tambahan perbaikan untuk tombol WhatsApp dan dropdown CS */

.bm-actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

#bmApplyBtn {
    flex: 1 1 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #cc0000;
    border: none;
    color: #fff;
    font-weight: 700;
    border-radius: 10px;
    padding: 12px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

#bmApplyBtn:hover {
    background: #cc0000;
}


/* Bagian CSS untuk dropdown dihapus/diabaikan karena dropdown dihilangkan */


/* Responsive improvements */

@media (max-width: 768px) {
    .bm-panel {
        width: 95%;
        font-size: 14px;
    }
    #bmApplyBtn {
        font-size: 14px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .bm-actions {
        flex-direction: column;
    }
}

.bm-dropdown {
    display: none;
    /* Pastikan dropdown tersembunyi jika masih ada */
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 99999;
    animation: fadeIn .2s ease;
}

.bm-dropdown a {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: #040424;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

.bm-dropdown a:hover {
    background: #f8f8f8;
    color: #cc0000;
}

.bm-dropdown a:last-child {
    border-bottom: none;
}

.bm-widget * {
    box-sizing: border-box;
    color: #040424;
    font-family: Arial, sans-serif
}

.bm-floating {
    position: fixed;
    left: 10px;
    bottom: 93px;
    z-index: 99999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #cc0000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform .2s;
    font-size: 24px;
}

.bm-floating:active {
    cursor: grabbing;
    transform: scale(.95)
}


/* Info Text */

.bm-info {
    position: fixed;
    left: 80px;
    bottom: 130px;
    background: #fff;
    color: #cc0000;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    display: none;
    z-index: 99998;
}


/* Modal Overlay */

.bm-modal {
    display: none;
    position: fixed;
    z-index: 99998;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    align-items: center;
    justify-content: center;
    padding: 10px;
}


/* Modal Box */

.bm-panel {
    width: 400px;
    max-width: 95%;
    background: #f5f5f5;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: fadeIn .3s ease;
}

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

.bm-head {
    background: #cc0000;
    color: #fff;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bm-head h4 {
    margin: 0;
    font-size: 16px
}

.bm-close {
    background: #fff;
    padding: 5px 8px;
    border-radius: 6px;
    cursor: pointer
}

.bm-tabs {
    display: flex;
    gap: 6px;
    padding: 10px;
    background: transparent
}

.bm-tabs button {
    flex: 1;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: #fff;
    color: #040424;
    cursor: pointer;
    font-weight: 600
}

.bm-tabs button.active {
    background: #ffecec;
    border-color: #ffbebe;
    color: #cc0000
}

.bm-content {
    padding: 14px;
    font-size: 14px;
    color: #040424;
    max-height: 70vh;
    overflow: auto
}

.bm-row {
    margin-bottom: 10px
}

label.bm-label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 13px
}

input.bm-input,
select.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: 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    color: #000;
}

.bm-pay-toggle button.active {
    background: #cc0000;
    color: #fff;
    border-color: #cc0000
}

.bm-tenor {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px
}

.bm-tenor button {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer
}

.bm-tenor button.active {
    background: #fff0f0;
    border-color: #ffbebe;
    color: #cc0000;
    font-weight: 700
}

.bm-summary {
    display: flex;
    justify-content: space-between;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid #eee
}

.bm-summary .value {
    font-weight: 900;
    color: #cc0000;
    font-size: 16px
}

.bm-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px
}

.bm-btn {
    flex: 1;
    padding: 10px;
    border: 0;
    border-radius: 10px;
    background: #cc0000;
    color: #fff;
    font-weight: 700;
    cursor: pointer
}

.bm-secondary {
    background: #fff;
    color: #040424;
    border: 1px solid #ddd
}

.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);
    }
}