/* VR Vehicle Selector - matches vr-tuning.com design */

.vrt-vehicle-selector {
    padding: 30px 0;
}

/* Title */
.vrt-selector-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 25px;
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.2;
}

.vrt-selector-title span {
    color: #c0392b;
}

.vrt-selector-inner {
    display: flex;
    gap: 12px;
    align-items: stretch;
    flex-wrap: wrap;
}

/* Vertical layout */
.vrt-selector-vertical .vrt-selector-inner {
    flex-direction: column;
    max-width: 420px;
}

.vrt-selector-vertical .vrt-select {
    width: 100%;
}

.vrt-selector-vertical .vrt-selector-button {
    width: 100%;
    text-align: center;
}

.vrt-selector-vertical .vrt-selector-submit {
    min-width: 100%;
}

/* Horizontal layout */
.vrt-selector-horizontal .vrt-selector-field {
    flex: 1;
    min-width: 180px;
}

.vrt-selector-horizontal .vrt-selector-submit {
    flex: 0 0 auto;
    min-width: auto;
}

/* Field wrapper */
.vrt-selector-field {
    position: relative;
}

/* Select styling - dark transparent look */
.vrt-select {
    width: 100%;
    padding: 14px 45px 14px 18px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Open Sans', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: none;
    border-radius: 0;
    background-color: rgba(80, 80, 80, 0.75);
    color: #fff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23fff' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    cursor: pointer;
    transition: background-color 0.2s;
    height: 50px;
    box-sizing: border-box;
}

.vrt-select:hover {
    background-color: rgba(100, 100, 100, 0.8);
}

.vrt-select:focus {
    background-color: rgba(100, 100, 100, 0.85);
    outline: none;
}

.vrt-select:disabled {
    background-color: rgba(60, 60, 60, 0.6);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
}

.vrt-select option {
    background: #333;
    color: #fff;
    padding: 8px;
}

/* Button */
.vrt-selector-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    background: #c0392b;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.3s, opacity 0.3s;
    height: 50px;
    box-sizing: border-box;
    white-space: nowrap;
    letter-spacing: 0.5px;
    font-family: 'Open Sans', Arial, sans-serif;
    width: 100%;
}

.vrt-selector-button:hover {
    background: #a93226;
    color: #fff;
    text-decoration: none;
}

.vrt-selector-button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.vrt-selector-button.active {
    opacity: 1;
}

.vrt-selector-arrow {
    font-size: 20px;
    font-weight: 400;
}

/* Not found link */
.vrt-selector-notfound {
    margin-top: 10px;
    font-size: 13px;
}

.vrt-selector-notfound a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.vrt-selector-notfound a:hover {
    color: #fff;
}

/* Light style overrides */
.vrt-selector-light .vrt-select {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
}

.vrt-selector-light .vrt-select:disabled {
    background-color: #e5e5e5;
    color: #aaa;
}

.vrt-selector-light .vrt-select option {
    background: #fff;
    color: #333;
}

.vrt-selector-light .vrt-selector-title span {
    color: #c0392b;
}

.vrt-selector-light .vrt-selector-notfound a {
    color: #999;
}

/* Dark style - default matches screenshot */
.vrt-selector-dark .vrt-selector-title {
    color: #fff;
}

/* Force square corners on all selector fields & selects (override theme defaults) */
.vrt-vehicle-selector .vrt-selector-field,
.vrt-vehicle-selector .vrt-selector-field .select_container,
.vrt-vehicle-selector .vrt-select,
.vrt-vehicle-selector select.vrt-select,
.vrt-vehicle-selector .vrt-selector-button {
    border-radius: 0 !important;
}

/* Hero overlay variant (homepage: selector top-left over slider) */
.vc_row.vrt-hero-slider-row {
    position: relative !important;
}

