/* Chatbot Styles */
.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 25px;
    z-index: 999;
    font-family: var(--font-sans);
}

/* Chatbot Toggle Button */
.chatbot-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    border: 3px solid white;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.chatbot-toggle.active {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
    transform: rotate(45deg);
}

.chatbot-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.chatbot-pulse {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.3;
    animation: pulse 2s infinite;
    z-index: -1;
}

/* Chatbot Window */
.chatbot-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    max-width: 90vw;
    height: 500px;
    max-height: 70vh;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--light-dark);
}

.chatbot-window.open {
    display: flex;
    animation: slideUp 0.3s ease;
}

/* Chatbot Header */
.chatbot-header {
    background: linear-gradient(135deg, var(--dark), var(--dark-light));
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.chatbot-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
}

.chatbot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chatbot-info {
    flex: 1;
}

.chatbot-info h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.chatbot-info p {
    margin: 2px 0 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.chatbot-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    margin-top: 5px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: var(--transition);
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Chatbot Messages */
.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: var(--light);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chatbot-welcome {
    background: white;
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    margin-bottom: 10px;
}

.chatbot-welcome p {
    margin: 0;
    color: var(--dark);
    font-size: 0.95rem;
}

.chatbot-message {
    max-width: 80%;
    animation: fadeIn 0.3s ease;
}

.chatbot-message.user {
    align-self: flex-end;
}

.chatbot-message.bot {
    align-self: flex-start;
}

.message-content {
    padding: 12px 15px;
    border-radius: var(--border-radius);
    position: relative;
}

.chatbot-message.user .message-content {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-bottom-right-radius: 4px;
}

.chatbot-message.bot .message-content {
    background: white;
    color: var(--dark);
    border: 1px solid var(--light-dark);
    border-bottom-left-radius: 4px;
}

.message-text {
    font-size: 0.95rem;
    line-height: 1.4;
}

.message-text a {
    color: var(--primary);
    text-decoration: none;
}

.message-text a:hover {
    text-decoration: underline;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.6;
    margin-top: 5px;
    text-align: right;
}

/* Typing Indicator */
.chatbot-message.typing .message-content {
    background: white;
    border: 1px solid var(--light-dark);
}

.typing-dots {
    display: flex;
    gap: 4px;
    padding: 10px 0;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--dark-light);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Chatbot Input */
.chatbot-input {
    padding: 15px;
    background: white;
    border-top: 1px solid var(--light-dark);
    display: flex;
    gap: 10px;
    align-items: center;
}

.chatbot-input input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--light-dark);
    border-radius: var(--border-radius);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition);
}

.chatbot-input input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(136, 19, 55, 0.1);
}

.chatbot-input button {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-input button:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

/* Quick Actions */
.chatbot-quick-actions {
    padding: 10px 15px;
    background: var(--light);
    border-top: 1px solid var(--light-dark);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-action {
    padding: 8px 15px;
    background: white;
    border: 1px solid var(--light-dark);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.quick-action:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

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

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .chatbot-container {
        bottom: 80px;
        right: 15px;
    }
    
    .chatbot-toggle {
        width: 50px;
        height: 50px;
    }
    
    .chatbot-icon {
        width: 25px;
        height: 25px;
    }
    
    .chatbot-window {
        width: calc(100vw - 30px);
        height: 60vh;
        right: -15px;
    }
    
    .chatbot-message {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .chatbot-container {
        bottom: 104px;
        right: 28px;
    }
    
    .chatbot-window {
        height: 70vh;
    }
    
    .chatbot-quick-actions {
        justify-content: center;
    }
}
/* ---- Sharsh rich replies ---- */
.chatbot-messages { scroll-behavior: smooth; }
.chatbot-message .message-text { white-space: normal; word-break: break-word; line-height: 1.5; }
.chat-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chat-link-btn {
    display: inline-block; padding: 7px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
    text-decoration: none; background: #fff; color: #881337 !important; border: 1px solid #881337;
    transition: all .2s ease;
}
.chat-link-btn:hover { background: #881337; color: #fff !important; }
.chat-link-btn.primary { background: linear-gradient(135deg, #881337, #be123c); color: #fff !important; border-color: transparent; }
.chat-link-btn.primary:hover { filter: brightness(1.1); }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 14px 10px; }
.chat-chip {
    border: 1px solid #cbd5e1; background: #f8fafc; color: #0a0f1e; padding: 6px 12px; border-radius: 999px;
    font-size: 12.5px; cursor: pointer; transition: all .2s ease; font-family: inherit;
}
.chat-chip:hover { background: #881337; color: #fff; border-color: #881337; }
.chatbot-message.bot .message-content .message-text a { color: #881337; }
@media (max-width: 480px) { .chat-link-btn, .chat-chip { font-size: 12px; } }
