/* Custom styles for elements not easily handled by Tailwind or for specific overrides */
@import url('scrollbars.css');
@import url('legal-links.css');

/* Global Body Styling */
body {
    font-family: 'Inter', sans-serif;
    color: #1F2937; /* A dark gray for main text */
    padding-top: 54px; /* Adjust this value based on the actual height of your topbar */
}

.close-icon-img {
    width: 20px; /* Adjust as needed */
    height: 20px; /* Adjust as needed */
    vertical-align: middle; /* Helps with alignment if it's next to text */
}

/* === Topbar === */
.topbar {
    background-color: #000000; /* gray900 */
    color: white;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.875rem;
    position: fixed;
    width: 100%;
    top: 0; /* <<< ADD THIS LINE */
    z-index: 101; /* Higher z-index than navbar */
}

.topbar-left img {
    vertical-align: middle;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-right a {
    color: white;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.topbar-right a:hover {
    color: #9CA3AF; /* gray400 */
}

/* General Navbar Styling */
.vehicle-selection-bar {
    background-color: #1F2937; /* gray800 from your config */
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 50;
}

.vehicle-selection-bar .left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vehicle-select-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

#vehicle-select-label {
    color: #fff;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

#vehicle-select-label[hidden] { display: none; }

/* Dropdown styling */
.dropdown {
    position: relative;
}

.dropdown-box {
    display: none;
    position: absolute;
    top: 100%; /* ADD THIS LINE */
    background-color: #1F2937;
    min-width: 280px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 100;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem;
    border-radius: 0.5rem;
    flex-direction: column;
    gap: 1rem;
}

.dropdown:hover .dropdown-box,
.dropdown.active .dropdown-box {
    display: flex;
}

.dropdown-content {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.dropdown-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dropdown-content ul li {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 120px;
}

.dropdown-content ul li a {
    color: white;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease-in-out;
}

.dropdown-content ul li a:hover {
    background-color: #2D3748;
}

.dropdown-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
}

#vehicle-dynamic-area {
    width: 344px; /* Sets a fixed width for the container */
}

#vehicle-dynamic-area select {
    width: 100%;  /* Existing style */
    text-align: center; /* Add this line */
    border-radius: 4px; /* This is equivalent to Tailwind's rounded-md */
    /* To visually center options within the select box, especially on desktop */
    text-align-last: center; /* For some browsers (Firefox might need this for options) */
    height: 30px;
}

/* If you have a specific ID for the select element, e.g., <select id="vehicle-year-select"> */
#vehicle-year-select {
    text-align: center;
    text-align-last: center;
}

/* Mobile specific styles (and hiding desktop elements) */
@media (max-width: 767px) {
    .vehicle-selection-bar {
        flex-wrap: wrap;
        justify-content: center;
    }

      /* On mobile, remove the padding fix as hover is not the primary interaction */
    .dropdown {
        padding-bottom: 0;
    }

    .vehicle-select-group {
        display: flex; /* Ensure it's a flex container */
        flex-direction: row; /* <-- CHANGE THIS: Make items go side-by-side */
        align-items: center; /* Vertically align items */
        justify-content: center; /* Horizontally center items within the group */
        gap: 10px; /* Add space between the label and the dropdown */
        width: 100%;
        margin: 0 auto;
        flex-wrap: wrap; /* <-- IMPORTANT: Allows items to wrap to the next line if they don't fit */
    }

    .vehicle-action-buttons { /* NEW RULE FOR THE WRAPPER */
        display: flex; /* Make it a flex container */
        flex-direction: row; /* Arrange items in a row */
        gap: 10px; /* Add space between the buttons */
        width: 100%; /* Make the wrapper take full width of its parent */
        justify-content: center; /* Center the buttons if they don't fill 100% width */
        align-items: center; /* Align buttons vertically if they had different heights */
        flex-wrap: wrap; /* Allow buttons to wrap to the next line if the screen is too narrow */
        margin-top: 10px; /* Add some space above the buttons if needed */
        box-sizing: border-box; /* Good practice */
    }

    .vehicle-action-buttons button { /* Adjust button styling for side-by-side on mobile */
        /* Remove or override the w-full class from the HTML for mobile here */
        width: calc(50% - 5px); /* Each button takes roughly half width, accounting for gap */
        min-width: 140px; /* Optional: ensures buttons don't become too small on very narrow screens */
        box-sizing: border-box; /* Include padding/border in the width calculation */
        /* You can remove the w-full md:w-auto from the button's class attribute
           in HTML if you want this CSS to fully control the width on mobile.
           Otherwise, w-full will override width: calc(50% - 5px) unless you use !important or make the CSS more specific.
           It's usually cleaner to remove the conflicting Tailwind class from the HTML. */
    }

    .vehicle-selection-bar .left {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 5px;
    }
    
     #vehicle-select-label {
        /* Remove any fixed width that might be too large for side-by-side on mobile */
        width: auto; /* Let it take its content width initially */
        max-width: calc(50% - 5px); /* Allow it to take up to half the width minus half the gap */
        flex-shrink: 1; /* Allow it to shrink if needed */
        flex-grow: 0; /* Prevent it from growing unnecessarily if not needed */
        margin-bottom: 0; /* Remove previous margin for column layout */
        box-sizing: border-box;
    }

    

     #vehicle-dynamic-area select {
        width: 360px; /* Set a fixed width for the select box on mobile */
        max-width: 100%; /* Ensures it doesn't overflow smaller screens */
        box-sizing: border-box; /* Good practice for consistent sizing */
        height: 30px;
    }

    /* Ensure mobile menu button is always visible on all screen sizes to toggle the nav links */
    .topbar-right #mobile-menu-button {
        display: block; /* Always show the hamburger icon */
    }
}


/* Blur Overlay */
.blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s;
}

.blur-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Cart Summary */
#cart-summary {
    position: fixed;
    right: -100%; /* Start off-screen */
    top: 0;
    height: 100%;
    width: 80%;
    background-color: #FFFFFF;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 20px;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

#cart-summary.open {
    right: 0; /* Slide in */
}

