/* Standard Popup & Chat styles maintained */
.ai-chat-popup {
    position: fixed;
    bottom: 4rem;
    /* Lower since no multiple buttons stack */
    right: 2rem;
    width: 300px;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid hsl(var(--border));
}

.ai-chat-popup.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.ai-chat-header {
    background: hsl(var(--primary));
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-chat-header h3 {
    font-size: 1rem;
    margin: 0;
}

.ai-chat-close {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
}

.chat-window {
    display: none;
    /* Flex when active */
    height: 350px;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.message {
    max-width: 80%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message.bot {
    background: #f1f5f9;
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.message.user {
    background: hsl(var(--primary));
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

.chat-input-area {
    padding: 0.75rem;
    border-top: 1px solid hsl(var(--border));
    display: flex;
    gap: 0.5rem;
}

.chat-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.25rem;
    font-family: inherit;
    font-size: 0.9rem;
}

.chat-send {
    background: hsl(var(--primary));
    color: white;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    cursor: pointer;
}

/* NEW: Hero Chat Card Styles */
.hero-chat-card-container {
    margin-top: 2.5rem;
    animation: fadeIn 1s ease-out 0.5s both;
    /* Slight delay to pop in after main content */
}

.hero-chat-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    padding: 1.5rem;
    max-width: 24rem;
    /* Limit width */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-left: 5px solid hsl(var(--accent));
}

.hero-chat-card h3 {
    font-size: 1.1rem;
    color: hsl(var(--primary));
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.hero-chat-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero-chat-option {
    text-align: left;
    background: white;
    border: 1px solid hsl(var(--border));
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-chat-option::after {
    content: '→';
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s ease;
    color: hsl(var(--accent));
}

.hero-chat-option:hover {
    background: hsl(var(--muted));
    border-color: hsl(var(--accent));
    color: hsl(var(--primary));
    padding-left: 1.25rem;
    /* Slide effect */
}

.hero-chat-option:hover::after {
    opacity: 1;
    transform: translateX(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}