/**
 * ProAuto design overrides - aligns with Template + #e32b26
 */

/* Unify container widths across all pages */
.container,
.container2 {
    max-width: 1320px;
}

/* ============================================================
   HEADER OVERRIDES — Desktop + Tablet + Mobile
   ============================================================ */

/* 1. Header lower — fixed height, no extra padding */
.main-header .header-lower {
    padding: 0;
}

/* 2. Inner container — must fill full width of its Bootstrap column */
.main-header .inner-container {
    width: 100%;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap;
    gap: 0;
    min-height: 80px;
}

/* 3. Nav-outer — flexible, takes available space */
.main-header .nav-outer {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 4. Remove the huge margin-left on main-menu, nav centers naturally */
.main-header .main-menu {
    margin-left: 0;
}

/* 5. Nav items — last column flush; spacing: see “Main navigation” block below */
.main-header .main-menu .navigation > li:last-child {
    margin-right: 0;
}

/* 6. Logo — fixed size, no shrink */
.main-header .logo-box {
    flex-shrink: 0;
}
.main-header .logo-box .logo img {
    max-height: 44px;
    width: auto;
}

/* 7. Header-account — no shrink, compact gap */
.header-account {
    flex-shrink: 0;
    gap: 20px !important;
    align-items: center;
}

/* 8. Catalog button — compact */
.header-account .flat-bt-top .sc-button {
    padding: 11px 22px;
    font-size: 15px;
    white-space: nowrap;
}

/* 9. Language switcher */
.header-account .register ul {
    gap: 0;
    display: flex;
    align-items: center;
}
.header-account .register ul li {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}
.header-account .register ul li a {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.2s;
}
.header-account .register ul li a:hover {
    background: rgba(227, 43, 38, 0.1);
    color: #e32b26;
}
.header-account .register ul li a.text-color-3 {
    color: #e32b26;
    font-weight: 700;
}

/* 10. Search dropdown */
.header-account .search-mobie > .wd-find-select {
    width: 300px;
    right: 0;
    margin-top: 36px;
    z-index: 1000;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    padding: 10px;
}
.header-account .search-mobie > .wd-find-select .search-field {
    padding: 10px 40px 10px 40px;
    border-radius: 8px;
    border: 1px solid #ededed;
    width: 100%;
    font-size: 15px;
}

/* 11. Sticky header (tema întunecată — implicit pe body.dark-theme) */
.dark-theme .header-lower.is-fixed.is-small {
    background-color: #24272C !important;
}
.dark-theme .header-lower.is-fixed.is-small .main-menu .navigation > li > a {
    color: #fff !important;
}
.dark-theme .header-lower.is-fixed.is-small .header-account {
    color: #fff !important;
}

/* ============================================================
   MOBILE HEADER (<= 1200px)
   ============================================================ */
@media only screen and (max-width: 1200px) {
    .main-header .inner-container {
        min-height: 72px;
    }

    /* Show favorites and search on mobile header */
    .header-account {
        margin-right: 50px !important;
        margin-left: 0 !important;
        gap: 18px !important;
    }
    /* Show favorites icon on mobile */
    .header-account .header-favorite {
        display: flex !important;
    }
    /* Keep search icon visible */
    .header-account .search-mobie {
        display: flex;
    }
    /* Language switcher visible in mobile header */
    .header-account .register {
        display: flex;
        align-items: center;
    }
    .header-account .register ul li:nth-child(2),
    .header-account .register ul li:nth-child(3) {
        display: block !important;
    }
}

@media only screen and (max-width: 767px) {
    .main-header .inner-container {
        min-height: 64px;
    }
    .main-header .logo-box .logo img {
        max-height: 36px;
    }
    .header-account {
        gap: 14px;
    }
    /* Hide lang on very small phones — mobile menu will have it */
    .header-account .register {
        display: none;
    }
}

/* ============================================================
   MOBILE MENU PANEL — refined
   ============================================================ */

/* Ascunde extras (favorite / temă / limbă) dacă apar din cache sau script vechi */
.mobile-menu .mobile-menu-extras {
    display: none !important;
}

/* Dublură: ascunde .login-box vechi dacă există deja butonul telefon */
.mobile-menu .bottom-canvas:has(.button-mobi-phone) .login-box,
.mobile-menu .bottom-canva:has(.button-mobi-phone) .login-box {
    display: none !important;
}

.mobile-menu .menu-box {
    background-color: #1a1d22;
    display: flex;
    flex-direction: column;
}
.mobile-menu .nav-logo {
    background: #1a1d22;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 20px 24px;
    box-shadow: none;
}
.mobile-menu .nav-logo img {
    max-width: 160px;
    max-height: 38px;
}
.mobile-menu .bottom-canvas {
    padding: 24px 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
    overflow-y: auto;
}
/* Navigation items */
.mobile-menu .navigation li > a {
    color: rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    font-size: 15px;
    padding: 12px 0;
}
.mobile-menu .navigation li:hover > a,
.mobile-menu .navigation li.current > a {
    color: #e32b26;
}
.mobile-menu .navigation li > ul {
    background: rgba(227, 43, 38, 0.08);
    border-radius: 8px;
}
.mobile-menu .navigation li > ul > li > a,
.mobile-menu .navigation li > ul > li > ul > li > a {
    color: rgba(255,255,255,0.75);
}

/* Phone CTA — full-width button, above Catalog */
.mobile-menu .button-mobi-phone {
    margin-top: 20px;
}
.mobile-menu .button-mobi-phone .sc-button {
    width: 100%;
    justify-content: center;
    background-color: #e32b26;
    border: none;
    color: #fff;
    border-radius: 12px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    gap: 8px;
    text-decoration: none;
    box-sizing: border-box;
}
.mobile-menu .button-mobi-phone .sc-button:hover {
    background-color: #c92420;
    color: #fff;
}
.mobile-menu .button-mobi-phone .sc-button span,
.mobile-menu .button-mobi-phone .sc-button i {
    color: #fff !important;
}
.mobile-menu .button-mobi-phone .sc-button i {
    font-size: 18px;
}

/* CTA button in mobile menu */
.mobile-menu .button-mobi-sell {
    margin-top: 12px;
}
.mobile-menu .button-mobi-sell .sc-button {
    width: 100%;
    justify-content: center;
    background-color: #e32b26;
    border: none;
    color: #fff;
    border-radius: 12px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    gap: 8px;
}
.mobile-menu .button-mobi-sell .sc-button span,
.mobile-menu .button-mobi-sell .sc-button i {
    color: #fff !important;
}

/* Mobile hamburger — slightly larger touch target */
.mobile-button {
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 10;
}

/* Body no-hero: compensare header .style2 (absolute ~99px + puțin aer) */
body.no-hero main {
    padding-top: 104px;
}
@media only screen and (max-width: 1200px) {
    body.no-hero main { padding-top: 92px; }
}
@media only screen and (max-width: 767px) {
    body.no-hero main { padding-top: 76px; }
}

/* Header peste conținut fără a tăia breadcrumb-ul */
.main-header.style2 {
    z-index: 1000;
}
:root {
    --primary-color: #e32b26;
    --primary-dark: #24272C;
}

/* tf-btn = sc-button alias – icon aligned with text */
.tf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.25;
    background-color: var(--primary-color);
    border: 1px solid transparent;
    padding: 14px 28px;
    border-radius: 14px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}