/* Header section with title and close button */
    #cart-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 1px solid #f0f0f0;
    }

    #cart-title {
        margin: 0;
        color: #2c3e50;
        font-size: 1.6em;
        font-weight: 600;
    }

    #toggle-cart-btn {
        background: transparent;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #95a5a6;
        transition: color 0.2s ease-in-out;
    }

    #toggle-cart-btn:hover {
        color: #6b7280;
    }

    /* Styling for the cart items container (will be populated by JS) */
    #cart-items {
        flex: 1;
        overflow-y: auto;
        min-height: 50px; /* Ensure some space even when empty */
        margin-bottom: 15px;
        color: #555;
        font-size: 0.95em;
    }

    .cart-item-actions {
        display: flex;
        align-items: center;
        gap: 0.55rem;
        margin-top: 5px;
    }

    #cart-summary .cart-action {
        min-width: 0;
        min-height: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        font: inherit;
        font-weight: 700;
        cursor: pointer;
        transition: color 150ms ease;
    }

    #cart-summary .cart-quantity-minus,
    #cart-summary .remove-btn {
        color: #c62828;
    }

    #cart-summary .cart-quantity-plus {
        color: #16803c;
    }

    #cart-summary .cart-quantity-minus:hover,
    #cart-summary .remove-btn:hover {
        background: transparent;
        color: #a91f1f;
        text-decoration: underline;
    }

    #cart-summary .cart-quantity-plus:hover {
        background: transparent;
        color: #126b32;
    }

    #cart-summary .cart-item-quantity {
        margin: 0 0.2rem;
    }

    /* Styling for the totals section */
    #totals {
        flex-shrink: 0;
        background-color: #f9f9f9;
        border-radius: 5px;
        padding: 15px;
        line-height: 1.8;
        font-size: 1em;
        margin-top: 15px;
    }

    #totals strong {
        color: #2c3e50;
    }

    #subtotal, #tax-amount, #total-amount {
        font-weight: 600;
        color: #e67e22; /* A nice accent color */
    }

    #total-amount {
        font-size: 1.1em;
        color: #27ae60; /* A distinct color for the final total */
    }

    /* Styling for buttons */
    #proceed-to-booking-btn,
    #download-pdf-btn {
        display: block; /* Make buttons stack vertically */
        width: 100%;
        padding: 12px 15px;
        margin-top: 15px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 1em;
        font-weight: 600;
        transition: background-color 0.3s ease, transform 0.1s ease;
    }

    #proceed-to-booking-btn {
        background-color: #3498db;
        color: white;
    }

    #proceed-to-booking-btn:hover {
        background-color: #2980b9;
        transform: translateY(-2px);
    }

    #download-pdf-btn {
        background-color: #9b59b6;
        color: white;
    }

    #download-pdf-btn:hover {
        background-color: #8e44ad;
        transform: translateY(-2px);
    }

/* Slider Section */
.slider-container {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    height: 300px
}

.slides {
    height: 100%;
}

.slide {
    background-size: cover;
    background-position: center;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-text {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Accordion */
.accordion[open] summary .fas {
    transform: rotate(180deg);
}

.accordion-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}
.accordion-content ul li {
    margin-bottom: 0.5rem;
}
.accordion-content p {
    margin-bottom: 1rem;
}

/* Trusted Brands Carousel */
@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

.carousel-track {
    display: flex;
    animation: marquee 200s linear infinite;
    width: max-content;
}

/* Styles for the container of each brand image */
.brand-image-wrapper {
    /* Define the exact box dimensions */
    width: 130px;
    /* These properties mimic the original Tailwind classes */
    flex-shrink: 0; /* Equivalent to flex-shrink-0 */
    display: block; /* Equivalent to flex */
    align-items: center; /* Equivalent to items-center */
    justify-content: center; /* Equivalent to justify-center */
    padding: 0px 8px 0px 8px; /* Equivalent to p-2 (1 unit = 4px, so 2*4=8px) */
    margin: 0 16px; /* Equivalent to mx-4 (4*4=16px) */

    /* Crucial: Hide any overflowing parts of the image */
    overflow: hidden;
}

/* Styles for the images themselves */
.brand-image {
    /* Make the image fill the entire 120x80 container */
    width: 100%;
    height: 100%;

    /* This is the key property:
       - Preserves the aspect ratio of the image.
       - Fills the entire content box (120x80px).
       - Crops the image if its aspect ratio does not match the content box.
    */
    object-fit: contain;
}

.brand-image-wrapper:hover {
    opacity: 0.75;
}

/* Footer */
.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul a {
    display: block;
}

:root {
    --rr-ink: #132238;
    --rr-muted: #617087;
    --rr-blue: #2463eb;
    --rr-blue-dark: #1749b8;
    --rr-line: #e3e9f1;
    --rr-surface: #f5f8fc;
}

* {
    box-sizing: border-box;
}

button:not(#mobile-menu-button):not(#close-mobile-nav):not(#toggle-cart-btn):not(#cart-icon-wrapper):not(#request-service-btn):not(#remove-service-btn):not(.vehicle-text-action):not(.seasonal-scene-control):not(.cart-action):not(.close-button):not([data-rr-x]):not(.manufacturer-dropdown-toggle):not(.manufacturer-option):not(.manufacturer-back-option):not(.rr-vehicle-selector-toggle) {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -2px 0 rgba(15, 35, 65, 0.16);
    transition: box-shadow 160ms ease, filter 160ms ease;
}

button:not(#mobile-menu-button):not(#close-mobile-nav):not(#toggle-cart-btn):not(#cart-icon-wrapper):not(#request-service-btn):not(#remove-service-btn):not(.vehicle-text-action):not(.seasonal-scene-control):not(.cart-action):not(.close-button):not([data-rr-x]):not(.manufacturer-dropdown-toggle):not(.manufacturer-option):not(.manufacturer-back-option):not(.rr-vehicle-selector-toggle):not(:disabled):hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), inset 0 -2px 0 rgba(15, 35, 65, 0.2);
    filter: brightness(1.03);
}

button:not(#mobile-menu-button):not(#close-mobile-nav):not(#toggle-cart-btn):not(#cart-icon-wrapper):not(#request-service-btn):not(#remove-service-btn):not(.vehicle-text-action):not(.seasonal-scene-control):not(.cart-action):not(.close-button):not([data-rr-x]):not(.manufacturer-dropdown-toggle):not(.manufacturer-option):not(.manufacturer-back-option):not(.rr-vehicle-selector-toggle):not(:disabled):active {
    box-shadow: inset 0 2px 4px rgba(15, 35, 65, 0.18);
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--rr-ink);
    background: var(--rr-surface);
    line-height: 1.6;
    padding-top: 68px;
}

.topbar {
    height: 68px;
    padding: 0 clamp(1rem, 4vw, 3.5rem);
    background: rgba(13, 25, 43, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(17, 32, 53, 0.14);
    backdrop-filter: blur(14px);
}

.topbar-left a {
    text-decoration: none;
}

.site-wordmark {
    display: block;
    width: auto;
    max-width: min(220px, 48vw);
    object-fit: contain;
}

.topbar-left span {
    letter-spacing: -0.04em;
}

.topbar-right {
    gap: 0.75rem;
}

.topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: clamp(0.5rem, 2vw, 1.5rem);
}

.topbar-right {
    justify-self: end;
}

.topbar-selected-vehicle {
    display: flex;
    min-width: 0;
    width: min(42vw, 520px);
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: center;
}

.topbar-selected-vehicle #vehicle-id {
    overflow: hidden;
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-right > a,
#cart-icon-wrapper,
#mobile-menu-button {
    display: inline-flex;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 13px;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.topbar-right > a:hover,
