/* Chatbot Container */
#mz-chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Floating Bubble Button */
#mz-chatbot-bubble {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

#mz-chatbot-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.5);
}

#mz-chatbot-bubble svg {
    transition: transform 0.3s ease;
}

#mz-chatbot-bubble:hover svg {
    transform: scale(1.1) rotate(5deg);
}

/* Chat Window */
#mz-chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 340px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-height: calc(100vh - 100px);
    transform-origin: bottom right;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    display: flex;
    flex-direction: column;
}

#mz-chatbot-window.mz-chatbot-hidden {
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    pointer-events: none;
}

/* Header */
.mz-chatbot-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mz-chatbot-title {
    font-weight: 600;
    font-size: 1.05em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mz-chatbot-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

#mz-chatbot-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

#mz-chatbot-close:hover {
    color: white;
    transform: scale(1.1);
}

/* Body */
.mz-chatbot-body {
    padding: 20px;
    overflow-y: auto;
}

.mz-chatbot-welcome {
    font-size: 0.95em;
    color: #475569;
    margin-bottom: 12px;
    line-height: 1.5;
}

.mz-chatbot-input-group {
    margin-bottom: 0px;
    text-align: left;
}

.mz-chatbot-input-group label {
    display: block;
    font-size: 0.85em;
    font-weight: 600;
    color: #334155;
    margin-bottom: 4px;
}

.mz-chatbot-input-group input,
.mz-chatbot-input-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95em;
    background: rgba(255, 255, 255, 0.9);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.mz-chatbot-input-group input:focus,
.mz-chatbot-input-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

#mz-chatbot-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

#mz-chatbot-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

#mz-chatbot-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Success / Error States */
#mz-chatbot-success,
#mz-chatbot-error {
    text-align: center;
    padding: 30px 10px;
}

#mz-chatbot-success svg {
    color: #10b981;
    margin-bottom: 15px;
}

#mz-chatbot-success p {
    color: #0f172a;
    font-weight: 600;
    font-size: 1.05em;
}

#mz-chatbot-error {
    color: #ef4444;
    font-weight: 500;
}