.tf-btn:hover { background-color: var(--primary-dark); color: #fff; }
.tf-btn i,
.tf-btn svg {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
.tf-btn span { color: inherit; }

/* tf-btn-arrow – icon aligned with text (Vezi toate, etc.) */
.tf-btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.25;
    white-space: nowrap;
}
.tf-btn-arrow i,
.tf-btn-arrow svg {
    margin-left: 0 !important;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
}

/* Chevron arrow – Font Awesome (mai curat decât icon-autodeal-btn-right) */
.view-car i.fa-chevron-right,
.tf-btn-arrow i.fa-chevron-right,
.find-cars i.fa-chevron-right,
.sc-button i.fa-chevron-right {
    font-size: 0.65em !important;
    font-weight: 600;
}

/* Aliniere icon+text în butoane: view-car, find-cars */
.view-car,
.find-cars {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.view-car i,
.find-cars i {
    flex-shrink: 0;
}

/* Header: glassmorphism întunecat — doar tema dark (pe light vede LIGHT THEME OVERRIDES) */
.dark-theme .main-header.style2 .header-lower {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Main navigation: padding on links + gap between items (overrides template padding: 37px 0) */
.main-header .main-menu .navigation > li {
    margin-right: 12px;
}
.main-header .main-menu .navigation > li > a {
    padding-left: 14px;
    padding-right: 14px;
}
.main-header .main-menu .navigation > li:last-child > a {
    padding-right: 14px;
}
/* Mid-width: slightly tighter if the row risks wrapping */
@media (min-width: 1200px) and (max-width: 1600px) {
    .main-header .main-menu .navigation > li {
        margin-right: 8px;
    }
    .main-header .main-menu .navigation > li > a {
        padding-left: 10px;
        padding-right: 10px;
    }
    .main-header .main-menu .navigation > li:last-child > a {
        padding-right: 10px;
    }
}

/* Mobile menu: remove border-bottom from sections */
.mobile-menu .menu-outer,
.mobile-menu .button-mobi-phone,
.mobile-menu .button-mobi-sell {
    border-bottom: none !important;
}
.mobile-menu .navigation > li,
.mobile-menu .navigation > li > a {
    border-bottom: none !important;
}

/* Footer social: center all icons (incl. TikTok SVG) */
#footer .icon-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
#footer .icon-social a svg.icon-tiktok {
    flex-shrink: 0;
}

/* sc-button – icon aligned with text (header, forms, etc.) */
.sc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.25;
}
.sc-button i,
.sc-button svg {
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

/* btn-1: outline orange */
.tf-btn.btn-1, .sc-button.btn-1 {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}
.tf-btn.btn-1:hover, .sc-button.btn-1:hover {
    background-color: var(--primary-color);
    color: #fff;
}
.tf-btn.btn-1 i { color: inherit; }

/* btn-submit-comment (footer newsletter, forms) – icon aligned with text */
.button.btn-submit-comment,
.btn-submit-comment.btn-1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.button.btn-submit-comment i,
.btn-submit-comment i {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

/* Footer callback — success alert */
.footer-callback-alert {
    padding: 14px 18px;
    margin-top: 12px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    color: #155724;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

/* btn-2: solid primary (default, explicit) */
.tf-btn.btn-2 { background-color: var(--primary-color); color: #fff; }
.tf-btn.btn-2:hover { background-color: var(--primary-dark); color: #fff; }

/* btn-3: white/light for dark or colored backgrounds (slider, hero, CTA banners) */
.tf-btn.btn-3 {
    background-color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    color: var(--primary-color);
}
.tf-btn.btn-3:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

/* text-color-3 = primary accent */
.text-color-3 { color: var(--primary-color) !important; }

.box-car-list .money .old-price {
    text-decoration: line-through;
    opacity: 0.6;
    font-size: 0.85em;
    margin-left: 6px;
}

.register ul {
    gap: 8px;
}

.listing-grid .sidebar-right-listing .form-control {
    min-height: 48px;
}

/* Catalog filter – selecturi native (fără nice-select, garantat funcțional) */
.flat-filter-search .form-sl {
    background-color: #fff;
}

/* Pagina Mașini (/ro/masini): banner cu imagine BMW iX */
.proauto-cars-banner-with-filter .tf-banner.style-2 {
    position: relative;
    background-image: url(../../assets/images/slider/slide1.jpg);
    background-size: cover;
    background-position: center;
}
.proauto-cars-banner-with-filter .tf-banner.style-2::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
    z-index: 0;
}
.proauto-cars-banner-with-filter .tf-banner.style-2 .container,
.proauto-cars-banner-with-filter .tf-banner.style-2 .content {
    position: relative;
    z-index: 1;
}

@media (max-width: 991px) {
    .proauto-cars-banner-with-filter {
        position: relative;
    }
    .proauto-cars-banner-with-filter .tf-banner.style-2 {
        min-height: 50vh;
    }
    .proauto-cars-banner-with-filter .proauto-banner-heading {
        display: none !important;
    }
    .proauto-cars-banner-with-filter .proauto-cars-filter-wrap {
        margin-top: -35vh;
        position: relative;
        z-index: 5;
    }
    .proauto-cars-banner-with-filter .proauto-cars-filter-wrap .flat-filter-search .flat-tabs {
        margin-top: 0;
    }
}
@media (min-width: 992px) {
    .proauto-cars-banner-with-filter .proauto-cars-filter-wrap {
        margin-top: 0;
    }
}

/* Home: Glassmorphism hero + transparent buttons */
.proauto-hero-with-filter {
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Titlu hero: text normal (fără span per literă), linii naturale între cuvinte */
.proauto-hero-with-filter .slider-item .content .heading h1.proauto-hero-title,
.proauto-hero-title {
    word-break: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: manual;
}
@media (prefers-reduced-motion: reduce) {
    .proauto-hero-with-filter .slider-item .content .heading h1.proauto-hero-title,
    .proauto-hero-title.wow {
        animation: none !important;
        animation-duration: 0.01ms !important;
    }
}

/* Hero: btn-1 = roșu primary (solid), btn-3 = glassmorphism */
.proauto-hero-with-filter .slider-item .tf-btn.btn-1 {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}
.proauto-hero-with-filter .slider-item .tf-btn.btn-1:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}
.proauto-hero-with-filter .slider-item .tf-btn.btn-3 {
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-weight: 600;
}
.proauto-hero-with-filter .slider-item .tf-btn.btn-3:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 4px 20px rgba(227, 43, 38, 0.35);
}
@media (max-width: 991px) {
    /* Hero: titlu și subtitle vizibile pe mobile, sub header, deasupra filtrului */
    .proauto-hero-with-filter .slider-item .container.relative {
        display: block !important;
    }
    .proauto-hero-with-filter .slider-item .content.po-content-two {
        padding: 80px 12px 16px 12px;
    }
    .proauto-hero-with-filter .slider-item .content .heading {
        margin-bottom: 16px;
    }
    .proauto-hero-with-filter .slider-item .content .heading h1 {
        font-size: clamp(22px, 5.5vw, 32px);
        line-height: 1.25;
        margin-bottom: 12px;
        width: 100%;
        max-width: 100%;
    }
    .proauto-hero-with-filter .slider-item .content .heading p {
        font-size: 14px !important;
        line-height: 1.4;
        margin-bottom: 16px !important;
    }
    .proauto-hero-with-filter .slider-item .content .heading .chat-wrap {
        display: none !important;
    }
    .proauto-hero-with-filter .mainslider .swiper-button-next,
    .proauto-hero-with-filter .mainslider .swiper-button-prev {
        display: none !important;
    }
    /* Filter sub titlu/subtitle – nu acoperă textul hero */
    .proauto-hero-with-filter .proauto-filter-below-hero {
        position: absolute;
        top: 220px;
        left: 0;
        right: 0;
        z-index: 5;
    }
    .flat-filter-search.home.proauto-home-filter .flat-tabs {
        margin-top: 0;
    }
    .proauto-home-filter .form-sl.proauto-filter-form-wrap {
        border-top-right-radius: 0;
    }
    /* Tab-uri Toate/Noi/Uzate – full width, 3 secțiuni egale */
    .proauto-home-filter .box-tab.center {
        width: 100%;
    }
    .proauto-home-filter .menu-tab.tab-title.flex {
        width: 100%;
        display: flex;
        margin: 0;
        padding: 0;
    }
    .proauto-home-filter .menu-tab.tab-title .item-title.style {
        flex: 1;
        width: 33.333%;
        margin: 0 !important;
        display: flex;
        justify-content: center;
    }
    .proauto-home-filter .menu-tab.tab-title .item-title.style a,
    .proauto-home-filter .menu-tab.tab-title .item-title.style .proauto-condition-tab {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}
/* Condition tab buttons: reset native styles, match link appearance */
.proauto-home-filter .proauto-condition-tab {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
    padding: 0;
    width: 100%;
    text-align: center;
}
.proauto-home-filter .proauto-condition-tab:focus {
    outline: none;
}
.proauto-home-filter .proauto-condition-tab .inner {
    display: block;
}
    /* Spațiu între selecturi și buton Caută */
.proauto-home-filter .wd-find-select.proauto-filter-fields {
    gap: 24px;
}
/* Spațiu vizibil între ultimul select (Caroserie) și butonul Caută */
.proauto-home-filter .wd-find-select.proauto-filter-fields .inner-group.select-style {
    margin-right: 32px;
}
.proauto-home-filter .wd-find-select.proauto-filter-fields .button-search {
    margin-left: 0;
}
@media (max-width: 1200px) {
    /* Override template's width:110% on inner-group – keep filter same width as button */
    .proauto-home-filter .wd-find-select .inner-group.select-style {
        width: 100% !important;
        max-width: 100%;
    }
}
@media (max-width: 991px) {
    /* Form stacked vertical: inner-group (filter fields) above button, each select full width */
    .proauto-home-filter .form-sl.proauto-filter-form-wrap,
    .proauto-home-filter .wd-find-select.flex {
        width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }
    .proauto-home-filter .wd-find-select.flex {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0;
        align-items: stretch;
    }
    .proauto-home-filter .wd-find-select.flex .inner-group.select-style {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        width: 100% !important;
        max-width: 100%;
        margin-right: 0;
        order: 1;
        gap: 12px;
        align-self: stretch;
    }
    .proauto-home-filter .wd-find-select.flex .button-search {
        order: 2;
        width: 100%;
        align-self: stretch;
        margin-top: 24px;
    }
    .proauto-home-filter .inner-group.select-style .form-group-1,
    .proauto-home-filter .form-group-1,
    .proauto-home-filter .group-select,
    .proauto-home-filter .group-select .proauto-native-select {
        width: 100% !important;
        flex: none !important;
        min-width: 0 !important;
    }
    .proauto-home-filter .inner-group.select-style .form-group-1:not(:last-child)::before {
        display: none !important;
    }
    .proauto-home-filter .inner-group.select-style .form-group-1 {
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }
    .proauto-home-filter .button-search .sc-button {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }
}
/* Ascunde arrow-ul din .tf-select:after (template); proauto-native-select are arrow în background-image */
.flat-filter-search.home .group-select.tf-select::after {
    display: none !important;
}
/* Desktop: form-group-1 min-width – evită colapsul "Număr Uși" (native select se reduce după opțiuni) */
.proauto-home-filter .inner-group.select-style .form-group-1 {
    min-width: 140px;
}
/* Home & catalog filter: native selects – higher specificity to override template .wd-find-select .group-select select */
.flat-filter-search .group-select .proauto-native-select,
.flat-filter-search.proauto-home-filter .group-select .proauto-native-select {
    display: block !important;
    width: 100% !important;
    min-height: 48px !important;
    padding: 12px 36px 12px 16px !important;
    font-size: 14px !important;
    line-height: 22px !important;
    color: #24272C !important;
    background-color: #fff !important;
    border: 1px solid #EDEDED !important;
    border-radius: 8px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    -o-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23696665' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    cursor: pointer !important;
}
.flat-filter-search .group-select .proauto-native-select:hover,
.flat-filter-search .group-select .proauto-native-select:focus,
.flat-filter-search.proauto-home-filter .group-select .proauto-native-select:hover,
.flat-filter-search.proauto-home-filter .group-select .proauto-native-select:focus {
    border-color: #e32b26 !important;
    outline: none !important;
}
.flat-filter-search .group-select .proauto-native-select option,
.flat-filter-search.proauto-home-filter .group-select .proauto-native-select option {
    color: #24272C !important;
    background: #fff !important;
}
/* Inputs cu același border ca selecturile – fără săgeată dropdown */
.flat-filter-search .group-select input.proauto-native-select {
    background-image: none;
    padding: 12px 16px;
    cursor: text;
    border: 1px solid #EDEDED !important;
    background-color: #fff !important;
    color: #24272C !important;
}
.flat-filter-search .group-select input.proauto-native-select::placeholder {
    color: #696665 !important;
}
.flat-filter-search .group-select input.proauto-native-select:hover,
.flat-filter-search .group-select input.proauto-native-select:focus {
    border-color: #e32b26 !important;
}

/* Catalog filter: button fără border + lățime suficientă (ca în template listing-grid) */
.flat-filter-search .button-search .sc-button {
    border: none;
    min-width: 180px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.flat-filter-search .button-search .sc-button span {
    margin-right: 8px;
}

/* Filtre avansate – inițial închis, se deschide la click pe icon-filter */
.flat-filter-search #carsFilterAdvanced.proauto-filter-advanced {
    position: relative;
    margin-top: 20px;
    padding: 24px 22px 10px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 26px rgba(66,71,76,0.08);
}
.flat-filter-search #carsFilterAdvanced .box1.grid-4,
.flat-filter-search #carsFilterAdvanced .proauto-filter-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px;
}
.flat-filter-search #carsFilterAdvanced .form-group.wg-box3 {
    flex: 1;
    min-width: 140px;
}

/* ProAuto advanced filter – checkbox groups */
.proauto-filter-advanced .proauto-filter-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 40px;
}
.proauto-filter-advanced .proauto-filter-group {
    flex: 1;
    min-width: 160px;
}
/* Mobile: filtre full width, grupuri stivuite, checkbox-uri 2 pe rând */
@media (max-width: 991px) {
    #carsFilterForm .wd-find-select.flex {
        flex-direction: column;
    }
    #carsFilterForm .inner-group.select-style,
    #carsFilterForm .form-group-1,
    #carsFilterForm .group-select,
    #carsFilterForm .group-select .proauto-native-select,
    #carsFilterForm .button-search,
    #carsFilterForm .button-search .sc-button {
        width: 100% !important;
    }
    #carsFilterForm .button-search .sc-button {
        min-width: 0;
    }
    #carsFilterAdvanced,
    #carsFilterAdvanced .proauto-filter-checkboxes,
    #carsFilterAdvanced .proauto-filter-group,
    #carsFilterAdvanced .proauto-filter-inputs,
    #carsFilterAdvanced .form-group {
        width: 100%;
        max-width: 100%;
    }
    #carsFilterAdvanced .proauto-filter-checkboxes {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 20px 0;
    }
    #carsFilterAdvanced .proauto-filter-group {
        flex: none;
        min-width: 0;
        width: 100%;
        padding-bottom: 20px;
        border-bottom: 1px solid #EDEDED;
    }
    #carsFilterAdvanced .proauto-filter-group:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    #carsFilterAdvanced .proauto-filter-label {
        margin-bottom: 12px;
    }
    #carsFilterAdvanced .tf-amenities.proauto-checkbox-group {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 16px;
    }
    #carsFilterAdvanced .tf-amenities.proauto-checkbox-group label.flex-three {
        min-width: 0;
        overflow-wrap: break-word;
    }
    #carsFilterAdvanced .proauto-filter-inputs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 16px;
    }
}
.proauto-filter-advanced .proauto-filter-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark, #24272C);
    margin-bottom: 8px;
}
.proauto-filter-advanced .tf-amenities.proauto-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.proauto-filter-advanced .tf-amenities.proauto-checkbox-group label.flex-three {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
}
.proauto-filter-advanced .boder-wg {
    height: 1px;
    background: rgba(0,0,0,0.08);
    margin: 20px 0;
}
.proauto-filter-advanced .features-wrap .proauto-features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px 32px;
}
@media (max-width: 1199px) {
    .proauto-filter-advanced .features-wrap .proauto-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 991px) {
    .proauto-filter-advanced .features-wrap .proauto-features-grid {
        grid-template-columns: 1fr;
    }
}
.proauto-filter-advanced .features-wrap .form-group.wg-box4 {
    min-width: 0;
    margin-bottom: 24px;
}
.proauto-filter-advanced .features-wrap .form-group.wg-box4:last-child {
    margin-bottom: 0;
}
.proauto-filter-advanced .features-wrap .proauto-feature-title {
    margin-bottom: 16px;
}
.proauto-filter-advanced .features-wrap .proauto-feature-list {
    margin-bottom: 0;
}
.proauto-filter-advanced .features-wrap .proauto-feature-list label.flex-three {
    margin-bottom: 8px;
}
.proauto-filter-advanced .features-wrap .proauto-feature-list label.flex-three:last-child {
    margin-bottom: 0;
}
.proauto-filter-advanced .features-wrap .tf-amenities {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.proauto-filter-advanced .features-wrap label.flex-three {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
}

/* Showrooms page – card with map (full-bleed top) + actions */
.showroom-card.overflow-hidden .showroom-card__map {
    margin: -30px -30px 20px -30px;
    border-radius: 16px 16px 0 0;
}
.showroom-card__map {
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}
.showroom-card__map-link {
    display: block;
    height: 100%;
    line-height: 0;
}
.showroom-card__map-link iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.showroom-card__action {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.showroom-card__action .tf-btn {
    padding: 10px 20px;
    font-size: 14px;
}

/* Blog index – sidebar + card read-more */
.flat-blog-sidebar-list a {
    color: #5C6368 !important;
}
.flat-blog-sidebar-list a.text-color-3 {
    color: var(--primary-color) !important;
}
.flat-blog-sidebar-list a:hover {
    color: var(--primary-color) !important;
}
.dark-theme .flat-blog-sidebar-list a {
    color: rgba(255, 255, 255, 0.75) !important;
}
.dark-theme .flat-blog-sidebar-list a.text-color-3 {
    color: var(--primary-color) !important;
}
.dark-theme .flat-blog-sidebar-list a:hover {
    color: #FFFFFF !important;
}
.flat-blog-grid .flat-blog {
    border-bottom: none !important;
}
.flat-blog-grid .themesflat-pagination-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
}
.flat-blog-grid .box .content .read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}
.flat-blog-grid .box .content .read-more:hover {
    color: var(--primary-dark);
}

