/* =========================================
   DRIVERS HERO SECTION
========================================= */

.bs-drivers-hero {
    background: radial-gradient(
        1200px circle at top center,
        #1e293b 0%,
        #111827 60%
    );
    padding: 70px 16px 50px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Headline */
.bs-hero-title {
    font-size: 40px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.bs-hero-sub {
    font-size: 16px;
    color: #9ca3af;
    max-width: 680px;
    margin: 0 auto;
}

/* =========================================
   FILTER CONTAINER
========================================= */

.bs-hero-filters {
    margin: 35px auto 0;
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 16px;
    align-items: center;
}

/* =========================================
   FILTER GROUP
========================================= */

.bs-filter-group {
    width: 100%;
    box-sizing: border-box;
}

.bs-filter-group * {
    box-sizing: border-box;
    min-width: 0;
}

/* =========================================
   BOOTSTRAP SEARCH INPUT (NEW – FIXED)
========================================= */

.bs-search-group {
    width: 100%;
    height: 50px;
}

.bs-search-group .input-group-text {
    background-color: #020617;
    border: 1px solid #020617;
    border-right: none;
    color: #9ca3af;
    padding: 0 16px;
    border-radius: 14px 0 0 14px;
    pointer-events: none;
}

.bs-search-group .form-control {
    height: 38px;
    background-color: #020617;
    border: 1px solid #020617;
    border-left: none;
    color: #e5e7eb;
    font-size: 15px;
    border-radius: 0 14px 14px 0;
    box-shadow: none;
}

/* Focus */
.bs-search-group .form-control:focus {
    outline: none;
    box-shadow: none;
}

.bs-search-group:focus-within {
    box-shadow: 0 0 0 3px rgba(240, 138, 2, 0.15);
    border-radius: 14px;
}
.bs-search-group:focus-within .form-control,
.bs-search-group:focus-within .input-group-text {
    border-color: #f08a02;
}

/* Hover */
.bs-search-group:hover .form-control,
.bs-search-group:hover .input-group-text {
    border-color: rgba(240,138,2,0.6);
}
/* =========================================
   DARK PLACEHOLDER FIX
========================================= */

.bs-search-group .form-control::placeholder {
    color: rgba(229, 231, 235, 0.6); /* soft light gray */
}

/* Chrome / Edge */
.bs-search-group .form-control::-webkit-input-placeholder {
    color: rgba(229, 231, 235, 0.6);
}

/* Firefox */
.bs-search-group .form-control::-moz-placeholder {
    color: rgba(229, 231, 235, 0.6);
    opacity: 1;
}

/* Safari / iOS */
.bs-search-group .form-control:-ms-input-placeholder {
    color: rgba(229, 231, 235, 0.6);
}

/* On focus – slightly dimmer */
.bs-search-group .form-control:focus::placeholder {
    color: rgba(229, 231, 235, 0.4);
}
/* =========================================
   DARK INPUT FOCUS FIX
========================================= */

.bs-search-group .form-control,
.bs-filter-group select {
    background-color: #020617;
}

/* Prevent Bootstrap from turning it white on focus */
.bs-search-group .form-control:focus,
.bs-filter-group select:focus {
    background-color: #020617;
    color: #e5e7eb;
}

/* Also fix autofill (Chrome) */
.bs-search-group .form-control:-webkit-autofill,
.bs-search-group .form-control:-webkit-autofill:hover,
.bs-search-group .form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: #e5e7eb;
    -webkit-box-shadow: 0 0 0 1000px #020617 inset;
    transition: background-color 9999s ease-in-out 0s;
}

/* =========================================
   SELECT FILTERS
========================================= */

.bs-filter-group select {
    width: 100%;
    height: 52px;
    background-color: #020617;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    color: #e5e7eb;
    font-size: 15px;
    padding-left: 16px;
    transition: all 0.2s ease;
}

/* Focus */
.bs-filter-group select:focus {
    outline: none;
    border-color: #f08a02;
    box-shadow: 0 0 0 3px rgba(240,138,2,0.15);
}

/* Hover */
.bs-filter-group select:hover {
    border-color: rgba(240,138,2,0.6);
}


/* =========================================
   RESULTS WRAPPER
========================================= */

.bs-drivers-results {
    padding: 50px 0 70px;
    background-color: #111827;
}

/* Optional soft separation */
.bs-drivers-results::before {
    content: "";
    display: block;
    height: 1px;
    width: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255,255,255,0.08),
        transparent
    );
    margin-bottom: 40px;
}
/* Filter loading indicator */
.bs-filter-loader {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #9ca3af;
    margin-left: auto;
    padding-right: 10px;
}

.bs-filter-loading-text {
    white-space: nowrap;
}
.bs-drivers-grid-loading {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
/* =========================================
   RESULTS MESSAGE (END / EMPTY)
========================================= */

.bs-results-message {
    padding: 60px 0 30px;
}

.bs-results-inner {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 28px 34px;
    border-radius: 20px;
    background: linear-gradient(
        180deg,
        rgba(30,41,59,0.7),
        rgba(17,24,39,0.7)
    );
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(6px);
}

.bs-results-icon {
    font-size: 28px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.bs-results-title {
    font-size: 16px;
    font-weight: 600;
    color: #e5e7eb;
    margin: 0;
}

.bs-results-sub {
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
}
.bs-tier-desc {
    font-size: 14px;
    line-height: 1.4;
    color: #9daab9;
}

.bs-tier-desc ul {
    padding-left: 18px;
    margin-bottom: 0;
}

.bs-tier-desc li {
    margin-bottom: 4px;
}
.driver-avatar-wrap {
    position: relative;
    display: inline-block;
}

.bs-featured-icon {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 24px;
    height: 24px;
    background: #7c3aed;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}
.bs-avatar.driver-avatar-wrap span.bs-featured-icon
 {
    top: 0px;
    right: 5px;
}
.border-tier-gold
 {
    border-color: #FACC15;
}
.border-tier-bronze
 {
    border-color: #F59E0B;
}
.border-tier-silver
 {
    border-color: #D1D5DB;
}

.bs-social-flex > .bs-social-card:first-of-type {
    margin-left: 0 !important;
}

.bs-social-flex > .bs-social-card:last-of-type {
    margin-right: 0 !important;
}
/* .bs-featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #f08a02, #0a682d);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
} */
/* =========================================
   RESPONSIVE
========================================= */
/* Mobile adjustments */
@media (max-width: 992px) {
    .bs-hero-filters {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {

    .bs-hero-title {
        font-size: 30px;
    }

    .bs-hero-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .bs-filter-group {
        max-width: 100%;
    }
}
@media (max-width: 576px) {

     .bs-hero-filters {
        grid-template-columns: 1fr;
    }
    .bs-hero-filters {
        gap: 12px;
    }

    .bs-filter-group input,
    .bs-filter-group select {
        height: 48px;
        font-size: 14px;
    }

    .bs-hero-sub {
        font-size: 14px;
    }
}