body {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    background-color: rgb(255, 252, 250);
  }

.company_search_container{
    width: 80%;
    max-width: 700px;
    display: flex;
    align-items: stretch;
    flex-flow: row;
    margin-top: 60px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 25px;
}

.request_company_description{
    padding-left: 10px;
}

.request_button_container{
    width: auto;   
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: row;
    border-radius: 5px;
    padding: 15px 55px;
    border: none;
    gap: 10px;
}



.request_company_input{
    border: none;
    width: 400px;
    padding: 8px 10px;
    border-radius: 5px;
    font-size: 16px;
    box-shadow: 0 1px 1px 1px rgba(0,0,0,0.15);
}

.request_submit_button{
    font-size: 16px;
    padding: 8px 10px;
    border-radius: 5px;
    border: none;
    background-color: rgb(235, 235, 235);
    box-shadow: 0 1px 1px rgba(0,0,0,0.15);
    transition: box-shadow 0.2s;
}
.request_submit_button:hover{
    box-shadow: 0 2px 1px 1px rgba(0,0,0,0.15);
    
}

.how_it_works_image.direct_to_agent.active{
    max-width: 400px;
}

.company_search_input_container{
    flex-grow: 1;
    display: flex;
    align-items: center;
    background-color: #fff;
    padding-left: 20px;
    border-radius: 30px 0 0 30px;
}
.company_search_icon{
    width: 20px;
    height: 20px;
    margin-right: 10px;
}
.company_search_input{
    flex-grow: 1;
    padding: 15px 10px;
    border: none;
    outline: none;
    font-size: 20px;
    background-color: transparent;
}

.search_results_container{
    margin-top: 30px;
    width: 80%;
    max-width: 700px;
    border-radius: 10px;
    box-shadow: 0 1px 1px 1px rgba(0,0,0,0.15);
}

.company_search_results_header{
    font-size: 22px;
    font-weight: 700;
    line-height: 22px;
    background-color: #ebebeb;
    padding: 10px 10px;
    border-radius: 10px 10px 0 0;
    margin-bottom: 10px;
}

.company_search_results_list{
    margin: 10px;
    font-size: 18px;

}

.company_search_results_list a {
    text-decoration: none;
    color: #0066cc;
}

.company_search_results_list a:hover {
    color: #004499;
}

.how_it_works_header_text{
    font-size: 36px;
    font-weight: 700;
    line-height: 36px;
    padding-bottom: 40px;
}

/* Interactive How It Works Section */
.how_it_works_interactive_container {
    max-width: 1200px;
    display: flex;
    flex-flow: row;
    gap: 20px; 
    justify-content: space-between; 
    margin: 0 auto; 
    box-sizing: border-box;
}

/* Titles column styles */
.how_it_works_titles_column {
    width: 40%;
    min-width: 400px; /* Set a minimum width */
    flex-shrink: 0; /* Prevent shrinking */
    display: flex;
    flex-direction: column;
    box-sizing: border-box; /* Include padding in width calculation */
}

.how_it_works_title_item {
    padding: 15px;
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #676767;
    position: relative; /* Add position relative for absolute positioning of button */
    box-sizing: border-box; /* Include padding in width calculation */
    width: 100%; /* Ensure it takes full width of parent */
}

.how_it_works_title_item:hover {
    background-color: #ffffff;
}

.how_it_works_title_item.expanded {
    background-color: #ffffff;
}

.title_text {
    font-size: 18px;
    font-weight: 600;
    /*flex-grow: 1;*/
    padding-right: 30px; /* Add extra padding to make room for the button */
    word-wrap: break-word; /* Allow long words to break */
    overflow-wrap: break-word; /* Modern version of word-wrap */
}
.mobile_only {
    display: none !important;
}


.expand_button {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    font-weight: 700;
    justify-content: center;
    font-size: 18px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: absolute; /* Position absolutely */
    right: 15px; /* Position from right edge */
    top: 15px; /* Position from top edge */
}

.how_it_works_title_item.expanded .expand_button {
    display: none; /* Hide the button when expanded */
}

