/* AI Chat Bot Snippet Styles */
.ai-chat-container {
    display: flex;
    gap: 40px;
    min-height: 600px;
}

/* Left side: Chat Section (45%) */
.ai-chat-section {
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ai-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.need-help {
    color: var(--primary, #9a5a3a);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(235, 232, 255, 1);
    border-radius: 7px;
    padding: 15px 18px;
}

.need-help:hover {
    color: #7a4a2a;
}

/* Chat Wrapper with background */
.ai-chat-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: radial-gradient(70.31% 61.74% at 78.56% 32.68%, rgba(255, 223, 207, 0) 0%, #FFF4EE 100%);
    padding: 44px 19px;
    max-height: 800px;
    height: 800px;
    border: 1px solid #FFD4D5;
    border-radius: 17px;
}

/* Chat Messages Area */
.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ai-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.ai-chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.ai-chat-messages::-webkit-scrollbar-thumb {
    background: #9a5a3a;
    border-radius: 3px;
}

.chat-message {
    display: flex;
    max-width: 80%;
    gap: 12px;
    animation: fadeIn 0.3s ease;
}

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

.bot-message {
    align-self: flex-start;
    align-items: center;
}

.user-message {
    align-self: flex-end;
}

.user-message .message-avatar {
    display: none;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #9a5a3a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
    overflow: hidden;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-content {
    background: transparent;
    border: 1px solid #F0BAC2;
    padding: 10px 15px;
    border-radius: 44px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.user-message .message-content {
    background: #FFEAE0;
    border-radius: 19px;
    color: white;
    padding: 15px 33px;
    border: 1px solid #F0DFD4;
}

.message-content p {
    margin: 0;
    font-family: "DM Sans", sans-serif !important;
    font-weight: 500;
    font-size: 17px;
    line-height: 150%;
    letter-spacing: 0;
    color: rgba(0, 0, 0, 0.75);
}

.user-message .message-content p {
    font-family: "DM Sans", sans-serif !important;
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0;
    color: rgba(0, 0, 0, 0.75);
}

.message-loading {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}

.message-loading span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9a5a3a;
    animation: bounce 1.4s infinite ease-in-out both;
}

.message-loading span:nth-child(1) {
    animation-delay: -0.32s;
}

.message-loading span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Chat Input */
.ai-chat-input {
    position: relative;
    margin-top: 10px;
}

.chat-input-field {
    width: 100%;
    padding: 20px 13px;
    border: 1px solid rgba(154, 90, 58, 0.2);
    border-radius: 12px;
    background: white;
}

.chat-input-field:focus {
    outline: none;
    border-color: #9a5a3a;
}

.chat-input-field::placeholder {
    color: #999;
}

.chat-send-btn {
    width: 94px;
    display: flex;
    height: 35px;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    padding: 13px 60px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.chat-send-btn:hover {
    background: #7a4a2a;
}

.chat-send-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Right side: Specialists Section (55%) */
.ai-specialists-section {
    flex: 0 0 55%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.specialists-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}


.specialist-location span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 6px;
    vertical-align: middle;
    overflow: hidden;
}

.specialist-location img {
    max-width: 14px;
    max-height: 14px;
    object-fit: contain;
    display: block;
}

.specialist-menu {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 4px;
}

.specialist-info {
    display: flex;
    gap: 7.2px;
}

.specialist-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 12px;
    background: var(--primary-7, #3478f612);
    border: 1px solid rgba(52, 120, 246, 0.12);
    border-radius: 7px;
}

.specialist-rate {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

.specialist-team-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 9px;
    background: var(--primary);
    color: white;
    border-radius: 26px;
    border: 1px solid rgba(1, 154, 95, 0.12);
}

.specialist-team-text {
    font-family: "DM Sans", sans-serif !important;
    font-weight: 600;
    font-size: 9px;
    color: #FFFFFF;
    line-height: 150%;
    letter-spacing: 0;
    margin: 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .specialists-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ai-chat-container {
        flex-direction: column;
    }

    .ai-chat-section,
    .ai-specialists-section {
        flex: 0 0 100%;
    }
}
