/* 1. Layout Reset & Main Container */
.search-page-bg {
    display: flex;
    flex-direction: column;
    /* height: 100vh; Lock height to screen */
    width: 100%;
    margin: 0;
    padding: 0;
    background: url(../img/images/Search-result.webp) no-repeat center bottom;
    background-size: cover;
    overflow: hidden; /* Prevent body scroll */
    /* position: relative; */
         padding-top: 100px;
}

/* 2. Scrollable Content Area */
main.container-fluid {
    flex: 1; 
    overflow-y: auto; /* Internal scroll only */
    padding-top: 80px; /* Space for fixed header */
    padding-bottom: 120px !important; /* Space for fixed footer + extra gap */
    scrollbar-width: thin;
    scrollbar-color: #e63946 transparent;
}

main.container-fluid::-webkit-scrollbar { width: 6px; }
main.container-fluid::-webkit-scrollbar-thumb { 
    background-color: #e63946; 
    border-radius: 10px; 
}
.search-page-bg {
    background: radial-gradient(circle at top right, #1a1a1a, #000000);
    color: white;
    /* min-height: 100vh; */
}
/* .search-page-bg  {
    height: 100vh;
    width: 100%;
    position: relative;
    top: 0;
    background: url(../img/images/Search-result.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
    z-index: 1;
    overflow-y: hidden;
    overflow-x: hidden;
     padding-top: 100px;
} */
.search-title {

    font-family: 'Urbanist', sans-serif;
    font-weight: 500; 
    font-size: 24px;
    line-height: 24px; 
    letter-spacing: 0%;
    
    
    color: #FFFFFF;
    vertical-align: middle;
    display: flex; 
    align-items: center;
    
   
    margin-bottom: 30px;
    text-transform: none;
}

.search-query {
  
    font-weight: 500; 
    padding-left: 8px;
}

.custom-breadcrumb {
    /* Layout */
    display: flex;
    align-items: center;
    /* This creates the exact same space between all elements */
    gap: 10px; 

    /* Typography from your Figma specs */
    font-family: 'Urbanist', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
    color: #FFFFFF;
}

.breadcrumb-icon {
    /* Ensure the image doesn't bring its own padding/margin */
    display: block;
    width: auto;
    height: 10px; /* Adjust height to match your font size visually */
    margin: 0;
}

.custom-breadcrumb span {
    /* Prevents the spans from having different heights */
    display: inline-block;
    line-height: 1;
}

/* Layout Wrapper */
.search-page-bg {
    display: flex;
    flex-direction: column;
    /* height: 100vh;  */
    width: 100%;
    background: url(../img/images/Search-result.webp) no-repeat center bottom;
    background-size: cover;
    overflow: hidden; /* Prevent body from scrolling */
}

/* Main Content Area */
main.container-fluid {
    flex: 1; /* Takes up all available space between header and footer */
    overflow-y: auto; /* Makes the results area scrollable */
    padding-bottom: 80px; /* Space for the fixed footer */
    scrollbar-width: thin;
    scrollbar-color: #e63946 transparent;
}

/* Custom Scrollbar for the Results Area */
main.container-fluid::-webkit-scrollbar {
    width: 6px;
}
main.container-fluid::-webkit-scrollbar-thumb {
    background-color: #e63946;
    border-radius: 10px;
}


.bnrftr {
    height: 66px;
    position: relative;
    bottom: 0;
    width: 100%;
    z-index: 111;
    background: rgba(0, 0, 0, 0.8); 
    backdrop-filter: blur(5px);
}

/* Tablet and Mobile Styles */
@media (max-width: 767px) {
    .results-grid {
        /* Change to single column */
        grid-template-columns: 1fr; 
        
        /* Adjust height for mobile: 
           (1 item height ~100px * 3 rows) + gaps */
        max-height: 330px; 
        gap: 12px;
    }

    .results-card {
        padding: 30px 20px; /* Reduce padding for smaller screens */
        border-radius: 30px;
    }

    .custom-scroll-container {
        right: 10px; /* Bring scrollbar closer to edge on mobile */
        height: 330px; /* Match the grid height */
    }
    
    .result-item h3 {
        font-size: 1rem; /* Slightly smaller font for mobile */
    }
}

/* Extra Small Mobile (iPhone SE etc) */
@media (max-width: 400px) {
    .results-grid {
        max-height: 300px;
    }
    .custom-scroll-container {
        height: 300px;
    }
}


body {
    background-color: #1a1a1a; /* Dark background from screenshot */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
/* This makes the card a fixed size on your screen */
.chat-card {
    height: 80vh;           /* Sets a fixed height so it can't grow forever */
    display: flex;
    flex-direction: column;
    overflow: hidden;       /* Prevents the card itself from scrolling */
}

/* This makes ONLY the middle part scroll */
.chat-body {
    flex: 1;                /* Takes up all space between top and footer */
    overflow-y: scroll;     /* Forces the scrollbar to be active when content is long */
    scrollbar-width: thin;  /* Firefox styling */
}

/* Optional: Make the scrollbar look nice in Chrome/Edge */
.chat-body::-webkit-scrollbar {
    width: 8px;
}
.chat-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
.chat-body::-webkit-scrollbar-track {
    background: #f9f9f9;
}

/* Keeps the input area stuck at the bottom */
.chat-footer {
    flex-shrink: 0; 
    background: white;
    z-index: 10;
}
/* Main Chat Card */
.chat-card {
    background-color: #ffffff;
    border-radius: 25px;
    min-height: 470px;
    display: flex;
    flex-direction: column;
 
    overflow: hidden; /* Prevents card from growing */
}
.chat-body {
    flex: 1; /* Grows to fill space */
    overflow-y: auto; /* Adds scrollbar when content overflows */
    scrollbar-width: thin; /* For Firefox */
}

/* Custom Scrollbar for Chrome/Safari/Edge */
.chat-body::-webkit-scrollbar {
    width: 6px;
}
.chat-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.chat-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
.chat-footer {
    background: #fff;
    flex-shrink: 0;
}

.sidebar-heading {

    font-family: 'Urbanist', sans-serif;
    font-size: 20px;
    font-weight: 600; 
    font-style: normal;
    line-height: 24px;
    letter-spacing: 0%;
    color: #ffffff;

  
    display: flex;
    align-items: center; 
   
    margin-top: 0;
}
.user-query {


    width: 100%;
    max-width: 449px;
    height: auto;
    top: 24px;
    left: 441px;
    transform: rotate(0deg);
    opacity: 1;

  
    /*font-family: 'Urbanist', sans-serif;*/
    font-weight: 500;            
    font-style: normal;         
    font-size: 16px;
    line-height: 150%;         
    letter-spacing: 0;
    color: #575757;

  
    background-color: #f0f0f0;
    border-top-left-radius: 24px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 24px;
    border-bottom-left-radius: 24px;

   
    display: flex;
    align-items: center;         
    padding: 12px 16px;
    gap: 8px;
    box-sizing: border-box;     
}
.next-step-heading {
   
    font-family: 'Urbanist', sans-serif;
    font-size: 18px;
    font-weight: 500; 
    font-style: normal;
    line-height: 24px;
    letter-spacing: 0;
    color: #2f2f2f;

  
    display: flex;
    align-items: center; 
    

    margin-top: 0;
}
.status-text {
    
    /*font-family: 'Urbanist', sans-serif;*/
    font-size: 16px;
    font-weight: 500; 
    font-style: normal;
    line-height: 24px;
    letter-spacing: 0;
    color: #6b6b6b;

   
    display: flex;
    align-items: center; 
    
    /* Reset */
    margin-top: 0; 
}
.bullet-item {

    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    /*font-family: 'Urbanist', sans-serif;*/
    font-weight: 400;          
    font-style: normal;         
    font-size: 16px;
    line-height: 24px;      
    letter-spacing: 0;
    color: #6b6b6b;

  
    display: flex;
    align-items: center;         
}
.dot {
    height: 8px;
    width: 8px;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 8px;
}

.dot.red {
    background-color: #d32f2f;
}

/* Icons */
.action-icon {
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.action-icon:hover {
    color: #d32f2f;
}

.input-container {
    background-color: #ebebeb; 
    border-radius: 50px;       
    border: 1px solid #e0e0e0; 
    height: 56px;              
    position: relative; /* Essential for positioning the button */
    display: flex;
    align-items: center;
    transition: all 0.2s ease-in-out;
    cursor: text;
}

/* Make the input fill the entire container */
.whole-bar-input {
    height: 100% !important;
    width: 100%;
    border: none !important;
    background: transparent !important;
    padding-left: 24px !important;
    padding-right: 60px !important; /* Leaves space so text doesn't go under the button */
    font-family: 'Urbanist', sans-serif;
    font-size: 16px;
    outline: none !important;
    box-shadow: none !important;

     
}
.whole-bar-input::placeholder {
    color: #a4a4a4;
    font-weight: 400;
    font-family: 'Urbanist', sans-serif;
}
/* Container state when user clicks anywhere */
.input-container:focus-within {
    background-color: #ffffff;
    border-color: #c42323; 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.button-wrapper {
    position: absolute;
    right: 8px; /* Keeps the button stuck to the right */
    z-index: 5; /* Ensures the button stays above the input layer */
}

.send-btn {
    background-color: #c42323; 
    border-radius: 50% !important;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 0;
    transition: transform 0.2s ease;
}

.send-btn:hover {
    transform: scale(1.1);
    background-color: #a81d1d;
}

.send-btn img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1); /* Makes icon white */
}

.sidebar-card {
    background-color: #cc2b2b; /* The red color from screenshot */
    border-radius: 25px;
}

.sidebar-link {
   
    font-family: 'Urbanist', sans-serif;
    font-size: 16px;
    font-weight: 500; 
    font-style: normal;
    line-height: 24px;
    letter-spacing: 0;
    color: #ffffff;
    text-decoration: none;

  
    display: flex;
    align-items: center; 
    transition: opacity 0.2s ease;
    opacity: 0.9;
}


.sidebar-link:hover {
    opacity: 1;
    color: #ffffff;
    text-decoration: underline; 
}
.icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out; 
    /* opacity: 0.7; */
    text-decoration: none;
}

