/* ==========================================================================
   CHECKMYCARS.IN - COMPREHENSIVE MOBILE RESPONSIVE ENGINE
   Resolves layout defects, button collisions, and text wrapping on mobile
   Tested on 360px, 375px, 390px, 414px viewports
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FLOATING ACTION BUTTONS & SCROLL-TO-TOP POSITIONING
   Place "Book Inspection" button on the LEFT side on all pages,
   while "Scroll-To-Top" arrow button stays on the RIGHT side.
   -------------------------------------------------------------------------- */
.floating-booking-trigger {
    position: fixed !important;
    bottom: 25px !important;
    left: 24px !important;
    right: auto !important;
    z-index: 9995 !important;
}

.scroll-top {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    left: auto !important;
    z-index: 9996 !important;
}

@media (max-width: 767px) {
    /* Floating Book Inspection button on the LEFT for mobile */
    .floating-booking-trigger {
        bottom: 20px !important;
        left: 16px !important;
        right: auto !important;
        z-index: 9995 !important;
        padding: 9px 16px !important;
        font-size: 13px !important;
        box-shadow: 0 4px 18px rgba(238, 104, 22, 0.45) !important;
    }

    /* Scroll To Top arrow button on the RIGHT for mobile */
    .scroll-top {
        bottom: 16px !important;
        right: 16px !important;
        left: auto !important;
        width: 42px !important;
        height: 42px !important;
        z-index: 9996 !important;
    }

    .scroll-top:after {
        width: 42px !important;
        height: 42px !important;
        line-height: 42px !important;
        font-size: 16px !important;
    }

    .scroll-top svg {
        width: 42px !important;
        height: 42px !important;
    }
}