/* Blog grid: image clips to rounded corners (overflow hidden) */
.flat-blog-grid .box.hover-img .images.img-style,
.flat-blog-grid .box.hover-img .images {
    overflow: hidden !important;
    border-radius: 16px;
}
.flat-blog-grid .box.hover-img .images a {
    display: block;
    overflow: hidden;
    border-radius: 16px;
}

/* Blog grid: full-width image within container on mobile */
@media (max-width: 991px) {
    .flat-blog-grid .box.hover-img .images.img-style,
    .flat-blog-grid .box.hover-img .images {
        width: 100%;
        min-width: 100%;
    }
    .flat-blog-grid .box.hover-img .images a {
        display: block;
        width: 100%;
    }
    .flat-blog-grid .box.hover-img .images img {
        width: 100% !important;
        min-width: 100%;
    }
}

/* Blog post detail – modern article layout */
.proauto-blog-detail {
    padding-top: 40px !important;
    padding-bottom: 60px !important;
}
.proauto-blog-article__hero {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    background: #f0f0f0;
}
.proauto-blog-article__img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}
.proauto-blog-article__card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}
.proauto-blog-article__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.proauto-blog-article__category {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-color);
    background: rgba(227, 43, 38, 0.08);
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.proauto-blog-article__category:hover {
    background: var(--primary-color);
    color: #fff;
}
.proauto-blog-article__date {
    font-size: 14px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
}
.proauto-blog-article__date i {
    opacity: 0.7;
}
.proauto-blog-article__title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
    color: #1f2937;
    letter-spacing: -0.02em;
}
.proauto-blog-article__excerpt {
    font-size: 18px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}
.proauto-blog-article__body.prose {
    font-size: 17px;
    line-height: 1.8;
    color: #374151;
}
.proauto-blog-article__body.prose p {
    margin-bottom: 1.25em;
}
.proauto-blog-article__body.prose p:last-child {
    margin-bottom: 0;
}
.proauto-blog-article__body.prose h2,
.proauto-blog-article__body.prose h3 {
    font-size: 1.25em;
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 0.75em;
    color: #1f2937;
}
.proauto-blog-article__body.prose ul,
.proauto-blog-article__body.prose ol {
    margin: 1em 0;
    padding-left: 1.5em;
}
.proauto-blog-article__body.prose li {
    margin-bottom: 0.5em;
}
.proauto-blog-article__body.prose a {
    color: var(--primary-color);
    text-decoration: underline;
}
.proauto-blog-article__body.prose a:hover {
    color: var(--primary-dark);
}
.proauto-blog-article__footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}
.proauto-blog-article__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}
.proauto-blog-article__back:hover {
    color: var(--primary-dark);
}

/* Blog detail sidebar */
.proauto-blog-sidebar {
    position: sticky;
    top: 120px;
}
.proauto-blog-sidebar__card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}
.proauto-blog-sidebar__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 10px;
}
.proauto-blog-sidebar__title::before {
    content: "";
    display: block;
    width: 4px;
    height: 22px;
    background: var(--primary-color);
    border-radius: 2px;
}
.proauto-blog-sidebar__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.proauto-blog-sidebar__item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.proauto-blog-sidebar__item:last-child {
    border-bottom: none;
}
.proauto-blog-sidebar__link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}
.proauto-blog-sidebar__link:hover {
    background: transparent;
}
.proauto-blog-sidebar__link:hover .proauto-blog-sidebar__item-title {
    color: var(--primary-color);
}
.proauto-blog-sidebar__thumb {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
}
.proauto-blog-sidebar__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.proauto-blog-sidebar__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.proauto-blog-sidebar__item-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.35;
    transition: color 0.2s;
}
.proauto-blog-sidebar__item-date {
    font-size: 12px;
    color: #9ca3af;
}
.proauto-blog-sidebar__arrow {
    font-size: 12px;
    color: #d1d5db;
    flex-shrink: 0;
    transition: color 0.2s;
}
.proauto-blog-sidebar__link:hover .proauto-blog-sidebar__arrow {
    color: var(--primary-color);
}

/* Blog sidebar CTA */
.proauto-blog-sidebar__cta {
    background: #24272C;
    border-radius: 16px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
.proauto-blog-sidebar__cta-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.proauto-blog-sidebar__cta-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}
.proauto-blog-sidebar__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: #fff !important;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none !important;
    transition: background 0.2s;
}
.proauto-blog-sidebar__cta-btn:hover {
    background: #c92520;
    color: #fff !important;
}

@media (max-width: 991px) {
    .proauto-blog-sidebar {
        position: static;
    }
    .proauto-blog-article__img {
        height: 280px;
    }
    .proauto-blog-article__card {
        padding: 24px;
    }
    .proauto-blog-article__title {
        font-size: 24px;
    }
}
@media (max-width: 991px) {
    .proauto-blog-article__img {
        height: 220px;
    }
    .proauto-blog-article__meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

.dark-theme .proauto-blog-article__card,
.dark-theme .proauto-blog-sidebar__card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}
.dark-theme .proauto-blog-sidebar__item {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
.dark-theme .proauto-blog-article__title,
.dark-theme .proauto-blog-article__body.prose,
.dark-theme .proauto-blog-sidebar__item-title {
    color: #fff;
}
.dark-theme .proauto-blog-article__excerpt,
.dark-theme .proauto-blog-article__body.prose p,
.dark-theme .proauto-blog-article__body.prose li {
    color: rgba(255, 255, 255, 0.85);
}
.dark-theme .proauto-blog-article__date,
.dark-theme .proauto-blog-sidebar__item-date {
    color: rgba(255, 255, 255, 0.5);
}

/* #wrapper overflow:hidden blochează position:sticky – permitem sticky */
#wrapper {
    overflow: visible !important;
}
/* Scroll orizontal: html + body (100vw pe unele secțiuni depășește lățimea vizibilă când există scrollbar) */
html {
    overflow-x: hidden;
    max-width: 100%;
}
body {
    overflow-x: hidden !important;
    max-width: 100%;
}
main {
    max-width: 100%;
}

/* Contact section sidebars – sticky + design dark (ca test-drive) */
.tf-section-contact .contact-info.box-sd.test-drive-page-sidebar,
.tf-section-contact .contact-info.box-sd.service-page-sidebar,
.tf-section-contact .contact-info.box-sd.insurance-page-sidebar,
.tf-section-contact .contact-info.box-sd.car-search-page-sidebar,
.tf-section-contact .contact-info.box-sd.sell-car-page-sidebar,
.tf-section-contact .contact-info.box-sd.contact-page-sidebar {
    position: sticky;
    top: 120px;
    padding: 28px;
    background: #24272C;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
body:not(.dark-theme) .tf-section-contact .contact-info.box-sd.test-drive-page-sidebar,
body:not(.dark-theme) .tf-section-contact .contact-info.box-sd.service-page-sidebar,
body:not(.dark-theme) .tf-section-contact .contact-info.box-sd.insurance-page-sidebar,
body:not(.dark-theme) .tf-section-contact .contact-info.box-sd.car-search-page-sidebar,
body:not(.dark-theme) .tf-section-contact .contact-info.box-sd.sell-car-page-sidebar,
body:not(.dark-theme) .tf-section-contact .contact-info.box-sd.contact-page-sidebar {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}
body:not(.dark-theme) .tf-section-contact .contact-info.test-drive-page-sidebar h2,
body:not(.dark-theme) .tf-section-contact .contact-info.service-page-sidebar h2,
body:not(.dark-theme) .tf-section-contact .contact-info.insurance-page-sidebar h2,
body:not(.dark-theme) .tf-section-contact .contact-info.car-search-page-sidebar h2,
body:not(.dark-theme) .tf-section-contact .contact-info.sell-car-page-sidebar h2,
body:not(.dark-theme) .tf-section-contact .contact-info.contact-page-sidebar h2 {
    color: #24272C;
}
body:not(.dark-theme) .tf-section-contact .contact-info .service-benefits-list li,
body:not(.dark-theme) .tf-section-contact .contact-info .insurance-types-list li,
body:not(.dark-theme) .tf-section-contact .contact-info .sell-steps-list li {
    color: rgba(36, 39, 44, 0.92);
}
body:not(.dark-theme) .tf-section-contact .contact-info .box-info.contact-quick {
    border-top-color: rgba(0, 0, 0, 0.08);
}
.tf-section-contact .contact-info.test-drive-page-sidebar h2,
.tf-section-contact .contact-info.service-page-sidebar h2,
.tf-section-contact .contact-info.insurance-page-sidebar h2,
.tf-section-contact .contact-info.car-search-page-sidebar h2,
.tf-section-contact .contact-info.sell-car-page-sidebar h2,
.tf-section-contact .contact-info.contact-page-sidebar h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}
.tf-section-contact .contact-info.service-page-sidebar h2::before,
.tf-section-contact .contact-info.insurance-page-sidebar h2::before,
.tf-section-contact .contact-info.car-search-page-sidebar h2::before,
.tf-section-contact .contact-info.sell-car-page-sidebar h2::before,
.tf-section-contact .contact-info.contact-page-sidebar h2::before {
    content: "";
    display: block;
    width: 4px;
    height: 24px;
    background: #e32b26;
    border-radius: 2px;
}
.tf-section-contact .contact-info .service-benefits-list li {
    margin-bottom: 12px;
    font-size: 15px;
    color: #fff;
}
.tf-section-contact .contact-info .service-benefits-list li,
.tf-section-contact .contact-info .insurance-types-list li,
.tf-section-contact .contact-info .sell-steps-list li {
    color: #fff;
}
.tf-section-contact .contact-info .service-benefits-list li i {
    color: #e32b26;
    font-size: 16px;
}
.tf-section-contact .contact-info .sell-steps-list .sell-step-num {
    color: #e32b26;
}
.tf-section-contact .contact-info .box-info.contact-quick {
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
}
.tf-section-contact .contact-info .box-info.contact-quick h5 {
    color: #fff;
}
/* Sidebar: buton telefon primary roșu, Scrieți-ne full width */
.tf-section-contact .contact-info.box-sd .contact-quick .tf-btn.btn-2 {
    background: #e32b26;
    border-color: #e32b26;
    color: #fff;
}
.tf-section-contact .contact-info.box-sd .contact-quick .tf-btn.btn-2:hover {
    background: #24272C;
    border-color: #24272C;
    color: #fff;
}
.tf-section-contact .contact-info.box-sd .contact-quick .tf-btn-arrow {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    min-height: 49px;
    margin-top: 8px;
}
.tf-section-contact .contact-info.box-sd .contact-quick .tf-btn-arrow:hover {
    background: #e32b26;
    border-color: #e32b26;
    color: #fff;
}
@media (max-width: 991px) {
    .tf-section-contact .contact-info.box-sd.test-drive-page-sidebar,
    .tf-section-contact .contact-info.box-sd.service-page-sidebar,
    .tf-section-contact .contact-info.box-sd.insurance-page-sidebar,
    .tf-section-contact .contact-info.box-sd.car-search-page-sidebar,
    .tf-section-contact .contact-info.box-sd.sell-car-page-sidebar,
    .tf-section-contact .contact-info.box-sd.contact-page-sidebar {
        position: static;
    }
}
.tf-section-contact .contact-page-sidebar .contact-info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}
.tf-section-contact .contact-page-sidebar .contact-info-row:last-child {
    margin-bottom: 0;
}
.tf-section-contact .contact-page-sidebar .contact-info-row i {
    flex-shrink: 0;
    margin-top: 2px;
}
.tf-section-contact .contact-page-sidebar .box-info a {
    color: inherit;
    text-decoration: none;
}
.tf-section-contact .contact-page-sidebar .box-info a:hover {
    color: var(--primary-color);
}
/* Contact quick buttons: keep white text on hover */
.tf-section-contact .contact-page-sidebar .contact-quick .tf-btn.btn-1:hover,
.tf-section-contact .contact-page-sidebar .contact-quick .tf-btn.btn-1:hover span,
.tf-section-contact .contact-page-sidebar .contact-quick .tf-btn.btn-1:hover i {
    color: #fff !important;
}
.contact-alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.contact-alert--success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #16a34a;
}
.contact-alert--success i {
    font-size: 20px;
    flex-shrink: 0;
}
.contact-quick .box-info {
    padding: 16px;
    background: rgba(227, 43, 38, 0.04);
    border-radius: 12px;
}
a.contact-quick-whatsapp {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25d366 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px;
    padding: 14px 20px;
    font-weight: 600;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
}
a.contact-quick-whatsapp:hover {
    opacity: 0.9;
    color: #fff !important;
}
.tf-section-contact .comment-form .form-control {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    line-height: 1.5;
    color: #24272C;
    background: #fff;
    border: 1px solid #EDEDED;
    border-radius: 10px;
    transition: border-color 0.2s ease;
}
.tf-section-contact .comment-form .form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(227, 43, 38, 0.15);
}
.tf-section-contact .comment-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}
.dark-theme .tf-section-contact .comment-form .form-control {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}
.dark-theme .tf-section-contact .comment-form .form-control:focus {
    border-color: var(--primary-color);
}
@media (max-width: 991px) {
    .tf-section-contact .comment-form .grid-sw-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .tf-section-contact .comment-form .grid-sw-2 fieldset {
        margin-bottom: 19px;
    }
}