.title_description {
    width: 100%;
    font-size: 16px;
    line-height: 1.4;
    margin-top: 10px;
    display: none;
}

.how_it_works_title_item.expanded .title_description {
    display: block;
}

/* Content area styles */
.how_it_works_content_area {
    max-width: 540px;
    flex: 1 1 auto; /* Allow flexible growth but maintain size */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box; /* Include padding in width calculation */
}

.how_it_works_image_container {
    width: 100%;
    height: 350px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
}

.how_it_works_image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.how_it_works_image.active {
    opacity: 1;
}

.how_it_works_image.ai_indexing_example {
    object-fit: contain;
}

.how_it_works_image.direct_to_agent {
    object-fit: contain;
}



.company_search_input::placeholder {
    color: #999;
}

.company_search_button_container {
    display: flex;
}
.company_search_button{
    padding: 15px 25px;
    border-radius: 0px 30px 30px 0px;
    border: none;
    background-color: #00cc1b;
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.company_search_button:hover {
    background-color: #00a315;
}

.supported_hero_container{
  padding-top: 120px;
  padding-bottom: 120px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: column;
  box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.1);
  position: relative; /* This is needed to make z-index work */
  z-index: 10; /* This lifts the container above the next element */
  background-color: #fff;
}
.hero_columns_container{
  flex-flow: row;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top:50px;
  padding-bottom:30px;
  gap: 40px;
}
.how_it_works_text{
    font-size: 18px;
    font-weight: 700;
    line-height: 20px;
    padding-bottom: 5px;
}
.hero_left_column{
  flex-flow: column;
  width:40%;
  justify-content: center;
  align-items: center;
  display: flex;
}
.hero_right_column{
  flex-flow: column;
  width:45%;
}
.hero_hand{
    width: 30%;
    margin-top:30px;
    margin-bottom:30px;
}
.hero_text{
  font-size: 48px;
  font-weight: 700;
  line-height: 48px;
}
.hero_text_desc{
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    color: #333;
    margin-bottom: 30px;
}

.menu-list {
    list-style-type: none;
    padding: 0;
}

.menu-list li {
    margin: 10px 0;
}

.how_it_works_container{
    padding-top: 60px;
    padding-bottom: 60px;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column;
    background-color: rgb(255, 248, 240);
    overflow: hidden; /* Prevent any potential overflow issues */
}

.menu-list a {
    display: block;
    padding: 12px 15px;
    background-color: #f5f5f5;
    border-radius: 4px;
    text-decoration: none;
    color: #0066cc;
    transition: background-color 0.2s;
}

.menu-list a:hover {
    background-color: #e9e9e9;
}

/* Responsive design for mobile - All mobile styles consolidated at the end */
@media (max-width: 768px) {
    .company_search_button_icon{
        padding-left: 5px;
        padding-right: 5px;
    }
    /* How it works container */
    .how_it_works_container {
        padding-top: 40px;
        padding-bottom: 20px;
    }
    
    /* Hero section */
    .hero_text {
        padding-left: 20px;
        padding-right: 20px;
        text-align: center;
    }
    
    /* Mobile/Desktop visibility */
    .mobile_only {
        display: flex !important;
    }
    
    .desktop_only {
        display: none !important;
    }
    
    /* How it works section */
    .how_it_works_interactive_container {
        flex-direction: column;
    }
    
    .how_it_works_content_area {
        order: -1; /* Move image above titles on mobile */
    }
    
    .how_it_works_image_container {
        height: 250px;
        margin-bottom: 20px;
    }
    
    .how_it_works_titles_column {
        width: 100%;
    }
    
    .how_it_works_title_item {
        padding-left: 30px;
        padding-right: 30px;
    }
    
    /* Company search container */
    .company_search_container {
        width: 90%;
        margin-top: 40px;
    }
    
    .company_search_input_container {
        padding-left: 15px;
    }
    
    .company_search_input {
        font-size: 16px;
        padding: 12px 8px;
    }
    
    .company_search_button {
        padding: 12px;
        font-size: 16px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .company_search_button_icon {
        width: 20px;
        height: 20px;
    }
    
    .search_results_container {
        width: 90%;
    }
}
