/* h1.page-title {
    display: none;
} */
.ct-container-full {
    padding-top: 0!important;
}

/* Reset and base styles */
#rvs-search-container * {
    box-sizing: border-box;
}

/* Main container for the whole search block */
#rvs-search-container {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 562px;
    border-radius: 8px;
    margin: 140px 100px;
}

/* Tabs styling */
.rvs-tabs {
    margin-bottom: 20px;
    border-bottom: 1px solid #dcdcde;
}

.rvs-tabs button {
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 10px 0;
    margin-right: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: #50575e;
    margin-bottom: -1px; /* Aligns with the container's border */
}

.rvs-tabs button.active {
    color: #1d2327;
    border-bottom-color: #d63638; /* Red color from screenshot */
}

/* Form container */
.rvs-search-form {
    /* No specific styles needed */
}

/* Row for form elements */
.rvs-form-row {
    display: grid;
    grid-template-columns: 2fr;
    gap: 15px;
}

/* Group for label + input */
.rvs-form-group {
    display: flex;
    flex-direction: column;
}

.rvs-form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 18px;
    line-height: 24px;
    color: #525969;
}

/* Styling for selects and custom dropdown */
.rvs-search-form select,
.rvs-dropdown-header {
    width: 100%;
    height: 58px;
    padding: 16px 20px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    background-color: #fff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    color:#000;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0;
}

.rvs-search-form select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.rvs-search-form select:disabled {
    background-color: #e9ecef;
    border-color: #ccd0d4;
    color: #8c8f94;
    cursor: not-allowed;
}

/* Custom dropdown specific styles */
.rvs-dropdown-container {
    position: relative;
    width: 100%;
}