/* Service page (revizie-tehnica) */
.tf-section-contact .service-form .grid-sw-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 30px;
}
.tf-section-contact .service-form fieldset {
    margin-bottom: 19px;
}
.tf-section-contact .service-form .form-control,
.tf-section-contact .service-form .proauto-native-select {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    line-height: 1.5;
    color: #24272C;
    background: #fff;
    border: 1px solid #EDEDED;
    border-radius: 10px;
    transition: border-color 0.2s ease;
}
.tf-section-contact .service-form .proauto-native-select {
    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='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23696665' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
.tf-section-contact .service-form .form-control:focus,
.tf-section-contact .service-form .proauto-native-select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(227, 43, 38, 0.15);
}
.tf-section-contact .service-form .form-note {
    font-size: 13px;
    opacity: 0.7;
    margin-top: 12px;
}
.service-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.service-benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.5;
}
.service-benefits-list li:last-child {
    margin-bottom: 0;
}
.service-benefits-list li i {
    flex-shrink: 0;
    margin-top: 2px;
}
.tf-section-contact .service-page-sidebar .contact-quick .tf-btn:hover,
.tf-section-contact .service-page-sidebar .contact-quick .tf-btn:hover span,
.tf-section-contact .service-page-sidebar .contact-quick .tf-btn:hover i {
    color: #fff !important;
}
.dark-theme .tf-section-contact .service-form .form-control,
.dark-theme .tf-section-contact .service-form .proauto-native-select {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}
/* Proauto-select-wrap: dark-theme pentru formuri (service, insurance, car-search, sell-car, test-drive) */
.proauto-select-wrap {
    position: relative;
}
.proauto-select-wrap select.proauto-native-select {
    min-height: 55px !important;
}
body.dark-theme .tf-section-contact .service-form .proauto-select-wrap,
body.dark-theme .tf-section-contact .insurance-form .proauto-select-wrap,
body.dark-theme .tf-section-contact .car-search-request-form .proauto-select-wrap,
body.dark-theme .tf-section-contact .sell-car-form .proauto-select-wrap,
body.dark-theme .tf-section-contact .test-drive-form .proauto-select-wrap {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    min-height: 55px;
}
body.dark-theme .tf-section-contact .service-form .proauto-select-wrap select.proauto-native-select,
body.dark-theme .tf-section-contact .insurance-form .proauto-select-wrap select.proauto-native-select,
body.dark-theme .tf-section-contact .car-search-request-form .proauto-select-wrap select.proauto-native-select,
body.dark-theme .tf-section-contact .sell-car-form .proauto-select-wrap select.proauto-native-select,
body.dark-theme .tf-section-contact .test-drive-form .proauto-select-wrap select.proauto-native-select {
    background-color: transparent !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 12px 12px !important;
    border: none !important;
    color: #fff !important;
    position: relative;
    z-index: 1;
}
body.dark-theme .tf-section-contact .service-form .proauto-select-wrap:focus-within,
body.dark-theme .tf-section-contact .insurance-form .proauto-select-wrap:focus-within,
body.dark-theme .tf-section-contact .car-search-request-form .proauto-select-wrap:focus-within,
body.dark-theme .tf-section-contact .sell-car-form .proauto-select-wrap:focus-within,
body.dark-theme .tf-section-contact .test-drive-form .proauto-select-wrap:focus-within {
    border-color: #e32b26;
    box-shadow: 0 0 0 2px rgba(227, 43, 38, 0.15);
}
body.dark-theme .tf-section-contact .test-drive-form .proauto-select-wrap select.proauto-native-select:focus {
    outline: none;
    box-shadow: none;
}
.tf-section-contact .service-form .form-text.text-muted,
.tf-section-contact .insurance-form .form-text.text-muted,
.tf-section-contact .car-search-request-form .form-text.text-muted,
.tf-section-contact .sell-car-form .form-text.text-muted,
.tf-section-contact .test-drive-form .form-text.text-muted {
    color: #9ca3af !important;
}
body.dark-theme .tf-section-contact .service-form .form-text.text-muted,
body.dark-theme .tf-section-contact .insurance-form .form-text.text-muted,
body.dark-theme .tf-section-contact .car-search-request-form .form-text.text-muted,
body.dark-theme .tf-section-contact .sell-car-form .form-text.text-muted,
body.dark-theme .tf-section-contact .test-drive-form .form-text.text-muted {
    color: rgba(255, 255, 255, 0.65) !important;
}
@media (max-width: 991px) {
    .tf-section-contact .service-form .grid-sw-2 {
        grid-template-columns: 1fr;
    }
}

/* Test Drive + Contact page – sidebar dark theme (shared styling) */
.tf-section-contact .contact-info.box-sd.test-drive-page-sidebar,
.tf-section-contact .contact-info.box-sd.contact-page-sidebar {
    position: sticky !important;
    top: 120px !important;
    padding: 28px !important;
    background: #24272C !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
}
.tf-section-contact .contact-info.test-drive-page-sidebar h2,
.tf-section-contact .contact-info.contact-page-sidebar h2 {
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}
.tf-section-contact .contact-info.test-drive-page-sidebar h2::before,
.tf-section-contact .contact-info.contact-page-sidebar h2::before {
    content: "" !important;
    display: block !important;
    width: 4px !important;
    height: 24px !important;
    background: #e32b26 !important;
    border-radius: 2px !important;
}
.tf-section-contact .contact-info.test-drive-page-sidebar .service-benefits-list li {
    margin-bottom: 12px !important;
    font-size: 15px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: #fff !important;
}
.tf-section-contact .contact-info.test-drive-page-sidebar .service-benefits-list li i {
    color: #e32b26 !important;
    font-size: 16px !important;
}
/* Contact page: box-info text + contact-info-row */
.tf-section-contact .contact-info.contact-page-sidebar .box-info h5,
.tf-section-contact .contact-info.contact-page-sidebar .box-info p,
.tf-section-contact .contact-info.contact-page-sidebar .contact-info-row {
    color: #fff !important;
}
.tf-section-contact .contact-info.contact-page-sidebar .contact-info-row i {
    color: #e32b26 !important;
}
.tf-section-contact .contact-info.contact-page-sidebar .box-info a {
    color: #fff;
}
.tf-section-contact .contact-info.contact-page-sidebar .box-info a:hover {
    color: var(--primary-color);
}
.tf-section-contact .contact-info.test-drive-page-sidebar .contact-quick .tf-btn.btn-2,
.tf-section-contact .contact-info.contact-page-sidebar .contact-quick .tf-btn.btn-2,
.tf-section-contact .contact-info.contact-page-sidebar .contact-quick .tf-btn.btn-1 {
    background: #e32b26 !important;
    border-color: #e32b26 !important;
    color: #fff !important;
}
.tf-section-contact .contact-info.test-drive-page-sidebar .contact-quick .tf-btn.btn-2:hover,
.tf-section-contact .contact-info.contact-page-sidebar .contact-quick .tf-btn.btn-2:hover,
.tf-section-contact .contact-info.contact-page-sidebar .contact-quick .tf-btn.btn-1:hover {
    background: #24272C !important;
    border-color: #24272C !important;
    color: #fff !important;
}
.tf-section-contact .contact-info.test-drive-page-sidebar .contact-quick .tf-btn-arrow,
.tf-section-contact .contact-info.contact-page-sidebar .contact-quick .tf-btn-arrow {
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #fff !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 14px 28px !important;
    min-height: 49px !important;
    box-sizing: border-box !important;
}
.tf-section-contact .contact-info.test-drive-page-sidebar .contact-quick .tf-btn-arrow:hover,
.tf-section-contact .contact-info.contact-page-sidebar .contact-quick .tf-btn-arrow:hover {
    background: #e32b26 !important;
    border-color: #e32b26 !important;
    color: #fff !important;
}
.tf-section-contact .contact-info.test-drive-page-sidebar .box-info.contact-quick,
.tf-section-contact .contact-info.contact-page-sidebar .box-info.contact-quick {
    padding-top: 24px !important;
    margin-top: 24px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    background: transparent !important;
}
.tf-section-contact .contact-info.contact-page-sidebar .icon-social.style2 a {
    color: #fff;
}
.tf-section-contact .contact-info.contact-page-sidebar .icon-social.style2 a:hover {
    color: var(--primary-color);
}
.tf-section-contact .contact-info.contact-page-sidebar .icon-social.style2 a svg.icon-tiktok {
    flex-shrink: 0;
}
@media (max-width: 991px) {
    .tf-section-contact .contact-info.box-sd.test-drive-page-sidebar,
    .tf-section-contact .contact-info.box-sd.contact-page-sidebar {
        position: static !important;
    }
}

/* Test Drive + Contact sidebar: light mode (wins over !important dark block above) */
body:not(.dark-theme) .tf-section-contact .contact-info.box-sd.test-drive-page-sidebar,
body:not(.dark-theme) .tf-section-contact .contact-info.box-sd.contact-page-sidebar {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08) !important;
}
body:not(.dark-theme) .tf-section-contact .contact-info.test-drive-page-sidebar h2,
body:not(.dark-theme) .tf-section-contact .contact-info.contact-page-sidebar h2 {
    color: #24272C !important;
}
body:not(.dark-theme) .tf-section-contact .contact-info.test-drive-page-sidebar .service-benefits-list li {
    color: rgba(36, 39, 44, 0.92) !important;
}
body:not(.dark-theme) .tf-section-contact .contact-info.contact-page-sidebar .box-info h5,
body:not(.dark-theme) .tf-section-contact .contact-info.contact-page-sidebar .box-info p,
body:not(.dark-theme) .tf-section-contact .contact-info.contact-page-sidebar .contact-info-row {
    color: #24272C !important;
}
body:not(.dark-theme) .tf-section-contact .contact-info.contact-page-sidebar .box-info a {
    color: #24272C !important;
}
body:not(.dark-theme) .tf-section-contact .contact-info.contact-page-sidebar .box-info a:hover {
    color: var(--primary-color) !important;
}
body:not(.dark-theme) .tf-section-contact .contact-info .box-info.contact-quick h5 {
    color: #24272C !important;
}
body:not(.dark-theme) .tf-section-contact .contact-info.test-drive-page-sidebar .contact-quick .tf-btn-arrow,
body:not(.dark-theme) .tf-section-contact .contact-info.contact-page-sidebar .contact-quick .tf-btn-arrow {
    border-color: rgba(36, 39, 44, 0.25) !important;
    color: #24272C !important;
}
body:not(.dark-theme) .tf-section-contact .contact-info.test-drive-page-sidebar .contact-quick .tf-btn-arrow:hover,
body:not(.dark-theme) .tf-section-contact .contact-info.contact-page-sidebar .contact-quick .tf-btn-arrow:hover {
    background: #e32b26 !important;
    border-color: #e32b26 !important;
    color: #ffffff !important;
}
body:not(.dark-theme) .tf-section-contact .contact-info.test-drive-page-sidebar .box-info.contact-quick,
body:not(.dark-theme) .tf-section-contact .contact-info.contact-page-sidebar .box-info.contact-quick {
    border-top-color: rgba(0, 0, 0, 0.08) !important;
}
body:not(.dark-theme) .tf-section-contact .contact-info.contact-page-sidebar .icon-social.style2 a {
    color: #24272C !important;
}
body:not(.dark-theme) .tf-section-contact .contact-info.contact-page-sidebar .icon-social.style2 a:hover {
    color: var(--primary-color) !important;
}

