.demo-content {
    text-align: center;
    color: white;
    padding: 50px 20px;
}

.demo-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.demo-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    margin-top: 3px;
}

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

    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8), 0 0 0 10px rgba(37, 211, 102, 0.2);
    }

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

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.whatsapp-widget.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Widget Header */
.whatsapp-widget-header {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    padding: 25px;
    position: relative;
    border-radius: 20px 20px 0 0;
}

.operator-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.operator-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.operator-avatar svg {
    width: 30px;
    height: 30px;
}

.status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #4CAF50;
    border: 2px solid white;
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0.3;
    }
}

.operator-details h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.operator-details p {
    margin: 3px 0 0 0;
    font-size: 13px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 5px;
}

.whatsapp-widget-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-widget-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Widget Body */
.whatsapp-widget-body {
    padding: 30px;
    background: #fafafa;
}

.chat-intro {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #25d366;
}

.chat-intro h6 {
    margin: 0 0 10px 0;
    color: #333;
    font-weight: 600;
    font-size: 16px;
}

.chat-intro p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
    resize: vertical;
    min-height: 90px;
    background: white;
}

.form-group textarea:focus {
    outline: none;
    border-color: #25d366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.whatsapp-submit-btn {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-submit-btn:active {
    transform: translateY(0);
}

.whatsapp-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Tooltip */
.whatsapp-float::before {
    content: "💬 Hubungi Kami";
    position: absolute;
    left: -140px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-weight: 500;
}

.whatsapp-float::after {
    content: "";
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    border: 7px solid transparent;
    border-left-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-float:hover::before,
.whatsapp-float:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 22px;
    }

    .whatsapp-widget {
        width: calc(100vw - 40px);
        right: 20px;
        bottom: 85px;
    }

    .whatsapp-widget-body {
        padding: 25px;
    }

    .whatsapp-float::before,
    .whatsapp-float::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
        font-size: 20px;
    }

    .whatsapp-widget {
        width: calc(100vw - 30px);
        right: 15px;
        bottom: 75px;
    }

    .whatsapp-widget-body {
        padding: 20px;
    }

    .whatsapp-widget-header {
        padding: 20px;
    }

    .operator-avatar {
        width: 45px;
        height: 45px;
    }

    .operator-avatar svg {
        width: 25px;
        height: 25px;
    }
}
