/* ===== RIAD SALAM CHATBOT ===== */

.ai-chat-button {
    position: fixed;
    right: 25px;
    bottom: 95px;
    width: 62px;
    height: 62px;
    border: none;
    border-radius: 50%;
    background: #072653;
    color: #ffffff;
    font-size: 25px;
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 10px 30px rgba(7, 38, 83, 0.3);
    transition: transform 0.25s ease;
}

.ai-chat-button:hover {
    transform: scale(1.08);
}

.ai-chat-window {
    position: fixed;
    right: 25px;
    bottom: 170px;
    width: 360px;
    max-width: calc(100% - 30px);
    height: 520px;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    z-index: 9999;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);

    display: none;
    flex-direction: column;
}

.ai-chat-window.open {
    display: flex;
}

.ai-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 18px;
    background: #072653;
    color: #ffffff;
}

.ai-chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-chat-avatar {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e8a500;
    font-size: 21px;
}

.ai-chat-header h3 {
    margin: 0;
    font-size: 16px;
}

.ai-chat-status {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    opacity: 0.8;
}

.ai-chat-close {
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
}

.ai-chat-messages {
    flex: 1;
    padding: 18px;
    overflow-y: auto;
    background: #f5f7fb;
}

.ai-message {
    max-width: 85%;
    margin-bottom: 12px;
    padding: 11px 14px;
    border-radius: 15px;
    line-height: 1.5;
    font-size: 14px;
}

.ai-message.bot {
    margin-right: auto;
    background: #ffffff;
    color: #172033;
    border-bottom-left-radius: 4px;
    box-shadow: 0 4px 15px rgba(7, 38, 83, 0.08);
}

.ai-message.user {
    margin-left: auto;
    background: #072653;
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.ai-quick-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.ai-quick-question {
    padding: 8px 10px;
    border: 1px solid #d8e0ec;
    border-radius: 20px;
    background: #ffffff;
    color: #072653;
    font-size: 12px;
    cursor: pointer;
}

.ai-chat-form {
    display: flex;
    gap: 8px;
    padding: 13px;
    border-top: 1px solid #e4e9f1;
    background: #ffffff;
}

.ai-chat-input {
    flex: 1;
    min-width: 0;
    border: 1px solid #d8e0ec;
    border-radius: 25px;
    padding: 11px 15px;
    outline: none;
    font-size: 14px;
}

.ai-chat-input:focus {
    border-color: #072653;
}

.ai-chat-send {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: #e8a500;
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
}

@media (max-width: 600px) {
    .ai-chat-button {
        right: 16px;
        bottom: 88px;
    }

    .ai-chat-window {
        right: 15px;
        bottom: 160px;
        width: calc(100% - 30px);
        height: 65vh;
    }
}