/* Chatbot Container */
/* Services List Styles */
.services-list .service-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 15px;
    background: #f9fafb;
    transition: all 0.3s ease;
    cursor: pointer;
}

.services-list .service-card:hover {
    background: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.services-list .service-card h4 {
    margin: 0;
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
}

.services-list .service-card p {
    margin: 8px 0 0 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.services-list .service-indicator {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: bold;
    transition: transform 0.3s;
}

.services-list .service-card:hover .service-indicator {
    transform: translateX(3px);
}

/* Service Details */
.service-details h4 {
    margin: 0 0 15px 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
}

.service-details p {
    margin: 0 0 15px 0;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
}

.service-details a {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    margin-top: 15px;
}

.service-details a:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Service badges in messages */
.message.bot .service-badge {
    display: inline-block;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin-top: 8px;
}

#pro-chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    max-width: 90vw;
    height: 600px;
    max-height: 80vh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 999999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
}

#pro-chatbot-container.pro-chatbot-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Header */
#pro-chatbot-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px 16px 0 0;
    color: var(--header-text-color);
    background: var(--header-bg);
}

.chatbot-logo-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chatbot-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    background: white;
    padding: 2px;
}

.chatbot-title-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: #ffffff;
}

.chatbot-status {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.chatbot-status.online {
    color: #4ade80;
}

.chatbot-hours {
    font-size: 11px;
    opacity: 0.9;
}

#pro-chatbot-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

#pro-chatbot-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Messages Area */
#pro-chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    display: flex;
    max-width: 85%;
    animation: messageIn 0.3s ease;
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.bot {
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
}

.message-content {
    padding: 14px 18px;
    border-radius: 20px;
    line-height: 1.5;
    font-size: 14px;
    word-wrap: break-word;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.message.bot .message-content {
    background: white;
    color: #1f2937;
    border-radius: 20px 20px 20px 6px;
}

.message.user .message-content {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 20px 20px 6px 20px;
}

/* Input Area */
#pro-chatbot-input-area {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    background: white;
    display: flex;
    gap: 12px;
    align-items: center;
}

#pro-chatbot-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
    background: #f8fafc;
}

#pro-chatbot-input:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

#pro-chatbot-send {
    color: white;
    border: none;
    padding: 0 28px;
    height: 48px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

#pro-chatbot-send:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#pro-chatbot-send:active {
    transform: translateY(0);
}

/* Footer */
#pro-chatbot-footer {
    padding: 16px 20px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.chatbot-footer-info {
    text-align: center;
    font-size: 12px;
    color: #6b7280;
}

.chatbot-footer-info > span {
    display: block;
    margin-bottom: 8px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 8px;
}

.footer-link {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    font-weight: 500;
}

.footer-link:hover {
    color: var(--secondary-color);
    transform: translateY(-1px);
}

/* Toggle Button */
#pro-chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    color: white;
    border: none;
    padding: 16px 28px;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.4);
    z-index: 999998;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    font-weight: 600;
    animation: float 3s ease-in-out infinite;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

#pro-chatbot-toggle:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 40px rgba(var(--primary-rgb), 0.5);
}

.chatbot-icon {
    font-size: 22px;
}

.chatbot-toggle-text {
    white-space: nowrap;
}

/* Typing Indicator */
.typing-indicator {
    display: inline-flex;
    gap: 6px;
    padding: 12px 20px;
    background: white;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    width: fit-content;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
    opacity: 0.7;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
}

/* Service Badge */
.service-badge {
    display: inline-block;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin-top: 8px;
}

/* Scrollbar */
#pro-chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

#pro-chatbot-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
    margin: 4px;
}

#pro-chatbot-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

#pro-chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Responsive */
@media (max-width: 768px) {
    #pro-chatbot-container {
        width: calc(100% - 40px);
        height: 70vh;
        bottom: 10px;
        right: 10px;
        left: 10px;
        margin: 0 auto;
    }
    
    #pro-chatbot-toggle {
        right: 20px;
        bottom: 20px;
        padding: 14px 22px;
        font-size: 14px;
    }
    
    .chatbot-toggle-text {
        display: none;
    }
    
    #pro-chatbot-toggle:hover .chatbot-toggle-text {
        display: inline;
    }
}

@media (max-width: 480px) {
    #pro-chatbot-container {
        border-radius: 12px;
    }
    
    #pro-chatbot-header {
        padding: 16px;
    }
    
    .chatbot-logo {
        width: 40px;
        height: 40px;
    }
    
    #pro-chatbot-messages {
        padding: 16px;
    }
    
    .message {
        max-width: 90%;
    }
    
    #pro-chatbot-input-area {
        padding: 16px;
    }
    
    #pro-chatbot-send {
        padding: 0 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 8px;
    }
}