﻿#pmamChatBot {
    font-family: Arial, Helvetica, sans-serif;
}

/* Floating Icon */
#chatFloatingIcon {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 74px;
    height: 74px;
    background: linear-gradient(135deg, #2457d6, #3f78ff);
    border-radius: 50%;
    cursor: pointer;
    z-index: 99999;
    box-shadow: 0 12px 30px rgba(36, 87, 214, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: chatIdleMove 2.8s infinite ease-in-out;
}

    #chatFloatingIcon:hover {
        transform: scale(1.06);
    }

.chat-pulse {
    position: absolute;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(36, 87, 214, 0.22);
    animation: chatPulse 1.8s infinite;
}

.chat-icon-inner {
    position: relative;
    width: 62px;
    height: 62px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #2457d6;
    font-weight: 700;
}

.chat-hello {
    font-size: 11px;
    line-height: 12px;
    color: #2457d6;
}

.chat-bubble-icon {
    font-size: 22px;
    line-height: 24px;
}

@keyframes chatIdleMove {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes chatPulse {
    0% {
        transform: scale(0.85);
        opacity: 0.8;
    }

    70% {
        transform: scale(1.2);
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* Chat Window */
.chat-window {
    position: fixed;
    right: 24px;
    bottom: 110px;
    width: 380px;
    height: 540px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(15, 32, 77, 0.28);
    z-index: 99999;
    display: none;
    overflow: hidden;
    border: 1px solid rgba(36, 87, 214, 0.18);
}

.chat-header {
    height: 68px;
    background: linear-gradient(135deg, #2457d6, #356df3);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.chat-title-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-logo {
    width: 38px;
    height: 38px;
    background: #ffffff;
    color: #2457d6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
}

.chat-title {
    font-size: 16px;
    font-weight: 700;
}

.chat-status {
    font-size: 12px;
    color: #dbe7ff;
    margin-top: 2px;
}

.chat-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .chat-actions button {
        width: 30px;
        height: 30px;
        border: none;
        background: rgba(255, 255, 255, 0.16);
        color: #ffffff;
        font-size: 22px;
        line-height: 26px;
        border-radius: 8px;
        cursor: pointer;
    }

        .chat-actions button:hover {
            background: rgba(255, 255, 255, 0.28);
        }

/* Body */
.chat-body {
    height: 394px;
    padding: 16px;
    background: #f5f8ff;
    overflow-y: auto;
}

.message {
    display: flex;
    margin-bottom: 12px;
}

.message-text {
    max-width: 82%;
    padding: 11px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 20px;
    word-wrap: break-word;
}

.bot-message {
    justify-content: flex-start;
}

    .bot-message .message-text {
        background: #ffffff;
        color: #1d2b48;
        border: 1px solid #e3e9f8;
        border-bottom-left-radius: 4px;
    }

.user-message {
    justify-content: flex-end;
}

    .user-message .message-text {
        background: #2457d6;
        color: #ffffff;
        border-bottom-right-radius: 4px;
    }

/* Bot response contact block */
.chat-contact-card {
    margin-top: 8px;
    padding: 10px;
    background: #f8fbff;
    border-left: 4px solid #2457d6;
    border-radius: 10px;
}

    .chat-contact-card div {
        margin-bottom: 4px;
    }

    .chat-contact-card a {
        color: #2457d6;
        text-decoration: none;
        font-weight: 600;
    }

        .chat-contact-card a:hover {
            text-decoration: underline;
        }

/* Quick Questions */
.quick-questions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.quick-question {
    border: 1px solid #cddaff;
    background: #ffffff;
    color: #2457d6;
    padding: 9px 12px;
    border-radius: 12px;
    text-align: left;
    font-size: 13px;
    cursor: pointer;
}

    .quick-question:hover {
        background: #eef4ff;
    }

/* Footer */
.chat-footer {
    height: 78px;
    background: #ffffff;
    border-top: 1px solid #e5eaf5;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
}

#chatInput {
    flex: 1;
    height: 42px;
    border: 1px solid #ccd7ee;
    border-radius: 12px;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
}

    #chatInput:focus {
        border-color: #2457d6;
        box-shadow: 0 0 0 3px rgba(36, 87, 214, 0.12);
    }

#chatSend {
    height: 42px;
    min-width: 72px;
    border: none;
    border-radius: 12px;
    background: #2457d6;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

    #chatSend:hover {
        background: #1c48b8;
    }

.chat-body::-webkit-scrollbar {
    width: 6px;
}

.chat-body::-webkit-scrollbar-thumb {
    background: #b9c8ee;
    border-radius: 10px;
}

.chat-help-hint {
    background: #eaf1ff;
    color: #1d3f91;
    border: 1px solid #cddaff;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 18px;
    margin: 12px 0;
}

.show-more-question {
    border: 1px dashed #2457d6;
    background: #f8fbff;
    color: #2457d6;
    padding: 9px 12px;
    border-radius: 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

    .show-more-question:hover {
        background: #eef4ff;
    }

.more-questions-panel {
    display: none;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

@media screen and (max-width: 480px) {
    #chatFloatingIcon {
        right: 16px;
        bottom: 16px;
        width: 66px;
        height: 66px;
    }

    .chat-window {
        left: 12px;
        right: 12px;
        bottom: 92px;
        width: auto;
        height: 500px;
    }

    .chat-body {
        height: 354px;
    }
}