.tf-section-contact .test-drive-form .grid-sw-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 30px;
}
.tf-section-contact .test-drive-form fieldset {
    margin-bottom: 19px;
}
.tf-section-contact .test-drive-form .form-control,
.tf-section-contact .test-drive-form .proauto-native-select {
    width: 100%;
    padding: 14px 18px;
    min-height: 55px;
    font-size: 15px;
    line-height: 1.5;
    color: #24272C;
    background: #fff;
    border: 1px solid #EDEDED;
    border-radius: 10px;
    transition: border-color 0.2s ease;
}
.tf-section-contact .test-drive-form .proauto-native-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23696665' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
}
.tf-section-contact .test-drive-form .form-control:focus,
.tf-section-contact .test-drive-form .proauto-native-select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(227, 43, 38, 0.15);
}
.tf-section-contact .test-drive-form .form-note {
    font-size: 13px;
    opacity: 0.7;
    margin-top: 12px;
}
.test-drive-car-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(227, 43, 38, 0.06);
    border: 1px solid rgba(227, 43, 38, 0.2);
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 15px;
}
.test-drive-car-alert i {
    flex-shrink: 0;
    font-size: 20px;
}
.tf-section-contact .test-drive-page-sidebar .contact-quick .tf-btn:hover,
.tf-section-contact .test-drive-page-sidebar .contact-quick .tf-btn:hover span,
.tf-section-contact .test-drive-page-sidebar .contact-quick .tf-btn:hover i {
    color: #fff !important;
}
/* Contact quick: border-top matches parent (dark-theme compatibility) */
.tf-section-contact .contact-info .box-info.contact-quick {
    border-top: 1px solid;
    border-top-color: inherit;
}
/* Contact quick: Scrieți-ne link – full width, same size as phone button */
.tf-section-contact .contact-info .box-info.contact-quick .tf-btn-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 28px;
    margin-top: 8px;
    border: 1px solid var(--primary-color);
    border-radius: 14px;
    background-color: transparent;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
}
.tf-section-contact .contact-info .box-info.contact-quick .tf-btn-arrow:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
.dark-theme .tf-section-contact .contact-info .box-info.contact-quick .tf-btn-arrow {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}
.dark-theme .tf-section-contact .contact-info .box-info.contact-quick .tf-btn-arrow:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}
.dark-theme .tf-section-contact .test-drive-form .form-control,
.dark-theme .tf-section-contact .test-drive-form .proauto-native-select {
    background: rgba(255, 255, 255, 0.05) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}
.dark-theme .tf-section-contact .test-drive-form .proauto-native-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
}
.dark-theme .tf-section-contact .test-drive-form .proauto-native-select option {
    background: #24272C;
    color: #fff;
}
@media (max-width: 991px) {
    .tf-section-contact .test-drive-form .grid-sw-2 {
        grid-template-columns: 1fr;
    }
    .tf-section-contact .test-drive-form .button-boxs .sc-button.tf-btn,
    .tf-section-contact .test-drive-form .button-boxs button[type="submit"] {
        width: 100%;
    }
}

/* Insurance page */
.tf-section-contact .insurance-form .grid-sw-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 30px;
}
.tf-section-contact .insurance-form fieldset {
    margin-bottom: 19px;
}
.tf-section-contact .insurance-form .form-control,
.tf-section-contact .insurance-form .proauto-native-select {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    line-height: 1.5;
    color: #24272C;
    background: #fff;
    border: 1px solid #EDEDED;
    border-radius: 10px;
    transition: border-color 0.2s ease;
}
.tf-section-contact .insurance-form .proauto-native-select {
    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='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23696665' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
.tf-section-contact .insurance-form .form-control:focus,
.tf-section-contact .insurance-form .proauto-native-select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(227, 43, 38, 0.15);
}
.tf-section-contact .insurance-form .form-note {
    font-size: 13px;
    opacity: 0.7;
    margin-top: 12px;
}
.tf-section-contact .insurance-form .insurance-form-year-field {
    max-width: 160px;
}
.tf-section-contact .insurance-page-sidebar .contact-quick .tf-btn:hover,
.tf-section-contact .insurance-page-sidebar .contact-quick .tf-btn:hover span,
.tf-section-contact .insurance-page-sidebar .contact-quick .tf-btn:hover i {
    color: #fff !important;
}
.dark-theme .tf-section-contact .insurance-form .form-control,
.dark-theme .tf-section-contact .insurance-form .proauto-native-select {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}
@media (max-width: 991px) {
    .tf-section-contact .insurance-form .grid-sw-2 {
        grid-template-columns: 1fr;
    }
    .tf-section-contact .insurance-form .insurance-form-year-field {
        max-width: none;
    }
}

/* Car search request page (cauta-autoturism) */
.tf-section-contact .car-search-request-form .grid-sw-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 30px;
}
.tf-section-contact .car-search-request-form fieldset {
    margin-bottom: 19px;
}
.tf-section-contact .car-search-request-form .form-control,
.tf-section-contact .car-search-request-form .proauto-native-select {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    line-height: 1.5;
    color: #24272C;
    background: #fff;
    border: 1px solid #EDEDED;
    border-radius: 10px;
    transition: border-color 0.2s ease;
}
.tf-section-contact .car-search-request-form .proauto-native-select {
    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='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23696665' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
.tf-section-contact .car-search-request-form .form-control:focus,
.tf-section-contact .car-search-request-form .proauto-native-select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(227, 43, 38, 0.15);
}
.tf-section-contact .car-search-request-form .form-note {
    font-size: 13px;
    opacity: 0.7;
    margin-top: 12px;
}
.tf-section-contact .car-search-page-sidebar .contact-quick .tf-btn:hover,
.tf-section-contact .car-search-page-sidebar .contact-quick .tf-btn:hover span,
.tf-section-contact .car-search-page-sidebar .contact-quick .tf-btn:hover i {
    color: #fff !important;
}
.dark-theme .tf-section-contact .car-search-request-form .form-control,
.dark-theme .tf-section-contact .car-search-request-form .proauto-native-select {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}
@media (max-width: 991px) {
    .tf-section-contact .car-search-request-form .grid-sw-2 {
        grid-template-columns: 1fr;
    }
}

/* Sell car page (vinde-autoturism) */
.tf-section-contact .sell-car-form .grid-sw-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 30px;
}
.tf-section-contact .sell-car-form fieldset {
    margin-bottom: 19px;
}
.tf-section-contact .sell-car-form .form-control,
.tf-section-contact .sell-car-form .proauto-native-select {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    line-height: 1.5;
    color: #24272C;
    background: #fff;
    border: 1px solid #EDEDED;
    border-radius: 10px;
    transition: border-color 0.2s ease;
}
.tf-section-contact .sell-car-form .proauto-native-select {
    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='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23696665' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
.tf-section-contact .sell-car-form .form-control:focus,
.tf-section-contact .sell-car-form .proauto-native-select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(227, 43, 38, 0.15);
}
.tf-section-contact .sell-car-form .form-note {
    font-size: 13px;
    opacity: 0.7;
    margin-top: 12px;
}
.sell-form-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid;
    border-color: rgba(255, 255, 255, 0.1019607843);
}
.sell-photo-input-hidden {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}
.sell-photo-dropzone {
    border: 2px dashed #EDEDED;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.sell-photo-dropzone:hover {
    border-color: var(--primary-color);
    background: rgba(227, 43, 38, 0.03);
}
.sell-photo-dropzone--dragover {
    border-color: var(--primary-color);
    background: rgba(227, 43, 38, 0.08);
}
.sell-photo-dropzone--has-files {
    padding: 12px 20px;
    margin-top: 12px;
}
.sell-photo-dropzone--has-files .sell-photo-dropzone-icon {
    display: none;
}
.sell-photo-dropzone--has-files .sell-photo-dropzone-hint {
    display: none;
}
.sell-photo-dropzone-content {
    pointer-events: none;
}
.sell-photo-dropzone-icon {
    font-size: 36px;
    color: var(--primary-color);
    opacity: 0.6;
    display: block;
    margin-bottom: 8px;
}
.sell-photo-dropzone-text {
    font-size: 15px;
    font-weight: 500;
    color: #24272C;
    margin: 0 0 4px 0;
}
.sell-photo-dropzone-hint {
    font-size: 13px;
    opacity: 0.6;
}
.sell-photo-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}
.sell-photo-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.sell-photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sell-photo-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.sell-photo-remove:hover {
    background: var(--primary-color);
}
.dark-theme .sell-photo-dropzone {
    border-color: rgba(255, 255, 255, 0.2);
}
.dark-theme .sell-photo-dropzone:hover,
.dark-theme .sell-photo-dropzone--dragover {
    border-color: var(--primary-color);
    background: rgba(227, 43, 38, 0.1);
}
.dark-theme .sell-photo-dropzone-text {
    color: #fff;
}
.sell-steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tf-section-contact .sell-car-page-sidebar .sell-steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.5;
}
.tf-section-contact .sell-car-page-sidebar .sell-steps-list li i {
    color: var(--primary-color);
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}
.tf-section-contact .sell-car-page-sidebar .sell-steps-list li:last-child {
    margin-bottom: 0;
}
.sell-step-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}
.tf-section-contact .sell-car-page-sidebar .contact-quick .tf-btn:hover,
.tf-section-contact .sell-car-page-sidebar .contact-quick .tf-btn:hover span,
.tf-section-contact .sell-car-page-sidebar .contact-quick .tf-btn:hover i {
    color: #fff !important;
}
.dark-theme .tf-section-contact .sell-car-form .form-control,
.dark-theme .tf-section-contact .sell-car-form .proauto-native-select {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}
@media (max-width: 991px) {
    .tf-section-contact .sell-car-form .grid-sw-2 {
        grid-template-columns: 1fr;
    }
}

