/* Chat specific styles */
.chat-container {
    height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.message {
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.bot-message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.user-message {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.user-message .message-content {
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    color: white;
    border-top-right-radius: 0.25rem;
    border-top-left-radius: 1rem;
}

.bot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.message-content {
    background: #F3F4F6;
    padding: 1rem;
    border-radius: 1rem;
    border-top-left-radius: 0.25rem;
    max-width: 80%;
}

.dark .message-content {
    background: #1F2937;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.option-button {
    position: relative;
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.option-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.option-button:hover::before {
    left: 100%;
}

.option-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.4);
}

.option-button:active {
    transform: translateY(0);
}

.glow {
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #8B5CF6;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

.contact-form {
    background: #F3F4F6;
    padding: 1.5rem;
    border-radius: 1rem;
    margin-top: 1rem;
}

.dark .contact-form {
    background: #1F2937;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.dark .form-label {
    color: #D1D5DB;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.5rem;
    background: white;
    color: #111827;
}

.dark .form-input, .dark .form-textarea {
    background: #374151;
    border-color: #4B5563;
    color: #F9FAFB;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-button {
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.4);
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .message-content {
        max-width: 90%;
    }
    
    .chat-container {
        height: calc(100vh - 120px);
    }
}