#cart-icon-wrapper:hover,
#mobile-menu-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.32);
    transform: translateY(-1px);
}

.topbar-right > a.topbar-account-link,
.topbar-right > a.topbar-account-link:hover,
.topbar-right > a.topbar-icon-link,
.topbar-right > a.topbar-icon-link:hover,
.topbar-right > a.topbar-icon-link:focus,
.topbar-right > a.topbar-icon-link:active {
    border: 0;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    transform: none;
}

#mobile-menu-button {
    padding: 0 0.75rem;
    border-color: transparent;
    background: transparent;
}

#mobile-nav-overlay {
    position: fixed;
    z-index: 300;
    inset: 0;
    background: rgba(13, 25, 43, 0.98);
    backdrop-filter: blur(16px);
}

#mobile-nav-overlay > div > a,
#mobile-nav-overlay .services-toggle {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

#mobile-nav-overlay a:hover {
    color: #9fc0ff;
}

.vehicle-selection-bar {
    position: sticky;
    top: 68px;
    justify-content: center;
    padding: 1rem clamp(1rem, 4vw, 3.5rem);
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--rr-line);
    box-shadow: 0 8px 24px rgba(17, 32, 53, 0.06);
    backdrop-filter: blur(12px);
}

.vehicle-selection-bar .left,
.vehicle-select-group {
    width: min(100%, 1160px);
    justify-content: space-between;
    gap: 1rem;
}

#vehicle-select-label {
    color: var(--rr-ink);
    font-size: 0.94rem;
    font-weight: 700;
    gap: 0.65rem;
}

#vehicle-select-label .vehicle-select-icon {
    font-size: 1.3rem;
    transform: scaleX(-1);
}

#vehicle-dynamic-area {
    width: min(340px, 36vw);
}

#vehicle-dynamic-area select,
#vehicle-year-select {
    min-height: 44px;
    height: 44px;
    border: 1px solid #d5deea;
    border-radius: 12px;
    background: #f8faff;
    color: var(--rr-ink);
    font: inherit;
    text-align: left;
    text-align-last: left;
    padding: 0 0.9rem;
}

#vehicle-dynamic-area select.vehicle-year-select,
#vehicle-dynamic-area select#vehicle-year-select,
#vehicle-dynamic-area select.vehicle-flow-select.vehicle-model-select,
#vehicle-dynamic-area select.vehicle-flow-select.vehicle-service-select,
#vehicle-dynamic-area select.vehicle-flow-select.vehicle-engine-select {
    text-align: center;
    text-align-last: center;
}

#vehicle-dynamic-area select.vehicle-year-select option:not(.dropdown-placeholder-option),
#vehicle-dynamic-area select#vehicle-year-select option:not(.dropdown-placeholder-option) {
    text-align: left;
}

#vehicle-dynamic-area select.vehicle-model-select option:not(.dropdown-placeholder-option) {
    text-align: left;
}

#vehicle-dynamic-area select.vehicle-service-select {
    text-align: center;
    text-align-last: center;
}

#vehicle-dynamic-area select.vehicle-service-select option:not(.dropdown-placeholder-option) {
    text-align: left;
}

#vehicle-dynamic-area select.vehicle-engine-select {
    text-align: center;
    text-align-last: center;
}

#vehicle-dynamic-area select.vehicle-engine-select option:not(.dropdown-placeholder-option) {
    text-align: left;
}

#vehicle-dynamic-area .vehicle-select-with-icon > select {
    padding-right: 2.75rem;
    padding-left: 2.75rem;
}

#vehicle-dynamic-area select:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(36, 99, 235, 0.16);
    border-color: var(--rr-blue);
}

.vehicle-action-buttons {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.vehicle-action-buttons button {
    min-width: 0;
    min-height: 44px;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #000;
    box-shadow: none;
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}

.vehicle-action-buttons button:not([hidden]) {
    display: inline-flex;
}

.vehicle-action-buttons button:hover {
    background: transparent !important;
    color: #000;
    text-decoration: none;
}

.vehicle-action-buttons button i {
    font-size: 0.875rem;
    line-height: 1;
}

#confirm-garage-btn i {
    color: #6b7280;
}

#change-vehicle-btn i {
    color: #16803c;
}

.vehicle-action-buttons button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.vehicle-dropdown-actions {
    display: flex;
    flex: 1;
    min-width: 0;
    align-items: center;
    gap: 0.5rem;
}

.vehicle-dropdown-actions #vehicle-dynamic-area {
    flex: 1 1 180px;
    min-width: 0;
    max-width: 340px;
}

.selected-service-actions {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.8rem;
    margin-left: 20px;
}

.selected-service-actions:has(#request-service-btn[hidden]) {
    display: none;
}

#request-service-btn[hidden],
#remove-service-btn[hidden] {
    display: none !important;
}

#request-service-btn:not([hidden]),
#remove-service-btn:not([hidden]) {
    display: inline-flex;
    flex: 0 0 auto;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0.65rem 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #000;
    box-shadow: none;
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: color 160ms ease;
}

#request-service-btn:not([hidden]):hover,
#remove-service-btn:not([hidden]):hover {
    background: transparent !important;
    color: #000;
    text-decoration: none;
}

#request-service-btn i {
    color: #16803c;
}

#remove-service-btn i {
    color: #c62828;
}

#request-service-btn:hover i {
    color: #126b32;
}

#remove-service-btn:hover i {
    color: #a91f1f;
}

#request-service-btn:focus-visible,
#remove-service-btn:focus-visible,
#toggle-cart-btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.vehicle-dropdown-control {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.65rem;
}

.vehicle-flow-select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 0.9rem;
    border: 1px solid #d5deea;
    border-radius: 12px;
    background: #f8faff;
    color: var(--rr-ink);
    font: inherit;
    text-align: left;
    text-align-last: left;
}

.vehicle-flow-select .dropdown-back-option {
    color: var(--rr-blue);
    font-weight: 800;
    text-decoration: none;
}

.vehicle-flow-back,
.manufacturer-back-option {
    color: var(--rr-blue);
    font-weight: 800;
    text-decoration: none;
}

.vehicle-flow-back {
    padding: 0.35rem 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.vehicle-flow-back:hover,
.manufacturer-back-option:hover {
    color: var(--rr-blue-dark);
    text-decoration: none;
}

.vehicle-flow-select option {
    text-align: left;
}

.vehicle-flow-select.vehicle-model-select {
    text-align: center;
    text-align-last: center;
}

.vehicle-flow-select.vehicle-model-select option:not(.dropdown-placeholder-option) {
    text-align: left;
}

.vehicle-select-with-icon {
    position: relative;
    width: 100%;
    min-width: 0;
}

.vehicle-select-with-icon > i {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 0.95rem;
    color: var(--rr-blue);
    font-size: 1rem;
    pointer-events: none;
    transform: translateY(-50%);
}

.manufacturer-flow-control {
    position: relative;
    z-index: 55;
}

.manufacturer-picker {
    position: relative;
    flex: 1;
    min-width: 0;
}

.manufacturer-dropdown-toggle {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0 0.85rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--rr-ink);
    font: inherit;
    text-align: center;
    box-shadow: none;
    cursor: pointer;
}

