.new_web_left {
    position: relative;
}

.form_search_home {
    width: 100%;
    overflow: hidden;
}

/* Closed sidebar state */
.new_web_left.click1 {
    width: auto;

}

.toggle-buttonm_search {
    width: 100%;
    padding: 10px 18px;
    border: 0;
    border-radius: 4px;
    color: #ffffff;
    background: #0754b8;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.toggle-buttonm_search:hover {
    background: #003f92;
}
    .search_form{
        background-color: #f1f1f1;
        border-radius: 5px;
        padding: 10px;
        .soflow{
            background-color: white;
        }
    }


        :root {
    --primary-blue: #0754b8;
    --primary-dark: #003f92;
    --primary-light: #eef5ff;
    --text-dark: #12213a;
    --text-muted: #758195;
    --border-color: #d7dee8;
    --background: #ffffff;
    --red: #ef001f;
}

.vehicle-search-form {
    box-sizing: border-box;
}

.vehicle-search-form {
    width: 100%;
    padding: 20px;
    border: 1px solid #e0e5ec;
    border-radius: 7px;
    background: var(--background);
    box-shadow: 0 3px 12px rgba(19, 53, 96, 0.12);
    font-family: Arial, Helvetica, sans-serif;
     box-sizing: border-box;
}

.search-form-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.search-form-header h2 {
    margin: 0 0 5px;
    color: var(--primary-blue);
    font-size: 21px;
    font-weight: 700;
}

.search-form-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

.advanced-search-button {
    min-height: 37px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--primary-blue);
    border-radius: 4px;
    color: var(--primary-blue);
    background: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.advanced-search-button svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.advanced-search-button:hover {
    color: #ffffff;
    background: var(--primary-blue);
}

.search-fields {
    display: grid;
    grid-template-columns: repeat(4, minmax(170px, 1fr));
    gap: 15px;
}

.form-field {
    min-width: 0;
}

.form-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 700;
}

.form-field input,
.form-field select {
    width: 100%;
    height: 39px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    outline: none;
    color: #2d3748;
    background: #ffffff;
    font-family: inherit;
    font-size: 13px;
     box-sizing: border-box;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-field select {
    cursor: pointer;
}

.form-field input::placeholder {
    color: #99a3b1;
}

.form-field input:focus,
.form-field select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(7, 84, 184, 0.1);
}

.range-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 9px;
}

.range-separator {
    color: #59677a;
    font-size: 15px;
}

.keyword-field {
    grid-column: 1 / -1;
}

.keyword-input {
    position: relative;
}

.keyword-input svg {
    position: absolute;
    top: 50%;
    left: 12px;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: #94a0b0;
    stroke-width: 2;
    transform: translateY(-50%);
    pointer-events: none;
}

.keyword-input input {
    padding-left: 38px;
}

.stock-filter-section {
    margin-top: 22px;
}

.stock-filter-section h3 {
    margin: 0 0 11px;
    color: #0a2f69;
    font-size: 14px;
    font-weight: 700;
}

.stock-options {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.stock-option {
    position: relative;
    min-height: 34px;
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: #ffffff;
    cursor: pointer;
    overflow: hidden;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.stock-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.custom-check {
    position: relative;
    width: 33px;
    min-width: 33px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border-color);
    background: #ffffff;
}

.custom-check::before {
    content: "";
    width: 14px;
    height: 14px;
    border: 1px solid #c4ccd7;
    border-radius: 3px;
    background: #ffffff;
}

.stock-option-content {
    min-height: 32px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #374151;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 500;
}

.stock-option input:checked + .custom-check::before {
    border-color: transparent;
    background: transparent;
}

.stock-option input:checked + .custom-check::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 11px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.stock-option-default input:checked + .custom-check {
    border-color: var(--primary-blue);
    background: var(--primary-blue);
}

.stock-option-default:has(input:checked) {
    border-color: var(--primary-blue);
}

.stock-option-red {
    border-color: var(--red);
}

.stock-option-red .custom-check {
    border-right-color: var(--red);
}

.stock-option-red .stock-option-content {
    color: var(--red);
    font-weight: 700;
}

.stock-option-red input:checked + .custom-check {
    background: var(--red);
}

.stock-option-blue {
    border-color: #4c91e8;
}

.stock-option-blue .custom-check {
    border-right-color: #4c91e8;
}

.stock-option-blue .stock-option-content {
    color: #286abd;
    font-weight: 700;
}

.stock-option-blue input:checked + .custom-check {
    background: #4287d9;
}

.sbt-logo {
    padding: 1px 4px;
    border: 1px solid var(--red);
    border-radius: 50%;
    font-size: 8px;
    font-style: italic;
    font-weight: 700;
}

.partner-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #286abd;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stock-option:hover {
    box-shadow: 0 2px 7px rgba(15, 61, 120, 0.12);
}

.search-form-actions {
    display: flex;
    align-items: center;
    /* justify-content: flex-end; */
    gap: 10px;
    margin-top: 4px;
}

.reset-button,
.search-button {
    height: 38px;
    padding: 0 15px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.reset-button {
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    background: #ffffff;
}

.reset-button:hover {
    background: var(--primary-light);
}

.search-button {
    min-width: 180px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--primary-blue);
    color: #ffffff;
    background: var(--primary-blue);
}

.search-button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.search-button:hover {
    border-color: var(--primary-dark);
    background: var(--primary-dark);
}

/* Tablet */
@media (max-width: 1100px) {

    .search-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Desktop */
@media screen and (min-width: 781px) {
    .form_search_home {
        display: block !important;
        width: 100% !important;
        opacity: 1 !important;
    }

    .toggle-buttonm_search {
        display: none !important;
    }

    .new_web_left {
        width: auto;
            margin-right: 1%;
    }
}

/* Tablet and mobile */
@media screen and (max-width: 780px) {
    .toggle-buttonm_search {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .form_search_home {
        width: 100%;
        overflow: hidden;
    }
}

/* Mobile */
@media (max-width: 650px) {
    .vehicle-search-form {
        padding: 16px;
    }

    .search-form-header {
        flex-direction: column;
    }

    .advanced-search-button {
        width: 100%;
    }

    .search-fields {
        grid-template-columns: 1fr;
    }

    .keyword-field {
        grid-column: auto;
    }

    .range-fields {
        grid-template-columns: 1fr;
    }

    .range-separator {
        display: none;
    }

    .stock-options {
        display: grid;
        grid-template-columns: 1fr;
    }

    .stock-option {
        width: 100%;
    }

    .search-form-actions {
        flex-direction: column-reverse;
    }

    .reset-button,
    .search-button {
        width: 100%;
    }
}