/* Chatbot Container */
.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 9999;
    font-family: 'Urbanist', sans-serif;
}

/* Toggle Button */
.chatbot-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FF6B35 0%, #FFA62E 100%);
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.chatbot-toggle .close-icon {
    display: none;
}

.chatbot-toggle.active .close-icon {
    display: block;
}

.chatbot-toggle.active .chat-icon {
    display: none;
}

/* Chat Window */
.chatbot-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 400px;
    height: 550px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-window.active {
    display: flex;
}

/* Header */
.chatbot-header {
    background: linear-gradient(135deg, #FF6B35 0%, #FFA62E 100%);
    padding: 15px 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chatbot-header h3 i {
    font-size: 18px;
}

.close-chat {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-chat:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

/* Chat Body */
.chatbot-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Messages */
.chat-message {
    max-width: 85%;
    padding: 12px 15px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
    word-wrap: break-word;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-message {
    background: white;
    color: #333;
    border-bottom-left-radius: 5px;
    align-self: flex-start;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.user-message {
    background: linear-gradient(135deg, #FF6B35 0%, #FFA62E 100%);
    color: white;
    border-bottom-right-radius: 5px;
    align-self: flex-end;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 15px;
    background: white;
    border-radius: 15px;
    width: fit-content;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 10px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #FF6B35;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.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); opacity: 0.5; }
    40% { transform: translateY(-10px); opacity: 1; }
}

/* Chatbot Footer */
.chatbot-footer {
    background: white;
    border-top: 1px solid #eee;
    padding: 15px;
    flex-shrink: 0;
}

/* Typing Bar */
.typing-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.typing-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    font-family: 'Urbanist', sans-serif;
    outline: none;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.typing-input:focus {
    border-color: #FF6B35;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.typing-input::placeholder {
    color: #999;
}

.send-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #FF6B35 0%, #FFA62E 100%);
    color: white;
}

.send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-action {
    padding: 8px 12px;
    background: white;
    border: 1px solid #FF6B35;
    border-radius: 20px;
    color: #FF6B35;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Urbanist', sans-serif;
}

.quick-action:hover {
    background: #FF6B35;
    color: white;
    transform: translateY(-2px);
}

/* Buttons Container */
.chat-buttons {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.chat-btn {
    padding: 12px 15px !important;
    background: white !important;
    border: 2px solid #FF6B35 !important;
    border-radius: 8px !important;
    color: #FF6B35 !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-align: left !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-family: 'Urbanist', sans-serif !important;
}

.chat-btn:hover {
    background: linear-gradient(135deg, #FF6B35 0%, #FFA62E 100%) !important;
    color: white !important;
    transform: translateX(5px) !important;
}

.back-btn {
    background: #f8f9fa !important;
    border: 2px solid #ddd !important;
    color: #666 !important;
    margin-bottom: 10px;
}

.back-btn:hover {
    background: #e9ecef !important;
    color: #333 !important;
    transform: translateX(-5px) !important;
}

/* Language Selection */
.language-selection {
    text-align: center;
    padding: 20px 0;
}

.language-title {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

.language-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.language-btn {
    padding: 12px 25px;
    background: white;
    border: 2px solid #FF6B35;
    border-radius: 8px;
    color: #FF6B35;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    font-family: 'Urbanist', sans-serif;
}

.language-btn:hover {
    background: linear-gradient(135deg, #FF6B35 0%, #FFA62E 100%);
    color: white;
    transform: translateY(-3px);
}

/* Change Language Button */
.change-language-btn {
    background: #6c757d;
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: 5px;
    font-family: 'Urbanist', sans-serif;
    display: flex;
    align-items: center;
    gap: 5px;
}

.change-language-btn:hover {
    background: #5a6268;
    transform: scale(1.05);
}

/* Course List */
.course-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
}

.course-list-btn {
    padding: 10px 15px;
    background: white;
    border: 1px solid #FF6B35;
    border-radius: 8px;
    color: #333;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-family: 'Urbanist', sans-serif;
}

.course-list-btn:hover {
    background: #FF6B35;
    color: white;
    transform: translateX(5px);
}

/* Course Details */
.course-detail {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.course-detail h4 {
    color: #FF6B35;
    margin-bottom: 10px;
    font-size: 16px;
}

.course-detail p {
    font-size: 13px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 10px;
}

/* Contact Info */
.contact-info {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-item i {
    color: #FF6B35;
    font-size: 16px;
    margin-top: 2px;
}

.contact-item span {
    font-size: 13px;
    color: #555;
}

.contact-item a {
    color: #333;
    text-decoration: none;
}

.contact-item a:hover {
    color: #FF6B35;
}

/* Enquiry Form */
.enquiry-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 12px;
    color: #666;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Urbanist', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.submit-btn {
    padding: 12px 15px;
    background: linear-gradient(135deg, #FF6B35 0%, #FFA62E 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Urbanist', sans-serif;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Success Message */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-top: 10px;
    animation: fadeIn 0.3s ease;
}

.success-message i {
    color: #28a745;
    font-size: 20px;
    margin-bottom: 10px;
    display: block;
}

/* Error Message */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-top: 10px;
    animation: fadeIn 0.3s ease;
}

/* Scrollbar */
.chatbot-body::-webkit-scrollbar {
    width: 6px;
}

.chatbot-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chatbot-body::-webkit-scrollbar-thumb {
    background: #FF6B35;
    border-radius: 3px;
}

.chatbot-body::-webkit-scrollbar-thumb:hover {
    background: #E55A2B;
}

/* Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
}

/* Responsive */
@media (max-width: 576px) {
    .chatbot-container {
        bottom: 10px;
        right: 10px;
    }
    
    .chatbot-window {
        width: 320px;
        height: 500px;
        bottom: 60px;
    }
    
    .language-buttons {
        flex-direction: column;
    }
    
    .language-btn {
        width: 100%;
    }
    
    .quick-actions {
        justify-content: center;
    }
    
    .typing-bar {
        padding: 0 5px;
    }
    
    .typing-input {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .send-btn {
        width: 40px;
        height: 40px;
    }
}