.manufacturer-dropdown-toggle > i {
    position: absolute;
    right: 0.85rem;
    color: var(--rr-blue);
    font-size: 0.82rem;
}

.manufacturer-choice,
.manufacturer-option {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.7rem;
}

.manufacturer-choice {
    position: relative;
    display: block;
    flex: 1;
    padding: 0 2rem;
    text-align: center;
}

.manufacturer-choice > img,
.manufacturer-choice > i {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.manufacturer-choice > span {
    display: block;
    text-align: center;
}

.manufacturer-choice > img,
.manufacturer-choice > i,
.manufacturer-option > img,
.manufacturer-option > i {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    object-fit: contain;
    color: var(--rr-blue);
}

.manufacturer-choice > span,
.manufacturer-option > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.manufacturer-dropdown-options {
    position: absolute;
    z-index: 80;
    top: calc(100% + 0.45rem);
    right: 0;
    left: 0;
    display: grid;
    max-height: min(65vh, 440px);
    overflow-y: auto;
    padding: 0.4rem;
    border: 1px solid var(--rr-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(20, 42, 72, 0.18);
}

.manufacturer-dropdown-options[hidden] {
    display: none;
}

.manufacturer-option {
    width: 100%;
    min-height: 46px;
    padding: 0.35rem 0.55rem;
    border: 0;
    border-radius: 9px;
    background: #fff;
    color: var(--rr-ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.manufacturer-option:hover,
.manufacturer-option:focus-visible {
    outline: none;
    background: #eef4ff;
}

.manufacturer-back-option {
    display: flex;
    align-items: center;
    min-height: 0;
    margin: 0 0 0.25rem;
    padding: 0.35rem 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--rr-blue);
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    text-align: left;
    box-shadow: none;
    cursor: pointer;
}

.manufacturer-back-option:hover,
.manufacturer-back-option:focus-visible {
    outline: none;
    background: transparent;
    color: var(--rr-blue-dark);
    text-decoration: none;
}

.manufacturer-back-option span {
    padding: 0;
    text-decoration: none;
}

.topbar-right #cart-icon-wrapper {
    position: relative;
    cursor: pointer;
    padding: 0;
    border: 0;
    background: transparent;
}

#cart-icon-wrapper,
#cart-icon-wrapper:hover,
#cart-icon-wrapper:active {
    border: 0;
    background: transparent;
    box-shadow: none;
    filter: none;
    transform: none;
}

.cart-count-badge {
    position: absolute;
    top: -3px;
    right: 1px;
    display: none;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

#mobile-menu-button,
.topbar-right #cart-icon-wrapper {
    color: #fff;
}

#mobile-nav-overlay {
    overflow-y: auto;
    background: rgba(10, 20, 38, 0.97);
    backdrop-filter: blur(16px);
}

#mobile-nav-overlay > div {
    width: min(100%, 520px);
    align-items: stretch;
}

#mobile-nav-overlay .mobile-nav-link,
#mobile-nav-overlay .services-toggle {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #fff;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
}

#mobile-nav-overlay .services-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
}

#mobile-nav-overlay .services-toggle .nav-chevron {
    margin-left: 0.35rem;
    font-size: 0.85em;
}

#mobile-nav-overlay .dropdown-box {
    position: static;
    display: flex;
    width: 100%;
    min-width: 0;
    transform: none;
    background: transparent;
    box-shadow: none;
}

#mobile-nav-overlay .dropdown-box.hidden {
    display: none;
}

#mobile-nav-overlay .dropdown-box a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    color: #dce6f5;
    font-size: 1rem;
    text-decoration: none;
    transform: translateY(-1px);
}

.slider-container {
    position: relative;
    width: min(1200px, calc(100% - 2.5rem));
    height: clamp(390px, 49vw, 560px);
    margin: 1.5rem auto 2rem !important;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 28px;
    background: #192a40;
    box-shadow: 0 24px 60px rgba(17, 32, 53, 0.2);
}

.slides,
.slide {
    height: 100%;
}

.slide {
    position: relative;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1.5rem;
    background-position: center 44%;
}

.slide::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 20, 37, 0.84) 0%, rgba(8, 20, 37, 0.52) 48%, rgba(8, 20, 37, 0.08) 100%),
        linear-gradient(0deg, rgba(8, 20, 37, 0.38), transparent 55%);
    content: "";
}

.hero-copy {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: clamp(1.5rem, 7vw, 5.5rem);
    width: min(620px, 62%);
    color: #fff;
    transform: translateY(-50%);
    pointer-events: none;
}

.hero-eyebrow {
    margin: 0 0 1rem;
    color: #c4d8ff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0;
    font-family: 'Arial Black', Arial, Helvetica, sans-serif;
    font-size: clamp(3rem, 7vw, 5.7rem);
    font-weight: 900;
    letter-spacing: -0.07em;
    line-height: 0.98;
}

.hero-copy h1 span {
    color: #9fc0ff;
}

.hero-description {
    max-width: 510px;
    margin: 1.4rem 0 1.5rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 48px;
    padding: 0 1.15rem;
    border-radius: 13px;
    background: #fff;
    color: var(--rr-ink);
    font-size: 0.94rem;
    font-weight: 800;
    text-decoration: none;
    pointer-events: auto;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.hero-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
}

.slide-text {
    position: relative;
    z-index: 1;
    max-width: 310px;
    margin: 0 0 0 auto;
    padding: 0.8rem 1rem !important;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 14px !important;
    background: rgba(12, 25, 43, 0.62) !important;
    color: #fff;
    font-size: clamp(0.86rem, 1.2vw, 1rem) !important;
    font-weight: 600 !important;
    line-height: 1.45;
    text-align: left;
    text-shadow: none;
    backdrop-filter: blur(12px);
}

.timeline-section {
    padding: clamp(3rem, 7vw, 5.5rem) 1.25rem;
    background: #f2f6fb;
}

.timeline-section > h2,
#service-coverage h2 {
    color: var(--rr-ink);
    font-size: clamp(1.9rem, 3.5vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -0.045em;
}

.timeline-container {
    gap: 1rem !important;
}

.step {
    min-height: 265px;
    padding: 1.5rem !important;
    border: 1px solid var(--rr-line);
    border-radius: 20px !important;
    box-shadow: 0 10px 28px rgba(20, 42, 72, 0.05) !important;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(20, 42, 72, 0.1) !important;
}

