/* Virtual Agent Widget (Insurify Style) */
.virtual-agent-trigger {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    /* Left side to not conflict with Ticker */
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.virtual-agent-trigger:hover {
    transform: scale(1.1);
}

.virtual-agent-window {
    position: fixed;
    bottom: 6rem;
    left: 2rem;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1001;
    border: 1px solid var(--gray-200);
    animation: slideUpFade 0.3s ease;
}

.virtual-agent-window.active {
    display: flex;
}

.agent-header {
    background: var(--primary-gradient);
    padding: 1rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.agent-avatar {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #f8fafc;
}

.message {
    max-width: 80%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
}

.message.bot {
    background: white;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    align-self: flex-start;
}

.message.user {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 2px;
    align-self: flex-end;
}

.chat-controls {
    padding: 1rem;
    background: white;
    border-top: 1px solid var(--gray-200);
}

.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chat-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary);
    color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-btn:hover {
    background: var(--primary);
    color: white;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}