.search-by-car{
	margin-top: 10px;
}

.search-vehicle-form__controls {
  display: flex;
  flex-wrap: wrap;
  padding: 10px; /* Add padding for spacing */
  border-radius: 10px; /* Adjust the value as needed */
  width: fit-content; /* Set width to fit the content */
  margin: 0 auto; /* Center align */
  justify-content: center; /* Center content horizontally */
  margin-bottom: 10px;
}
.search-vehicle-form__controls__item select {
  width: 250px; /* Set a fixed width */
  padding: 10px; /* Add padding for better appearance */
  font-size: 16px; /* Adjust font size as needed */
  background-color: white; /* Set background color for select boxes */
  color: black; /* Set text color */
  border: 1px solid black;
/*font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
*/
}

.search-vehicle-form__controls__item {
  margin-right: 10px; /* Adjust spacing between select boxes */
}
.h2-section__name {
    color: rgb(255, 255, 255); /* Set the text color to white */
    text-shadow: 2px 0 rgb(255, 0, 0), -2px 0 rgb(255, 0, 0), 0 3px rgb(255, 0, 0), 0 -2px rgb(255, 0, 0),
                 2px 2px rgb(255, 0, 0), -2px -2px rgb(255, 0, 0), 2px -2px rgb(255, 0, 0), -2px 2px rgb(255, 0, 0);
}

.form-control:disabled,
.form-control[readonly] {
    background-color: white; /* Set the background color to white */
    color: #b3b3b3; /* Set the text color to a light gray */
    opacity: 1; /* Ensure full opacity */
    border-color: #ced4da; /* Optional: Reset border color to standard form control */
    cursor: not-allowed; /* Optional: Keep the cursor indicating it's disabled */
}


.heading-vehicles{
	
	margin-left: 20px;
	margin-right: 20px;
}
/* Default Styles for Desktop */
.h2-section1 {
    display: block;
    margin-bottom: 20px;
    font-size: 50px; /* Large font size for desktops */
    color: rgb(0, 0, 0);
    font-weight: 600;
    line-height: 1.4;
}

/* Medium Screens (Tablets) */
@media (max-width: 1024px) {
    .h2-section1 {
        margin-right: 500px; /* Adjust margin for tablets */
        font-size: 40px; /* Smaller font size */
    }
}

/* Small Screens (Mobile Devices) */
@media (max-width: 768px) {
    .h2-section1 {
        margin-right: 20px; /* Reduced margin for mobile */
        font-size: 30px; /* Further reduce font size */
    }
}

/* Extra Small Screens */
@media (max-width: 480px) {
    .h2-section1 {
        margin-right: 10px; /* Minimal margin */
        font-size: 24px; /* Even smaller font size */
    }
}

select.form-control optgroup {
    font-size: 12px;
    color: #12477a
}
select.form-control option {
    color: #717171;
    font-size: 14px
}
/* Media query for smaller screens like mobile devices */
@media screen and (max-width: 600px) {
    .h2-section {
        margin-right: 0; /* Reset right margin for mobile */
        margin-left: 20px; /* Adjusted left-side margin for mobile */
        font-size: 24px; /* Further adjusted font size for smaller screens */
    }
}





