.chat-animation-section {
    background: #f5f5f5;
    padding: 40px 0;
}

.chat-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-height: 200px;
}

.navigation-buttons {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
    z-index: 10;
}

.nav-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    pointer-events: auto;
}

.nav-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-bubble {
    max-width: 80%;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    box-sizing: border-box;
}

.chat-bubble .message-text {
    opacity: 1;
    line-height: 1.5;
    white-space: normal;
    word-break: break-word;
    min-height: 1.2em;
}

.chat-bubble.visible {
    opacity: 1;
    transform: translateY(0);
}

.professional-msg {
    background: #1a237e;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.user-reply {
    background: #f0f0f0;
    color: #333;
    margin-right: auto;
    border-bottom-left-radius: 5px;
}

.typing-indicator {
    display: inline-block;
    margin-left: 5px;
}

.typing-indicator span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    margin: 0 2px;
    opacity: 0.4;
    animation: typing 1s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

@media (max-width: 768px) {
    .chat-container {
        margin: 0 15px;
    }
    
    .nav-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}