.vrt-hero-slider-row .vrt-vehicle-selector.vrt-hero-overlay {
    position: absolute !important;
    top: 140px;
    left: 60px;
    z-index: 9;
    width: 400px;
    max-width: 92%;
    padding: 34px 30px;
    background: rgba(15, 15, 15, 0.85);
    box-sizing: border-box;
    margin: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.vrt-hero-slider-row .vrt-hero-overlay .vrt-select,
.vrt-hero-slider-row .vrt-hero-overlay .vrt-selector-button,
.vrt-hero-slider-row .vrt-hero-overlay .vrt-selector-field {
    border-radius: 0 !important;
}

/* Title: all-white, no red accent on overlay */
.vrt-hero-slider-row .vrt-hero-overlay .vrt-selector-title,
.vrt-hero-slider-row .vrt-hero-overlay .vrt-selector-title span {
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 24px !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 25px !important;
    text-transform: uppercase;
}

.vrt-hero-slider-row .vrt-hero-overlay .vrt-selector-title {
    color: #fff;
    font-size: 22px;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.vrt-hero-slider-row .vrt-hero-overlay .vrt-selector-title span {
    color: #fff;
}

.vrt-hero-slider-row .vrt-hero-overlay .vrt-selector-inner {
    flex-direction: column;
    gap: 10px;
    max-width: 100%;
}

.vrt-hero-slider-row .vrt-hero-overlay .vrt-selector-field,
.vrt-hero-slider-row .vrt-hero-overlay .vrt-selector-submit {
    min-width: 100%;
    flex: 0 0 auto;
}

.vrt-hero-slider-row .vrt-hero-overlay .vrt-select {
    background-color: rgba(30, 30, 30, 0.85);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    height: 48px;
    padding: 12px 40px 12px 16px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23fff' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    transition: border-color 0.2s, background-color 0.2s;
}

.vrt-hero-slider-row .vrt-hero-overlay .vrt-select:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background-color: rgba(50, 50, 50, 0.9);
}

html body .vrt-hero-overlay select.vrt-select[data-level],
html body .vrt-hero-overlay select.vrt-select[data-level]:disabled,
html body .vrt-hero-overlay .select_container select.vrt-select[data-level] {
    background: #1a1a1a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23fff' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") right 16px center / 12px 8px no-repeat !important;
    color: #fff !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Container wrapping the select (theme's .select_container) must not add borders/bg */
html body .vrt-hero-overlay .select_container,
html body .vrt-hero-overlay .vrt-selector-field {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

html body .vrt-hero-overlay .select_container::before,
html body .vrt-hero-overlay .select_container::after {
    display: none !important;
    content: none !important;
}

html body .vrt-hero-overlay select.vrt-select[data-level]:disabled {
    color: rgba(255, 255, 255, 0.7) !important;
}

.vrt-hero-slider-row .vrt-hero-overlay .vrt-select option {
    background: #1e1e1e;
    color: #fff;
}

.vrt-hero-slider-row .vrt-hero-overlay .vrt-selector-button {
    width: 100%;
    background: #e74c3c;
    color: #fff;
    text-align: center;
    justify-content: center;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    height: 50px;
    margin-top: 5px;
}

.vrt-hero-slider-row .vrt-hero-overlay .vrt-selector-button:hover {
    background: #c0392b;
}

.vrt-hero-slider-row .vrt-hero-overlay .vrt-selector-notfound a {
    color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 768px) {
    .vrt-hero-slider-row .vrt-vehicle-selector.vrt-hero-overlay {
        position: static;
        max-width: none;
        margin: 20px auto;
        background: rgba(0, 0, 0, 0.85);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .vrt-selector-horizontal .vrt-selector-inner {
        flex-wrap: wrap;
    }

    .vrt-selector-horizontal .vrt-selector-field {
        min-width: calc(50% - 10px);
    }
}

@media (max-width: 576px) {
    .vrt-selector-inner {
        flex-direction: column;
    }

    .vrt-selector-field {
        min-width: 100% !important;
    }

    .vrt-selector-title {
        font-size: 24px;
    }
}