.btn.btn-block.text-uppercase {
  background-color:rgb(0, 0, 0);
  
  padding: 12px; /* Add padding for better appearance */
  font-size: 16px; /* Adjust font size as needed */
 color: white;
  border-radius: 5px; /* Adjust the value as needed */
    cursor: pointer; /* Add pointer cursor */
/*font-weight: bold;
*/}


  .modals {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal__fade {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.modal__body {
    position: relative;
    margin: 2% auto; /* 5% from the top and centered for desktop */
    padding: 20px; /* Original padding for desktop */
    width: 90%; /* Original width for desktop */
    max-width: 970px; /* Original max-width for desktop */
    /*height: 96%;  Original height for desktop */
/*    max-height: 600px;  Original max-height for desktop */
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: fadeIn 0.5s;
    overflow: hidden; /* Disable scrolling for the modal body */
    margin-top: 100px;
}
.modal-active {
    overflow: hidden;
    height: 100%;
}

/* Media query for smaller screens like mobile devices */
@media screen and (max-width: 600px) {
    .modal__body {
        margin: 10% auto; /* Adjusted margin for mobile */
        padding: 10px; /* Adjusted padding for mobile */
        width: 95%; /* Adjusted width for mobile */
        max-width: none; /* Removed max-width for mobile */
        height: auto; /* Auto height for mobile */
        max-height: none; /* Removed max-height for mobile */
    }
}



.modal__close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #000;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.modal__close:hover,
.modal__close:focus {
    color: #f00;
    text-decoration: none;
    cursor: pointer;
}


.modal__heading {
    margin-bottom: 10px;
    font-size: 30px;
    color: #12477a;
    font-weight: 600;
    line-height: 1.2;
}

.searchster {
    margin-top: 20px;
    overflow-y: auto; /* Enable scrolling */
    max-height: calc(100% - 200px); /* Adjust as needed */
}

/* Adjust the searchster-categories-grid class to enable scrolling */
.searchster-categories-grid {
    overflow-y: auto; /* Enable scrolling */
    max-height: calc(100% - 200px); /* Adjust as needed */
}

.searchster-filters__content {
    margin-bottom: 10px;
    font-size: 16px;
}

.searchster-filters__list {
    display: flex;
    flex-wrap: wrap;
}

.searchster-filters__list__item {
    background-color: #edfafe;
    padding: 5px 10px;
    border-radius: 3px;
    margin-right: 5px;
    margin-bottom: 5px;
}
.searchster-filters {
      margin: 20px;
    }
    .searchster-filters__list__item {
      display: flex;
      align-items: center;
      margin-bottom: 5px;
    }
    .searchster-filters__list__item__name1 {
      margin-right: 10px;
    }
    .searchster-filters__list__item__close {
      cursor: pointer;
      color: red;
      display: none;
    }
.searchster-categories-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    cursor: pointer;
}

.searchster-categories-grid {
    display: flex;
    flex-wrap: wrap;
/*    justify-content: space-between;
*/}

.searchster-categories-grid__item {
    width: calc(25% - 14px); /* Ensures 4 items per row */
    font-size: 16px;
    display: flex;
    flex-direction: column;
    margin: 0 7px 14px; /* Adjusted margin to ensure proper spacing */
    box-shadow: 0 3px 10px #ebebeb;
    border-radius: 5px;
    transition: all 0.3s;
    text-align: center;
    cursor: pointer;
    overflow: hidden; /* Prevent overflow */
}

.searchster-categories-grid__item img.main-levels {
    height: 150px; /* Fixed height for images */
    margin-bottom: 10px; /* Space between image and text */
}



@media only screen and (max-width: 768px) {
    .searchster-categories-grid__item {
        width: calc(50% - 14px); /* Two items per row on smaller screens */
    }
}


/* Animation for the modal */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
} 

.search-form__filed__control {
    height: 44px;
    border-radius: 4px 0 0 4px;
    border-width: 1px 0 1px 1px;
    -webkit-appearance: none;
}
    
 
.form-controlrs {
    display: flex;
    width: 90%;
    padding: .375rem .75rem;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
* {
  box-sizing: border-box;
}
/*.example input[type=text] {
  padding: 10px;
  font-size: 17px;
  border: 1px solid rgb(192, 192, 192);
  float: left;
  width: 90%;
  background: rgb(255, 255, 255);
}

@media only screen and (max-width: 768px) {
  .example input[type=text] {
    width: 70%;  Set width to 50% for mobile and tablet devices 
  }
}


.example .search-button {
  float: left;
  padding: 15px;
  background: #59d8fd;  Changed background color to a lighter shade of red 
  color: white;
  font-size: 17px;
  border: 1px solid grey;
  cursor: pointer;
}


.example .microphone-button{
	 float: left;
  padding: 15px;
  background: rgb(255, 0, 0);  Changed background color to a lighter shade of red 
  color: white;
  font-size: 17px;
  border: 1px solid grey;
  cursor: pointer;
}

.example .microphone-button {
  width: 15%;  Set both buttons to 20% width on mobile and tablet devices 
  border-left: none;  Remove left border to separate buttons 
}

.example .search-button {
  width: 15%;  Set both buttons to 20% width on mobile and tablet devices 
}

.example button:hover {
  background: #0b7dda;
}

.example::after {
  content: "";
  clear: both;
  display: table;
}

@media only screen and (min-width: 769px) {
  .example .microphone-button,
  .example .search-button {
    width: 5%;  Reset width to 5% for larger screens 
  }
}
*/

 .searchster-categories-breadcrumbs {
            list-style: none;
            padding: 0;
        }
        .searchster-categories-breadcrumbs__item {
            display: inline;
            margin-right: 5px;
        }
        .searchster-categories-breadcrumbs__item__link {
            cursor: pointer;
            text-decoration: underline;
        }
 /* Grid container */
.searchster-question__option {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Adjusted width */
    gap: 14px;
}

/* Grid items */
.searchster-question__option__item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 5px;
    border: 2px solid #c0cce6;
    border-radius: 5px;
    transition: all .3s;
    text-align: center;
    cursor: pointer;
}