/* --------------------------------------------------------------------------
   2. SECTION TITLE DECORATIVE LINES (NO-WRAP FIX)
   Prevents the right orange line from wrapping onto a separate row
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .section-title h2,
    .section-title1 h2,
    .sec-title h2 {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
        font-size: 20px !important;
        line-height: 1.3 !important;
        text-align: center !important;
    }

    .section-title h2 span:empty,
    .section-title1 h2 span.title-linex,
    .section-title1 h2 span:empty,
    .carpdi-title .title-linex {
        width: 22px !important;
        height: 2.5px !important;
        flex-shrink: 0 !important;
        display: inline-block !important;
        background: #ee6816 !important;
        margin: 0 !important;
    }

    .carpdi-title {
        font-size: 20px !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    .section-title h2,
    .section-title1 h2,
    .sec-title h2 {
        font-size: 18px !important;
        gap: 6px !important;
    }

    .section-title h2 span:empty,
    .section-title1 h2 span.title-linex,
    .carpdi-title .title-linex {
        width: 16px !important;
        height: 2px !important;
    }

    .carpdi-title {
        font-size: 17px !important;
    }
}

/* --------------------------------------------------------------------------
   3. HERO SECTION RESPONSIVENESS
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    /* Dynamic City Typewriter Badge */
    .hero-typer-badge {
        max-width: 95% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 6px 14px !important;
    }
    .hero-typer-content {
        font-size: 13px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Hero 5 feature pills */
    .hero-features {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 6px !important;
        margin: 14px auto !important;
        width: 100% !important;
        padding: 0 4px !important;
    }

    .hero-features .feature-item {
        display: inline-flex !important;
        align-items: center !important;
        flex: 1 1 calc(33.333% - 6px) !important;
        min-width: 96px !important;
        max-width: 120px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        backdrop-filter: blur(8px) !important;
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
        border-radius: 8px !important;
        padding: 6px 6px !important;
        gap: 5px !important;
        box-sizing: border-box !important;
    }

    .hero-features .feature-icon {
        width: 24px !important;
        height: 24px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }

    .hero-features .feature-icon img {
        width: 20px !important;
        height: 20px !important;
        object-fit: contain !important;
    }

    .hero-features .feature-content h6 {
        font-size: 11px !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        line-height: 1.15 !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }

    .hero-features .feature-content span {
        font-size: 9px !important;
        color: rgba(255, 255, 255, 0.85) !important;
        line-height: 1.1 !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 420px) {
    .hero-features .feature-item {
        flex: 1 1 calc(50% - 6px) !important;
        max-width: none !important;
    }

    /* Hero CTA button group */
    .th-hero-wrapper .btn-group {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 8px !important;
    }
    .th-hero-wrapper .btn-group .th-btn {
        width: 100% !important;
        border-radius: 8px !important;
        justify-content: center !important;
        padding: 12px 16px !important;
        font-size: 14px !important;
    }
}

/* --------------------------------------------------------------------------
   4. COMPARISON TABLE MOBILE TOUCH SCROLL
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .comparison-wrapper .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: 10px !important;
        border: 1px solid #e5e7eb !important;
        box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.04) !important;
    }

    .comparison-table {
        min-width: 620px !important;
    }

    .comparison-table thead th {
        padding: 12px 10px !important;
        font-size: 12.5px !important;
    }

    .comparison-table tbody td {
        padding: 12px 10px !important;
        font-size: 12px !important;
    }

    .comparison-table .feature-heading,
    .comparison-table .feature-name {
        min-width: 110px !important;
    }

    .comparison-table .carpdi-column,
    .comparison-table .carpdi-value {
        min-width: 140px !important;
        background: #fff8f3 !important;
    }
}



/* --------------------------------------------------------------------------
   6. SEO TRUST BANNERS & STRIPS
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
    .carpdi-trust-bar {
        padding: 12px 14px !important;
    }

    .carpdi-trust-inner {
        flex-direction: column !important;
        text-align: center !important;
        gap: 4px !important;
    }

    .carpdi-trust-text,
    .carpdi-trust-inner strong {
        font-size: 13.5px !important;
        line-height: 1.4 !important;
        display: block !important;
    }
}

/* --------------------------------------------------------------------------
   7. WHY CHOOSE CHECKMYCARS BENEFIT CARDS
   -------------------------------------------------------------------------- */
@media (max-width: 575px) {
    .why-choose-cmc-section {
        padding: 30px 0 !important;
    }

    .why-choose-cmc-box {
        padding: 16px 10px !important;
        margin-bottom: 12px !important;
    }

    .why-choose-cmc-heading {
        font-size: 14px !important;
        font-weight: 700 !important;
        margin-top: 8px !important;
        margin-bottom: 4px !important;
    }

    .why-choose-cmc-desc {
        font-size: 11.5px !important;
        line-height: 1.35 !important;
        color: #6b7280 !important;
    }
}

/* --------------------------------------------------------------------------
   8. POPULAR BRANDS & TOP MODELS OVERVIEW BAR
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .popular-brand-card {
        padding: 14px 10px !important;
    }

    .top-models-columns {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .top-models-col {
        width: 100% !important;
        padding: 10px 14px !important;
        border-radius: 8px !important;
        background: #fdfdfd !important;
        border: 1px solid #edf2f7 !important;
    }
}

/* --------------------------------------------------------------------------
   9. PREVENT ACCIDENTAL HORIZONTAL SCROLL ON BODY
   -------------------------------------------------------------------------- */
html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* --------------------------------------------------------------------------
   10. HERO SUBTITLE / TEXT COLOR ENFORCEMENT
   Ensure "New Car PDI | Used Car Inspection | 140+ Check Points" is bright white
   -------------------------------------------------------------------------- */
.hero-style11 .hero-text,
.hero-style12 .hero-text,
p.hero-text {
    color: #ffffff !important;
}

/* ==========================================================================
   11. SITE-WIDE INSTANT SEARCH OVERLAY & RESULTS PANEL
   ========================================================================== */
.popup-search-box {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(10, 13, 18, 0.94) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    z-index: 99999 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 65px 20px 40px !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    border-radius: 0 !important;
    transform: none !important;
}

.popup-search-box:not(.show) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.popup-search-box.show {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

.popup-search-box .searchClose {
    position: fixed !important;
    top: 24px !important;
    right: 28px !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    border: 2px solid #ee6816 !important;
    background: rgba(22, 26, 34, 0.9) !important;
    color: #ee6816 !important;
    font-size: 20px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 100000 !important;
    transition: all 0.3s ease !important;
}

.popup-search-box .searchClose:hover {
    background: #ee6816 !important;
    color: #ffffff !important;
    transform: rotate(90deg) scale(1.08) !important;
    box-shadow: 0 0 20px rgba(238, 104, 22, 0.6) !important;
}

.popup-search-box form {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 820px !important;
    margin: 0 auto !important;
    padding-bottom: 0 !important;
    display: block !important;
}

/* Search input wrapper */
.cmc-search-input-wrap {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    background: #151922;
    border: 2px solid #ee6816;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(238, 104, 22, 0.2);
    transition: all 0.3s ease;
}

.cmc-search-input-wrap:focus-within {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 25px rgba(238, 104, 22, 0.45);
    border-color: #ff7e2e;
}

.popup-search-box form input {
    width: 100% !important;
    height: 64px !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    padding: 0 110px 0 28px !important;
    font-size: 17px !important;
    color: #ffffff !important;
    font-weight: 500 !important;
}

.popup-search-box form input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 15.5px !important;
}

/* Clear button */
.cmc-search-clear {
    position: absolute;
    right: 58px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #ffffff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cmc-search-clear:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

/* Search icon submit button */
.popup-search-box form button[type="submit"] {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: #ee6816 !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.popup-search-box form button[type="submit"]:hover {
    background: #ff7e2e !important;
    transform: translateY(-50%) scale(1.08) !important;
    box-shadow: 0 0 15px rgba(238, 104, 22, 0.6) !important;
}

/* Results panel */
.cmc-search-results-panel {
    margin-top: 16px;
    background: rgba(18, 22, 29, 0.98);
    border: 1px solid rgba(238, 104, 22, 0.35);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75);
    max-height: calc(85vh - 120px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar */
.cmc-search-results-panel::-webkit-scrollbar {
    width: 6px;
}
.cmc-search-results-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
}
.cmc-search-results-panel::-webkit-scrollbar-thumb {
    background: #ee6816;
    border-radius: 10px;
}

/* Empty State / Popular Searches */
.cmc-search-empty-state {
    padding: 10px 5px;
}

.cmc-search-quick-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #ee6816;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cmc-search-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.cmc-search-tag-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex !important;
    align-items: center !important;
    user-select: none !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
    width: auto !important;
    height: auto !important;
    transform: none !important;
}

.cmc-search-tag-pill:hover {
    background: rgba(238, 104, 22, 0.2);
    border-color: #ee6816;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 104, 22, 0.25);
}

.cmc-search-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 18px;
}