.step lottie-player {
    width: 112px !important;
    height: 112px !important;
}

.step h3 {
    font-size: 1rem !important;
    line-height: 1.4;
}

#service-coverage {
    padding: clamp(3.5rem, 7vw, 6rem) 1.25rem;
}

#service-coverage article {
    border-color: var(--rr-line);
    border-radius: 20px !important;
    background: #fff;
    box-shadow: 0 12px 32px rgba(20, 42, 72, 0.06) !important;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

#service-coverage article:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 42px rgba(20, 42, 72, 0.1) !important;
}

#service-coverage article h3 {
    letter-spacing: -0.025em;
}

#maintenance-header {
    padding: clamp(2rem, 5vw, 3.5rem) 1rem !important;
    background: var(--rr-ink) !important;
}

.accordion {
    overflow: hidden;
    border: 1px solid var(--rr-line);
    box-shadow: 0 8px 24px rgba(20, 42, 72, 0.05) !important;
}

.accordion summary {
    background: #fff !important;
}

.footer-section {
    color: rgba(255, 255, 255, 0.78);
}

.footer-section a {
    text-decoration: none;
}

.footer-logo {
    width: min(100%, 310px);
    height: auto;
}

@media (min-width: 768px) {
    .footer .footer-container {
        grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    }
}

.social-icons > a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 1.15rem;
    transition: background-color 160ms ease, transform 160ms ease;
}

.social-icons > a:hover {
    transform: translateY(-2px);
    background: transparent;
    border: 0;
    box-shadow: none;
}

#return-to-top {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: var(--rr-blue);
}

#cart-summary {
    width: min(460px, 100%);
    padding: 1.5rem;
    background: #fff;
    box-shadow: -18px 0 55px rgba(15, 30, 50, 0.18);
}

#cart-title {
    color: var(--rr-ink);
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

#totals {
    border: 1px solid var(--rr-line);
    border-radius: 14px;
    background: #f5f8fc;
}

#proceed-to-booking-btn,
#download-pdf-btn {
    min-height: 48px;
    border-radius: 12px;
}

#proceed-to-booking-btn {
    background: var(--rr-blue);
}

#proceed-to-booking-btn:hover {
    background: var(--rr-blue-dark);
}

#download-pdf-btn {
    background: #eaf0fa;
    color: var(--rr-ink);
}

#download-pdf-btn:hover {
    background: #dce7f8;
}

.guest-request-modal[hidden] {
    display: none;
}

.guest-request-modal {
    position: fixed;
    z-index: 1200;
    inset: 0;
    display: grid;
    overflow-y: auto;
    place-items: center;
    padding: 1rem;
    background: rgba(10, 20, 38, 0.72);
    backdrop-filter: blur(8px);
}

.guest-request-dialog {
    position: relative;
    width: min(100%, 680px);
    max-height: min(90vh, 900px);
    overflow-y: auto;
    padding: clamp(1.25rem, 4vw, 2rem);
    border: 1px solid var(--rr-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(10, 20, 38, 0.28);
}

.guest-request-dialog h2 {
    margin: 0.25rem 2.5rem 0.5rem 0;
    color: var(--rr-ink);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.guest-request-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--rr-line);
    border-radius: 12px;
    background: #fff;
    color: var(--rr-ink);
}

.guest-request-vehicle {
    margin: 0;
    color: var(--rr-blue-dark);
    font-weight: 700;
}

.guest-request-disclaimer,
.guest-request-safety {
    color: var(--rr-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.guest-request-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.guest-request-fields label {
    display: grid;
    gap: 0.35rem;
    color: var(--rr-ink);
    font-size: 0.88rem;
    font-weight: 700;
}

.guest-request-fields input,
.guest-request-fields textarea {
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 0.75rem;
    border: 1px solid #d5deea;
    border-radius: 10px;
    font: inherit;
    font-weight: 400;
}

.guest-request-fields textarea {
    resize: vertical;
}

.guest-request-wide {
    grid-column: 1 / -1;
}

.guest-request-safety {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 1rem 0;
}

.guest-request-safety i {
    margin-top: 0.2rem;
    color: var(--rr-blue);
}

.guest-request-submit {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border: 0;
    border-radius: 12px;
    background: var(--rr-blue);
    color: #fff;
    font-weight: 800;
}

.guest-request-submit:hover {
    background: var(--rr-blue-dark);
}

.guest-request-submit:disabled {
    cursor: wait;
    opacity: 0.65;
}

input,
select,
textarea {
    border-radius: 10px;
}

.bg-white.p-8.rounded-lg.w-full.max-w-md {
    border: 1px solid var(--rr-line);
    border-radius: 22px !important;
    box-shadow: 0 22px 60px rgba(20, 42, 72, 0.1);
}

.social-button {
    min-height: 46px;
    border-radius: 11px;
}

@media (max-width: 767px) {
    body {
        padding-top: 60px;
    }

    .topbar {
        height: 60px;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 0.35rem;
        padding: 0 0.6rem;
    }

    .site-wordmark {
        max-width: min(145px, 36vw);
    }

    .topbar-right {
        gap: 0.35rem;
    }

    .topbar-right > a,
    #cart-icon-wrapper,
    #mobile-menu-button {
        min-width: 34px;
        min-height: 36px;
    }

    .topbar-selected-vehicle {
        gap: 0.35rem;
        font-size: 0.68rem;
    }

    .guest-request-fields {
        grid-template-columns: 1fr;
    }

    .guest-request-wide {
        grid-column: auto;
    }

    .vehicle-selection-bar {
        top: 60px;
        padding: 0.85rem 1rem;
    }

    .vehicle-selection-bar .left,
    .vehicle-select-group {
        align-items: stretch;
        flex-direction: column;
        gap: 0.65rem;
    }

    .vehicle-select-group {
        width: 100%;
    }

    #vehicle-select-label {
        max-width: none;
        justify-content: center;
    }

    #vehicle-dynamic-area,
    #vehicle-dynamic-area select,
    #vehicle-year-select {
        width: 100%;
        max-width: none;
    }

    .vehicle-dropdown-actions {
        flex: auto;
        width: 100%;
    }

    .vehicle-dropdown-actions #vehicle-dynamic-area {
        max-width: none;
    }

    .vehicle-action-buttons {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
    }

    .vehicle-action-buttons button {
        width: auto !important;
    }

    .slider-container {
        width: calc(100% - 1.25rem);
        height: 430px;
        margin: 0.75rem auto 1.25rem !important;
        border-radius: 20px;
    }

    .slide {
        padding: 0.75rem;
        align-items: flex-end;
    }

    .slide::before {
        background: linear-gradient(0deg, rgba(8, 20, 37, 0.82), rgba(8, 20, 37, 0.1) 78%);
    }

    .hero-copy {
        top: 42%;
        left: 1.25rem;
        width: calc(100% - 2.5rem);
        transform: translateY(-50%);
    }

    .hero-copy h1 {
        font-size: clamp(3rem, 13vw, 4.2rem);
    }

    .hero-description {
        margin: 1rem 0 1.15rem;
        font-size: 0.96rem;
    }

    .slide-text {
        display: none;
    }

    .step {
        min-height: 0;
    }
}

