#chatbox {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 9999;
    transition: all 0.3s ease-in-out;
}

#chatbox.chatbox-minimized {
    height: 50px;
    width: 150px;
}

#chatbox-header {
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    text-align: center;
    cursor: pointer;
    font-size: 16px;
}

#chatbox-content {
    display: none;
    padding: 15px;
}

#chatbox.chatbox-expanded #chatbox-content {
    display: block;
    height: auto;
}

#chatbox.chatbox-expanded {
    height: auto;
}

#minimize-btn {
    font-size: 18px;
    font-weight: bold;
    color: #007bff;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
}

#form-container {
    margin-top: 20px;
}
/* Keyframe for bounce animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Keyframe for pulse animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Apply animation to chatbox header */
#chatbox.chatbox-minimized #chatbox-header {
    animation: bounce 1s infinite;
    cursor: pointer;
}

#chatbox.chatbox-expanded {
    animation: none; /* Disable animation when expanded */
}

/* Add a glow effect to draw more attention */
#chatbox.chatbox-minimized {
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.6), 0 0 20px rgba(0, 123, 255, 0.4);
    transition: box-shadow 0.3s ease;
}
#chatbox.chatbox-minimized:hover {
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.8), 0 0 25px rgba(0, 123, 255, 0.6);
}

