/* ===== CHATBOT WIDGET STYLES - Premium, Attractive, Fast ===== */
/* No Google Fonts - Using better system font stack */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.chatbot-widget {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999999;
    /* Better system font stack - no external requests */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
}

/* Toggle Button - with "How may I help?" hint badge + pulse */
.chatbot-toggle {
    width: 72px;
    height: 72px;
    background: linear-gradient(145deg, #d4af37, #e67e22);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(196, 155, 31, 0.5), 0 0 0 0 rgba(228, 126, 34, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    position: relative;
    animation: chatbotGlowPulse 2.2s infinite;
}

.chatbot-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 30px rgba(196, 155, 31, 0.6);
}

.chatbot-toggle i {
    font-size: 34px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Help Hint Badge - "How may I help you?" symbol */
.help-hint {
    position: absolute;
    top: -12px;
    right: -8px;
    background: #ffffff;
    border-radius: 50px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #c49b1f;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
    background: rgba(255,255,255,0.95);
    border: 1px solid #ffd966;
    animation: subtleBounce 1.8s infinite ease;
    pointer-events: none;
    z-index: 10;
}

.help-hint i {
    font-size: 14px;
    color: #e67e22;
}

/* Chatbot Container */
.chatbot-container {
    position: fixed;
    bottom: 110px;
    right: 28px;
    width: 400px;
    height: 600px;
    background: white;
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: chatbotSlideUp 0.3s ease-out;
    z-index: 999998;
    border: 1px solid rgba(196, 155, 31, 0.4);
}

.chatbot-container.active {
    display: flex;
}

/* Header Premium */
.chatbot-header {
    background: linear-gradient(135deg, #003b5c, #0a4d6e);
    color: white;
    padding: 20px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #c49b1f;
}

.chatbot-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
}

.chatbot-header h4 i {
    color: #f3b33d;
    font-size: 24px;
}

.chatbot-header p {
    margin: 0;
    font-size: 11px;
    opacity: 0.85;
    margin-top: 4px;
    letter-spacing: 0.3px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
}

.chatbot-close {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.chatbot-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

/* Messages Area */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 18px;
    background: #f9fafc;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scroll-behavior: smooth;
}

/* Custom scrollbar */
.chatbot-messages::-webkit-scrollbar {
    width: 5px;
}
.chatbot-messages::-webkit-scrollbar-track {
    background: #eef2f6;
}
.chatbot-messages::-webkit-scrollbar-thumb {
    background: #c49b1f;
    border-radius: 10px;
}

/* Message Bubbles */
.message {
    max-width: 85%;
    padding: 12px 18px;
    border-radius: 24px;
    font-size: 14px;
    line-height: 1.45;
    animation: fadeInMsg 0.25s ease;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
}

.message.bot {
    background: white;
    color: #1e2a3e;
    align-self: flex-start;
    border-bottom-left-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border-left: 4px solid #c49b1f;
}

.message.user {
    background: linear-gradient(125deg, #c49b1f, #e67e22);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 6px;
    box-shadow: 0 4px 12px rgba(196, 155, 31, 0.25);
}

/* Quick Reply Buttons - Modern */
.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    margin-bottom: 4px;
}

.quick-reply-btn {
    background: #ffffff;
    border: 1.5px solid #c49b1f;
    color: #003b5c;
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
}

.quick-reply-btn:hover {
    background: #c49b1f;
    color: white;
    transform: translateY(-2px);
    border-color: #c49b1f;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 6px;
    padding: 12px 20px;
    background: white;
    border-radius: 28px;
    width: fit-content;
    border-bottom-left-radius: 8px;
    border-left: 3px solid #c49b1f;
    align-items: center;
}

.typing-indicator span {
    width: 9px;
    height: 9px;
    background: #c49b1f;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

/* Input Area */
.chatbot-input-area {
    display: flex;
    padding: 14px 18px;
    background: white;
    border-top: 1px solid #e9edf2;
    gap: 12px;
    align-items: center;
}

.chatbot-input-area input {
    flex: 1;
    padding: 12px 18px;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    outline: none;
    transition: all 0.2s;
    background: #fefefe;
}

.chatbot-input-area input:focus {
    border-color: #c49b1f;
    box-shadow: 0 0 0 3px rgba(196, 155, 31, 0.2);
}

.chatbot-input-area button {
    background: linear-gradient(135deg, #c49b1f, #e67e22);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.chatbot-input-area button:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #d4af37, #f39c12);
}

/* Animations */
@keyframes chatbotGlowPulse {
    0% { box-shadow: 0 8px 20px rgba(196, 155, 31, 0.4), 0 0 0 0 rgba(228, 126, 34, 0.5); }
    70% { box-shadow: 0 8px 25px rgba(196, 155, 31, 0.6), 0 0 0 12px rgba(228, 126, 34, 0); }
    100% { box-shadow: 0 8px 20px rgba(196, 155, 31, 0.4), 0 0 0 0 rgba(228, 126, 34, 0); }
}

@keyframes subtleBounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

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

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

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

/* Responsive */
@media (max-width: 550px) {
    .chatbot-container {
        width: calc(100% - 32px);
        right: 16px;
        left: 16px;
        bottom: 90px;
        height: 520px;
    }
    .chatbot-toggle {
        width: 60px;
        height: 60px;
    }
    .help-hint {
        font-size: 10px;
        padding: 4px 10px;
        top: -10px;
        right: -6px;
    }
    .message {
        max-width: 90%;
        font-size: 13px;
    }
}