.cmc-search-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cmc-search-feature-item i {
    font-size: 20px;
    color: #ee6816;
}

.cmc-search-feature-item span {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

/* Header meta in results */
.cmc-search-header-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
}

.cmc-results-count {
    font-size: 13.5px;
    color: #94a3b8;
}

.cmc-results-count strong {
    color: #ffffff;
}

.cmc-nav-hint {
    font-size: 12px;
    color: #64748b;
}

/* Result Groups */
.cmc-search-group {
    margin-bottom: 20px;
}

.cmc-search-group-header {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.cmc-search-group-header i {
    color: #ee6816;
}

.cmc-group-badge {
    background: rgba(238, 104, 22, 0.2);
    color: #ee6816;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
}

.cmc-search-items-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Result Card */
.cmc-search-result-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
}

.cmc-search-result-card:hover,
.cmc-search-result-card.cmc-active {
    background: rgba(238, 104, 22, 0.12);
    border-color: rgba(238, 104, 22, 0.5);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.cmc-result-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    background: rgba(238, 104, 22, 0.15);
    color: #ee6816;
    border: 1px solid rgba(238, 104, 22, 0.3);
}

.cmc-cat-cars .cmc-result-icon {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.3);
}

.cmc-cat-cities .cmc-result-icon {
    background: rgba(52, 211, 153, 0.12);
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.3);
}

.cmc-cat-services .cmc-result-icon {
    background: rgba(238, 104, 22, 0.15);
    color: #ee6816;
    border-color: rgba(238, 104, 22, 0.3);
}

.cmc-result-body {
    flex: 1;
    min-width: 0;
}

.cmc-result-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
    flex-wrap: wrap;
}

