/* WhatsApp Floating Button - Desktop (Horizontal Expandable Style) */
.footer__contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    color: #ccc;
}

.footer__contact-item i {
    color: #ff1414;
    /* warna icon */
    font-size: 16px;
    margin-top: 4px;
}

.footer__contact-item a {
    color: #ccc;
    text-decoration: none;
}

.footer__contact-item a:hover {
    color: #fff;
}

.whatsapp-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    min-width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    padding: 0;
}

.whatsapp-float-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float-btn.expanded {
    min-width: 300px;
    padding: 0 20px 0 5px;
    justify-content: flex-start;
}

.wa-icon-wrapper {
    width: 60px;
    height: 60px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
    position: relative;
}

.wa-icon-wrapper::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
}

.whatsapp-float-btn i {
    color: white !important;
    font-size: 32px !important;
    display: inline-block !important;
    line-height: 1 !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10;
    position: relative;
}

.whatsapp-float-btn.expanded .wa-icon-wrapper {
    width: 50px;
    height: 50px;
}

.whatsapp-float-btn.expanded i {
    font-size: 28px !important;
}

.wa-text {
    color: white;
    font-weight: 600;
    margin-left: 8px;
    white-space: nowrap;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    font-size: 15px;
}

.whatsapp-float-btn.expanded .wa-text {
    opacity: 1;
    max-width: 200px;
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float-btn.pulse {
    animation: pulse 2s infinite;
}

/* Contact Cards - Desktop (Horizontal Slide from Right) */
.contact-cards-container {
    position: fixed;
    bottom: 110px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.contact-card {
    background: white;
    border-radius: 50px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateX(400px);
    opacity: 0;
    min-width: 280px;
}

.contact-card.show {
    transform: translateX(0);
    opacity: 1;
}

.contact-card:nth-child(1) {
    transition-delay: 0.1s;
}

.contact-card:nth-child(2) {
    transition-delay: 0.15s;
}

.contact-card:nth-child(3) {
    transition-delay: 0.2s;
}

.contact-card:nth-child(4) {
    transition-delay: 0.25s;
}

.contact-card:nth-child(5) {
    transition-delay: 0.3s;
}

.contact-card:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
    background: linear-gradient(135deg, #f0fff4, #e8f5e9);
}

.contact-card-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #25D366;
    margin-right: 12px;
}

.contact-card-info {
    flex: 1;
}

.contact-card-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 2px;
}

.contact-card-label {
    font-size: 11px;
    color: #666;
}

.contact-card-icon {
    color: #25D366;
    font-size: 20px;
    margin-left: 10px;
}

/* Mobile Footer Navigation */
.mobile-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    display: none;
    border-radius: 25px 25px 0 0;
}

.mobile-footer.show {
    display: block;
}

.footer-nav {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    padding: 12px 0 10px;
    position: relative;
}

/* Cutout for elevated button */
.footer-nav::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 40px;
    background: white;
    border-radius: 40px 40px 0 0;
}

.footer-nav-item {
    flex: 1;
    text-align: center;
    padding: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.footer-nav-item i {
    font-size: 24px;
    color: #666;
    transition: all 0.3s ease;
}

.footer-nav-item span {
    display: block;
    font-size: 10px;
    color: #666;
    margin-top: 4px;
    font-weight: 500;
}

.footer-nav-item:hover i,
.footer-nav-item:hover span {
    color: #25D366;
}

/* WhatsApp Button - Elevated Style (Centered & Protruding) */
.footer-nav-item.wa-button {
    position: relative;
}

.footer-nav-item.wa-button .wa-elevated-wrapper {
    position: absolute;
    top: -55px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.footer-nav-item.wa-button .wa-elevated {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    border: 5px solid white;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    animation: bounce-subtle 3s ease-in-out infinite;
}

@keyframes bounce-subtle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.footer-nav-item.wa-button .wa-elevated:active {
    transform: scale(0.95);
    animation: none;
}

.footer-nav-item.wa-button .wa-elevated i {
    color: white;
    font-size: 36px;
    animation: wiggle 2.5s ease-in-out infinite;
}

@keyframes wiggle {

    0%,
    100% {
        transform: rotate(0deg);
    }

    10%,
    30% {
        transform: rotate(-10deg);
    }

    20%,
    40% {
        transform: rotate(10deg);
    }

    50%,
    60%,
    70%,
    80%,
    90% {
        transform: rotate(0deg);
    }
}

.footer-nav-item.wa-button .notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: #ff4444;
    border-radius: 50%;
    border: 3px solid white;
    animation: pulse-badge 2s infinite;
    z-index: 11;
}

@keyframes pulse-badge {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7);
    }

    50% {
        transform: scale(1.15);
        box-shadow: 0 0 0 6px rgba(255, 68, 68, 0);
    }
}