/* Car search (test-drive autocomplete) */
.car-search-wrap {
    position: relative;
}
.car-search-loading {
    display: none;
}
.car-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.car-search-input-wrap .form-control {
    flex: 1;
    padding-right: 40px;
}
.car-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    min-width: 28px;
    padding: 0;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: #24272C;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease;
}
.car-search-clear:hover {
    background: rgba(227, 43, 38, 0.2);
    color: var(--primary-color);
}
.car-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 4px 0 0;
    padding: 8px 0;
    background: #fff;
    border: 1px solid #EDEDED;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    list-style: none;
    max-height: 280px;
    overflow-y: auto;
    z-index: 100;
}
.car-search-dropdown[aria-hidden="true"] {
    display: none;
}
.car-search-dropdown li {
    padding: 12px 18px;
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    font-size: 15px;
    transition: background 0.15s ease;
}
.car-search-dropdown li:hover,
.car-search-dropdown li:focus {
    background: rgba(227, 43, 38, 0.06);
    outline: none;
}
.car-search-item-title {
    font-weight: 600;
    flex: 1 1 100%;
}
.car-search-item-year {
    font-size: 13px;
    opacity: 0.7;
}
.car-search-item-price {
    font-weight: 600;
    color: var(--primary-color);
    margin-left: auto;
}
.car-search-empty {
    cursor: default;
    color: #696665;
    font-style: italic;
}
.car-search-loading {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: #696665;
}
.dark-theme .car-search-dropdown {
    background: #1a1a2e;
    border-color: rgba(255, 255, 255, 0.15);
}
.dark-theme .car-search-dropdown li:hover,
.dark-theme .car-search-dropdown li:focus {
    background: rgba(227, 43, 38, 0.15);
}
.dark-theme .car-search-clear {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.dark-theme .car-search-clear:hover {
    background: rgba(227, 43, 38, 0.3);
}

/* Car card favorites (localStorage) */
.car-favorite-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
    text-align: center;
}
.car-favorite-btn i,
.car-favorite-btn svg {
    flex-shrink: 0;
}
.car-favorite-btn svg {
    display: block;
    width: 18px;
    height: 18px;
}
/* Default: red outline when not favorited */
.box-car-list .image-group .change-heart .box-icon .car-favorite-btn:not(.is-favorited) {
    color: #e32b26;
}
.car-favorite-btn:hover {
    color: #c92520;
}
/* Favorited: red */
.box-car-list .image-group .change-heart .box-icon .car-favorite-btn.is-favorited,
.car-favorite-btn.is-favorited {
    color: #e32b26;
}
.car-favorite-btn.is-favorited:hover {
    color: #c92520;
}
/* Icon centering: fixed box so glyph aligns in 48×48 button (only font icon – SVG stays hidden by default) */
.car-favorite-btn .icon-autodeal-favorite {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    font-size: 18px !important;
    line-height: 0 !important;
}
.car-favorite-btn .icon-autodeal-favorite::before {
    line-height: 1;
}
.car-favorite-btn .car-favorite-icon-filled {
    display: none !important;
}
.car-favorite-btn .car-favorite-icon-outline {
    display: inline;
    color: inherit;
}
.car-favorite-btn.is-favorited .car-favorite-icon-outline {
    display: none !important;
}
.car-favorite-btn.is-favorited .car-favorite-icon-filled {
    display: block !important;
    width: 18px;
    height: 18px;
    color: #e32b26 !important;
}
/* Ensure both icons are red when favorited (fallback if filled SVG hidden) */
.box-car-list .image-group .change-heart .box-icon .car-favorite-btn.is-favorited .icon-autodeal-favorite,
.box-car-list .image-group .change-heart .box-icon .car-favorite-btn.is-favorited .car-favorite-icon-filled {
    color: #e32b26 !important;
}

/* Toast notification for favorites */
#proauto-favorite-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 99999;
    background: #24272C;
    color: #fff;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.35s ease, opacity 0.35s ease;
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
#proauto-favorite-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
#proauto-favorite-toast i.icon-autodeal-favorite {
    color: #e32b26;
    font-size: 20px;
}
#proauto-favorite-toast.removed i.icon-autodeal-favorite {
    opacity: 0.6;
}

/* Ensure change-heart icons receive clicks above img overlay */
.box-car-list .image-group .change-heart {
    pointer-events: auto;
    z-index: 20;
}
.box-car-list .image-group .change-heart .box-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.box-car-list .image-group .change-heart .box-icon,
.box-car-list .image-group .change-heart .box-icon * {
    pointer-events: auto;
}
.hv-one .img-style::before {
    pointer-events: none;
}

/* Car detail: compact tabs – red theme, full width, 3 equal parts */
.proauto-car-detail-tabs {
    display: flex !important;
    width: 100% !important;
    gap: 12px;
    flex-wrap: nowrap;
}
.proauto-car-detail-tabs .nav-item {
    flex: 1 1 0;
    min-width: 0;
}
.proauto-car-detail-tabs .nav-link {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 10px 16px;
    border: 1px solid rgba(227, 43, 38, 0.4);
    color: #e32b26;
    font-weight: 500;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.proauto-car-detail-tabs .nav-link:hover {
    background: rgba(227, 43, 38, 0.08);
    border-color: #e32b26;
}
.proauto-car-detail-tabs .nav-link.active {
    background-color: #e32b26 !important;
    border-color: #e32b26 !important;
    color: #fff !important;
}
@media (max-width: 991px) {
    .proauto-car-detail-tabs {
        flex-direction: column;
        gap: 8px;
    }
    .proauto-car-detail-tabs .nav-item {
        flex: none;
        width: 100%;
    }
    .proauto-car-detail-tabs .nav-link {
        width: 100%;
        min-height: 48px;
        justify-content: center;
        padding: 12px 16px;
    }
}
.proauto-car-detail-content .tab-pane {
    padding-top: 4px;
}

/* ========== Car detail page – Better UI ========== */
.listing-detail.style-1 .listing-detail-wrap .mainslider {
    height: auto !important;
}
.listing-detail.style-1 .listing-detail-wrap .mainslider .swiper-wrapper,
.listing-detail.style-1 .listing-detail-wrap .mainslider .swiper-slide {
    height: auto !important;
}
.listing-detail.style-1 .listing-detail-wrap .mainslider .image-list-details {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
.listing-detail.style-1 .listing-detail-wrap .mainslider .image-list-details .image {
    display: block;
}
.listing-detail.style-1 .listing-detail-wrap .mainslider .image-list-details .image img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
}

/* Hero strip: title + quick specs */
.proauto-car-hero-strip {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.dark-theme .proauto-car-hero-strip {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
.proauto-car-title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 12px 0;
    color: inherit;
}
.proauto-car-quick-specs {
    gap: 16px 24px !important;
}
.proauto-car-quick-specs .spec-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.65);
}
.dark-theme .proauto-car-quick-specs .spec-item {
    color: rgba(255, 255, 255, 0.7);
}
.proauto-car-quick-specs .spec-item i {
    font-size: 15px;
    opacity: 0.85;
}

/* Sidebar: price card */
.proauto-car-sidebar {
    position: sticky;
    top: 120px;
}
.proauto-price-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
}
.dark-theme .proauto-price-card {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.proauto-price-card .content h5 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.proauto-price-card .money {
    font-size: 1.35rem !important;
    font-weight: 600 !important;
}
.proauto-price-card .view-car {
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}
.proauto-price-card .view-car:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(227, 43, 38, 0.25);
}
/* Price card buttons: full width, icons, phone = primary red */
.proauto-price-card .proauto-price-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    text-align: center;
    border-radius: 10px;
    font-weight: 500;
}
.proauto-price-card .proauto-price-card-btn i {
    font-size: 16px;
    flex-shrink: 0;
}
.proauto-price-card .proauto-price-card-btn-phone {
    background-color: #e32b26;
    color: #fff !important;
    border: 1px solid #e32b26;
}
.proauto-price-card .proauto-price-card-btn-phone:hover {
    background-color: #c92420;
    border-color: #c92420;
    color: #fff !important;
}
.proauto-price-card .proauto-price-card-btn-test {
    background: rgba(227, 43, 38, 0.08);
    color: #e32b26;
    border: 1px solid rgba(227, 43, 38, 0.3);
}
.proauto-price-card .proauto-price-card-btn-test:hover {
    background: rgba(227, 43, 38, 0.15);
    border-color: #e32b26;
    color: #e32b26;
}
.proauto-price-card .proauto-price-card-btn-consult {
    background: rgba(227, 43, 38, 0.08);
    color: #e32b26;
    border: 1px solid rgba(227, 43, 38, 0.3);
    cursor: pointer;
}
.proauto-price-card .proauto-price-card-btn-consult:hover {
    background: rgba(227, 43, 38, 0.15);
    border-color: #e32b26;
    color: #e32b26;
}
.proauto-price-card .days-box {
    margin-bottom: 10px;
    width: 100%;
}
.proauto-price-card .days-box a,
.proauto-price-card .days-box button {
    width: 100%;
}
.proauto-price-card .days-box:last-of-type {
    margin-bottom: 0;
}

/* Sidebar: stats card (views + interested) */
.proauto-car-stats-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(227, 43, 38, 0.06) 0%, rgba(227, 43, 38, 0.02) 100%);
    border: 1px solid rgba(227, 43, 38, 0.12);
    border-radius: 16px;
}
.dark-theme .proauto-car-stats-card {
    background: linear-gradient(135deg, rgba(227, 43, 38, 0.12) 0%, rgba(227, 43, 38, 0.04) 100%);
    border-color: rgba(227, 43, 38, 0.2);
}
.proauto-car-stats-card .proauto-stat {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}
.dark-theme .proauto-car-stats-card .proauto-stat {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}
.proauto-car-stats-card .proauto-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(227, 43, 38, 0.15);
}
.proauto-stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(227, 43, 38, 0.1);
    color: #e32b26;
    border-radius: 10px;
    font-size: 18px;
}
.proauto-stat-icon-heart {
    background: rgba(227, 43, 38, 0.08);
}
.proauto-stat-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.proauto-stat-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #24272C;
    line-height: 1.2;
}
.dark-theme .proauto-stat-value {
    color: #fff;
}
.proauto-stat-label {
    font-size: 12px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.55);
}
.dark-theme .proauto-stat-label {
    color: rgba(255, 255, 255, 0.65);
}

/* Sidebar: showroom / punct de vânzare */
.proauto-car-showroom-card {
    padding: 20px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
}
.dark-theme .proauto-car-showroom-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}
.proauto-car-showroom-card__title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 12px;
}
.dark-theme .proauto-car-showroom-card__title {
    color: rgba(255, 255, 255, 0.6);
}
.proauto-car-showroom-card__name {
    font-size: 16px;
    font-weight: 600;
    color: #24272C;
    margin-bottom: 12px;
}
.dark-theme .proauto-car-showroom-card__name {
    color: #fff;
}
.proauto-car-showroom-card__row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 14px;
}
.proauto-car-showroom-card__row:last-of-type {
    margin-bottom: 12px;
}
.proauto-car-showroom-card__icon {
    color: #e32b26;
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}
.proauto-car-showroom-card__text,
.proauto-car-showroom-card__link {
    color: #24272C;
}
.dark-theme .proauto-car-showroom-card__text,
.dark-theme .proauto-car-showroom-card__link {
    color: rgba(255, 255, 255, 0.9);
}
.proauto-car-showroom-card__link:hover {
    color: #e32b26;
}
.proauto-car-showroom-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

/* Vizualizări box */
.proauto-car-sidebar .tf-icon-box.style-1 {
    border-radius: 12px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
}
.dark-theme .proauto-car-sidebar .tf-icon-box.style-1 {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

/* Home: icon-box carousel – mobile: fără overflow, înălțime naturală, lățime în viewport */
@media (max-width: 1023px) {
    #icon-box-section {
        overflow-x: hidden;
    }
    #icon-box-section .container {
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }
    #icon-box-section .tf-sw-mobile4 {
        overflow: hidden !important;
        max-width: 100%;
    }
    #icon-box-section .swiper-wrapper {
        align-items: flex-start;
    }
    #icon-box-section .swiper-slide {
        height: auto;
        box-sizing: border-box;
    }
    #icon-box-section .swiper-slide > .tf-icon-box.style-1 {
        height: auto;
        min-height: 0;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        padding: 20px 16px;
    }
    #icon-box-section .tf-icon-box.style-1 h3,
    #icon-box-section .tf-icon-box.style-1 p {
        margin-bottom: 16px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    #icon-box-section .tf-icon-box .btn-button {
        min-width: 0;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        padding-left: 16px;
        padding-right: 16px;
        text-align: center;
    }
}

/* Home: blog carousel – același comportament ca icon-box pe mobile/tablet */
@media (max-width: 1023px) {
    #section-blog-home {
        overflow-x: hidden;
    }
    #section-blog-home .container {
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }
    #section-blog-home .tf-sw-mobile {
        overflow: hidden !important;
        max-width: 100%;
    }
    #section-blog-home .swiper-wrapper {
        align-items: flex-start;
    }
    #section-blog-home .swiper-slide {
        height: auto;
        box-sizing: border-box;
    }
    #section-blog-home .blog-article-item.style1 {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    #section-blog-home .blog-article-item.style1 .images {
        height: 200px;
        flex-shrink: 0;
        overflow: hidden;
    }
    #section-blog-home .blog-article-item.style1 .images img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    #section-blog-home .blog-article-item .content {
        padding-top: 16px;
        padding-bottom: 12px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    #section-blog-home .blog-article-item .content h3 {
        font-size: clamp(18px, 4.5vw, 22px);
        line-height: 1.3;
    }
}