.icon-link:hover {
    opacity: 1; 
    transform: translateY(-2px); 
    filter: brightness(1.2);
}

.icon-link img {
    width: 20px;
    height: 20px;
    display: block;
}



/**************************************/

     .typing-indicator {
            display: flex;
            gap: 6px;
            padding: 10px 0;
        }

        .typing-indicator span {
            width: 8px;
            height: 8px;
            background: #999;
            border-radius: 50%;
            animation: blink 1.4s infinite both;
        }

        .typing-indicator span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .typing-indicator span:nth-child(3) {
            animation-delay: 0.4s;
        }

        @keyframes blink {
            0% { opacity: 0.2; }
            20% { opacity: 1; }
            100% { opacity: 0.2; }
        }


        .bot-answer {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

.bot-answer p {
    margin-bottom: 8px;
}

.custom-ol {
    padding-left: 18px;
}

.custom-ul {
    padding-left: 18px;
}

.custom-ol li,
.custom-ul li {
    margin-bottom: 6px;
}


.input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #f1f1f1;
    border-radius: 40px;
    padding: 6px 10px;
}

/* Input */
.whole-bar-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    padding-right: 80px !important;
}

/* Mic button */
#micBtn {
    background: transparent;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    margin-right: 8px;
}

#micBtn:hover {
    color: #000;
}

/* Send button */
.send-btn {
    background: #d32f2f;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.send-btn img {
    width: 16px;
    height: 16px;
}

/* Responsive fix */
@media (max-width: 576px) {
    .input-container {
        padding: 5px 8px;
    }

    .send-btn {
        width: 34px;
        height: 34px;
    }
}




.voice-wave {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-right: 10px;
}

.voice-wave span {
    width: 3px;
    height: 12px;
    background: #d32f2f;
    border-radius: 3px;
    animation: wave 1s infinite ease-in-out;
}

.voice-wave span:nth-child(2) { animation-delay: 0.2s; }
.voice-wave span:nth-child(3) { animation-delay: 0.4s; }
.voice-wave span:nth-child(4) { animation-delay: 0.6s; }

@keyframes wave {
    0%, 100% { height: 8px; }
    50% { height: 18px; }
}