/**
 * AI Smart FAQ Search & Assistant Styles
 * Lushanth Pvt Ltd
 */

.ai-faq-wrapper {
    position: relative;
    margin-bottom: 50px;
}

.ai-faq-card {
    position: relative;
    background: linear-gradient(135deg, #0B1536 0%, #10214D 100%);
    border-radius: 24px;
    padding: 38px 40px;
    box-shadow: 0 20px 60px rgba(11, 21, 54, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    overflow: hidden;
    color: #FFFFFF;
}

/* Ambient glow and grid background */
.ai-faq-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(43, 77, 255, 0.35) 0%, rgba(0, 240, 255, 0.15) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

.ai-faq-card::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 20%;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
}

.ai-faq-header {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 680px;
    margin: 0 auto 28px;
}

.ai-faq-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.28);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.ai-pulse-dot {
    width: 8px;
    height: 8px;
    background: #38bdf8;
    border-radius: 50%;
    box-shadow: 0 0 10px #38bdf8;
    animation: aiPulse 2s infinite;
}

@keyframes aiPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(56, 189, 248, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.ai-faq-title {
    font-size: 28px;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.ai-faq-title .ai-highlight {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-faq-subtitle {
    font-size: 14.5px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.6;
}

/* AI Search Input Bar */
.ai-faq-form {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
}

.ai-faq-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 6px 8px 6px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.ai-faq-input-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.12);
    border-color: #38bdf8;
    box-shadow: 0 10px 35px rgba(56, 189, 248, 0.25), 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.ai-faq-input-icon {
    font-size: 20px;
    color: #38bdf8;
    margin-right: 12px;
    flex-shrink: 0;
}

.ai-faq-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: inherit;
    color: #FFFFFF;
    padding: 10px 0;
}

.ai-faq-input::placeholder {
    color: #94a3b8;
}

.ai-faq-submit-btn {
    padding: 12px 24px;
    font-size: 14.5px;
    font-weight: 700;
    color: #FFFFFF;
    background: linear-gradient(135deg, #2B4DFF 0%, #1a3ae0 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(43, 77, 255, 0.4);
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.ai-faq-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(43, 77, 255, 0.55);
}

.ai-faq-submit-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

/* Quick Prompt Suggestion Chips */
.ai-faq-chips {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.ai-chip-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #cbd5e1;
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ai-chip-btn:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
    color: #FFFFFF;
    transform: translateY(-1px);
}

/* AI Answer Box */
.ai-response-box {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 28px auto 0;
    background: #FFFFFF;
    border-radius: 18px;
    padding: 26px 30px;
    color: #1e293b;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
    display: none;
    animation: aiSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes aiSlideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

.ai-response-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.ai-response-agent {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2B4DFF 0%, #00F0FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(43, 77, 255, 0.3);
}

.ai-agent-name {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    display: block;
}

.ai-agent-role {
    font-size: 11.5px;
    color: #64748b;
    display: block;
}

.ai-response-close {
    background: #f1f5f9;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
}

.ai-response-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.ai-response-body {
    font-size: 14.5px;
    line-height: 1.7;
    color: #334155;
    white-space: pre-line;
}

.ai-response-body strong {
    color: #0f172a;
}

.ai-response-actions {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.ai-action-btn-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ai-btn-book {
    padding: 9px 18px;
    font-size: 13.5px;
    font-weight: 700;
    color: #FFFFFF;
    background: #2B4DFF;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.ai-btn-book:hover {
    background: #1a3ae0;
    transform: translateY(-1px);
}

.ai-btn-wa {
    padding: 9px 16px;
    font-size: 13.5px;
    font-weight: 700;
    color: #0f5132;
    background: #d1e7dd;
    border: 1px solid #badbcc;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.ai-btn-wa:hover {
    background: #badbcc;
}

.ai-btn-copy {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: color 0.2s;
}

.ai-btn-copy:hover {
    color: #2B4DFF;
}

/* Loading Shimmer State */
.ai-loading-box {
    display: none;
    text-align: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin-top: 20px;
}

.ai-loading-dots {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ai-loading-dots span {
    width: 8px;
    height: 8px;
    background: #38bdf8;
    border-radius: 50%;
    animation: aiDots 1.4s infinite ease-in-out both;
}

.ai-loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.ai-loading-dots span:nth-child(2) { animation-delay: -0.16s; }

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

@media (max-width: 640px) {
    .ai-faq-card {
        padding: 26px 20px;
        border-radius: 18px;
    }
    .ai-faq-title {
        font-size: 22px;
    }
    .ai-faq-input-wrapper {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        gap: 10px;
    }
    .ai-faq-input-icon {
        display: none;
    }
    .ai-faq-submit-btn {
        width: 100%;
        justify-content: center;
    }
    .ai-response-box {
        padding: 20px;
    }
    .ai-response-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .ai-action-btn-group {
        flex-direction: column;
        width: 100%;
    }
    .ai-btn-book, .ai-btn-wa {
        width: 100%;
        justify-content: center;
    }
}