/* Specs grid – card style */
.proauto-specs-grid .listing-infor-box {
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 12px;
    transition: background 0.2s, border-color 0.2s;
}
.proauto-specs-grid .listing-infor-box:hover {
    background: rgba(0, 0, 0, 0.04);
}
.dark-theme .proauto-specs-grid .listing-infor-box {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}
.dark-theme .proauto-specs-grid .listing-infor-box:hover {
    background: rgba(255, 255, 255, 0.06);
}
.proauto-specs-grid .listing-infor-box .icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(227, 43, 38, 0.08);
    flex-shrink: 0;
    color: var(--primary-color);
}
.proauto-specs-grid .listing-infor-box .icon i {
    font-size: 18px;
}
.proauto-specs-grid .listing-infor-box .content-listing-info {
    align-items: center;
    min-height: 32px;
}
.proauto-specs-grid .listing-infor-box .listing-info-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    opacity: 0.8;
}
.proauto-specs-grid .listing-infor-box .listing-info-value {
    font-size: 15px;
    font-weight: 600;
}

/* Features grid (Dotări tab) – same card style as specs */
.proauto-features-grid .proauto-feature-category {
    margin-bottom: 28px;
}
.proauto-features-grid .proauto-feature-category:last-child {
    margin-bottom: 0;
}
.proauto-features-grid .proauto-feature-category-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.dark-theme .proauto-features-grid .proauto-feature-category-title {
    color: #fff !important;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}
.proauto-features-grid .proauto-feature-category-title i {
    color: var(--primary-color);
    margin-right: 8px;
}
.proauto-features-grid .listing-infor-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 12px;
    transition: background 0.2s, border-color 0.2s;
}
.proauto-features-grid .listing-infor-box:hover {
    background: rgba(0, 0, 0, 0.04);
}
.dark-theme .proauto-features-grid .listing-infor-box {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}
.dark-theme .proauto-features-grid .listing-infor-box:hover {
    background: rgba(255, 255, 255, 0.06);
}
.proauto-features-grid .listing-infor-box .icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    margin-right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(227, 43, 38, 0.08);
    flex-shrink: 0;
    color: var(--primary-color);
}
.proauto-features-grid .listing-infor-box .icon i {
    font-size: 18px;
}
.proauto-features-grid .listing-infor-box .content-listing-info {
    align-items: center;
    min-height: 32px;
}
.proauto-features-grid .listing-infor-box .listing-info-value {
    font-size: 15px;
    font-weight: 600;
    margin-left: 0 !important;
}

/* Description prose – car detail “Descriere” tab (semantic HTML) */
.proauto-desc-prose {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(36, 39, 44, 0.92);
    word-break: break-word;
}
.dark-theme .proauto-desc-prose {
    color: rgba(255, 255, 255, 0.9);
}
.proauto-desc-prose > *:first-child {
    margin-top: 0;
}
.proauto-desc-prose > *:last-child {
    margin-bottom: 0;
}
.proauto-desc-prose p {
    margin: 0 0 1rem;
    font-size: inherit;
    line-height: 1.7;
}
.proauto-desc-prose p:last-child {
    margin-bottom: 0;
}
.proauto-desc-prose ul,
.proauto-desc-prose ol {
    margin: 0 0 1.15rem;
    padding-left: 1.35rem;
    list-style-position: outside;
}
.proauto-desc-prose ul:last-child,
.proauto-desc-prose ol:last-child {
    margin-bottom: 0;
}
/* Theme reset sets `ul, li { list-style: none }` — restore markers on <li> explicitly */
.proauto-desc-prose ul {
    list-style-type: disc;
}
.proauto-desc-prose ol {
    list-style-type: decimal;
}
.proauto-desc-prose ul > li {
    list-style-type: disc;
    list-style-position: outside;
}
.proauto-desc-prose ol > li {
    list-style-type: decimal;
    list-style-position: outside;
}
.proauto-desc-prose ul ul > li {
    list-style-type: circle;
}
.proauto-desc-prose ul ul ul > li {
    list-style-type: square;
}
.proauto-desc-prose li {
    margin: 0 0 0.5rem;
    padding-left: 0.35rem;
    line-height: 1.65;
}
.proauto-desc-prose li:last-child {
    margin-bottom: 0;
}
.proauto-desc-prose li > ul,
.proauto-desc-prose li > ol {
    margin-top: 0.5rem;
    margin-bottom: 0;
}
.proauto-desc-prose h2,
.proauto-desc-prose h3,
.proauto-desc-prose h4 {
    margin: 1.35rem 0 0.65rem;
    font-weight: 600;
    line-height: 1.35;
    color: inherit;
}
.proauto-desc-prose h2:first-child,
.proauto-desc-prose h3:first-child,
.proauto-desc-prose h4:first-child {
    margin-top: 0;
}
.proauto-desc-prose h2 {
    font-size: 1.2rem;
}
.proauto-desc-prose h3 {
    font-size: 1.1rem;
}
.proauto-desc-prose h4 {
    font-size: 1.02rem;
}
.proauto-desc-prose strong,
.proauto-desc-prose b {
    font-weight: 600;
    color: rgba(36, 39, 44, 1);
}
.dark-theme .proauto-desc-prose strong,
.dark-theme .proauto-desc-prose b {
    color: #fff;
}
.proauto-desc-prose a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;
}
.proauto-desc-prose a:hover {
    text-decoration-thickness: 2px;
}
.proauto-desc-prose hr {
    margin: 1.25rem 0;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.dark-theme .proauto-desc-prose hr {
    border-top-color: rgba(255, 255, 255, 0.12);
}

/* Download brochure button */
.proauto-car-detail-content .list-file .button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.04);
    transition: all 0.2s;
}
.proauto-car-detail-content .list-file .button:hover {
    background: rgba(0, 0, 0, 0.08);
}
.dark-theme .proauto-car-detail-content .list-file .button {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}
.dark-theme .proauto-car-detail-content .list-file .button:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Share links */
.proauto-share-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.proauto-share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.06);
    color: #555;
    transition: all 0.2s;
}
.proauto-share-link:hover {
    background: rgba(227, 43, 38, 0.12);
    color: #e32b26;
}
.dark-theme .proauto-share-link {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
}
.dark-theme .proauto-share-link:hover {
    background: rgba(227, 43, 38, 0.2);
    color: #e32b26;
}

/* Modal: above all overlays (Fancybox 99992, preload, etc.) – max z-index */
.modal-backdrop {
    z-index: 2147483646 !important;
}
.modal,
#consultationModal,
#consultationModal.show {
    z-index: 2147483647 !important;
}
/* When modal is open, preload overlay must not block */
body.modal-open .preload-container {
    z-index: -1 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}
#consultationModal .modal-dialog {
    position: relative;
    z-index: 1;
    pointer-events: auto;
}
/* When modal is open, ensure preload/other overlays don't block it */
body.modal-open .preload-container {
    z-index: -1 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

/* Consultation modal – ProAuto styling (matches site UI) */
#consultationModal .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}
#consultationModal .modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, rgba(227, 43, 38, 0.04) 0%, transparent 100%);
}
#consultationModal .modal-title {
    font-weight: 600;
    font-size: 1.25rem;
    color: #1a1a1a;
}
#consultationModal .modal-body {
    padding: 28px !important;
    color: #1a1a1a;
}
#consultationModal .modal-body p {
    color: #1a1a1a;
}
#consultationModal .modal-body .form-control {
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    font-size: 16px;
}
#consultationModal .modal-body .form-control:focus {
    border-color: #e32b26;
    box-shadow: 0 0 0 3px rgba(227, 43, 38, 0.12);
}
#consultationModal .modal-body .tf-btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    flex-shrink: 0;
}
#consultationModal .proauto-consultation-form-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}
#consultationModal .proauto-consultation-phone-input {
    flex: 1;
    min-width: 200px;
}
#consultationModal .btn-close {
    opacity: 0.7;
    color: #1a1a1a;
    filter: none;
}
#consultationModal .btn-close:hover {
    opacity: 1;
    color: #1a1a1a;
}
.dark-theme #consultationModal .btn-close {
    color: #fff;
}
.dark-theme #consultationModal .btn-close:hover {
    color: #fff;
}
.dark-theme #consultationModal .modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(227, 43, 38, 0.08) 0%, transparent 100%);
}
.dark-theme #consultationModal .modal-title {
    color: #fff;
}
.dark-theme #consultationModal .modal-body,
.dark-theme #consultationModal .modal-body p {
    color: rgba(255, 255, 255, 0.9);
}
.dark-theme #consultationModal .modal-body .form-control {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}
.dark-theme #consultationModal .modal-body .form-control:focus {
    border-color: #e32b26;
}

/* Similar cars section */
.listing-detail.style-1 .heading-section h2 {
    font-size: 1.35rem;
    font-weight: 600;
}
.listing-detail.style-1 .list-car-grid-4.gap-30 {
    margin-top: 8px;
}

/* Car grid: image full width, fills container */
.list-car-grid-4 .box-car-list .image-group {
    width: 100%;
}
.list-car-grid-4 .box-car-list .image-group .img-style {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.list-car-grid-4 .box-car-list .image-group .img-style a {
    display: block;
    width: 100%;
    height: 100%;
}
.list-car-grid-4 .box-car-list .image-group .img-style img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Car slider (tf-sw-mobile2): image full width in slide */
.tf-sw-mobile2 .box-car-list .image-group {
    width: 100%;
}
.tf-sw-mobile2 .box-car-list .image-group .img-style {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.tf-sw-mobile2 .box-car-list .image-group .img-style a {
    display: block;
    width: 100%;
    height: 100%;
}
.tf-sw-mobile2 .box-car-list .image-group .img-style img {
    width: 100% !important;
    height: 100% !important;
    min-width: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    display: block;
}
@media (max-width: 991px) {
    /* Aceeași lățime conținut ca .tf-section (ex. caroserie): fără margini negative pe coloană */
    .tf-section3 .tf-sw-mobile2 {
        max-width: 100%;
        box-sizing: border-box;
    }
    .tf-sw-mobile2 .box-car-list {
        width: 100%;
    }
    .tf-sw-mobile2 .box-car-list .image-group,
    .tf-sw-mobile2 .box-car-list .image-group .img-style,
    .tf-sw-mobile2 .box-car-list .image-group .img-style a {
        width: 100% !important;
    }
    .tf-sw-mobile2 .box-car-list .image-group .img-style img {
        width: 100% !important;
        min-width: 100%;
        max-width: none;
        height: 100% !important;
        object-fit: cover;
    }
    /* Swiper slide: let content fill width */
    .tf-sw-mobile2 .swiper-slide {
        box-sizing: border-box;
    }
    .tf-sw-mobile2 .swiper-slide .box-car-list {
        max-width: 100%;
    }
}

@media (max-width: 991px) {
    /* Sidebar vizibil în flux (nu slide-out) – blocul apare direct sub conținutul principal */
    .listing-detail .proauto-car-sidebar {
        position: static !important;
        left: auto !important;
        max-width: none;
        width: 100%;
        padding: 20px 0;
        margin-top: 24px;
        box-shadow: none;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }
    /* Ascunde butonul și overlay – nu mai sunt necesare */
    .listing-detail ~ .btn-siderbar-mobie-filter,
    .listing-detail .overlay-siderbar-mobie {
        display: none !important;
    }
    .dark-theme .listing-detail .proauto-car-sidebar {
        background: transparent;
        border-top-color: rgba(255, 255, 255, 0.1);
    }
    .proauto-car-title {
        font-size: 1.25rem;
    }
}

/* ========== Revizie tehnică – Landing (aliniat cu stilul site-ului) ========== */
.proauto-revizie-hero {
    margin-top: 0;
    background: #24272C;
    padding: 60px 0 80px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.proauto-revizie-hero__badge {
    display: inline-block;
    background: #e32b26;
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
}
.proauto-revizie-hero__title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 16px;
    color: #fff;
}
.proauto-revizie-hero__desc {
    font-size: 1rem;
    line-height: 1.65;
    opacity: 0.9;
    margin-bottom: 28px;
    max-width: 520px;
}
.proauto-revizie-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #e32b26;
    color: #fff !important;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none !important;
    transition: background 0.3s ease;
}
.proauto-revizie-hero__cta:hover {
    background: #fff;
    color: #24272C !important;
}
.proauto-revizie-hero__img-wrap {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.proauto-revizie-hero__img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

/* Hero revizie / înmatriculare — light mode (fundal deschis, text întunecat) */
body:not(.dark-theme) .proauto-revizie-hero {
    background: #f4f6f8;
    color: #24272C;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
body:not(.dark-theme) .proauto-revizie-hero__title {
    color: #24272C;
}
body:not(.dark-theme) .proauto-revizie-hero__desc {
    color: rgba(36, 39, 44, 0.88);
    opacity: 1;
}
body:not(.dark-theme) .proauto-revizie-hero__img-wrap {
    border-color: rgba(0, 0, 0, 0.08);
}
body:not(.dark-theme) .proauto-revizie-hero__cta:hover {
    background: #24272C;
    color: #ffffff !important;
}

.proauto-revizie-section {
    padding: 60px 0;
}
.proauto-revizie-section .heading-section {
    margin-bottom: 40px;
    text-align: center;
}
.proauto-revizie-section .heading-section h2 {
    margin-bottom: 12px;
}
.proauto-revizie-section .heading-section p {
    /* full width – no max-width constraint */
}

/* Cards – stil contact-info box-sd (dark) */
.proauto-revizie-card {
    background: #24272C;
    border-radius: 16px;
    padding: 28px;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
.proauto-revizie-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(227, 43, 38, 0.2);
    color: #e32b26;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}
.proauto-revizie-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #fff;
}
.proauto-revizie-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.proauto-revizie-card__list li {
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}
.proauto-revizie-card__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: #e32b26;
    border-radius: 50%;
}

/* Cards revizie / înmatriculare — light mode (fundal card deschis) */
body:not(.dark-theme) .proauto-revizie-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}
body:not(.dark-theme) .proauto-revizie-card__title {
    color: #24272C;
}
body:not(.dark-theme) .proauto-revizie-card__list li {
    color: rgba(36, 39, 44, 0.92);
}
body:not(.dark-theme) .proauto-revizie-card p {
    color: rgba(36, 39, 44, 0.9);
}

/* Tabele – border, header dark ca site-ul */
.proauto-revizie-table-wrap {
    max-width: 640px;
    margin: 0 auto;
    overflow-x: auto;
}
.proauto-revizie-table-wrap--wide {
    max-width: 100%;
}
.proauto-revizie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
}
.dark-theme .proauto-revizie-table {
    border-color: rgba(255, 255, 255, 0.1);
}
.proauto-revizie-table th,
.proauto-revizie-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.dark-theme .proauto-revizie-table th,
.dark-theme .proauto-revizie-table td {
    border-color: rgba(255, 255, 255, 0.08);
}
.proauto-revizie-table th {
    background: #24272C;
    color: #fff;
    font-weight: 600;
}
body:not(.dark-theme) .proauto-revizie-table th {
    background: #e8ebef;
    color: #24272C;
}
body:not(.dark-theme) .proauto-revizie-table td {
    color: #24272C;
}
.proauto-revizie-table tbody tr:last-child td {
    border-bottom: none;
}
.proauto-revizie-table tbody tr:hover {
    background: rgba(227, 43, 38, 0.04);
}
.proauto-revizie-table--taxe td:first-child {
    width: 40px;
    text-align: center;
    font-weight: 500;
}
.proauto-revizie-table--taxe td:nth-child(3) {
    white-space: nowrap;
}
.proauto-revizie-table--taxe td:last-child {
    font-weight: 600;
    color: var(--primary-color);
}