.rvs-dropdown-header {
    cursor: pointer;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rvs-dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 250px;
    overflow-y: auto;
    background: white;
    border: 1px solid #8c8f94;
    border-top: none;
    z-index: 1000;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.rvs-dropdown-option {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rvs-dropdown-option:hover {
    background-color: #f2f2f2;
}

.rvs-dropdown-option img,
.rvs-dropdown-header img {
    max-height: 20px;
    min-width: 20px;
    margin-right: 8px;
    vertical-align: middle;
    object-fit: contain;
}

/* Footer with loader */
.rvs-form-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 15px;
    min-height: 20px; /* Reserve space for loader */
}

.rvs-loader {
    font-style: italic;
    color: #555;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Results View Styles */
.rvs-results-container {
    /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; */
    /* max-width: 1140px; */
    margin: 40px auto;
}

/* .rvs-results-container h1 {
    font-size: 28px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 5px;
    color: #1d2327;
} */

.rvs-results-container h2 {
    font-size: 18px;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 25px;
    color: #50575e;
}

.rvs-wheels-section {
    padding-top: 40px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

 /* remove padding top for second section rvs-wheels-section */
.rvs-wheels-section ~ .rvs-wheels-section {
    padding-top: 0;
}

.rvs-wheels-section h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 100%;
    margin: 0;
}

.rvs-wheels-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.rvs-wheels-table th,
.rvs-wheels-table td {
    text-align: left;
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.rvs-wheels-table thead th {
    font-weight: 500;
    color: #000;
}

.rvs-wheels-table tbody tr:last-child td {
    border-bottom: none;
}

.rvs-wheels-table tbody tr:hover {
    background-color: #f0f2f5;
}

.rvs-error {
    color: #d63638;
    background-color: #fbeaea;
    border: 1px solid #d63638;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Breadcrumb Navigation */
.rvs-breadcrumb {
    display: flex;
    gap: 24px;
    font-size: 16px;
    color: #494949;
    line-height: 150%;
    letter-spacing: 0;
}
.rsv-breadcrumb--green {
    color: #43923B;
}

/* Vehicle Header */
.rvs-vehicle-header {
    display: flex;
    gap: 20px;
    padding-bottom: 40px;
    border-bottom: solid 1px #00000026;
}

.rvs-vehicle-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    max-width: 567px;
    gap: 20px;
}

.rvs-vehicle-info--col-nav {
    gap: 16px;
    justify-content: normal;
}

.rvs-vehicle-info--expert-box {
    gap: 11px;
    justify-content: normal;
    border: solid 1px #00000026;
    border-radius: 8px;
    padding: 32px;
}

.rvs-vehicle-info h1 {
    font-size: 30px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0;
}

.rvs-make-logo img {
    max-height: 40px;
    object-fit: contain;
}

/* Expert Consultation Box */
.rvs-expert-box {
    display: flex;
    align-items: center;
    gap: 11px;
}
.rvs-expert-box--col-1 {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 315px;
}
.rvs-expert-box--col-1 * {
    margin: 0;
    padding: 0;
}
.rvs-expert-box--col-1 p {
    line-height: 130%;
    width: 285px;
}
.rvs-expert-box--col-2 {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;  
}

.rvs-expert-box h3 {
    font-size: 24px;
    font-weight: 600;
}

.rvs-contact-info div {
    display: flex;
    flex-direction: row;
    gap: 8px;
    font-size: 14px;
}

.rvs-vehicle-image img {
    border-radius: 8px!important;
}

/* Engine Selection Section */
.rvs-engine-section {
    margin-bottom: 30px;
}

.rvs-engine-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.rvs-tab {
    background-color: #f0f2f5;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    color: #50575e;
}

.rvs-tab.active {
    background-color: #d63638;
    color: #fff;
}

/* Vehicle Specifications */
.rvs-vehicle-specs {
    display: flex;
    gap: 20px;
    padding: 40px 0;
    border-bottom: solid 1px #00000026;
}

.rvs-specs-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rvs-spec-item {
    
}

.rvs-spec-label {
    font-weight: 600;
    color: #1d2327;
}

/* Wheels Data Table */
.rvs-wheels-table-container {
    /* margin-bottom: 30px; */
}

.rvs-wheels-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 24px;
    font-weight: 500;
    letter-spacing: 0;
    border: none;
}

.rvs-wheels-table .rvs-text-black {
    color: #000;
    font-weight: 600;
    font-size: 15px;
}

.rvs-wheels-table th,
.rvs-wheels-table td {
    border: none;
    text-align: left;
    padding: 12px 15px;
    font-size: 15px;
}

.rvs-wheels-table th {
    font-size: 16px;
}

.rvs-wheels-table th {
    border-bottom: solid 1px #00000033;
}

.rvs-wheels-table tr {
    border-bottom: solid 1px #0000001A;
}

.rvs-wheels-table tbody tr:hover {
    background-color: #f0f2f5;
}

/* Price Inquiry Form */
.rvs-price-inquiry {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px;
    border-radius: 8px;
    border: solid 1px #00000026;
}

.rvs-price-inquiry--col-1 {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.rvs-price-inquiry--title * {
    margin: 0;
    padding: 0;
}

.rvs-price-inquiry--title {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rvs-price-inquiry h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0;
}

.rvs-price-inquiry p {
    line-height: 130%;
    letter-spacing: 0;
}

.rvs-price-inquiry--choosen {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 32px;
    background-color: #43923B1A;
    border: solid 1px #43923B;
    border-radius: 8px;
}

.rvs-price-inquiry--choosen-title {
    font-weight: 500;
    line-height: 24px;
    color: #000;
}

.rvs-price-inquiry--choosen-data {
    display: flex;
    align-items: center;
    gap: 40px;
}

.rvs-price-inquiry--choosen-data-main {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 24px;
    line-height: 24px;
    letter-spacing: 0;
    color: #43923B;
}

.rvs-price-inquiry--choosen-button {
    padding: 1px 8px 1px 8px;
    border: solid 1px #43923B;
    font-weight: 500;
    font-size: 15px;
    line-height: 24px;
    letter-spacing: 0;
    color: #43923B;
    border-radius: 4px;
}

.rvs-price-inquiry--choosen-delete {
    font-weight: 500;
    line-height: 24px;
    color: #00000080;
    cursor: pointer;
}

/* form */

#fluentform_3 > fieldset > div.ff-t-container.ff-column-container.ff_columns_total_2.rvs-padangų-forma > div.ff-t-cell.ff-t-column-1 > div.ff-el-group.prekiu-kiekis > div.ff-el-input--content > div {
    flex-wrap: nowrap!important;
}

#fluentform_3 label {
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0;
    color: #525969;
}

#ff_3_numeric_field,
#ff_3_numeric_field_1,
#ff_3_phone,
#ff_3_input_text,
#ff_3_input_text_1,
#ff_3_email,
#ff_3_dropdown {
    border-radius: 8px;
    background-color: #fff;
    border: solid 1px #0000001A;
    color:#525969;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0;
    height: 58px;
    padding: 16px 20px !important;
}