@media (max-width: 420px) {
    .topbar-right {
        gap: 0.4rem;
    }

    .topbar-right > a,
    #cart-icon-wrapper,
    #mobile-menu-button {
        min-width: 38px;
        min-height: 38px;
    }

    .hero-eyebrow {
        font-size: 0.68rem;
        letter-spacing: 0.12em;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    pointer-events: auto;
}

.hero-secondary-link {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
    pointer-events: auto;
    cursor: pointer;
    transition: color 160ms ease, background-color 160ms ease;
}

.hero-secondary-link:hover {
    color: #c4d8ff;
    background: transparent;
}

.hero-link:focus-visible,
.hero-secondary-link:focus-visible {
    outline: 3px solid #9fc0ff;
    outline-offset: 4px;
}

#vehicle-selection { scroll-margin-top: 76px; }
#browse-services { scroll-margin-top: 180px; }

.service-menu-section {
    padding: clamp(3.5rem, 7vw, 6rem) 1.25rem;
    background:
        radial-gradient(ellipse at 10% 0%, rgba(74, 129, 238, 0.09), transparent 32rem),
        #f5f8fc;
}

.service-menu-inner {
    width: min(1160px, 100%);
    margin: 0 auto;
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 2.25rem;
    text-align: center;
}

.section-eyebrow {
    margin: 0 0 0.55rem;
    color: var(--rr-blue);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0;
    color: var(--rr-ink);
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.12;
}

.section-heading > p:last-child {
    margin: 1rem auto 0;
    color: var(--rr-muted);
    font-size: 1.04rem;
}

.service-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.service-tile {
    min-height: 190px;
    padding: 1.25rem;
    border: 1px solid var(--rr-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 22px rgba(20, 42, 72, 0.045);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.service-tile:hover {
    transform: translateY(-4px);
    border-color: #c6d6f2;
    box-shadow: 0 16px 34px rgba(20, 42, 72, 0.1);
}

.service-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce8ff;
    border-radius: 13px;
    background: linear-gradient(145deg, #eef4ff, #e2ecff);
    color: var(--rr-blue);
    font-size: 1.05rem;
}

.service-tile h3 {
    margin: 1rem 0 0.35rem;
    color: var(--rr-ink);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.service-tile p {
    margin: 0;
    color: var(--rr-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.service-menu-note {
    display: flex;
    max-width: 860px;
    align-items: flex-start;
    gap: 0.85rem;
    margin: 1.5rem auto;
    padding: 1rem 1.15rem;
    border: 1px solid #dce8ff;
    border-radius: 14px;
    background: #eef4ff;
    color: #385173;
}

.service-menu-note i {
    margin-top: 0.25rem;
    color: var(--rr-blue);
}

.service-menu-note p {
    margin: 0;
    font-size: 0.9rem;
}

.service-availability-note {
    max-width: 860px;
    margin: 0 auto 1.25rem;
    color: var(--rr-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    text-align: center;
}

.service-menu-cta {
    display: flex;
    width: fit-content;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin: 0 auto;
    padding: 0 1.1rem;
    border: 1px solid #c8d8f5;
    border-radius: 12px;
    background: #fff;
    color: var(--rr-blue-dark);
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.service-menu-cta:hover {
    transform: translateY(-1px);
    border-color: var(--rr-blue);
    background: #f7faff;
}

#mobile-nav-overlay > div > a > i,
#mobile-nav-overlay .services-toggle > i {
    width: 1.5rem;
    margin-right: 0.45rem;
    text-align: center;
}

#mobile-nav-overlay .dropdown-box a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
}

#mobile-nav-overlay .dropdown-box a i {
    width: 1.5rem;
    color: #a9c5fa;
    text-align: center;
}

.accordion summary .section-heading-icon {
    flex: 0 0 1.4rem;
    margin-right: 0.75rem;
    color: var(--rr-blue);
    font-size: 1rem;
    text-align: center;
}

#cart-summary button i {
    margin-right: 0.45rem;
}

#cart-summary #toggle-cart-btn i {
    display: inline-flex;
    width: 1em;
    height: 1em;
    align-items: center;
    justify-content: center;
    margin: 0;
    line-height: 1;
    transform-origin: center;
}

body.auth-page {
    padding-top: 68px;
}

body.auth-page .topbar.auth-topbar {
    display: flex;
    height: 68px;
    justify-content: space-between;
    padding: 0 clamp(1rem, 4vw, 3.5rem);
}

body.auth-page .auth-topbar .topbar-left {
    flex: 0 1 auto;
}

body.auth-page #mobile-menu-button {
    display: inline-flex;
}

.account-benefits {
    margin: 1.25rem 0;
    padding: 1rem;
    border: 1px solid var(--rr-line);
    border-radius: 14px;
    background: #f5f8fc;
}

.account-benefits h3 {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    color: var(--rr-ink);
    font-size: 1rem;
    font-weight: 800;
}

.account-benefits h3 i,
.account-benefits li i {
    color: var(--rr-blue);
}

.account-benefits p {
    margin: 0.55rem 0 0.75rem;
    color: #536174;
    font-size: 0.88rem;
    line-height: 1.5;
}

.account-benefits ul {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    color: #34445a;
    font-size: 0.84rem;
    list-style: none;
}

.account-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}

.account-benefits li i {
    width: 1rem;
    margin-top: 0.2rem;
    text-align: center;
}

.account-benefits-cta {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.9rem;
    border-radius: 10px;
    background: var(--rr-blue);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.account-benefits-cta:hover {
    background: var(--rr-blue-dark);
}

#mobile-nav-overlay {
    position: fixed;
    z-index: 1000;
    inset: 0 0 0 auto;
    display: flex;
    width: min(460px, 100%);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    overflow-y: auto;
    padding: 1.5rem;
    border: 0;
    background: #fff;
    box-shadow: -18px 0 55px rgba(15, 30, 50, 0.18);
    backdrop-filter: none;
    visibility: hidden;
    transition: right 0.3s ease-in-out, visibility 0s linear 0.3s;
    right: -100%;
}

#mobile-nav-overlay.open {
    right: 0;
    visibility: visible;
    transition: right 0.3s ease-in-out;
}

#mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #f0f0f0;
}

#mobile-nav-title {
    margin: 0;
    color: var(--rr-ink);
    font-size: 1.35rem;
    font-weight: 700;
}

#close-mobile-nav,
#toggle-cart-btn {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #95a5a6;
    font-size: 1.45rem;
    cursor: pointer;
}