/* Tarife – boxuri cu icoane */
.proauto-tarife-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.proauto-tarife-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
    background: #24272C;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.2s, transform 0.2s;
}
.proauto-tarife-box:hover {
    border-color: rgba(227, 43, 38, 0.4);
    transform: translateY(-2px);
}
.proauto-tarife-box__icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(227, 43, 38, 0.15);
    color: #e32b26;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}
.proauto-tarife-box__label {
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
}
.proauto-tarife-box__price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e32b26;
}
.proauto-tarife-box__price span {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Tarife boxes — light mode */
body:not(.dark-theme) .proauto-tarife-box {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}
body:not(.dark-theme) .proauto-tarife-box:hover {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}
body:not(.dark-theme) .proauto-tarife-box__label {
    color: rgba(36, 39, 44, 0.92);
}
body:not(.dark-theme) .proauto-tarife-box__icon {
    background: rgba(227, 43, 38, 0.1);
}

/* Insurance page — reuse tarife grid with short subtitles instead of lei prices */
.proauto-insurance-products .proauto-tarife-box__price {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.82);
    margin-top: 4px;
}
.proauto-insurance-products .proauto-tarife-box__price span {
    font-size: inherit;
    font-weight: 500;
    opacity: 0.85;
}
body:not(.dark-theme) .proauto-insurance-products .proauto-tarife-box__price {
    color: rgba(36, 39, 44, 0.72);
}

/* Form section – tf-section-contact layout */
.proauto-revizie-form-section {
    padding-top: 0;
    padding-bottom: 60px;
}
.proauto-revizie-form-section .heading-section {
    text-align: left;
    margin-bottom: 30px;
}
.proauto-revizie-form-section .heading-section p {
    margin-left: 0;
    margin-right: 0;
}

@media (max-width: 991px) {
    .proauto-revizie-hero__title {
        font-size: 1.5rem;
    }
    .proauto-revizie-hero__img-wrap {
        margin-top: 32px;
    }
    .proauto-revizie-section {
        padding: 48px 0;
    }
    .proauto-revizie-table-wrap {
        margin: 0 -16px;
        padding: 0 16px;
    }
    .proauto-tarife-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .proauto-tarife-box {
        padding: 18px 14px;
    }
    .proauto-tarife-box__icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    .proauto-tarife-box__label {
        font-size: 12px;
    }
    .proauto-tarife-box__price {
        font-size: 1.25rem;
    }
}

/* Service landing — conținut WYSIWYG din panou */
.proauto-rich-html {
    font-size: 1rem;
    line-height: 1.65;
}
.proauto-rich-html h2:first-child,
.proauto-rich-html h3:first-child {
    margin-top: 0;
}
.proauto-rich-html table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
}
.proauto-rich-html table th,
.proauto-rich-html table td {
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}
body:not(.dark-theme) .proauto-rich-html table th,
body:not(.dark-theme) .proauto-rich-html table td {
    border-color: rgba(0, 0, 0, 0.1);
}

/* ============================================================
   THEME TOGGLE BUTTON — Desktop
   ============================================================ */

.theme-toggle-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
    color: #fff;
    font-size: 18px;
    padding: 0;
    flex-shrink: 0;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Dark mode: mostra soarele (pentru a trece la light) */
.dark-theme .theme-toggle-btn .theme-icon-light {
    display: inline-block;
}
.dark-theme .theme-toggle-btn .theme-icon-dark {
    display: none;
}

/* Light mode: mostra luna (pentru a trece la dark) */
body:not(.dark-theme) .theme-toggle-btn .theme-icon-light {
    display: none;
}
body:not(.dark-theme) .theme-toggle-btn .theme-icon-dark {
    display: inline-block;
}

/* Culoare icon in light mode */
body:not(.dark-theme) .theme-toggle-btn {
    color: #24272C;
}
body:not(.dark-theme) .theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.08);
}

/* ============================================================
   LIGHT THEME OVERRIDES
   ============================================================ */

body:not(.dark-theme) {
    background-color: #f4f6f8;
    color: #24272C;
}

/* Header light — glassmorphism (fundal transparent pe header, sticlă pe bara .header-lower) */
body:not(.dark-theme) .main-header.style2 {
    background-color: transparent;
    box-shadow: none;
}
body:not(.dark-theme) .main-header.style2 .header-lower {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 4px 24px rgba(0, 0, 0, 0.06);
}
/* Sticky light: păstrează sticla + text închis */
body:not(.dark-theme) .main-header.style2 .header-lower.is-fixed.is-small {
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 8px 32px rgba(0, 0, 0, 0.08);
}
body:not(.dark-theme) .main-header.style2 .header-lower.is-fixed.is-small .main-menu .navigation > li > a {
    color: #24272C !important;
}
body:not(.dark-theme) .main-header.style2 .header-lower.is-fixed.is-small .header-account {
    color: #24272C !important;
}
/* style2: template (styles.css) pune #fff pe link-uri — specificitate mai mare ca override-ul generic */
body:not(.dark-theme) .main-header.style2 .main-menu .navigation > li > a {
    color: #24272C !important;
}
body:not(.dark-theme) .main-header.style2 .header-account {
    color: #24272C !important;
}
body:not(.dark-theme) .main-header.style2 .header-account .header-search-icon::after,
body:not(.dark-theme) .main-header.style2 .header-account .header-favorite::after {
    background-color: rgba(0, 0, 0, 0.08) !important;
}
body:not(.dark-theme) .main-header.style2 .header-account .flat-bt-top .sc-button {
    border-color: rgba(36, 39, 44, 0.35) !important;
}
body:not(.dark-theme) .main-header.style2 .header-account .flat-bt-top .sc-button span,
body:not(.dark-theme) .main-header.style2 .header-account .flat-bt-top .sc-button svg {
    color: #24272C !important;
}
/* Icon font (e.g. icon-autodeal-used-car): .sc-button i { color: #fff } in styles.css */
body:not(.dark-theme) .main-header.style2 .header-account .flat-bt-top .sc-button i {
    color: #24272C !important;
}
body:not(.dark-theme) .main-header.style2 .header-account .flat-bt-top .sc-button:hover span,
body:not(.dark-theme) .main-header.style2 .header-account .flat-bt-top .sc-button:hover svg,
body:not(.dark-theme) .main-header.style2 .header-account .flat-bt-top .sc-button:hover i,
body:not(.dark-theme) .main-header.style2 .header-account .flat-bt-top .sc-button.active span,
body:not(.dark-theme) .main-header.style2 .header-account .flat-bt-top .sc-button.active svg,
body:not(.dark-theme) .main-header.style2 .header-account .flat-bt-top .sc-button.active i {
    color: #ffffff !important;
}
body:not(.dark-theme) .main-header.style2 {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}
/* Bară fixă: template .main-header.style2 .is-fixed.is-small { background #24272C !important } */
body:not(.dark-theme) .main-header.style2 .header-lower.is-fixed.is-small {
    background: rgba(255, 255, 255, 0.92) !important;
}

/* Fallback dacă există .main-header fără .style2 */
body:not(.dark-theme) .main-header:not(.style2) {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body:not(.dark-theme) .main-header .navigation > li > a,
body:not(.dark-theme) .main-header .navigation > li > span {
    color: #24272C;
}

body:not(.dark-theme) .main-header .navigation > li > a:hover,
body:not(.dark-theme) .main-header .navigation > li.current > a {
    color: var(--primary, #e32b26);
}

body:not(.dark-theme) .main-header .navigation > li > ul {
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

body:not(.dark-theme) .main-header .navigation > li > ul li a {
    color: #24272C;
}

body:not(.dark-theme) .main-header .navigation > li > ul li a:hover {
    color: var(--primary, #e32b26);
}

/* Search icon light */
body:not(.dark-theme) .header-search-icon {
    color: #24272C;
}

/* Favorites icon light */
body:not(.dark-theme) .header-favorite {
    color: #24272C;
}

/* Search field light */
body:not(.dark-theme) .search-form .search-field {
    background: #f0f2f5;
    color: #24272C;
    border-color: #dde1e7;
}

/* Mobile menu light */
body:not(.dark-theme) .mobile-menu .menu-box {
    background-color: #ffffff;
}

body:not(.dark-theme) .mobile-menu .nav-logo {
    background-color: #ffffff;
}

body:not(.dark-theme) .mobile-menu .navigation li > a {
    color: #24272C;
}

body:not(.dark-theme) .mobile-menu .navigation li.current > a {
    color: var(--primary, #e32b26);
}

body:not(.dark-theme) .mobile-menu .menu-outer,
body:not(.dark-theme) .mobile-menu .button-mobi-phone,
body:not(.dark-theme) .mobile-menu .button-mobi-sell {
    border-color: #e8eaed;
}

body:not(.dark-theme) .mobile-menu .button-mobi-phone .sc-button {
    background-color: #e32b26;
    color: #fff;
}

body:not(.dark-theme) .mobile-menu .button-mobi-phone .sc-button span,
body:not(.dark-theme) .mobile-menu .button-mobi-phone .sc-button i {
    color: #fff !important;
}

/* Cards light */
body:not(.dark-theme) .box-car-list:not(.style-4) {
    background-color: #ffffff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

body:not(.dark-theme) .box-car-list:not(.style-4) .content .days-box {
    background-color: transparent;
}

/* Headings light */
body:not(.dark-theme) h1,
body:not(.dark-theme) h2,
body:not(.dark-theme) h3,
body:not(.dark-theme) h4,
body:not(.dark-theme) h5,
body:not(.dark-theme) h6 {
    color: #24272C;
}

/* Preload light */
body:not(.dark-theme) .preload-container {
    background-color: #f4f6f8;
}