button.ff-btn.ff-btn-submit.ff-btn-md.uzsakyti.ff_btn_no_style {
    font-weight: 700;
    font-size: 14px;
    line-height: 100%;
    color: #F4F4F4;
    padding: 0 15px;
    border-radius: 4px;
}

.ff-el-group.ff-text-right.ff_submit_btn_wrapper {
    margin-bottom: 0;
}

button.ff-btn.ff-btn-submit.ff-btn-md.uzsakyti.ff_btn_no_style:hover {
    color: #000;
}

/* form end */

.rvs-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rvs-form-row {
    /*display: flex;
    gap: 15px;*/
}

.rvs-form-cell {
    flex: 1;
}

.rvs-form-cell label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: #1d2327;
}

.rvs-form-cell input,
.rvs-form-cell select {
    width: 100%;
    height: 48px;
    padding: 10px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 16px;
}

.rvs-submit-button {
    background-color: #d63638;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.rvs-submit-button:hover {
    background-color: #b52c2c;
}

/* Paieškos puslapis */
@media only screen and (max-width: 800px) {
    #rvs-search-container {
        width: 400px;
        margin: 40px auto;
    }
}
@media only screen and (max-width: 430px) {
    #rvs-search-container h1 {
        font-size: 30px;
    }
    
    #rvs-search-container {
        width: 310px;
        margin: 40px auto;
    }
}
@media only screen and (max-width: 1155px) {
    .rvs-results-container {
        max-width: 92%;
    }
}

@media only screen and (max-width: 1000px) {
    .rvs-expert-box {
        align-items: flex-start;
        flex-direction: column;
    }
    .rvs-vehicle-info--expert-box {
        padding: 16px;
    }
}

@media only screen and (max-width: 730px) {
    .rvs-vehicle-header {
        flex-direction: column;
    }
}

@media only screen and (max-width: 410px) {
    .rvs-breadcrumb {
        gap: 10px;
        font-size: 14px;
    }
    .rvs-vehicle-info h1 {
        font-size: 22px;
    }
    .rvs-vehicle-info--expert-box {
        padding: 7px;
    }
    .rvs-wheels-section h3 {
        font-size: 18px;
    }
}

/* responsive tabels */
.rvs-wheels-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.rvs-wheels-table {
    min-width: 700px;
}
/* end responsive tabels */

@media only screen and (max-width: 690px) {
    .rvs-price-inquiry--col-1 {
        flex-direction: column;
    }
}

@media only screen and (max-width: 480px) {
    .rvs-price-inquiry--col-1 {
        flex-direction: column;
    }
    .rvs-price-inquiry--choosen-data {
        align-items: flex-start;
        gap: 20px;
        flex-direction: column;
    }
}

@media only screen and (max-width: 370px) {
    .rvs-price-inquiry--choosen-data-main {
        font-size: 20px;
    }
    .rvs-price-inquiry--choosen {
        padding: 16px;
    }
}

.rvs-wheels-table tbody tr:hover {
    background-color: #f0f2f5;
}

.rvs-order-button {
    background-color: #43923B;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    line-height: normal;
}

.rvs-order-button:hover {
    background-color: #FFE422;
    color: #000;
}

/* Price Inquiry Form */
.rvs-price-inquiry {
    display: flex;
}

.rvs-dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px; /* Adjusted height for search bar */
    background: white;
    border: 1px solid #8c8f94;
    border-top: none;
    z-index: 1000;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Hide overflow, inner list will scroll */
}

.rvs-dropdown-search-wrapper {
    padding: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.rvs-dropdown-search {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.rvs-dropdown-options-list {
    max-height: 240px; /* Adjust height to account for search bar */
    overflow-y: auto;
}