/* ===== CHAT WIDGET (AFH THEMED) ===== */
#chat-widget-toggle {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #2c2c2c;
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 9998;
    transition: transform 0.3s, background 0.3s;
    display: flex; align-items: center; justify-content: center;
}
#chat-widget-toggle:hover {
    transform: scale(1.1);
    background: #000;
}

#chat-window {
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 350px;
    max-width: 90vw;
    height: 450px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 9999;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #eee;
}
#chat-window.open { display: flex; }

.chat-header {
    background: #2c2c2c; color: #fff;
    padding: 1rem 1.2rem;
    display: flex; justify-content: space-between; align-items: center;
    font-family: 'Playfair Display', serif; font-size: 1.1rem;
}
.chat-header button {
    background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer;
}

.chat-body {
    flex: 1; padding: 1rem; overflow-y: auto;
    display: flex; flex-direction: column; gap: 0.8rem;
    background: #f9f9f9;
}

.chat-bubble {
    max-width: 85%; padding: 0.7rem 1rem; border-radius: 16px;
    font-size: 0.9rem; line-height: 1.4; color: #333;
}
.chat-bubble.bot { background: #fff; align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.chat-bubble.user { background: #a67c52; color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }

.chat-footer {
    padding: 0.8rem; border-top: 1px solid #eee; display: flex; gap: 0.5rem; background: #fff;
}
.chat-footer input {
    flex: 1; padding: 0.5rem 1rem; border: 1px solid #ddd; border-radius: 30px; outline: none; font-family: 'Inter', sans-serif;
}
.chat-footer input:focus { border-color: #a67c52; }
.chat-footer button {
    background: #2c2c2c; color: #fff; border: none; padding: 0 1.2rem; border-radius: 30px; cursor: pointer; transition: 0.3s;
}
.chat-footer button:hover { background: #000; }

@media (max-width: 480px) {
    #chat-window { height: 400px; bottom: 80px; right: 10px; }
    #chat-widget-toggle { bottom: 15px; right: 15px; width: 55px; height: 55px; font-size: 1.5rem; }
}