/* ========================================
   Chat Bubble Styles
   ======================================== */

/* Chat Container */
.chat-bubble-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

/* Chat Bubble Button */
.chat-bubble-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6B46C1 0%, #805AD5 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 30px rgba(107, 70, 193, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.chat-bubble-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 40px rgba(107, 70, 193, 0.5);
}

.chat-bubble-btn i {
    color: #ffffff;
    font-size: 26px;
}

/* Pulse Animation */
.chat-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(107, 70, 193, 0.4);
    animation: chatPulse 2s infinite;
}

@keyframes chatPulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Chat Window */
.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    max-height: 550px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: chatSlideUp 0.3s ease;
}

.chat-window.active {
    display: flex;
}

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

/* Chat Header */
.chat-header {
    background: linear-gradient(135deg, #6B46C1 0%, #805AD5 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.chat-avatar {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-avatar i {
    color: #ffffff;
    font-size: 22px;
}

.chat-header-text h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.chat-status {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
}

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

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

.chat-close-btn i {
    color: #ffffff;
    font-size: 14px;
}

/* Chat Body */
.chat-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    max-height: 380px;
}

.chat-welcome-message {
    background: linear-gradient(135deg, #f8f5ff 0%, #f0ebff 100%);
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.chat-welcome-message p {
    margin: 0;
    font-size: 15px;
    color: #1a1a2e;
}

.chat-welcome-message .chat-welcome-sub {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
}

/* Chat Form */
.chat-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-form-group input,
.chat-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    background: #fafafa;
}

.chat-form-group input:focus,
.chat-form-group textarea:focus {
    outline: none;
    border-color: #6B46C1;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}

.chat-form-group textarea {
    resize: none;
    min-height: 100px;
}

.chat-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #6B46C1 0%, #805AD5 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.chat-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 70, 193, 0.4);
}

.chat-submit-btn i {
    font-size: 14px;
}

/* Success Message */
.chat-success-message {
    text-align: center;
    padding: 30px 20px;
}

.chat-success-message .success-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.chat-success-message .success-icon i {
    color: #ffffff;
    font-size: 32px;
}

.chat-success-message h4 {
    color: #1a1a2e;
    font-size: 20px;
    margin: 0 0 10px 0;
}

.chat-success-message p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Chat Footer */
.chat-footer {
    padding: 15px 20px;
    background: #f8f8f8;
    border-top: 1px solid #eee;
    text-align: center;
}

.chat-footer p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.chat-footer a {
    color: #6B46C1;
    font-weight: 600;
    text-decoration: none;
}

.chat-footer a:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .chat-bubble-container {
        bottom: 20px;
        right: 20px;
    }
    
    .chat-bubble-btn {
        width: 56px;
        height: 56px;
    }
    
    .chat-bubble-btn i {
        font-size: 22px;
    }
    
    .chat-window {
        width: calc(100vw - 40px);
        right: 0;
        bottom: 75px;
        max-height: 70vh;
    }
}
