/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: none;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 45px;
    font-size: 20px;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.scroll-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Chat Window */
.chat-widget {
    position: fixed;
    bottom: 25px;
    right: 85px;
    z-index: 999;
}

.chat-button {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.chat-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.chat-window {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 350px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: none;
    transition: all 0.3s ease;
    z-index: 1000;
}

.chat-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
    font-size: 1.1rem;
}

.chat-close {
    cursor: pointer;
    font-size: 1.2rem;
}

.chat-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.chat-form .form-control {
    border: 1px solid #e0e0e0;
    margin-bottom: 10px;
}

.chat-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.chat-success {
    display: none;
    text-align: center;
    padding: 20px;
}

/* Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.bounce {
    animation: bounce 2s infinite;
}