/* Hover effect */
.searchster-question__option__item:hover {
    background-color: #e0e6f8; /* Change to your desired hover background color */
}

/* Media query for smaller screens like mobile devices */
@media screen and (max-width: 600px) {
    .searchster-question__option {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Adjusted width for smaller screens */
        gap: 10px; /* Adjusted gap */
    }
}
/* For wider screens, change item width and padding */
@media (min-width: 760px) {
    .searchster-question__option__item {
        padding: 25px 5px;
        border: 2px solid #edfafe;
        font-size: 16px;
    }
}

	 ngx-searchster-nav,
      ngx-searchster-question {
       display: none;
        }

       /* General Mobile Styles */
@media screen and (max-width: 600px) {
    .search-vehicle-form__controls {
        flex-direction: column; /* Stack controls vertically */
        padding: 5px; /* Reduce padding */
        width: 100%; /* Full width */
        margin: 0; /* Remove auto margin */
    }

    .search-vehicle-form__controls__item {
        margin: 5px 0; /* Adjust margin for vertical stacking */
    }

    .search-vehicle-form__controls__item select {
        width: 100%; /* Full width for select boxes */
        font-size: 14px; /* Adjust font size for mobile */
    }

    .h2-section1 {
        margin: 10px 0; /* Adjust margins for mobile */
        font-size: 24px; /* Adjust font size */
        margin-right: 90px;
    }

    .btn.btn-block.text-uppercase {
        padding: 12px; /* Adjust padding */
        font-size: 14px; /* Adjust font size */
        border-radius: 3px; /* Adjust border radius */
        width: 100%;
    }

    .modal__body {
        margin: 10% auto; /* Adjusted margin */
        padding: 15px; /* Adjusted padding */
        width: 95%; /* Full width with some margin */
        max-width: none; /* Remove max-width */
        height: auto; /* Auto height */
        max-height: none; /* Remove max-height */
    }

    .searchster-categories-grid__item {
        width: calc(50% - 14px); /* Two items per row */
    }

    .searchster-question__option {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Adjust columns for mobile */
        gap: 10px; /* Adjust gap */
    }

    .searchster-question__option__item {
        padding: 15px; /* Adjust padding */
        font-size: 14px; /* Adjust font size */
    }

    .searchster-filters__content {
        font-size: 14px; /* Adjust font size */
    }

    .searchster-filters__list__item {
        font-size: 14px; /* Adjust font size */
    }

    .searchster-categories-title {
        font-size: 16px; /* Adjust font size */
    }

    .searchster-categories-breadcrumbs {
        font-size: 14px; /* Adjust font size */
    }

    .searchster-filters {
        margin: 10px; /* Adjust margin */
    }

    .searchster-filters__list__item__name1 {
        font-size: 14px; /* Adjust font size */
    }

    .searchster-filters__list__item__close {
        font-size: 14px; /* Adjust font size */
    }

    .modal__close {
        font-size: 28px; /* Adjust font size for close button */
        right: 10px; /* Adjust positioning */
    }

    .h2-section__name {
        font-size: 20px; /* Adjust font size */
    }
}

/* Larger screens and desktop styles */
@media (min-width: 769px) {
    .search-vehicle-form__controls {
        width: fit-content; /* Adjust width */
        margin: 0 auto; /* Center align */
    }

    .searchster-categories-grid__item {
        width: calc(25% - 14px); /* Four items per row */
    }
}
.searchster-categories-grid__item img.main-levels {
    max-height: 187px; /* Ensures it doesn't exceed this height */
    width: auto; /* Maintains aspect ratio */
    max-width: 100%; /* Prevents overflow */
    height: 100%; /* Ensures it scales properly */
    margin-bottom: 10px;
    object-fit: contain; /* Ensures the whole image is visible */
}

/* Ensure the image scales properly on larger and smaller screens */
@media (max-width: 768px) { /* Tablets & Mobile */
    .searchster-categories-grid__item img.main-levels {
        max-height: 150px; /* Adjusts for smaller screens */
    }
}

@media (max-width: 480px) { /* Mobile screens */
    .searchster-categories-grid__item img.main-levels {
        max-height: 120px; /* Smaller height for smaller devices */
    }
}

    