.cmc-result-title {
    font-size: 15.5px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.cmc-result-pill {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

.cmc-result-subtitle {
    font-size: 12.5px;
    color: #94a3b8;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cmc-result-arrow {
    color: #64748b;
    font-size: 13px;
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.cmc-search-result-card:hover .cmc-result-arrow,
.cmc-search-result-card.cmc-active .cmc-result-arrow {
    color: #ee6816;
    transform: translateX(3px);
}

/* Highlight mark */
mark.cmc-highlight {
    background: transparent;
    color: #ee6816;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* No results */
.cmc-search-no-results {
    text-align: center;
    padding: 30px 15px;
}

.cmc-no-results-icon {
    font-size: 42px;
    color: #64748b;
    margin-bottom: 12px;
}

.cmc-search-no-results h4 {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 8px;
}

.cmc-search-no-results p {
    font-size: 14px;
    color: #94a3b8;
    max-width: 500px;
    margin: 0 auto;
}

/* Mobile responsiveness */
@media (max-width: 767px) {
    .popup-search-box {
        padding: 55px 12px 25px !important;
    }

    .popup-search-box .searchClose {
        top: 14px !important;
        right: 14px !important;
        width: 38px !important;
        height: 38px !important;
        font-size: 16px !important;
    }

    .popup-search-box form input {
        height: 54px !important;
        font-size: 14.5px !important;
        padding: 0 85px 0 20px !important;
    }

    .popup-search-box form input::placeholder {
        font-size: 13px !important;
    }

    .cmc-search-clear {
        right: 48px;
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .popup-search-box form button[type="submit"] {
        right: 6px !important;
        width: 38px !important;
        height: 38px !important;
        font-size: 15px !important;
    }

    .cmc-search-results-panel {
        padding: 14px 10px;
        max-height: calc(82vh - 90px);
        margin-top: 12px;
    }

    .cmc-search-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .cmc-search-result-card {
        padding: 10px 12px;
        gap: 10px;
    }

    .cmc-result-icon {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .cmc-result-title {
        font-size: 14px;
    }

    .cmc-result-subtitle {
        font-size: 11.5px;
    }
}

/* Mobile Header Navigation Layout Optimization */
@media (max-width: 991px) {
    .header-logo img {
        height: 40px !important;
        max-width: 140px !important;
        width: auto !important;
        object-fit: contain;
    }
    .header-layout11 .menu-area {
        padding: 8px 0 !important;
    }
    .header-layout11 .menu-area .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    .mobile-city-header-btn {
        padding: 5px 10px !important;
        font-size: 11px !important;
        margin-right: 6px !important;
        border-radius: 16px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        background: #ee6816 !important;
        color: #ffffff !important;
        border: 1px solid #ee6816 !important;
        font-weight: 700 !important;
    }
    .mobile-city-header-btn i,
    .mobile-city-header-btn span {
        font-size: 11px !important;
        color: #ffffff !important;
    }
    .th-menu-toggle {
        width: 38px !important;
        height: 38px !important;
        line-height: 38px !important;
        font-size: 16px !important;
        border-radius: 6px !important;
        margin-right: 6px !important;
        flex-shrink: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .icon-btn.searchBoxToggler {
        width: 38px !important;
        height: 38px !important;
        line-height: 38px !important;
        font-size: 14px !important;
        border-radius: 6px !important;
        flex-shrink: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* Master Topical SEO Section Crisp Typography & Antialiasing */
#master-topical-seo {
    isolation: isolate;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

#master-topical-seo .text-center .badge {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    display: inline-block !important;
    margin-bottom: 12px !important;
}

#master-topical-seo .text-center h2 {
    color: #0f172a !important;
    font-weight: 800 !important;
    letter-spacing: -0.3px;
    -webkit-font-smoothing: antialiased;
    filter: none !important;
}

#master-topical-seo .text-center p.text-muted {
    color: #334155 !important;
    font-weight: 450 !important;
    -webkit-font-smoothing: antialiased;
    filter: none !important;
}

/* Master Topical SEO Section Responsive Adjustments */
@media (max-width: 767px) {
    #master-topical-seo {
        padding-top: 35px !important;
        padding-bottom: 35px !important;
    }
    #master-topical-seo .text-center h2 {
        font-size: 22px !important;
        line-height: 1.35 !important;
    }
    #master-topical-seo .text-center p.text-muted {
        font-size: 14px !important;
        line-height: 1.6 !important;
        text-align: left !important;
    }
}

/* ==========================================================================
   PAGE-SPEED & CORE WEB VITALS OPTIMIZATIONS
   Fixes CLS, Touch Targets, Contrast, and Layout shifts
   ========================================================================== */

/* 1. Eliminate CLS on Services Swiper Carousel */
.servicesSwiper {
    position: relative;
    padding: 0 45px 45px;
    min-height: 520px;
    contain: layout;
}

.servicesSwiper .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
    box-sizing: border-box;
}

.servicesSwiper .swiper-slide .card {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 2. Swiper Pagination 48px Touch Targets for Mobile Accessibility */
.servicesSwiper .swiper-pagination-bullet {
    position: relative;
    width: 10px;
    height: 10px;
    margin: 0 6px !important;
    display: inline-block;
    cursor: pointer;
}

.servicesSwiper .swiper-pagination-bullet::before {
    content: '';
    position: absolute;
    top: -16px;
    bottom: -16px;
    left: -16px;
    right: -16px;
}

/* 3. Hero Element Animation Stability on Mobile (Eliminates CLS) */
@media (max-width: 991px) {
    .hero-style11 .btn-group,
    .hero-typer-badge,
    .hero-features {
        opacity: 1 !important;
        transform: none !important;
        -webkit-transform: none !important;
        animation: none !important;
        -webkit-animation: none !important;
    }
}

/* 4. Enhanced Contrast (WCAG AA Compliant 4.5:1+) */
.text-orange,
.top-models-card .top-models-brand-name,
.reality-feature-title,
.why-choose-cmc-heading {
    color: #ee6816 !important;
}

.hero-typer-cursor {
    color: #ee6816 !important;
}

.popular-brand-img,
.brand-logo {
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

/* 5. Zero-CLS Swiper Stabilization & Instant Hero Render */
.preloader {
    display: none !important;
}

#team-sec {
    min-height: 520px;
    contain: layout;
}

.servicesSwiper:not(.swiper-initialized) > .swiper-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow: hidden;
}

.servicesSwiper:not(.swiper-initialized) > .swiper-wrapper > .swiper-slide {
    flex: 0 0 25%;
    max-width: 25%;
}

@media (max-width: 1199px) {
    .servicesSwiper:not(.swiper-initialized) > .swiper-wrapper > .swiper-slide {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

@media (max-width: 991px) {
    .servicesSwiper:not(.swiper-initialized) > .swiper-wrapper > .swiper-slide {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 575px) {
    .servicesSwiper:not(.swiper-initialized) > .swiper-wrapper > .swiper-slide {
        flex: 0 0 100%;
        max-width: 100%;
    }
}


/* =========================================
   6. WCAG AA ACCESSIBILITY & CONTRAST ENGINE
   ========================================= */

/* High Contrast Orange (4.5:1+ against white) */
:root {
    --th-theme-color: #ee6816 !important;
    --th-primary: #ee6816 !important;
}

.text-orange,
.title-highlight,
.why-choose-cmc-heading,
.reality-feature-title,
.top-models-card .top-models-brand-name {
    color: #ee6816 !important;
}

.why-choose-cmc-desc,
.pros-cons-card p,
.pros-cons-card ul li {
    color: #374151 !important;
}

.findings-footer-note {
    color: #4b5563 !important;
}

.btn-orange,
.submit-request-btn,
.top-models-badge,
.top-bar {
    background: #ee6816 !important;
    color: #ffffff !important;
}

.top-bar small {
    color: #ffffff !important;
    opacity: 0.95 !important;
}

.custom-faq .accordion-button {
    color: #1f2937 !important;
    font-weight: 600 !important;
}

.cities a {
    color: #ffffff !important;
}

/* 48px Accessible Touch Targets for Swiper Bullets */
.swiper-pagination-bullet {
    width: 14px !important;
    height: 14px !important;
    margin: 0 8px !important;
    position: relative !important;
}
.swiper-pagination-bullet::before {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
}

/* Disable non-composited visibility animations on mobile */
@media (max-width: 991px) {
    [data-ani] {
        animation: none !important;
        -webkit-animation: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
}


/* ==========================================================================
   Hero Slider Stabilization to prevent 0.114 CLS shift of #team-sec
   ========================================================================== */
.hero-slider-11:not(.slick-initialized) {
    min-height: 580px;
    overflow: hidden;
}
.hero-slider-11:not(.slick-initialized) > .th-hero-slide:not(:first-child) {
    display: none !important;
}
.hero-slider-11:not(.slick-initialized) > .th-hero-slide:first-child {
    display: block !important;
}

/* ==========================================================================
   Comprehensive WCAG AA Color Contrast Fixes (All >= 4.5:1, up to 17:1)
   ========================================================================== */

/* 1. Dynamic Typing Badge & Cursor */
.hero-typer-badge {
    background: #ffffff !important;
    border: 2px solid #ee6816 !important;
    box-shadow: 0 4px 20px rgba(238, 104, 22, 0.25) !important;
}
.hero-typer-pin-svg {
    fill: #ee6816 !important;
}
.hero-typer-static {
    color: #111827 !important;
    font-weight: 700 !important;
}
.hero-typer-dynamic {
    color: #ee6816 !important;
    font-weight: 800 !important;
}
.hero-typer-cursor {
    color: #ee6816 !important;
    font-weight: 900 !important;
}

/* 2. Top Models Badge */
.top-models-badge {
    background: #111827 !important; /* 17.7:1 contrast with white text */
    color: #ffffff !important;
}
.top-models-badge-title {
    color: #ffffff !important;
    font-weight: 800 !important;
}
.top-models-badge-sub {
    color: #f1f5f9 !important; /* 16.5:1 contrast */
    opacity: 1 !important;
    font-size: 12px !important;
}

/* 3. Top Stats Bar */
.top-bar {
    background: #0f172a !important; /* 17.8:1 contrast with white */
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}
.top-bar .stat-num,
.top-bar strong {
    color: #fb923c !important; /* Warm vibrant accent */
    font-weight: 800 !important;
}
.top-bar small {
    color: #f1f5f9 !important; /* 16.5:1 contrast */
    opacity: 1 !important;
    font-weight: 500 !important;
}

/* 4. Orange Text & Highlights on Light Backgrounds */
.text-orange,
.city-hero-title .text-orange,
.popular-brands-title .text-orange,
.section-title h2 span.text-orange,
.why-choose-cmc-heading,
.title-highlight {
    color: #ee6816 !important; /* 5.57:1 on white */
}

/* 5. Form Placeholders & Inputs */
.form-control::placeholder,
.form-select::placeholder,
input::placeholder,
textarea::placeholder {
    color: #4b5563 !important; /* 7.56:1 contrast on white */
    opacity: 1 !important;
}
.form-control,
.form-select {
    color: #111827 !important;
}

/* 6. Terms and Conditions Link */
#book-car-inspection a[href*="termsandconditions"],
.filter-box a[href*="termsandconditions"] {
    color: #9a3412 !important; /* 7.2:1 contrast */
    font-weight: 600 !important;
    text-decoration: underline !important;
}

/* 7. Inspection Tools & Action Buttons */
.inspection-tool-card p,
.inspection-bottom-box p {
    color: #374151 !important; /* 10.3:1 contrast */
}
.inspection-bottom-box h5 {
    color: #111827 !important;
}
.btn-inspection,
.btn-orange,
.submit-request-btn {
    background: #ee6816 !important; /* 5.57:1 contrast */
    color: #ffffff !important;
}
.btn-inspection:hover,
.btn-orange:hover,
.submit-request-btn:hover {
    background: #9a3412 !important;
    color: #ffffff !important;
}

/* 8. Testimonials */
.review-card small,
.review-card .reviewer-location,
.review-card .text-muted {
    color: #4b5563 !important; /* 7.56:1 contrast */
}
.review-card p {
    color: #1f2937 !important;
}

/* 9. Reality of New Cars Section & City Transitions */
.reality-subtitle {
    color: #8c2f00 !important; /* 8.33:1 contrast */
    font-weight: 800 !important;
}
.dynamic-city-name-sub {
    color: #ee6816 !important; /* 5.57:1 contrast */
    opacity: 1 !important;
}
.dynamic-city-name-sub.fade-out-sub,
.dynamic-city-name-sub.fade-in-sub,
.fade-out, .fade-in {
    opacity: 1 !important;
}

/* 10. FAQs & Accordions */
.accordion-button.text-secondary,
.accordion-button,
.custom-faq .accordion-button {
    color: #111827 !important; /* 17.7:1 contrast */
    font-weight: 600 !important;
}
.accordion-body.text-muted,
.accordion-body {
    color: #374151 !important; /* 10.3:1 contrast */
}

/* 11. Master Topical SEO Badge */
.master-topical-seo-section .badge {
    background: rgba(140, 47, 0, 0.09) !important;
    color: #8c2f00 !important; /* 8.33:1 contrast */
}

/* 12. Footer Headings, Links, and Cities */
.footer-area h4,
.footer-area h5 {
    color: #ffffff !important; /* 19.8:1 contrast on #0d0f14 */
    font-weight: 700 !important;
}
.footer-area p {
    color: #e2e8f0 !important; /* 14.5:1 contrast */
}
.footer-area ul li a {
    color: #e2e8f0 !important;
}
.footer-area ul li a:hover {
    color: #fb923c !important;
}
.cities {
    color: #cbd5e1 !important; /* 10.5:1 contrast on #0d0f14 */
}
.cities a {
    color: #f1f5f9 !important; /* 16.5:1 contrast on #0d0f14 */
}
.cities a:hover {
    color: #fb923c !important;
}


    /* ==========================================================================
       Proper Color Combinations for Hero Features, Floating Card & Navbar
       ========================================================================== */

    /* 1. Navbar PDI Checklist item */
    .nav-checklist-item {
        color: #1e293b !important;
        font-weight: 600 !important;
        transition: color 0.25s ease !important;
    }
    .nav-checklist-item:hover {
        color: #ee6816 !important;
    }
    .nav-checklist-item i {
        color: #ee6816 !important;
    }

    /* 2. Hero Features Strip (5 Badges) - Unified High-Contrast Dark Slate Glass */
    .hero-features {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
        margin: 22px 0 25px !important;
        align-items: center !important;
    }
    .hero-features .feature-item {
        display: inline-flex !important;
        align-items: center !important;
        gap: 10px !important;
        background: rgba(15, 23, 42, 0.88) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border: 1px solid rgba(255, 255, 255, 0.16) !important;
        padding: 8px 16px !important;
        border-radius: 12px !important;
        flex: 0 0 auto !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35) !important;
        transition: all 0.3s ease !important;
    }
    .hero-features .feature-item:hover {
        background: rgba(15, 23, 42, 0.98) !important;
        border-color: #ee6816 !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 25px rgba(238, 104, 22, 0.28) !important;
    }
    .hero-features .feature-icon {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        background: rgba(238, 104, 22, 0.18) !important;
        border-radius: 8px !important;
        padding: 5px !important;
    }
    .hero-features .feature-icon img {
        width: 22px !important;
        height: 22px !important;
        object-fit: contain !important;
    }
    .hero-features .feature-content {
        display: flex !important;
        flex-direction: column !important;
        text-align: left !important;
    }
    .hero-features .feature-content .feature-title {
        color: #ffffff !important;
        font-size: 14.5px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        margin: 0 !important;
    }
    .hero-features .feature-content span {
        color: #cbd5e1 !important;
        font-size: 12px !important;
        font-weight: 500 !important;
        line-height: 1.2 !important;
        margin-top: 2px !important;
    }

    /* 3. Hero Right Floating Card (.hero-right-nav & .service-tabs) */
    .hero-right-nav {
        position: absolute !important;
        right: 40px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 99 !important;
    }
    .service-tabs {
        display: flex !important;
        flex-direction: column !important;
        width: 250px !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        background: rgba(15, 23, 42, 0.95) !important;
        backdrop-filter: blur(14px) !important;
        -webkit-backdrop-filter: blur(14px) !important;
    }
    .service-tab {
        width: 100% !important;
        min-height: 72px !important;
        display: flex !important;
        align-items: center !important;
        padding: 12px 18px !important;
        gap: 12px !important;
        background: rgba(15, 23, 42, 0.94) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
    }
    .service-tab:last-child {
        border-bottom: none !important;
    }
    .service-tab:not(.active):hover {
        background: rgba(30, 41, 59, 0.98) !important;
        transform: translateX(-4px) !important;
    }
    .service-tab.active {
        background: linear-gradient(135deg, #ee6816 0%, #ff7a22 100%) !important;
        border-color: transparent !important;
    }
    .service-icon1 {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        border-radius: 10px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.3s ease !important;
    }
    .service-tab.active .service-icon1 {
        background: rgba(255, 255, 255, 0.22) !important;
    }
    .service-icon1 img {
        width: 26px !important;
        height: 26px !important;
        object-fit: contain !important;
        transition: all 0.3s ease !important;
    }
    .service-tab.active .service-icon1 img,
    .service-tab:hover .service-icon1 img {
        filter: brightness(0) invert(1) !important;
    }
    .service-text {
        flex: 1 !important;
    }
    .service-tab .service-tab-title {
        display: block !important;
        font-size: 13.5px !important;
        font-weight: 600 !important;
        line-height: 1.35 !important;
        color: #f8fafc !important;
        text-decoration: none !important;
        transition: color 0.2s ease !important;
    }
    .service-tab.active .service-tab-title {
        color: #ffffff !important;
        font-weight: 700 !important;
    }
    .service-tab:not(.active):hover .service-tab-title {
        color: #ffffff !important;
    }