#close-mobile-nav,
#toggle-cart-btn,
#toggle-cart-btn:hover,
#toggle-cart-btn:focus,
#toggle-cart-btn:active,
#mobile-menu-button,
#mobile-menu-button:hover,
#mobile-menu-button:focus,
#mobile-menu-button[aria-expanded="true"] {
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}

#close-mobile-nav i,
#toggle-cart-btn i,
#mobile-menu-button i {
    transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

#close-mobile-nav:hover,
#toggle-cart-btn:hover {
    background: transparent;
    color: #e74c3c;
}

#close-mobile-nav:hover i,
#toggle-cart-btn:hover i {
    color: #e74c3c;
    transform: rotate(90deg);
}

#mobile-menu-button[aria-expanded="true"] {
    color: #e74c3c;
}

#mobile-nav-overlay .mobile-nav-links {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
}

#mobile-nav-overlay .mobile-nav-link,
#mobile-nav-overlay .services-toggle {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--rr-ink);
    font-size: 1rem;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
}

#mobile-nav-overlay .services-toggle {
    cursor: pointer;
}

#mobile-nav-overlay .services-toggle .nav-chevron {
    margin-left: auto;
}

#mobile-nav-overlay .dropdown-box {
    position: static;
    display: flex;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.5rem 0.25rem 0;
    transform: none;
    background: transparent;
    box-shadow: none;
}

#mobile-nav-overlay .dropdown-box.hidden {
    display: none;
}

#mobile-nav-overlay .dropdown-box a {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem 0.9rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--rr-ink);
    font-size: 0.95rem;
    text-decoration: none;
}

#mobile-nav-overlay .dropdown-box a:hover,
#mobile-nav-overlay .mobile-nav-link:hover,
#mobile-nav-overlay .services-toggle:hover {
    background: transparent;
    color: var(--rr-blue-dark);
}

#mobile-nav-overlay .mobile-nav-link > i,
#mobile-nav-overlay .services-toggle > i,
#mobile-nav-overlay .dropdown-box a > i {
    width: 1.35rem;
    margin: 0;
    color: var(--rr-blue);
    text-align: center;
}

#vehicle-year-select,
#vehicle-select-label {
    scroll-margin-top: 148px;
}

.scroll-reveal-enabled .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    will-change: opacity, transform;
}

.scroll-reveal-enabled .scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    animation: scroll-reveal-enter 650ms ease both;
}

