/* Chat Widget Styles */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chat-button {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FA6900 0%, #d35400 100%);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(250, 105, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    animation: pulse 2s infinite;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(250, 105, 0, 0.6);
}

.chat-button.active {
    animation: none;
}

.chat-icon {
    font-size: 32px;
    color: white;
}

.chat-bubble {
    position: absolute;
    bottom: 85px;
    right: 0;
    background: white;
    padding: 15px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 250px;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 1s;
}

.chat-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

.chat-bubble p {
    margin: 0;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.chat-bubble strong {
    color: #FA6900;
    display: block;
    margin-bottom: 5px;
}

.chat-window {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 350px;
    max-height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-window.active {
    display: flex;
    animation: slideUp 0.3s ease;
}

.chat-header {
    background: linear-gradient(135deg, #FA6900 0%, #d35400 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.chat-header-text h3 {
    margin: 0;
    font-size: 16px;
}

.chat-header-text p {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    background: #f9f9f9;
}

.chat-message {
    background: white;
    padding: 12px 15px;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.3s ease;
}

.chat-message p {
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.chat-message p:last-child {
    margin-bottom: 0;
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.chat-option-btn {
    background: #FA6900;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    text-align: left;
}

.chat-option-btn:hover {
    background: #d35400;
    transform: translateX(5px);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(250, 105, 0, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(250, 105, 0, 0.7);
    }
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .chat-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .chat-window {
        width: calc(100vw - 40px);
        max-width: 350px;
    }
    
    .chat-bubble {
        max-width: 200px;
    }
}