.footer-nav-item.wa-button span {
    color: #25D366;
    font-weight: 600;
    margin-top: 8px;
}

/* Add extra space for other nav items when WA button is present */
.footer-nav-item:nth-child(1),
.footer-nav-item:nth-child(2) {
    margin-right: 10px;
}

.footer-nav-item:nth-child(4),
.footer-nav-item:nth-child(5) {
    margin-left: 10px;
}

/* Mobile Contact Modal - Floating Style */
.mobile-contact-modal {
    position: fixed;
    bottom: 85px;
    left: 15px;
    right: 15px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.2), 0 8px 40px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    transform: scale(0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-height: 60vh;
    display: block;
}

.mobile-contact-modal.show {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}

.modal-handle {
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 10px auto;
}

.mobile-contact-header {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 18px;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-contact-header .close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-contact-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.mobile-contact-list {
    max-height: calc(60vh - 80px);
    overflow-y: auto;
    padding: 15px;
}

/* Contact Item Styling (for mobile) */
.contact-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #f8f9fa;
    opacity: 0;
    transform: translateY(20px);
}

.mobile-contact-modal.show .contact-item {
    animation: slideInUp 0.4s ease forwards;
}

.mobile-contact-modal.show .contact-item:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-contact-modal.show .contact-item:nth-child(2) {
    animation-delay: 0.15s;
}

.mobile-contact-modal.show .contact-item:nth-child(3) {
    animation-delay: 0.2s;
}

.mobile-contact-modal.show .contact-item:nth-child(4) {
    animation-delay: 0.25s;
}

.mobile-contact-modal.show .contact-item:nth-child(5) {
    animation-delay: 0.3s;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-item:active {
    transform: scale(0.98);
    background: #e8f5e9;
}

.contact-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #25D366;
    margin-right: 12px;
}

.contact-info {
    flex: 1;
}

.contact-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.contact-label {
    font-size: 12px;
    color: #666;
}

.chat-badge {
    background: #25D366;
    color: white;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

/* Scrollbar Styling */
.mobile-contact-list::-webkit-scrollbar {
    width: 6px;
}

.mobile-contact-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.mobile-contact-list::-webkit-scrollbar-thumb {
    background: #25D366;
    border-radius: 10px;
}

/* Hide mobile elements on desktop */
@media (min-width: 768px) {
    .mobile-footer {
        display: none !important;
    }

    .mobile-contact-modal {
        display: none !important;
    }

    body {
        padding-bottom: 0;
    }
}

/* Hide desktop elements on mobile */
@media (max-width: 767px) {
    .whatsapp-float-btn {
        display: none;
    }

    .contact-cards-container {
        display: none;
    }

    .mobile-footer {
        display: block;
    }

    body {
        padding-bottom: 70px;
    }
}

.modal-backdrop-custom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.modal-backdrop-custom.show {
    opacity: 1;
    visibility: visible;
}

.modal-handle {
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 10px auto;
}

.mobile-contact-header {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 18px;
}

.mobile-contact-list {
    max-height: calc(50vh - 100px);
    overflow-y: auto;
    padding: 15px;
}

/* Mobile Contact Modal */
@media (min-width: 768px) {
    .mobile-footer {
        display: none !important;
    }

    .mobile-contact-modal {
        display: none !important;
    }

    body {
        padding-bottom: 0;
    }
}

/* Hide desktop elements on mobile */
@media (max-width: 767px) {
    .whatsapp-float-btn {
        display: none;
    }

    .contact-popup {
        display: none;
    }

    .mobile-footer {
        display: block;
    }

    body {
        padding-bottom: 70px;
    }
}

/* --- Offline style untuk tombol WA --- */
.wa-offline {
    background-color: #bdbdbd !important;
    /* abu-abu */
    opacity: 0.95;
    cursor: not-allowed !important;
}

/* Pastikan ikon ikut berubah (jika pake fontawesome) */
.wa-offline i,
.wa-offline svg {
    opacity: 0.6;
    filter: grayscale(1);
}

/* Matikan animasi pulse/swing di mobile */
@media (max-width: 767px) {

    #waFloatBtn.pulse,
    #waFloatBtn.expanded.pulse {
        animation: none !important;
    }
}

/* Demo Content Styling */
.demo-content {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}