﻿/* Additional styles for the new professional homepage */
.hero-section {
    padding: 5rem 0;
}

.hero-search {
    max-width: 600px;
    margin: 2rem auto 0;
    position: relative;
}

    .hero-search .form-control {
        padding: 1rem 1.5rem;
        border-radius: 50px;
    }

    .hero-search .btn {
        position: absolute;
        right: 7px;
        top: 7px;
        bottom: 7px;
        border-radius: 50px;
        padding: 0 1.5rem;
        background-color: var(--accent-color);
        border-color: var(--accent-color);
    }

.why-us-section {
    /* padding: 4rem 0; */
    background-color: #ffffff;
}

.feature-box {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category-title {
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 2rem;
    text-align: center;
}

.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 4rem 1.5rem;
    border-radius: var(--border-radius);
}


/* --- PROFESSIONAL CHATBOT STYLES --- */
.chat-bubble {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    animation: pulse 2.5s infinite;
}

.chat-bot-icon {
    width: 32px;
    height: 32px;
    fill: white;
}

.greeting-bubble {
    position: absolute;
    bottom: 85px;
    right: 0;
    background: #ffffff;
    color: var(--dark-text);
    padding: 10px 15px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    pointer-events: none;
}

    .greeting-bubble.show {
        opacity: 1;
        transform: translateY(0);
    }

.chat-window {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 370px;
    max-width: 90vw;
    height: 550px;
    max-height: 70vh;
    background: #f9f9f9;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    transform-origin: bottom right;
    transition: all 0.3s ease-in-out;
    pointer-events: none;
}

    .chat-window.open {
        opacity: 1;
        transform: scale(1) translateY(0);
        pointer-events: auto;
    }

.chat-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.bot-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bot-avatar {
    font-size: 1.5rem;
}

.chat-header h5 {
    margin: 0;
    font-size: 1.1rem;
}

.chat-header small {
    opacity: 0.8;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
}

    .close-chat:hover {
        opacity: 1;
    }

.chat-body {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    padding: 0.75rem 1rem;
    border-radius: 18px;
    max-width: 85%;
    animation: slideIn 0.3s ease-in-out;
}

    .chat-message p {
        margin: 0;
        line-height: 1.5;
    }

    .chat-message.user {
        background-color: #e9ecef;
        color: #333;
        border-bottom-right-radius: 4px;
        align-self: flex-end;
    }

    .chat-message.bot {
        background-color: var(--accent-color);
        color: white;
        border-bottom-left-radius: 4px;
        align-self: flex-start;
    }

        .chat-message.bot a {
            color: white;
            font-weight: bold;
            text-decoration: underline;
        }

.chat-footer {
    display: flex;
    padding: 0.75rem;
    border-top: 1px solid #ddd;
    background: #fff;
    flex-shrink: 0;
}

#chatInput {
    flex-grow: 1;
    border: none;
    padding: 0.75rem;
    font-size: 1rem;
    background: transparent;
}

    #chatInput:focus {
        outline: none;
    }

#sendBtn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

    #sendBtn:hover {
        background-color: var(--secondary-color);
    }

/* Typing indicator animation */
.typing-indicator {
    align-self: flex-start;
}

    .typing-indicator span {
        height: 8px;
        width: 8px;
        background-color: #aaa;
        border-radius: 50%;
        display: inline-block;
        animation: bounce 1.4s infinite;
    }

        .typing-indicator span:nth-of-type(2) {
            animation-delay: 0.2s;
        }

        .typing-indicator span:nth-of-type(3) {
            animation-delay: 0.4s;
        }

@@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1.0);
    }
}

/* Slide in animation for new messages */
@@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse animation for the chat bubble */
@@keyframes pulse {
    0% {
        transform: scale(0.95);
    }

    70% {
        transform: scale(1);
    }

    100% {
        transform: scale(0.95);
    }
}