@keyframes scroll-reveal-enter {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reveal-enabled .service-menu-grid .service-tile:nth-child(2),
.scroll-reveal-enabled .service-coverage-grid article:nth-child(2) {
    transition-delay: 90ms;
}

.scroll-reveal-enabled .service-menu-grid .service-tile:nth-child(3),
.scroll-reveal-enabled .service-coverage-grid article:nth-child(3) {
    transition-delay: 180ms;
}

.seasonal-offer[hidden] {
    display: none;
}

.seasonal-offer {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
    align-items: center;
    width: min(1160px, calc(100% - 2rem));
    min-height: 260px;
    margin: 2.25rem auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    background:
        radial-gradient(circle at 82% 20%, rgba(255, 213, 111, 0.4), transparent 15rem),
        linear-gradient(115deg, #713d21 0%, #b85625 47%, #e2933d 100%);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -3px 0 rgba(70, 35, 16, 0.2);
}

.seasonal-offer::after {
    position: absolute;
    pointer-events: none;
    right: -3rem;
    bottom: -8rem;
    width: 24rem;
    height: 24rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    content: "";
    box-shadow: 0 0 0 2rem rgba(255, 255, 255, 0.06), 0 0 0 4rem rgba(255, 255, 255, 0.04);
}

.seasonal-offer-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: clamp(1.5rem, 5vw, 3.25rem);
}

.seasonal-svg-definitions {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

.fall-leaf svg,
.seasonal-leaf svg,
.seasonal-harvest-leaf svg {
    display: block;
    width: 1em;
    height: 1.1em;
    overflow: visible;
}

.seasonal-offer-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.75rem;
    color: #ffdf9c;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.seasonal-offer-content h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.05;
}

.seasonal-offer-content > p:not(.seasonal-offer-eyebrow) {
    max-width: 600px;
    margin: 0.85rem 0 1.2rem;
    color: rgba(255, 255, 255, 0.92);
}

.seasonal-offer-cta {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    background: #fff;
    color: #713d21;
    font-weight: 800;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -2px 0 rgba(70, 35, 16, 0.15);
}

.seasonal-offer-content small {
    display: block;
    margin-top: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
}

.fall-season-active {
    position: relative;
    isolation: isolate;
}

.fall-leaf-background {
    position: fixed;
    z-index: -1;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.fall-leaf-background[hidden] {
    display: none;
}

.fall-leaf {
    position: absolute;
    top: -3rem;
    color: #e88224;
    font-size: 1.8rem;
    animation: background-leaf-fall 16s linear infinite;
}

.fall-leaf-one { left: 7%; animation-delay: -12s; }
.fall-leaf-two { left: 19%; color: #e8b32b; font-size: 1.25rem; animation-delay: -4s; animation-duration: 19s; }
.fall-leaf-three { left: 34%; color: #dc6a21; font-size: 1.5rem; animation-delay: -9s; animation-duration: 17s; }
.fall-leaf-four { left: 49%; color: #f0c343; animation-delay: -15s; animation-duration: 21s; }
.fall-leaf-five { left: 63%; color: #ec922b; font-size: 1.4rem; animation-delay: -7s; animation-duration: 18s; }
.fall-leaf-six { left: 76%; color: #efb928; font-size: 1.65rem; animation-delay: -2s; animation-duration: 20s; }
.fall-leaf-seven { left: 88%; color: #d97823; animation-delay: -11s; animation-duration: 17s; }
.fall-leaf-eight { left: 96%; color: #edc03a; font-size: 1.2rem; animation-delay: -6s; animation-duration: 22s; }

.seasonal-story {
    position: relative;
    z-index: 1;
    min-width: 0;
    margin: 1.5rem 1.75rem 1.5rem 0;
}

.seasonal-stage {
    position: relative;
    height: 242px;
    overflow: hidden;
    border: 1px solid rgba(255, 235, 194, 0.35);
    border-radius: 90px 90px 20px 20px;
    background: #f2b45e;
    isolation: isolate;
}

.seasonal-scene {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0;
    background: linear-gradient(#e8a14f, #ffdfa0 75%);
    transition: opacity 850ms ease;
}

.seasonal-scene.is-active {
    z-index: 1;
    opacity: 1;
}

.seasonal-scene > span {
    position: absolute;
    display: block;
}

.seasonal-scene-caption {
    right: 0;
    bottom: 0;
    left: 0;
    padding: 8px 4px;
    background: rgba(66, 36, 20, 0.55);
    color: #fff6df;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}

.seasonal-scene-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0.4rem;
}

.seasonal-scene-controls[hidden] { display: none; }

.seasonal-offer .seasonal-scene-control {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff1d1;
    box-shadow: none;
    cursor: pointer;
}

.seasonal-scene-dot span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.45;
    transition: opacity 200ms ease, transform 200ms ease;
}

.seasonal-scene-dot[aria-pressed="true"] span { opacity: 1; transform: scale(1.4); }
.seasonal-scene-control:hover { color: #fff; }
.seasonal-scene-control:focus-visible { outline: 2px solid #fff1d1; outline-offset: 0; }
.seasonal-scene-playback { margin-left: 0.5rem; font-size: 0.8rem; }

.seasonal-offer .seasonal-scene:not(.is-active) *,
.seasonal-offer .seasonal-scene:not(.is-active) *::after,
.seasonal-offer.is-animation-paused *,
.seasonal-offer.is-animation-paused *::after {
    animation-play-state: paused;
}

@keyframes background-leaf-fall {
    0% {
        opacity: 0;
        transform: translate3d(0, -2rem, 0) rotate(-30deg);
    }

    12% { opacity: 0.48; }
    28% { transform: translate3d(2.5rem, 25vh, 0) rotate(55deg) rotateY(30deg); }
    50% { transform: translate3d(-1rem, 50vh, 0) rotate(155deg) rotateY(-35deg); }
    74% { transform: translate3d(3rem, 76vh, 0) rotate(235deg) rotateY(25deg); }
    88% { opacity: 0.42; }

    100% {
        opacity: 0;
        transform: translate3d(-1.5rem, 105vh, 0) rotate(340deg);
    }
}

.seasonal-leaf {
    position: absolute;
    z-index: 0;
    top: -3rem;
    color: #f3c34e;
    font-size: 2rem;
    pointer-events: none;
    animation: seasonal-leaf-fall 8s linear infinite;
}

.seasonal-leaf-one {
    left: 58%;
    animation-delay: -1s;
}

.seasonal-leaf-two {
    left: 70%;
    color: #ee9b32;
    font-size: 1.4rem;
    animation-delay: -5s;
    animation-duration: 10s;
}

.seasonal-leaf-three {
    left: 82%;
    color: #e37b28;
    font-size: 2.3rem;
    animation-delay: -3s;
    animation-duration: 9s;
}

.seasonal-leaf-four {
    left: 91%;
    font-size: 1.2rem;
    animation-delay: -7s;
    animation-duration: 11s;
}

.seasonal-leaf-five {
    left: 64%;
    color: #e9ae35;
    font-size: 1.7rem;
    animation-delay: -8s;
    animation-duration: 12s;
}

@keyframes seasonal-leaf-fall {
    0% {
        opacity: 0;
        transform: translate3d(0, -1rem, 0) rotate(-35deg);
    }

    12% {
        opacity: 1;
    }

    50% {
        transform: translate3d(1.5rem, 8rem, 0) rotate(150deg);
    }

    88% {
        opacity: 0.9;
    }

    100% {
        opacity: 0;
        transform: translate3d(-1rem, 18rem, 0) rotate(320deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .seasonal-scene,
    .seasonal-scene * {
        animation: none;
        transition: none;
    }

    .scroll-reveal-enabled .scroll-reveal,
    .scroll-reveal-enabled .scroll-reveal.is-visible {
        opacity: 1;
        transform: none;
        animation: none;
        will-change: auto;
    }

    .seasonal-leaf {
        animation: none;
        opacity: 0.45;
    }

    .fall-leaf {
        animation: none;
        opacity: 0.35;
        top: 12%;
    }
}

@media (max-width: 900px) {
    .service-menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .seasonal-offer {
        grid-template-columns: 1fr;
    }

    .seasonal-offer-content {
        padding-bottom: 1.25rem;
    }

    .seasonal-story {
        width: min(360px, calc(100% - 3rem));
        margin: 0 auto 1.25rem;
    }

    .seasonal-stage { height: 220px; }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
    }

    .slide-text {
        display: none !important;
    }

    .service-menu-grid {
        gap: 0.7rem;
    }

    .service-tile {
        min-height: 172px;
        padding: 1rem;
        border-radius: 15px;
    }
}

@media (max-width: 420px) {
    .service-menu-section {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .service-menu-grid {
        grid-template-columns: 1fr;
    }

    .service-tile {
        min-height: 0;
        display: grid;
        grid-template-columns: 42px 1fr;
        column-gap: 0.85rem;
        align-items: center;
    }

    .service-tile h3 {
        margin: 0;
    }

    .service-tile p {
        grid-column: 2;
    }
}

.fa-car-side{transform:scaleX(-1)!important;}

/* The menu lines fold into a left arrow; the close X stays in the drawer. */
#mobile-menu-button,
#mobile-menu-button:hover,
#mobile-menu-button:active { transform:none!important; }
#mobile-menu-button>i,
#mobile-menu-button:hover>i,
#mobile-menu-button[aria-expanded="true"]>i {
    position:relative;
    display:inline-block;
    width:20px;
    height:20px;
    flex:0 0 20px;
    vertical-align:middle;
    font-size:0!important;
    line-height:0;
    transform:none!important;
    color:inherit;
    background:none;
}
#mobile-menu-button .mobile-menu-middle-line {
    position:absolute;
    top:8.5px;
    left:0;
    width:20px;
    height:3px;
    border-radius:2px;
    background:currentColor;
    transition:width .24s cubic-bezier(.4,0,.2,1),opacity .24s cubic-bezier(.4,0,.2,1);
    transition:none;
}
#mobile-menu-button>i::before,
#mobile-menu-button>i::after {
    content:"";
    position:absolute;
    left:0;
    width:20px;
    height:3px;
    border-radius:2px;
    background:currentColor;
    transform:rotate(0deg);
    transform-origin:1px center;
    transition:width .24s cubic-bezier(.4,0,.2,1),top .24s cubic-bezier(.4,0,.2,1),bottom .24s cubic-bezier(.4,0,.2,1),transform .24s cubic-bezier(.4,0,.2,1);
}
#mobile-menu-button>i::before { top:3px; }
#mobile-menu-button>i::after { bottom:3px; }
#mobile-menu-button[aria-expanded="true"]>i::before {
    top:8px;
    width:12px;
    transform:rotate(-45deg);
}
#mobile-menu-button[aria-expanded="true"]>i::after {
    bottom:8px;
    width:12px;
    transform:rotate(45deg);
}
#mobile-menu-button[aria-expanded="true"] .mobile-menu-middle-line{width:0;opacity:0}
@media(prefers-reduced-motion:reduce) {
    #mobile-menu-button>i::before,
    #mobile-menu-button>i::after,
    #mobile-menu-button .mobile-menu-middle-line { transition:none; }
}
