/* ====================================
   HRC Car Rental — Public / Frontend
   Inspired by Sixt.fr Premium Design
   ====================================
   Note: Google Fonts (Plus Jakarta Sans) is enqueued conditionally by
   HRC_Core::enqueue_public_assets() based on the user's cookie consent.
   System fallbacks below ensure visual integrity if consent is refused.
   ==================================== */

:root {
    --hrc-orange: #ff5f00;
    --hrc-orange-dark: #e55500;
    --hrc-orange-light: #fff3eb;
    --hrc-black: #1a1a1a;
    --hrc-dark: #232323;
    --hrc-gray-900: #111111;
    --hrc-gray-700: #333333;
    --hrc-gray-500: #666666;
    --hrc-gray-400: #999999;
    --hrc-gray-200: #e8e8e8;
    --hrc-gray-100: #f5f5f5;
    --hrc-white: #ffffff;
    --hrc-success: #00c853;
    --hrc-warning: #ffab00;
    --hrc-danger: #ff1744;
    --hrc-radius: 16px;
    --hrc-radius-sm: 10px;
    --hrc-radius-xs: 6px;
    --hrc-radius-xl: 24px;
    --hrc-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    --hrc-shadow-md: 0 4px 20px rgba(0, 0, 0, .08);
    --hrc-shadow-lg: 0 8px 40px rgba(0, 0, 0, .10);
    --hrc-shadow-xl: 0 16px 64px rgba(0, 0, 0, .12);
    --hrc-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --hrc-transition: all .35s cubic-bezier(.32, .72, 0, 1);
    --hrc-transition-fast: all .2s cubic-bezier(.32, .72, 0, 1);
    --hrc-transition-slow: all .6s cubic-bezier(.32, .72, 0, 1);
}

/* ---- Accessibility Utilities ---- */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible — keyboard-only focus ring */
.hrc-single-car :focus-visible,
.hrc-all-cars-wrap :focus-visible,
.hrc-auth-wrap :focus-visible,
.hrc-account-wrap :focus-visible,
.hrc-search-form-wrap :focus-visible,
.hrc-thanks-wrap :focus-visible {
    outline: 2px solid var(--hrc-orange);
    outline-offset: 2px;
}

/* ---- Reset & Base ---- */
.hrc-single-car,
.hrc-all-cars-wrap,
.hrc-auth-wrap,
.hrc-account-wrap,
.hrc-search-form-wrap,
.hrc-thanks-wrap {
    font-family: var(--hrc-font);
    color: var(--hrc-gray-700);
    -webkit-font-smoothing: antialiased;
}

/* ---- Buttons ---- */
.hrc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--hrc-radius-sm);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--hrc-transition);
    border: 2px solid transparent;
    font-family: var(--hrc-font);
    letter-spacing: .3px;
    text-transform: uppercase;
}

.hrc-btn-primary {
    background: var(--hrc-orange);
    color: #fff;
    border-color: var(--hrc-orange);
}

.hrc-btn-primary:hover {
    background: var(--hrc-orange-dark);
    border-color: var(--hrc-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 95, 0, .4);
}

.hrc-btn-outline {
    background: transparent;
    color: var(--hrc-orange);
    border-color: var(--hrc-orange);
}

.hrc-btn-outline:hover {
    background: var(--hrc-orange);
    color: #fff;
}

.hrc-btn-dark {
    background: var(--hrc-black);
    color: #fff;
    border-color: var(--hrc-black);
}

.hrc-btn-dark:hover {
    background: var(--hrc-gray-700);
}

.hrc-btn-lg {
    padding: 16px 32px;
    font-size: 15px;
}

.hrc-btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.hrc-btn-block {
    width: 100%;
    justify-content: center;
}

/* ---- Search Form ---- */
.hrc-search-form-wrap {
    background: var(--hrc-black);
    border-radius: var(--hrc-radius-xl);
    padding: 48px 40px 40px;
    margin-bottom: 40px;
    box-shadow: var(--hrc-shadow-xl);
}

.hrc-search-hero {
    text-align: center;
    margin-bottom: 32px;
}

.hrc-search-hero h1 {
    font-size: 32px;
    font-weight: 900;
    color: var(--hrc-white);
    margin: 0 0 8px;
    letter-spacing: -.5px;
}

.hrc-search-hero p {
    font-size: 15px;
    color: var(--hrc-gray-400);
    margin: 0;
    font-weight: 500;
}

.hrc-search-fields {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}

.hrc-search-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--hrc-gray-400);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.hrc-search-field label svg {
    color: var(--hrc-orange);
    flex-shrink: 0;
}

.hrc-search-field select,
.hrc-search-field input {
    width: 100%;
    padding: 14px 16px !important;
    border: 2px solid var(--hrc-gray-700) !important;
    border-radius: var(--hrc-radius) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #fff !important;
    background: var(--hrc-dark) !important;
    transition: var(--hrc-transition);
    box-sizing: border-box;
    font-family: var(--hrc-font) !important;
    -webkit-appearance: none;
    appearance: none;
    outline: none !important;
}

.hrc-search-field select:focus,
.hrc-search-field input:focus {
    border-color: var(--hrc-orange) !important;
    box-shadow: 0 0 0 1px var(--hrc-orange) !important;
}

.hrc-search-dt-row {
    display: flex;
    gap: 8px;
}

.hrc-search-dt-row input {
    flex: 1;
    min-width: 0;
}

.hrc-search-dt-row select {
    width: 90px !important;
    flex-shrink: 0;
}

.hrc-search-options {
    margin-top: 12px;
}

.hrc-same-return {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--hrc-gray-400);
    cursor: pointer;
    font-weight: 500;
}

.hrc-same-return input[type="checkbox"] {
    width: 16px !important;
    height: 16px;
    accent-color: var(--hrc-orange);
}

.hrc-reassurance {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.hrc-reassurance-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--hrc-gray-400);
}

.hrc-reassurance-item svg {
    color: var(--hrc-orange);
    flex-shrink: 0;
}

@media(max-width:960px) {
    .hrc-search-fields {
        grid-template-columns: 1fr 1fr;
    }

    .hrc-search-hero h1 {
        font-size: 24px;
    }
}

@media(max-width:480px) {
    .hrc-search-form-wrap {
        padding: 28px 20px 24px;
    }

    .hrc-search-fields {
        grid-template-columns: 1fr;
    }

    .hrc-search-hero h1 {
        font-size: 20px;
    }

    .hrc-reassurance {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
}

/* ---- Date Range Calendar ---- */
.hrc-cal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(3px);
}

.hrc-cal {
    position: fixed;
    z-index: 99999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--hrc-white);
    border-radius: var(--hrc-radius-xl);
    box-shadow: var(--hrc-shadow-xl);
    padding: 28px 24px;
    animation: hrcCalOpen .3s cubic-bezier(.32, .72, 0, 1);
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes hrcCalOpen {
    from { opacity: 0; transform: translate(-50%, -48%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.hrc-cal-inner {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
}


.hrc-cal-nav {
    width: 32px;
    height: 32px;
    border: 2px solid var(--hrc-gray-200);
    border-radius: 50%;
    background: var(--hrc-white);
    font-size: 18px;
    line-height: 1;
    color: var(--hrc-gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--hrc-transition);
    margin-top: 2px;
    padding: 0;
    font-family: var(--hrc-font);
}

.hrc-cal-nav:hover {
    border-color: var(--hrc-orange);
    color: var(--hrc-orange);
}

.hrc-cal-months {
    display: flex;
    gap: 28px;
    flex: 1;
    min-width: 0;
}

.hrc-cal-month {
    min-width: 200px;
    flex: 1;
}

.hrc-cal-title {
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    color: var(--hrc-black);
    margin-bottom: 12px;
    text-transform: capitalize;
}

.hrc-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.hrc-cal-hdr {
    margin-bottom: 4px;
}

.hrc-cal-hdr span {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--hrc-gray-400);
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 4px 0;
}

.hrc-cal-day {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--hrc-gray-700);
    padding: 8px 0;
    cursor: pointer;
    transition: background .12s, color .12s;
}

.hrc-cal-day:hover:not(.hrc-cal-off):not(.hrc-cal-blocked):not(.hrc-cal-empty) {
    background: var(--hrc-gray-100);
}

.hrc-cal-empty { cursor: default; }

.hrc-cal-off {
    color: var(--hrc-gray-200) !important;
    cursor: default !important;
}

.hrc-cal-blocked {
    color: var(--hrc-gray-300) !important;
    cursor: not-allowed !important;
    text-decoration: line-through;
}

.hrc-cal-today {
    color: var(--hrc-orange) !important;
    font-weight: 800;
}

.hrc-cal-start {
    background: var(--hrc-black) !important;
    color: var(--hrc-white) !important;
    border-radius: 50% 0 0 50%;
}

.hrc-cal-end {
    background: var(--hrc-black) !important;
    color: var(--hrc-white) !important;
    border-radius: 0 50% 50% 0;
}

.hrc-cal-start.hrc-cal-end {
    border-radius: 50%;
}

.hrc-cal-range,
.hrc-cal-hover {
    background: var(--hrc-gray-100) !important;
}

/* Calendar icon inside date inputs */
.hrc-cal-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--hrc-orange);
    pointer-events: none;
    display: flex;
    align-items: center;
}

@media(max-width: 768px) {
    .hrc-cal {
        width: 90vw;
        padding: 20px 16px;
    }

    .hrc-cal-months {
        flex-direction: column;
        gap: 20px;
    }

    .hrc-cal-month {
        min-width: unset;
        width: 100%;
    }

    .hrc-cal-grid {
        gap: 0;
    }

    .hrc-cal-day {
        padding: 12px 0;
        font-size: 15px;
    }

    .hrc-cal-title {
        font-size: 18px;
    }
}

/* ---- Search Recap Bar ---- */
.hrc-search-recap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    background: var(--hrc-orange-light);
    border: 2px solid rgba(255, 95, 0, .15);
    border-radius: var(--hrc-radius);
    margin-bottom: 20px;
}

.hrc-recap-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.hrc-recap-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--hrc-white);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--hrc-gray-700);
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.hrc-recap-chip svg {
    color: var(--hrc-orange);
    flex-shrink: 0;
}

.hrc-recap-chip-accent {
    background: var(--hrc-orange);
    color: var(--hrc-white);
}

.hrc-recap-modify {
    font-size: 13px;
    font-weight: 700;
    color: var(--hrc-orange);
    text-decoration: none;
    white-space: nowrap;
}

.hrc-recap-modify:hover {
    text-decoration: underline;
}

.hrc-price-total {
    font-size: 12px;
    font-weight: 700;
    color: var(--hrc-orange);
    margin-top: 2px;
}

@media(max-width:480px) {
    .hrc-search-recap {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---- Car Grid ---- */
.hrc-all-cars-wrap {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
}

@media(max-width:768px) {
    .hrc-all-cars-wrap {
        grid-template-columns: 1fr;
    }
}

.hrc-filters-sidebar {
    background: var(--hrc-white);
    border-radius: var(--hrc-radius);
    box-shadow: var(--hrc-shadow);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 80px;
    border: 1px solid var(--hrc-gray-200);
}

/* Mobile filter toggle (pill) — desktop hidden */
.hrc-filters-mobile-toggle,
.hrc-filters-mobile-backdrop {
    display: none;
}

@media (max-width: 768px) {
    .hrc-filters-mobile-toggle {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        align-self: flex-start;
        position: sticky;
        top: 25px;
        z-index: 100;
        margin: 0 0 16px;
        padding: 11px 18px;
        font-family: var(--hrc-font);
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.02em;
        color: #fff;
        background: var(--hrc-black);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 999px;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.08),
            0 12px 28px -10px rgba(0, 0, 0, 0.45);
        cursor: pointer;
        transition: transform .35s cubic-bezier(.32, .72, 0, 1), box-shadow .35s cubic-bezier(.32, .72, 0, 1);
        width: fit-content;
    }

    .hrc-filters-mobile-toggle:hover {
        transform: translateY(-1px);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 16px 32px -10px rgba(0, 0, 0, 0.55);
    }

    .hrc-filters-mobile-toggle:active { transform: scale(0.98); }

    .hrc-filters-mobile-toggle-icon,
    .hrc-filters-mobile-toggle-chevron {
        display: inline-flex;
        align-items: center;
    }

    .hrc-filters-mobile-toggle-chevron {
        transition: transform .35s cubic-bezier(.32, .72, 0, 1);
    }

    .hrc-filters-mobile-toggle[aria-expanded="true"] .hrc-filters-mobile-toggle-chevron {
        transform: rotate(180deg);
    }

    .hrc-filters-mobile-toggle[aria-expanded="true"] {
        background: var(--hrc-orange);
        border-color: rgba(255, 255, 255, 0.18);
    }

    /* Floating dropdown panel */
    .hrc-filters-sidebar {
        position: fixed;
        top: 64px;
        left: 12px;
        right: 12px;
        z-index: 90;
        max-height: calc(100dvh - 80px);
        overflow-y: auto;
        padding: 22px 20px;
        border-radius: 18px;
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
        pointer-events: none;
        transition: opacity .35s cubic-bezier(.32, .72, 0, 1),
                    transform .45s cubic-bezier(.32, .72, 0, 1);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.6),
            0 24px 64px -8px rgba(0, 0, 0, 0.35);
    }

    .hrc-filters-sidebar.is-open {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    /* Backdrop overlay */
    .hrc-filters-mobile-backdrop {
        display: block;
        position: fixed;
        top: 230px;
        inset: 0;
        z-index: 70;
        background: rgba(8, 8, 10, 0.48);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .3s cubic-bezier(.32, .72, 0, 1);
    }

    .hrc-filters-mobile-backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    /* Body lock when filters open */
    body.hrc-filters-open {
        overflow: hidden;
    }
}

.hrc-filters-sidebar h3 {
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 800;
    color: var(--hrc-black);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.hrc-filter-group {
    margin-bottom: 20px;
}

.hrc-filter-group label {
    font-size: 11px;
    font-weight: 700;
    color: var(--hrc-gray-500);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 6px;
    display: block;
}

.hrc-filter-group select,
.hrc-filter-group input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--hrc-gray-200);
    border-radius: var(--hrc-radius-xs);
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color .2s;
}

.hrc-filter-group select:focus,
.hrc-filter-group input:focus {
    border-color: var(--hrc-orange);
    outline: 2px solid transparent;
}

.hrc-filter-group input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: var(--hrc-gray-200);
    border-radius: 4px;
    outline: 2px solid transparent;
    opacity: 0.9;
    transition: opacity .2s;
    margin: 16px 0;
}

.hrc-filter-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--hrc-orange);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 3px solid #fff;
}

#hrc-price-label {
    display: inline-block;
    padding: 4px 10px;
    background: var(--hrc-dark);
    color: #fff;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
}

/* ---- Modern Date & Time Inputs ---- */
.hrc-filter-group input[type="date"],
.hrc-filter-group input[type="time"] {
    width: 100%;
    min-width: 0;
    padding: 8px 6px;
    border: 1px solid var(--hrc-gray-200);
    border-radius: var(--hrc-radius-xs);
    font-size: 13px;
    box-sizing: border-box;
    transition: border-color .2s;
    background-color: var(--hrc-white);
    color: var(--hrc-black);
    font-family: inherit;
    font-weight: 500;
}

.hrc-filter-group input[type="date"]:focus,
.hrc-filter-group input[type="time"]:focus {
    border-color: var(--hrc-orange);
    outline: 2px solid transparent;
}

/* ---- Top Filters Bar ---- */
.hrc-grid-top-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.hrc-top-select {
    flex: 1;
    min-width: 160px;
    padding: 12px 16px;
    border: 1px solid var(--hrc-gray-200);
    border-radius: var(--hrc-radius-sm);
    background-color: var(--hrc-white);
    color: var(--hrc-black);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--hrc-shadow-sm);
    transition: all 0.2s ease-in-out;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.hrc-top-select:focus,
.hrc-top-select:hover {
    border-color: var(--hrc-orange);
    outline: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(255, 95, 0, 0.15);
}

/* Car Cards (Sixt Style) */
.hrc-car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.hrc-car-card {
    display: flex;
    flex-direction: column;
    background: var(--hrc-dark);
    border-radius: var(--hrc-radius);
    overflow: hidden;
    transition: var(--hrc-transition);
    border: 1px solid #333;
    text-decoration: none;
    color: var(--hrc-white);
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    padding-top: 220px;
    z-index: 1;
}

.hrc-car-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(15, 15, 15, 0.95) 0%, rgba(15, 15, 15, 0.7) 50%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.hrc-car-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    transform: translateY(-4px);
    border-color: #555;
    z-index: 10;
}

/* C3: Accordion sections (Équipements / Protection) — only one open at a time */
.hrc-accordion-section {
    border-top: 1px solid var(--hrc-gray-200, #e5e7eb);
    margin: 0;
    padding: 0;
}
.hrc-accordion-section > .hrc-accordion-summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    user-select: none;
}
.hrc-accordion-section > .hrc-accordion-summary::-webkit-details-marker { display: none; }
.hrc-accordion-section > .hrc-accordion-summary::marker { display: none; content: ''; }
.hrc-accordion-section .hrc-accordion-chevron {
    transition: transform 0.18s ease;
    font-size: 18px;
    color: var(--hrc-orange, #ff5f00);
}
.hrc-accordion-section[open] > .hrc-accordion-summary .hrc-accordion-chevron {
    transform: rotate(180deg);
}
.hrc-accordion-section[open] > .hrc-extras-list,
.hrc-accordion-section[open] > .hrc-protections-grid {
    padding-bottom: 14px;
}

/* B2: extras qty input — visually-hidden inside .hrc-extra-stepper, styling lives in the stepper rules below. */

/* C1: pending availability check — block clicks + show pulse overlay */
.hrc-car-card.hrc-checking {
    pointer-events: none;
    opacity: 0.75;
    position: relative;
}
.hrc-car-card.hrc-checking::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.55);
    z-index: 5;
    border-radius: inherit;
    animation: hrcPulse 1.2s ease-in-out infinite;
}
@keyframes hrcPulse {
    0%, 100% { opacity: 0.3; }
    50%      { opacity: 0.7; }
}

/* C1: unavailable (after check) — visually greyed + not clickable */
.hrc-car-card.hrc-unavailable {
    pointer-events: none;
    opacity: 0.45;
    filter: grayscale(0.6);
    cursor: not-allowed;
}
.hrc-car-card.hrc-unavailable:hover {
    transform: none;
    box-shadow: none;
}

.hrc-car-card-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.85) 0%, transparent 100%);
    box-sizing: border-box;
}

.hrc-car-title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 800;
    color: var(--hrc-white);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.hrc-car-subtitle {
    display: block;
    font-size: 13px;
    color: #aaa;
    font-weight: 500;
    margin-bottom: 8px;
}

.hrc-car-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hrc-car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.4, 0, .2, 1);
    filter: none;
}

.hrc-car-card:hover .hrc-car-image img {
    transform: scale(1.05);
}

.hrc-car-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.hrc-car-no-image .dashicons {
    font-size: 48px;
    color: #444;
}

.hrc-car-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--hrc-orange);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    z-index: 3;
}

/* Unavailable Cars on Grid */
.hrc-car-card.hrc-unavailable {
    opacity: 0.5;
    position: relative;
    pointer-events: none;
    filter: grayscale(100%);
}

.hrc-car-card.hrc-unavailable::before {
    content: "Non disponible";
    content: attr(data-unavailable-label);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--hrc-orange);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--hrc-radius-sm);
    font-weight: 800;
    font-size: 15px;
    text-transform: uppercase;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8);
    z-index: 10;
}

.hrc-car-specs {
    position: relative;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 20px 12px;
}

.hrc-car-specs span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #bbb;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.hrc-car-specs span svg {
    color: #bbb;
}

.hrc-car-specs span.brand-accent svg {
    color: var(--hrc-white);
    background: #333;
    padding: 2px;
    border-radius: 2px;
}

.hrc-car-bottom {
    margin-top: auto;
    padding: 20px;
    display: flex;
    z-index: 3;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.hrc-price-display {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.hrc-price-amount {
    font-size: 24px;
    font-weight: 900;
    color: var(--hrc-white);
}

.hrc-price-unit {
    font-size: 12px;
    color: #888;
    font-weight: 600;
}

.hrc-no-results {
    text-align: center;
    padding: 80px 0;
    color: var(--hrc-gray-400);
}

/* ---- Single Car (Sixt-inspired) ---- */
.hrc-single-car {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Hero Gallery */
.hrc-hero-gallery {
    margin-bottom: 32px;
}

.hrc-hero-main {
    position: relative;
    border-radius: var(--hrc-radius);
    overflow: hidden;
    background: var(--hrc-gray-100);
    height: 380px;
    box-shadow: var(--hrc-shadow);
    /* pseudo element for very subtle vignette/overlay is often used by sixt */
}

.hrc-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 32px 32px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 40%, transparent 100%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-sizing: border-box;
}

.hrc-hero-overlay .hrc-overlay-title {
    color: var(--hrc-white);
    font-size: 32px;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

@media(max-width:768px) {
    .hrc-hero-overlay .hrc-overlay-title {
        font-size: 24px;
    }

    .hrc-hero-overlay {
        padding: 24px 20px 16px;
    }
}

.hrc-hero-main>img {
    width: 100%;
    height: 380px !important;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.hrc-hero-placeholder {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hrc-gray-100);
}

.hrc-hero-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--hrc-orange);
    color: #fff;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.hrc-hero-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-top: 16px;
}

.hrc-thumb {
    width: 80px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--hrc-radius-xs);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--hrc-transition);
    opacity: .7;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.hrc-thumb:hover,
.hrc-thumb.active {
    opacity: 1;
    border-color: var(--hrc-orange);
}

/* Detail Layout */
.hrc-detail-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
}

@media(max-width:960px) {
    .hrc-detail-layout {
        grid-template-columns: 1fr;
    }
}

.hrc-detail-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--hrc-black);
    margin: 0 0 16px;
    letter-spacing: -.5px;
}

/* Specs Strip */
.hrc-specs-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.hrc-specs-strip.hrc-overlay-specs {
    margin-bottom: 0;
}

.hrc-spec-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--hrc-gray-100);
    color: var(--hrc-gray-700);
    padding: 8px 14px;
    border-radius: var(--hrc-radius-sm);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--hrc-gray-200);
}

.hrc-overlay-specs .hrc-spec-chip {
    background: rgba(25, 25, 25, 0.6);
    color: var(--hrc-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hrc-spec-chip svg {
    color: var(--hrc-orange);
    flex-shrink: 0;
}

.hrc-detail-desc {
    line-height: 1.8;
    color: var(--hrc-gray-500);
    margin-bottom: 32px;
    font-size: 15px;
}

.hrc-detail-section {
    margin-bottom: 28px;
}

.hrc-detail-section h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--hrc-black);
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--hrc-gray-100);
}

.hrc-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.hrc-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--hrc-gray-700);
    padding: 8px 0;
    font-weight: 500;
}

.hrc-conditions-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--hrc-gray-500);
}

/* ---- Booking Card (Sidebar) ---- */
.hrc-book-card {
    background: var(--hrc-white);
    border-radius: var(--hrc-radius);
    padding: 0;
    position: sticky;
    top: 32px;
    border: none;
    box-shadow: var(--hrc-shadow-lg), 0 0 0 1px rgba(0, 0, 0, .04);
    overflow: hidden;
}

.hrc-book-price-header {
    background: var(--hrc-black);
    padding: 28px 28px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.hrc-book-price-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--hrc-orange);
    letter-spacing: -.5px;
}

.hrc-book-price-per {
    font-size: 14px;
    color: var(--hrc-gray-400);
    font-weight: 500;
}

.hrc-book-card form {
    padding: 24px 28px 28px;
}

.hrc-book-field {
    margin-bottom: 16px;
}

.hrc-book-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--hrc-gray-500);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 6px;
}

.hrc-book-field label svg {
    color: var(--hrc-orange);
}

.hrc-book-field input,
.hrc-book-field select,
.hrc-book-field textarea {
    width: 100%;
    padding: 16px 18px !important;
    border: 2px solid var(--hrc-gray-200) !important;
    border-radius: var(--hrc-radius) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--hrc-gray-900) !important;
    transition: var(--hrc-transition);
    box-sizing: border-box;
    font-family: var(--hrc-font) !important;
    background: var(--hrc-white) !important;
    outline: none !important;
    -webkit-appearance: none;
    appearance: none;
}

.hrc-book-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ff5f00' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    padding-right: 40px !important;
}

.hrc-book-field input:focus,
.hrc-book-field select:focus,
.hrc-book-field textarea:focus {
    border-color: var(--hrc-orange) !important;
    box-shadow: 0 0 0 1px var(--hrc-orange) !important;
}

/* Mobile : empêche le zoom auto iOS au focus (déclenché si font-size < 16px)
   sur TOUS les inputs/selects/textareas du wizard, y compris dates/heures,
   stepper qty et code promo. + fix structurel de la largeur step 4 :
   on réduit les paddings horizontaux gourmands (form 28→14px, payment-wrap
   22→14px) et on autorise les éléments flex à rétrécir (min-width:0). */
@media (max-width: 767px) {
    .hrc-book-card form { padding: 20px 14px 20px; }
    .hrc-payment-card-wrap { padding: 16px 14px 14px; }
    .hrc-payment-card-head { gap: 10px; padding-bottom: 12px; margin-bottom: 14px; }

    /* Le wrap step paiement et la rangée promo : laisse les enfants flex se
       rétrécir au lieu de pousser le parent (overflow horizontal). */
    .hrc-promo-row { min-width: 0; }
    .hrc-promo-row input { min-width: 0; }
    .hrc-book-row { min-width: 0; }

    /* Wizard actions : autorise le wrap si "Confirmer et Payer" + "Retour"
       dépassent la largeur disponible (sinon ça pousse le parent). */
    .hrc-wizard-actions { flex-wrap: wrap; }
    .hrc-wizard-actions .hrc-btn-outline,
    .hrc-wizard-actions .hrc-btn-primary { flex: 1 1 auto; min-width: 0; justify-content: center; }

    /* Tous les inputs/selects/textareas du wizard à 16px (anti-zoom iOS). */
    .hrc-book-card input,
    .hrc-book-card select,
    .hrc-book-card textarea,
    .hrc-book-field input,
    .hrc-book-field select,
    .hrc-book-field textarea,
    .hrc-dt-date,
    .hrc-dt-time,
    .hrc-extra-qty,
    .hrc-promo-row input {
        font-size: 16px !important;
    }
    /* Stepper qty : 28-32px de large, on élargit pour laisser respirer 16px. */
    .hrc-extra-qty { width: 36px !important; }

    /* Mobile : pendant la saisie clavier, masque +/- et étire l'input pour
       que ce que tape l'utilisateur soit visible. Au blur, tout revient. */
    .hrc-extra-stepper:focus-within .hrc-extra-step { display: none; }
    .hrc-extra-stepper:focus-within .hrc-extra-qty {
        width: 100px !important;
        text-align: center;
    }
}



.hrc-book-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 4px;
}

/* Wizard Steps Indicator — Progress Bar */
ol.hrc-wizard-steps,
.hrc-wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 0;
    list-style: none !important;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    counter-reset: none;
}

.hrc-step-indicator {
    flex: 0 0 25%;
    width: 25%;
    max-width: 25%;
    min-width: 0;
    box-sizing: border-box;
    font-size: 11px;
    font-weight: 700;
    color: var(--hrc-gray-400);
    text-transform: uppercase;
    text-align: center;
    padding: 0 4px 10px;
    letter-spacing: .3px;
    border-bottom: 3px solid var(--hrc-gray-200);
    transition: var(--hrc-transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.hrc-step-indicator.active {
    color: var(--hrc-orange);
    border-bottom-color: var(--hrc-orange);
}

@media(max-width:400px) {
    .hrc-step-indicator {
        font-size: 9px;
    }
}

/* Wizard Step Title — Eyebrow Style */
.hrc-wizard-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--hrc-black);
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--hrc-gray-200);
    letter-spacing: -.2px;
}

/* Date + Time Picker */
.hrc-book-datetime {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.hrc-book-dt-group {
    display: flex;
    flex-direction: column;
}

.hrc-book-dt-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--hrc-gray-500);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 6px;
}

.hrc-book-dt-group label svg {
    color: var(--hrc-orange);
}

.hrc-dt-row {
    display: flex;
    gap: 10px;
}

.hrc-dt-date,
.hrc-dt-time {
    padding: 16px 16px !important;
    border: 2px solid var(--hrc-gray-200) !important;
    border-radius: var(--hrc-radius) !important;
    background: var(--hrc-white) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--hrc-gray-900) !important;
    font-family: var(--hrc-font) !important;
    box-sizing: border-box;
    outline: none !important;
    cursor: pointer;
    transition: var(--hrc-transition);
    -webkit-appearance: none;
    appearance: none;
}

.hrc-dt-date {
    flex: 1;
    min-width: 0;
}

.hrc-dt-time {
    width: 100px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ff5f00' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding-right: 32px !important;
}

.hrc-dt-date:focus,
.hrc-dt-time:focus {
    border-color: var(--hrc-orange) !important;
    box-shadow: 0 0 0 1px var(--hrc-orange) !important;
}

@media(max-width:768px) {
    .hrc-book-datetime {
        grid-template-columns: 1fr;
    }
}

.hrc-book-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hrc-book-section {
    margin-bottom: 20px;
}

.hrc-book-section-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--hrc-gray-500);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 10px;
}

/* Delivery Toggle */
.hrc-delivery-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.hrc-dtoggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px !important;
    border: 2px solid var(--hrc-gray-200) !important;
    border-radius: var(--hrc-radius) !important;
    background: var(--hrc-white) !important;
    cursor: pointer;
    font-size: 14px !important;
    font-weight: 800 !important;
    color: var(--hrc-black) !important;
    transition: var(--hrc-transition);
    font-family: var(--hrc-font) !important;
}

.hrc-dtoggle:hover {
    border-color: var(--hrc-orange) !important;
    transform: translateY(-2px);
    box-shadow: var(--hrc-shadow);
}

.hrc-dtoggle:active {
    transform: scale(.98);
}

.hrc-dtoggle.active {
    border-color: var(--hrc-orange) !important;
    color: var(--hrc-orange) !important;
    background: var(--hrc-orange-light) !important;
    box-shadow: 0 0 0 1px var(--hrc-orange), 0 4px 12px rgba(255, 95, 0, .10) !important;
}

.hrc-dtoggle svg {
    flex-shrink: 0;
}

.hrc-delivery-fee-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--hrc-orange);
    font-weight: 600;
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--hrc-orange-light);
    border-radius: var(--hrc-radius-xs);
}

/* Chauffeur Option */
.hrc-book-option {
    margin-bottom: 20px;
}

.hrc-option-toggle {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    padding: 18px !important;
    border: 2px solid var(--hrc-gray-200) !important;
    border-radius: var(--hrc-radius) !important;
    transition: var(--hrc-transition);
    background: var(--hrc-white) !important;
}

.hrc-option-toggle:hover {
    border-color: var(--hrc-orange) !important;
    transform: translateY(-2px);
    box-shadow: var(--hrc-shadow);
}

.hrc-option-toggle:has(input:checked) {
    border-color: var(--hrc-orange) !important;
    background: var(--hrc-orange-light) !important;
    box-shadow: 0 0 0 1px var(--hrc-orange), 0 4px 12px rgba(255, 95, 0, .10) !important;
}

.hrc-option-toggle input[type="checkbox"] {
    display: none;
}

.hrc-option-toggle input:checked~.hrc-option-slider {
    background: var(--hrc-orange);
}

.hrc-option-toggle input:checked~.hrc-option-slider::after {
    transform: translateX(20px);
}

.hrc-option-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--hrc-gray-200);
    border-radius: 999px;
    transition: var(--hrc-transition);
    flex-shrink: 0;
}

.hrc-option-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: var(--hrc-transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

.hrc-option-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hrc-option-content svg {
    color: var(--hrc-orange);
    flex-shrink: 0;
}

.hrc-option-content strong {
    display: block;
    font-size: 14px;
    color: var(--hrc-black);
}

.hrc-option-content small {
    display: block;
    font-size: 12px;
    color: var(--hrc-gray-500);
    margin-top: 1px;
}

/* Price Recap — Premium Summary */
.hrc-price-recap {
    background: var(--hrc-gray-100);
    border: 1.5px solid var(--hrc-gray-200);
    border-radius: var(--hrc-radius);
    padding: 20px 24px;
    margin: 28px 0 20px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .03);
}

.hrc-recap-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    color: var(--hrc-gray-500);
}

.hrc-recap-row + .hrc-recap-row {
    border-top: 1px solid rgba(0, 0, 0, .04);
}

.hrc-recap-total {
    border-top: 2px solid var(--hrc-black) !important;
    padding-top: 18px;
    margin-top: 10px;
    font-weight: 800;
    color: var(--hrc-orange);
    font-size: 22px;
}

.hrc-recap-total span:first-child {
    color: var(--hrc-black);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .8px;
}

/* Permanent price summary (sticky desktop / drawer mobile) — T8 */
.hrc-price-summary-permanent {
    margin: 20px 0 24px;
}

.hrc-price-summary-toggle {
    display: none;
    width: 100%;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.hrc-price-summary-toggle .hrc-price-summary-label {
    flex: 0 0 auto;
    font-weight: 600;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: var(--hrc-black);
    font-size: 13px;
}

.hrc-price-summary-toggle .hrc-price-summary-total {
    flex: 1 1 auto;
    text-align: right;
    font-weight: 800;
    font-size: 20px;
    color: var(--hrc-orange);
}

.hrc-price-summary-toggle .hrc-price-summary-chevron {
    flex: 0 0 auto;
    font-size: 16px;
    transition: transform .2s ease;
}

.hrc-price-summary-permanent.is-expanded .hrc-price-summary-chevron {
    transform: rotate(180deg);
}

.hrc-price-summary-body {
    display: block;
}

/* Subtle flash on total change for feedback on live updates */
@keyframes hrcPriceFlash {
    0% { background: rgba(255, 95, 0, .18); }
    100% { background: transparent; }
}

.hrc-price-recap .hrc-recap-total {
    transition: background-color .3s ease;
}

/* Mobile drawer: fixed bottom, collapsed by default, tap total to expand. */
@media (max-width: 767px) {
    /* Hide vehicle thumbnail strip on mobile — saves vertical space. */
    .hrc-hero-thumbs {
        display: none !important;
    }

    .hrc-price-summary-permanent {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        margin: 0;
        border-radius: 16px 16px 0 0;
        border: 0;
        background: #fff;
        box-shadow: 0 -8px 24px rgba(0, 0, 0, .12);
        z-index: 2147483646;
        padding: 14px 18px calc(18px + env(safe-area-inset-bottom, 0px));
    }

    .hrc-price-summary-toggle {
        display: flex;
    }

    .hrc-price-summary-body {
        display: none;
        margin-top: 10px;
    }

    .hrc-price-summary-permanent.is-expanded .hrc-price-summary-body {
        display: block;
    }

    /* Keep wizard content away from the drawer's resting area. */
    .hrc-booking-wrap,
    .hrc-detail-sidebar {
        padding-bottom: 96px;
    }
}

/* Desktop (≥ 769px): panier flottant ancré en bas. La variable
   --hrc-cart-bottom-offset est mise à jour en JS quand le footer entre dans
   le viewport (le panier remonte pour ne jamais chevaucher le footer). */
@media (min-width: 769px) {
    .hrc-price-summary-permanent {
        position: fixed;
        left: 24px;
        bottom: var(--hrc-cart-bottom-offset, 80px);
        top: auto;
        transform: none;
        width: 450px;
        max-height: calc(100vh - var(--hrc-cart-bottom-offset, 80px) - 32px);
        overflow-y: auto;
        z-index: 2147483646;
        margin: 0;
        background: #fff;
        border: 1px solid var(--hrc-gray-200);
        border-radius: var(--hrc-radius);
        padding: 22px 24px;
        box-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.22);
        scrollbar-width: thin;
        transition: bottom .15s ease-out;
    }
}

/* Panel frontend — neutralise admin styling leaking from included admin views (T18) */
.hrc-panel-admin-wrapped { font-size: 14px; color: var(--hrc-black, #0f172a); }
.hrc-panel-admin-wrapped .wrap,
.hrc-panel-admin-wrapped .hrc-wrap { padding: 0; background: transparent; margin: 0; }
.hrc-panel-admin-wrapped .hrc-page-header { display: none; }
.hrc-panel-admin-wrapped .hrc-card { box-shadow: none; padding: 14px 0; border: 0; background: transparent; }
.hrc-panel-admin-wrapped h1, .hrc-panel-admin-wrapped h2 { font-size: 16px; font-weight: 600; margin: 8px 0; }
.hrc-panel-admin-wrapped .button { font-size: 14px; }

/* Panel help page (T18) */
.hrc-panel-help-list { list-style: none; margin: 0; padding: 0; }
.hrc-panel-help-list li { padding: 12px 0; border-bottom: 1px solid var(--hrc-gray-200, #e2e8f0); }
.hrc-panel-help-list li:last-child { border-bottom: 0; }
.hrc-panel-help-list strong { display: block; margin-bottom: 4px; }
.hrc-panel-help-list p { margin: 0; color: var(--hrc-gray-500, #64748b); }
.hrc-panel-help-contact { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* Documents — "what's left to do" zone + rejection highlight (T12) */
.hrc-doc-todo {
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: var(--hrc-radius);
    padding: 14px 18px;
    margin: 14px 0 18px;
}

.hrc-doc-todo strong {
    display: block;
    color: #9a3412;
    margin-bottom: 8px;
    font-size: 14px;
}

.hrc-doc-todo ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hrc-doc-todo-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
}

.hrc-doc-todo-item.status-rejected {
    color: #b91c1c;
}

.hrc-todo-hint {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .4px;
    font-weight: 600;
    opacity: .85;
}

.hrc-doc-rejection-reason {
    margin-top: 8px;
    padding: 10px 12px;
    background: #fef2f2;
    border-left: 3px solid #ef4444;
    border-radius: 6px;
    font-size: 13px;
    color: #7f1d1d;
}

/* Agency info pill (read-only address shown under "Retrait en agence") */
.hrc-agency-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--hrc-gray-100);
    border: 1px solid var(--hrc-gray-200);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--hrc-black);
}

.hrc-agency-info svg {
    flex: 0 0 auto;
    color: var(--hrc-orange);
}

/* Consents */
.hrc-book-consents {
    margin: 20px 0;
}

.hrc-consent-check {
    display: flex;
    align-items: start;
    gap: 12px;
    font-size: 12px;
    color: var(--hrc-gray-500);
    margin-bottom: 12px;
    cursor: pointer;
    line-height: 1.6;
}

.hrc-consent-check:last-child {
    margin-bottom: 0;
}

.hrc-consent-check input {
    margin-top: 3px;
    accent-color: var(--hrc-orange);
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* Submit Button — Magnetic CTA */
.hrc-book-submit {
    width: 100%;
    padding: 18px 24px 18px 32px;
    background: var(--hrc-orange);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 800;
    font-family: var(--hrc-font);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: .8px;
    transition: var(--hrc-transition);
    box-shadow: 0 4px 20px rgba(255, 95, 0, .25);
    text-decoration: none;
}

/* Button-in-Button trailing icon for submit */
.hrc-book-submit svg {
    width: 30px;
    height: 30px;
    padding: 6px;
    background: rgba(255, 255, 255, .15);
    border-radius: 50%;
    transition: var(--hrc-transition);
    flex-shrink: 0;
}

.hrc-book-submit:hover {
    background: var(--hrc-orange-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 95, 0, .35);
}

.hrc-book-submit:hover svg {
    background: rgba(255, 255, 255, .25);
    transform: translateX(3px);
}

.hrc-book-submit:active {
    transform: scale(.98);
}

.hrc-book-submit:disabled {
    opacity: .4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.hrc-book-submit:disabled:hover svg {
    transform: none;
    background: rgba(255, 255, 255, .15);
}

/* Alerts */
.hrc-book-alert {
    padding: 12px 16px;
    border-radius: var(--hrc-radius-xs);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
}

.hrc-book-alert-error,
.hrc-alert-error {
    background: #fff0f0;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.hrc-book-alert-success,
.hrc-alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

/* ---- Auth Pages ---- */
.hrc-auth-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 16px;
}

.hrc-auth-card {
    background: var(--hrc-white);
    border-radius: var(--hrc-radius);
    box-shadow: var(--hrc-shadow-xl);
    padding: 48px;
    max-width: 440px;
    width: 100%;
    border: 1px solid var(--hrc-gray-200);
}

.hrc-auth-card h2 {
    text-align: center;
    font-size: 24px;
    font-weight: 900;
    color: var(--hrc-black);
    margin: 0 0 8px;
}

.hrc-auth-card .hrc-auth-subtitle {
    text-align: center;
    color: var(--hrc-gray-500);
    font-size: 14px;
    margin-bottom: 28px;
}

.hrc-auth-card .hrc-field {
    margin-bottom: 16px;
}

.hrc-auth-card label {
    font-size: 11px;
    font-weight: 700;
    color: var(--hrc-gray-500);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 6px;
    display: block;
}

.hrc-auth-card input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--hrc-gray-200);
    border-radius: var(--hrc-radius-xs);
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color .2s;
    font-family: var(--hrc-font);
}

.hrc-auth-card input:focus {
    border-color: var(--hrc-orange);
    box-shadow: 0 0 0 3px rgba(255, 95, 0, .1);
    outline: 2px solid transparent;
}

.hrc-auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--hrc-gray-500);
}

.hrc-auth-footer a {
    color: var(--hrc-orange);
    font-weight: 700;
    text-decoration: none;
}

.hrc-auth-footer a:hover {
    text-decoration: underline;
}

/* ---- Account Page ---- */
.hrc-doc-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: var(--hrc-radius);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
}

.hrc-doc-banner a {
    color: #92400e;
    font-weight: 700;
    text-decoration: underline;
    white-space: nowrap;
}

.hrc-doc-progress {
    margin-bottom: 24px;
}

.hrc-doc-progress-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--hrc-gray-500);
    margin-bottom: 8px;
}

.hrc-doc-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--hrc-gray-200);
    border-radius: 999px;
    overflow: hidden;
}

.hrc-doc-progress-fill {
    height: 100%;
    background: var(--hrc-orange);
    border-radius: 999px;
    transition: width .6s cubic-bezier(.32, .72, 0, 1);
}

.hrc-drop-zone {
    border: 2px dashed var(--hrc-gray-200);
    border-radius: var(--hrc-radius);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--hrc-transition);
}

.hrc-drop-zone:hover {
    border-color: var(--hrc-orange);
    background: var(--hrc-orange-light);
}

.hrc-drop-zone input[type="file"] {
    margin-top: 12px;
}

.hrc-drop-zone svg {
    color: var(--hrc-gray-400);
    margin-bottom: 8px;
}

.hrc-drop-zone p {
    font-size: 12px;
    color: var(--hrc-gray-400);
    margin: 4px 0 0;
}

.hrc-reject-reason {
    font-size: 12px;
    color: #ef4444;
    margin-top: 6px;
    font-weight: 600;
}

.hrc-booking-action {
    font-size: 12px;
    font-weight: 600;
    color: var(--hrc-gray-400);
    font-style: italic;
}

.hrc-account-wrap {
    max-width: 960px;
    margin: 0 auto;
}

.hrc-account-header {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--hrc-black);
    border-radius: var(--hrc-radius);
    padding: 28px;
    margin-bottom: 28px;
    color: #fff;
}

.hrc-account-avatar img {
    border-radius: 50%;
    border: 3px solid var(--hrc-orange);
}

.hrc-account-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.hrc-account-header p {
    margin: 2px 0 0;
    color: var(--hrc-gray-400);
    font-size: 14px;
}

.hrc-account-header .hrc-btn {
    margin-left: auto;
}

.hrc-account-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--hrc-gray-200);
    margin-bottom: 28px;
}

.hrc-account-tabs .hrc-tab {
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 700;
    color: var(--hrc-gray-500);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: var(--hrc-transition);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.hrc-account-tabs .hrc-tab:hover {
    color: var(--hrc-orange);
}

.hrc-account-tabs .hrc-tab.active {
    color: var(--hrc-orange);
    border-bottom-color: var(--hrc-orange);
}

/* Booking Items */
.hrc-booking-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--hrc-white);
    border-radius: var(--hrc-radius-sm);
    box-shadow: var(--hrc-shadow);
    padding: 20px 24px;
    margin-bottom: 14px;
    transition: var(--hrc-transition);
    flex-wrap: wrap;
    border: 1px solid var(--hrc-gray-200);
}

.hrc-booking-item:hover {
    box-shadow: var(--hrc-shadow-md);
    border-color: var(--hrc-orange);
}

.hrc-booking-thumb img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--hrc-radius-xs);
}

.hrc-booking-details h4 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: var(--hrc-black);
}

.hrc-booking-details p {
    margin: 0;
    font-size: 13px;
    color: var(--hrc-gray-500);
}

.hrc-booking-meta {
    margin-left: auto;
    text-align: right;
}

.hrc-booking-price {
    font-size: 20px;
    font-weight: 900;
    color: var(--hrc-orange);
}

.hrc-booking-actions {
    display: flex;
    gap: 8px;
}

/* Profile/Security Forms */
.hrc-profile-form,
.hrc-security-form {
    background: var(--hrc-white);
    border-radius: var(--hrc-radius);
    box-shadow: var(--hrc-shadow);
    padding: 28px;
    max-width: 600px;
    border: 1px solid var(--hrc-gray-200);
}

.hrc-profile-form + .hrc-security-form,
.hrc-security-form + .hrc-documents-section,
.hrc-profile-form + .hrc-documents-section {
    margin-top: 24px;
}

.hrc-section-title {
    margin: 0 0 18px;
    font-family: var(--hrc-font);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.005em;
    color: var(--hrc-black);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--hrc-gray-200);
}

.hrc-profile-form .hrc-field,
.hrc-security-form .hrc-field {
    margin-bottom: 16px;
}

.hrc-profile-form label,
.hrc-security-form label {
    font-size: 11px;
    font-weight: 700;
    color: var(--hrc-gray-500);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 6px;
    display: block;
}

.hrc-profile-form input,
.hrc-security-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--hrc-gray-200);
    border-radius: var(--hrc-radius-xs);
    font-size: 14px;
    box-sizing: border-box;
    font-family: var(--hrc-font);
}

.hrc-profile-form input:focus,
.hrc-security-form input:focus {
    border-color: var(--hrc-orange);
    outline: 2px solid transparent;
    box-shadow: 0 0 0 3px rgba(255, 95, 0, .1);
}

/* Documents */
.hrc-documents-section {
    background: var(--hrc-white);
    border-radius: var(--hrc-radius);
    box-shadow: var(--hrc-shadow);
    padding: 28px;
    border: 1px solid var(--hrc-gray-200);
}

.hrc-doc-upload-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--hrc-gray-100);
    flex-wrap: wrap;
}

.hrc-doc-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---- Auth Modal ---- */
/* ──────────────────────────────────────────
   AUTH MODAL — Editorial Luxury / Doppelrand
   ────────────────────────────────────────── */
.hrc-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.hrc-auth-modal-backdrop {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    animation: hrcAuthBackdropIn .5s cubic-bezier(.32, .72, 0, 1);
}

@keyframes hrcAuthBackdropIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Double-bezel: outer machined "tray" wrapping the inner card */
.hrc-auth-modal-shell {
    position: relative;
    z-index: 1;
    max-width: 480px;
    width: 100%;
    max-height: calc(100dvh - 48px);
    padding: 6px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    border-radius: 28px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 30px 80px -20px rgba(0, 0, 0, 0.65),
        0 10px 30px -10px rgba(255, 95, 0, 0.18);
    animation: hrcAuthShellIn .65s cubic-bezier(.32, .72, 0, 1);
    overflow: hidden;
    display: flex;
}

@keyframes hrcAuthShellIn {
    0%   { opacity: 0; transform: translateY(28px) scale(0.97); filter: blur(6px); }
    100% { opacity: 1; transform: translateY(0)    scale(1);    filter: blur(0); }
}

.hrc-auth-modal-card {
    position: relative;
    width: 100%;
    max-height: 100%;
    background: linear-gradient(180deg, #131316 0%, #0c0c0e 100%);
    border-radius: calc(28px - 6px);
    padding: 36px 32px 32px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: #f5f5f5;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.hrc-auth-modal-card::-webkit-scrollbar { width: 6px; }
.hrc-auth-modal-card::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 999px; }

/* Subtle orange glow orb in top-right */
.hrc-auth-modal-glow {
    position: absolute;
    top: -120px;
    right: -120px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255, 95, 0, 0.22), transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.hrc-auth-modal-card > *:not(.hrc-auth-modal-glow) {
    position: relative;
    z-index: 1;
}

/* Close button — hairline ring, no harsh fill */
.hrc-auth-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .35s cubic-bezier(.32, .72, 0, 1), background .35s cubic-bezier(.32, .72, 0, 1), color .35s cubic-bezier(.32, .72, 0, 1), border-color .35s cubic-bezier(.32, .72, 0, 1);
    z-index: 3;
}

.hrc-auth-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
    transform: rotate(90deg);
}

.hrc-auth-modal-close:active { transform: rotate(90deg) scale(0.92); }

/* Header — eyebrow + title + subtitle */
.hrc-auth-modal-head {
    margin-bottom: 26px;
    padding-right: 40px;
}

.hrc-auth-eyebrow {
    display: inline-block;
    padding: 4px 11px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--hrc-orange);
    background: rgba(255, 95, 0, 0.1);
    border: 1px solid rgba(255, 95, 0, 0.2);
    border-radius: 999px;
    margin-bottom: 14px;
}

.hrc-auth-title {
    margin: 0 0 6px;
    font-family: var(--hrc-font);
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.hrc-auth-subtitle {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
}

/* Tabs with morph indicator */
.hrc-auth-modal-tabs {
    position: relative;
    display: flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hrc-auth-tab-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: linear-gradient(180deg, #1f1f24, #16161a);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 4px 14px rgba(0, 0, 0, 0.35);
    transition: transform .55s cubic-bezier(.32, .72, 0, 1);
    z-index: 0;
}

.hrc-auth-modal-tabs[data-active="register"] .hrc-auth-tab-indicator {
    transform: translateX(100%);
}

.hrc-modal-tab {
    flex: 1;
    position: relative;
    z-index: 1;
    padding: 11px 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.5);
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: var(--hrc-font);
    transition: color .4s cubic-bezier(.32, .72, 0, 1);
}

.hrc-modal-tab:hover { color: rgba(255, 255, 255, 0.85); }
.hrc-modal-tab.active { color: #fff; }

/* Form fields — Editorial Luxury inputs */
.hrc-auth-form { display: flex; flex-direction: column; gap: 14px; }

.hrc-auth-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hrc-auth-field { display: flex; flex-direction: column; gap: 6px; }

.hrc-auth-form .hrc-auth-field label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

.hrc-auth-form .hrc-auth-field input,
.hrc-auth-form .hrc-auth-field input[type="text"],
.hrc-auth-form .hrc-auth-field input[type="email"],
.hrc-auth-form .hrc-auth-field input[type="tel"],
.hrc-auth-form .hrc-auth-field input[type="password"],
.hrc-auth-form .hrc-auth-field input[type="number"],
.hrc-auth-form .hrc-auth-field input[type="date"] {
    width: 100%;
    padding: 13px 15px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--hrc-font);
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    box-sizing: border-box;
    outline: none;
    transition: border-color .35s cubic-bezier(.32, .72, 0, 1), background .35s cubic-bezier(.32, .72, 0, 1), box-shadow .35s cubic-bezier(.32, .72, 0, 1);
}

.hrc-auth-form .hrc-auth-field input::placeholder {
    color: rgba(255, 255, 255, 0.25);
    font-weight: 400;
}

.hrc-auth-form .hrc-auth-field input:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.045);
}

.hrc-auth-form .hrc-auth-field input:focus {
    border-color: rgba(255, 95, 0, 0.65);
    background: rgba(255, 95, 0, 0.04);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 0 4px rgba(255, 95, 0, 0.12);
}

/* Date picker icon — adapt to dark theme */
.hrc-auth-form input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.8) brightness(1.2);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity .35s cubic-bezier(.32, .72, 0, 1);
}
.hrc-auth-form input[type="date"]:hover::-webkit-calendar-picker-indicator { opacity: 1; }

/* Custom checkbox consent */
.hrc-auth-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 4px;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    user-select: none;
}

.hrc-auth-consent input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.hrc-auth-consent-box {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 5px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .35s cubic-bezier(.32, .72, 0, 1);
}

.hrc-auth-consent input:checked + .hrc-auth-consent-box {
    background: var(--hrc-orange);
    border-color: var(--hrc-orange);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 0 4px rgba(255, 95, 0, 0.15);
}

.hrc-auth-consent input:focus-visible + .hrc-auth-consent-box {
    border-color: var(--hrc-orange);
    box-shadow: 0 0 0 4px rgba(255, 95, 0, 0.2);
}

.hrc-auth-consent-text { color: rgba(255, 255, 255, 0.6); }
.hrc-auth-consent-text a { color: var(--hrc-orange); text-decoration: none; }
.hrc-auth-consent-text a:hover { text-decoration: underline; }

/* CTA — button-in-button pattern with magnetic hover */
.hrc-auth-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    margin-top: 6px;
    padding: 6px 6px 6px 22px;
    font-family: var(--hrc-font);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #fff;
    background: linear-gradient(180deg, var(--hrc-orange), var(--hrc-orange-dark, #e55500));
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 10px 24px -8px rgba(255, 95, 0, 0.55),
        0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform .35s cubic-bezier(.32, .72, 0, 1), box-shadow .35s cubic-bezier(.32, .72, 0, 1);
    overflow: hidden;
}

.hrc-auth-cta-label {
    flex: 1;
    text-align: left;
    padding: 11px 0;
}

.hrc-auth-cta-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.22);
    border-radius: 999px;
    color: #fff;
    transition: transform .4s cubic-bezier(.32, .72, 0, 1), background .4s cubic-bezier(.32, .72, 0, 1);
}

.hrc-auth-cta:hover {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 14px 32px -8px rgba(255, 95, 0, 0.7),
        0 2px 6px rgba(0, 0, 0, 0.35);
}

.hrc-auth-cta:hover .hrc-auth-cta-icon {
    background: rgba(0, 0, 0, 0.32);
    transform: translateX(3px) translateY(-1px) scale(1.05);
}

.hrc-auth-cta:active { transform: scale(0.985); }

.hrc-auth-cta:disabled,
.hrc-auth-cta.hrc-loading {
    opacity: 0.7;
    cursor: progress;
}

/* Inline message (success/error) */
#hrc-modal-login-message,
#hrc-modal-register-message {
    margin-bottom: 14px;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    border: 1px solid transparent;
}

#hrc-modal-login-message.success,
#hrc-modal-register-message.success {
    background: rgba(0, 200, 83, 0.1);
    border-color: rgba(0, 200, 83, 0.28);
    color: #5eea9a;
}

#hrc-modal-login-message.error,
#hrc-modal-register-message.error {
    background: rgba(255, 23, 68, 0.1);
    border-color: rgba(255, 23, 68, 0.3);
    color: #ff7a92;
}

/* Mobile collapse — single column, generous padding */
@media (max-width: 600px) {
    .hrc-auth-modal { padding: 16px 12px; }
    .hrc-auth-modal-card { padding: 28px 22px 24px; }
    .hrc-auth-title { font-size: 21px; }
    .hrc-auth-field-row { grid-template-columns: 1fr; gap: 14px; }
}

/* Tags & Badges */
.hrc-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--hrc-gray-100);
    color: var(--hrc-gray-700);
    padding: 6px 14px;
    border-radius: var(--hrc-radius-xs);
    font-size: 12px;
    font-weight: 600;
}

.hrc-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .3px;
}

/* Header Auth */
.hrc-header-auth {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hrc-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hrc-user-info img {
    border-radius: 50%;
}

.hrc-greeting {
    font-weight: 600;
    color: var(--hrc-black);
}

.hrc-auth-buttons {
    display: flex;
    gap: 8px;
}

/* Thanks Page */
.hrc-thanks-wrap {
    text-align: center;
    padding: 60px 16px;
}

.hrc-thanks-wrap .hrc-success-icon {
    width: 80px;
    height: 80px;
    background: var(--hrc-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.hrc-thanks-wrap h2 {
    font-size: 28px;
    font-weight: 900;
    color: var(--hrc-black);
    margin: 0 0 12px;
}

.hrc-thanks-wrap p {
    color: var(--hrc-gray-500);
    font-size: 16px;
    margin: 0 0 24px;
}

.hrc-thanks-icon {
    margin-bottom: 20px;
}

.hrc-thanks-card {
    max-width: 640px;
    margin: 0 auto 16px;
    background: var(--hrc-white);
    border-radius: var(--hrc-radius);
    box-shadow: var(--hrc-shadow-lg), 0 0 0 1px rgba(0, 0, 0, .04);
    padding: 28px 32px;
}

/* Hero card — primary next-action */
.hrc-thanks-hero {
    text-align: left;
}

.hrc-thanks-hero-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.hrc-thanks-hero-header h2 {
    margin: 0 0 4px;
    font-size: 22px;
    letter-spacing: -.3px;
}

.hrc-thanks-hero-sub {
    margin: 0;
    color: var(--hrc-gray-500);
    font-size: 14px;
}

.hrc-thanks-next {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--hrc-gray-200);
}

.hrc-thanks-next-label {
    text-transform: uppercase;
    letter-spacing: .8px;
    font-size: 12px;
    color: var(--hrc-gray-500);
    margin-bottom: 10px;
    font-weight: 600;
}

.hrc-thanks-next-note {
    margin: 10px 0 0;
    color: var(--hrc-gray-500);
    font-size: 13px;
}

.hrc-btn-lg {
    padding: 14px 22px;
    font-size: 15px;
}

/* Timeline */
.hrc-thanks-section-title {
    margin: 0 0 16px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--hrc-gray-500);
}

.hrc-thanks-timeline {
    list-style: none;
    text-align: left;
    margin: 0;
    padding: 0;
}

.hrc-tl-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--hrc-gray-100);
    align-items: flex-start;
}

.hrc-tl-item:last-child {
    border-bottom: 0;
}

.hrc-tl-icon {
    flex: 0 0 28px;
    height: 28px;
    width: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--hrc-gray-100);
    color: var(--hrc-gray-400);
}

.hrc-tl-done .hrc-tl-icon {
    background: #d1fae5;
    color: #059669;
}

.hrc-tl-current .hrc-tl-icon {
    background: #fed7aa;
    color: var(--hrc-orange);
}

.hrc-tl-item strong {
    display: block;
    font-size: 14px;
    color: var(--hrc-black);
    margin-bottom: 2px;
}

.hrc-tl-item small {
    display: block;
    color: var(--hrc-gray-500);
    font-size: 13px;
    line-height: 1.5;
}

.hrc-tl-cta {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--hrc-orange);
    font-weight: 600;
    text-decoration: none;
}

.hrc-tl-cta:hover {
    text-decoration: underline;
}

/* Collapsible recap */
.hrc-thanks-summary-card {
    padding: 0;
}

.hrc-thanks-summary-card summary {
    cursor: pointer;
    padding: 20px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    list-style: none;
}

.hrc-thanks-summary-card summary::-webkit-details-marker {
    display: none;
}

.hrc-thanks-summary-card[open] summary {
    border-bottom: 1px solid var(--hrc-gray-100);
}

.hrc-thanks-total-preview {
    color: var(--hrc-orange);
    font-weight: 700;
}

.hrc-thanks-summary-card .hrc-thanks-summary {
    margin: 0;
    padding: 20px 28px;
    background: transparent;
}

/* Secondary actions row */
.hrc-thanks-secondary-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.hrc-thanks-secondary-actions .hrc-btn {
    flex: 1 1 180px;
    justify-content: center;
}

@media (max-width: 560px) {
    .hrc-thanks-card {
        padding: 20px;
    }
    .hrc-thanks-hero-header {
        flex-direction: column;
    }
}

.hrc-thanks-summary {
    text-align: left;
    background: var(--hrc-gray-100);
    border-radius: var(--hrc-radius);
    padding: 20px 24px;
    margin-bottom: 28px;
}

.hrc-thanks-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--hrc-gray-200);
}

.hrc-thanks-row:last-child {
    border-bottom: none;
}

.hrc-thanks-total {
    font-weight: 800;
    color: var(--hrc-orange);
    font-size: 16px;
}

.hrc-thanks-checklist {
    text-align: left;
    margin-bottom: 28px;
}

.hrc-thanks-checklist h3 {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--hrc-gray-500);
    margin: 0 0 16px;
}

.hrc-thanks-checklist ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hrc-thanks-checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--hrc-gray-200);
    font-size: 14px;
    font-weight: 600;
}

.hrc-thanks-checklist li:last-child {
    border-bottom: none;
}

.hrc-check-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hrc-check-icon-done {
    background: #f0fdf4;
    color: #16a34a;
}

.hrc-check-icon-pending {
    background: #fef3c7;
    color: #f59e0b;
}

.hrc-check-done span:last-child {
    color: var(--hrc-gray-700);
}

.hrc-check-pending span:last-child {
    color: var(--hrc-gray-500);
}

.hrc-thanks-email-note {
    font-size: 13px !important;
    color: var(--hrc-gray-400) !important;
    margin-bottom: 24px !important;
}

.hrc-thanks-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- Responsive ---- */
@media(max-width:768px) {
    .hrc-detail-layout {
        grid-template-columns: 1fr;
    }

    .hrc-book-dates {
        grid-template-columns: 1fr;
    }

    .hrc-book-row {
        grid-template-columns: 1fr;
    }

    .hrc-hero-main {
        height: 300px;
    }

    .hrc-detail-title {
        font-size: 24px;
    }

    .hrc-car-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Multi-Step Wizard Content ---- */
.hrc-wizard-step {
    display: none;
    animation: hrcStepReveal .6s cubic-bezier(.32, .72, 0, 1) forwards;
}

.hrc-wizard-step.active {
    display: block;
}

@keyframes hrcStepReveal {
    from {
        opacity: 0;
        transform: translateY(16px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Mileage Pack Selector */
.hrc-pack-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hrc-pack-card {
    display: flex;
    flex-direction: column;
    padding: 18px;
    border: 2px solid var(--hrc-gray-200);
    border-radius: var(--hrc-radius);
    cursor: pointer;
    background: var(--hrc-white);
    transition: var(--hrc-transition);
    position: relative;
}

.hrc-pack-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.hrc-pack-card:hover {
    border-color: var(--hrc-orange);
    transform: translateY(-2px);
    box-shadow: var(--hrc-shadow);
}

.hrc-pack-card:has(input:checked) {
    border-color: var(--hrc-orange);
    background: var(--hrc-orange-light);
    box-shadow: 0 0 0 1px var(--hrc-orange), 0 4px 12px rgba(255, 95, 0, .10);
}

.hrc-pack-inner strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--hrc-black);
    margin-bottom: 2px;
}

.hrc-pack-inner small {
    font-size: 11px;
    color: var(--hrc-gray-500);
}

.hrc-pack-price {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 800;
    color: var(--hrc-orange);
}

@media(max-width: 400px) {
    .hrc-pack-selector {
        grid-template-columns: 1fr;
    }
}

/* Protections Grid */
.hrc-protections-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 8px;
}

/* Radio Cards (Protections & Mileage) */
.hrc-radio-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.hrc-protection-card,
.hrc-mileage-card {
    position: relative;
    border: 2px solid var(--hrc-gray-200);
    border-radius: var(--hrc-radius);
    padding: 22px;
    cursor: pointer;
    background: var(--hrc-white);
    transition: var(--hrc-transition);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, .4);
}

.hrc-protection-card:hover,
.hrc-mileage-card:hover {
    border-color: var(--hrc-orange);
    transform: translateY(-3px);
    box-shadow: var(--hrc-shadow-md), inset 0 1px 1px rgba(255, 255, 255, .4);
}

.hrc-protection-card input[type="radio"],
.hrc-mileage-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.hrc-protection-card input[type="radio"]:checked+.hrc-card-content,
.hrc-mileage-card input[type="radio"]:checked+.hrc-card-content {
    /* We handle styling on the parent via JS or sibling selector */
}

.hrc-protection-card:has(input[type="radio"]:checked),
.hrc-mileage-card:has(input[type="radio"]:checked) {
    border-color: var(--hrc-orange);
    background: var(--hrc-orange-light);
    box-shadow: 0 0 0 1px var(--hrc-orange), 0 4px 16px rgba(255, 95, 0, .10);
    transform: translateY(-2px);
}

.hrc-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.hrc-card-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--hrc-black);
    margin: 0;
}

.hrc-card-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--hrc-gray-500);
}

.hrc-protection-card:has(input[type="radio"]:checked) .hrc-card-price {
    color: var(--hrc-orange);
}

.hrc-card-desc {
    font-size: 13px;
    color: var(--hrc-gray-500);
    margin-bottom: 12px;
    line-height: 1.5;
}

.hrc-card-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hrc-card-features li {
    font-size: 12px;
    color: var(--hrc-gray-700);
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.hrc-card-features li svg {
    color: var(--hrc-success);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Recommended Badge — Eyebrow Pill */
.hrc-badge-recommended,
.hrc-prot-badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--hrc-black);
    color: var(--hrc-orange);
    font-size: 9px;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}

/* Protection Card Internals */
.hrc-prot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.hrc-prot-header h4 {
    font-size: 16px;
    font-weight: 800;
    color: var(--hrc-black);
    margin: 0;
}

.hrc-prot-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--hrc-gray-500);
    white-space: nowrap;
}

.hrc-protection-card:has(input:checked) .hrc-prot-price {
    color: var(--hrc-orange);
}

.hrc-protection-card p {
    font-size: 13px;
    color: var(--hrc-gray-500);
    margin: 0;
    line-height: 1.5;
}

.hrc-protection-card.recommended {
    border-color: var(--hrc-orange);
}

/* Extras Checkboxes */
.hrc-extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

/* ─── Extras — Editorial Luxury redesign ───────────────────────────────────
   Card-row layout: info on the left (name + optional desc),
   meta on the right (price + control). Control is either a custom stepper
   (qty items) or a custom pill toggle (cb items). The native <input> is kept
   for value tracking but visually hidden — clicks propagate via JS so the
   existing pricing logic (.hrc-extra-qty input/change) keeps firing. */
.hrc-extras-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hrc-extra-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 64px;
    padding: 14px 16px;
    border-radius: var(--hrc-radius);
    cursor: pointer;
    background: var(--hrc-white);
    box-shadow: inset 0 0 0 1.5px var(--hrc-gray-200);
    transition: box-shadow .35s cubic-bezier(.32,.72,0,1),
                background .35s cubic-bezier(.32,.72,0,1),
                transform .35s cubic-bezier(.32,.72,0,1);
}

.hrc-extra-item:hover {
    box-shadow: inset 0 0 0 1.5px var(--hrc-gray-400), 0 6px 18px rgba(0,0,0,.05);
    transform: translateY(-1px);
}

/* Active state — driven by :has() for cb items + [data-active] for qty items */
.hrc-extra-item.is-cb:has(input:checked),
.hrc-extra-item.is-qty[data-active] {
    background: var(--hrc-orange-light);
    box-shadow: inset 0 0 0 1.5px var(--hrc-orange), 0 8px 22px rgba(255,95,0,.10);
}
.hrc-extra-item.is-cb:has(input:checked) .hrc-extra-price,
.hrc-extra-item.is-qty[data-active] .hrc-extra-price {
    color: var(--hrc-orange-dark);
}

.hrc-extra-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hrc-extra-info strong {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--hrc-black);
    line-height: 1.3;
}
.hrc-extra-info small {
    font-size: 12px;
    color: var(--hrc-gray-500);
    line-height: 1.4;
}

.hrc-extra-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.hrc-extra-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--hrc-orange);
    white-space: nowrap;
    transition: color .35s cubic-bezier(.32,.72,0,1);
}

/* Custom stepper — replaces the native number spinner */
.hrc-extra-stepper {
    display: inline-flex;
    align-items: center;
    background: var(--hrc-gray-100);
    border-radius: 999px;
    padding: 3px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
    transition: background .35s cubic-bezier(.32,.72,0,1),
                box-shadow .35s cubic-bezier(.32,.72,0,1);
}
.hrc-extra-item.is-qty[data-active] .hrc-extra-stepper {
    background: var(--hrc-white);
    box-shadow: inset 0 0 0 1px rgba(255,95,0,.25);
}
.hrc-extra-step {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--hrc-gray-500);
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s cubic-bezier(.32,.72,0,1),
                color .2s cubic-bezier(.32,.72,0,1),
                transform .2s cubic-bezier(.32,.72,0,1);
}
.hrc-extra-step:hover {
    background: var(--hrc-white);
    color: var(--hrc-black);
}
.hrc-extra-step:active { transform: scale(.92); }
.hrc-extra-item.is-qty[data-active] .hrc-extra-step:hover {
    background: var(--hrc-orange);
    color: #fff;
}
.hrc-extra-qty {
    width: 32px;
    height: 30px;
    text-align: center;
    background: transparent;
    border: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--hrc-black);
    -moz-appearance: textfield;
    appearance: textfield;
}
.hrc-extra-qty::-webkit-outer-spin-button,
.hrc-extra-qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.hrc-extra-qty:focus { outline: none; }

/* Custom pill toggle — replaces the native checkbox */
.hrc-extra-item.is-cb .hrc-extra-cb {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.hrc-extra-pill {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--hrc-gray-100);
    box-shadow: inset 0 0 0 1.5px var(--hrc-gray-200);
    color: transparent;
    transition: background .35s cubic-bezier(.32,.72,0,1),
                box-shadow .35s cubic-bezier(.32,.72,0,1),
                color .25s cubic-bezier(.32,.72,0,1),
                transform .25s cubic-bezier(.32,.72,0,1);
}
.hrc-extra-item.is-cb:hover .hrc-extra-pill {
    background: var(--hrc-white);
    box-shadow: inset 0 0 0 1.5px var(--hrc-gray-400);
}
.hrc-extra-item.is-cb:has(input:checked) .hrc-extra-pill {
    background: var(--hrc-orange);
    box-shadow: inset 0 0 0 1.5px var(--hrc-orange), 0 4px 10px rgba(255,95,0,.25);
    color: #fff;
    transform: scale(1.04);
}

/* Mobile — keep info + meta on the same row but tighten spacing */
@media (max-width: 480px) {
    .hrc-extra-item {
        gap: 12px;
        padding: 12px 14px;
        min-height: 60px;
    }
    .hrc-extra-info strong { font-size: 14px; }
    .hrc-extra-info small { font-size: 11.5px; }
    .hrc-extra-meta { gap: 10px; }
    .hrc-extra-price { font-size: 13px; }
    .hrc-extra-step { width: 28px; height: 28px; }
    .hrc-extra-qty  { width: 28px; height: 28px; font-size: 13.5px; }
    .hrc-extra-pill { width: 28px; height: 28px; }
}

/* Stack price above control on very narrow viewports — keeps card readable */
@media (max-width: 380px) {
    .hrc-extra-meta {
        flex-direction: column;
        align-items: flex-end;
        gap: 6px;
    }
}

/* Wizard Buttons — Magnetic Hover Physics */
.hrc-wizard-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--hrc-gray-200);
    gap: 12px;
}

.hrc-btn-prev,
.hrc-wizard-actions .hrc-btn-outline {
    padding: 16px 24px;
    background: var(--hrc-white) !important;
    color: var(--hrc-gray-700) !important;
    border: 2px solid var(--hrc-gray-200) !important;
    border-radius: var(--hrc-radius) !important;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--hrc-transition);
    font-family: var(--hrc-font);
}

.hrc-btn-prev:hover,
.hrc-wizard-actions .hrc-btn-outline:hover {
    border-color: var(--hrc-orange);
    color: var(--hrc-orange);
}

.hrc-btn-prev:active,
.hrc-wizard-actions .hrc-btn-outline:active {
    transform: scale(.98);
}

.hrc-btn-next,
.hrc-next-step,
.hrc-wizard-actions .hrc-btn-primary {
    padding: 16px 20px 16px 28px;
    background: var(--hrc-orange) !important;
    color: var(--hrc-white) !important;
    border: 2px solid var(--hrc-orange) !important;
    border-radius: var(--hrc-radius) !important;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    cursor: pointer;
    transition: var(--hrc-transition);
    box-shadow: 0 4px 16px rgba(255, 95, 0, .2);
    font-family: var(--hrc-font);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Button-in-Button trailing icon */
.hrc-btn-next svg,
.hrc-next-step svg,
.hrc-btn-primary svg {
    width: 28px;
    height: 28px;
    padding: 5px;
    background: rgba(255, 255, 255, .15);
    border-radius: 50%;
    transition: var(--hrc-transition);
    flex-shrink: 0;
}

.hrc-btn-next:hover,
.hrc-next-step:hover,
.hrc-wizard-actions .hrc-btn-primary:hover {
    background: var(--hrc-orange-dark) !important;
    border-color: var(--hrc-orange-dark) !important;
    box-shadow: 0 0 0 1px var(--hrc-orange-dark);
}

.hrc-btn-next:hover svg,
.hrc-next-step:hover svg,
.hrc-wizard-actions .hrc-btn-primary:hover svg {
    background: rgba(255, 255, 255, .25);
    transform: translateX(2px);
}

.hrc-btn-next:active,
.hrc-next-step:active,
.hrc-wizard-actions .hrc-btn-primary:active {
    transform: scale(.98);
}

.hrc-btn-block {
    width: 100%;
    justify-content: center;
}

/* Dynamic Summary Sticky Header logic (desktop) */
@media(min-width: 961px) {
    .hrc-book-card {
        top: 80px;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--hrc-gray-200) transparent;
    }

    .hrc-book-card::-webkit-scrollbar {
        width: 4px;
    }

    .hrc-book-card::-webkit-scrollbar-track {
        background: transparent;
    }

    .hrc-book-card::-webkit-scrollbar-thumb {
        background: var(--hrc-gray-200);
        border-radius: 999px;
    }
}

/* ── Loading state for buttons ────── */
.hrc-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.hrc-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: hrc-spin 0.6s linear infinite;
}

@keyframes hrc-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Devis Request Page ────────────── */
.hrc-devis-request-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 32px 20px;
}

.hrc-devis-request-header {
    text-align: center;
    margin-bottom: 32px;
}

.hrc-devis-request-header h1 {
    font-family: var(--hrc-font);
    font-size: 32px;
    font-weight: 800;
    color: var(--hrc-black);
    margin-bottom: 8px;
}

.hrc-devis-request-header p {
    color: var(--hrc-gray-500);
    font-size: 15px;
}

.hrc-devis-card {
    background: var(--hrc-white);
    border: 1px solid var(--hrc-gray-200);
    border-radius: var(--hrc-radius);
    padding: 24px;
    margin-bottom: 16px;
}

.hrc-devis-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--hrc-font);
    font-size: 16px;
    font-weight: 700;
    color: var(--hrc-black);
    margin-bottom: 16px;
}

.hrc-devis-card-title svg {
    color: var(--hrc-orange);
    flex-shrink: 0;
}

.hrc-devis-form-public .hrc-devis-select,
.hrc-devis-form-public input[type="text"],
.hrc-devis-form-public input[type="email"],
.hrc-devis-form-public input[type="tel"],
.hrc-devis-form-public input[type="date"],
.hrc-devis-form-public select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--hrc-gray-200);
    border-radius: 10px;
    font-size: 14px;
    font-family: var(--hrc-font);
    background: var(--hrc-white);
    transition: border-color var(--hrc-transition);
    -webkit-appearance: none;
}

.hrc-devis-form-public input:focus,
.hrc-devis-form-public select:focus,
.hrc-devis-form-public textarea:focus {
    border-color: var(--hrc-orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 95, 0, 0.1);
}

.hrc-devis-textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--hrc-gray-200);
    border-radius: 10px;
    font-size: 14px;
    font-family: var(--hrc-font);
    resize: vertical;
    min-height: 120px;
    transition: border-color var(--hrc-transition);
}

.hrc-devis-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.hrc-devis-field label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: var(--hrc-gray-700);
    margin-bottom: 6px;
}

.hrc-devis-dt {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.hrc-devis-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--hrc-gray-500);
    cursor: pointer;
    margin-bottom: 20px;
    line-height: 1.5;
}

.hrc-devis-consent input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.hrc-btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hrc-btn-block {
    width: 100%;
}

/* Success state */
.hrc-devis-success {
    text-align: center;
    padding: 60px 20px;
}

.hrc-devis-success-icon {
    margin-bottom: 20px;
}

.hrc-devis-success h2 {
    font-family: var(--hrc-font);
    font-size: 28px;
    font-weight: 800;
    color: var(--hrc-black);
    margin-bottom: 12px;
}

.hrc-devis-success p {
    font-size: 15px;
    color: var(--hrc-gray-500);
    margin-bottom: 24px;
}

@media (max-width: 640px) {
    .hrc-devis-row { grid-template-columns: 1fr; }
    .hrc-devis-dt { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════
   Fleet Manager Panel — Dark Premium
   ═══════════════════════════════════════ */

/* Force panel to break out of any WP container */
.hrc-panel {
    display: flex;
    min-height: 100vh;
    background: var(--hrc-gray-900);
    color: var(--hrc-gray-100);
    font-family: var(--hrc-font);
    width: 100vw;
}

/* ── Sidebar ──────────────────────── */
.hrc-panel-sidebar {
    width: 64px;
    min-height: 100vh;
    background: var(--hrc-black);
    border-right: 1px solid #2a2a2a;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: width 0.3s cubic-bezier(.32,.72,0,1);
    overflow: hidden;
}

.hrc-panel-sidebar:hover {
    width: 220px;
}

.hrc-panel-logo {
    height: 64px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    border-bottom: 1px solid #2a2a2a;
    flex-shrink: 0;
    overflow: hidden;
}

.hrc-panel-logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: contain;
    flex-shrink: 0;
}

.hrc-panel-logo-fallback {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--hrc-orange);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hrc-panel-logo-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.hrc-panel-nav {
    flex: 1;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hrc-panel-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--hrc-gray-400);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.hrc-panel-nav-item:hover {
    color: #fff;
    background: rgba(255,255,255,.04);
}

.hrc-panel-nav-item.active {
    color: var(--hrc-orange);
    border-left-color: var(--hrc-orange);
    background: rgba(255,95,0,.08);
}

.hrc-panel-nav-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
}

.hrc-panel-nav-label {
    opacity: 0;
    transition: opacity 0.2s ease 0.1s;
    white-space: nowrap;
    overflow: hidden;
}

.hrc-panel-sidebar:hover .hrc-panel-nav-label {
    opacity: 1;
}

.hrc-panel-sidebar-footer {
    border-top: 1px solid #2a2a2a;
    padding: 8px 0;
}

.hrc-panel-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    white-space: nowrap;
    overflow: hidden;
}

.hrc-panel-user img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Mobile toggle ────────────────── */
.hrc-panel-toggle {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 200;
    background: var(--hrc-black);
    border: 1px solid #333;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ── Main content ─────────────────── */
.hrc-panel-main {
    flex: 1;
    min-width: 0;
    padding: 32px;
}

.hrc-panel-section {
    max-width: 1200px;
}

.hrc-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.hrc-panel-header h1 {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hrc-panel-header h1 img {
    border-radius: 50%;
}

.hrc-panel-header p {
    font-size: 14px;
    color: var(--hrc-gray-400);
    margin-top: 2px;
}

.hrc-panel-header-actions {
    display: flex;
    gap: 6px;
}

/* ── KPI Cards ────────────────────── */
.hrc-panel-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.hrc-panel-kpi {
    background: var(--hrc-dark);
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hrc-panel-kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hrc-panel-kpi-data {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hrc-panel-kpi-value {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hrc-panel-kpi-label {
    font-size: 12px;
    color: var(--hrc-gray-400);
    margin-top: 2px;
}

/* ── Cards ─────────────────────────── */
.hrc-panel-card {
    background: var(--hrc-dark);
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
}

.hrc-panel-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.hrc-panel-card-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.hrc-panel-link {
    font-size: 13px;
    color: var(--hrc-orange);
    text-decoration: none;
    font-weight: 600;
}

.hrc-panel-link:hover {
    text-decoration: underline;
}

/* ── Tables ────────────────────────── */
.hrc-panel-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.hrc-panel-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.hrc-panel-table thead th {
    text-align: left;
    padding: 10px 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--hrc-gray-400);
    border-bottom: 1px solid #333;
    white-space: nowrap;
}

.hrc-panel-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #2a2a2a;
    vertical-align: middle;
}

.hrc-panel-table tbody tr:hover {
    background: rgba(255,255,255,.02);
}

.hrc-panel-action {
    color: var(--hrc-orange);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
}

.hrc-panel-action:hover {
    text-decoration: underline;
}

/* ── Pills / Tabs ──────────────────── */
.hrc-panel-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.hrc-panel-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    color: var(--hrc-gray-400);
    background: rgba(255,255,255,.05);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.hrc-panel-pill:hover {
    color: #fff;
    background: rgba(255,255,255,.08);
}

.hrc-panel-pill.active {
    color: var(--hrc-orange);
    background: rgba(255,95,0,.12);
    border-color: rgba(255,95,0,.3);
}

/* ── Form fields (panel context) ───── */
.hrc-panel-form-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
}

.hrc-panel-form-main {
    min-width: 0;
}

.hrc-panel-form-sidebar {
    min-width: 0;
}

.hrc-panel-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.hrc-panel-field {
    margin-bottom: 14px;
}

.hrc-panel-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--hrc-gray-400);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.hrc-panel-field input,
.hrc-panel-field select,
.hrc-panel-field textarea {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-family: var(--hrc-font);
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.hrc-panel-field input:focus,
.hrc-panel-field select:focus,
.hrc-panel-field textarea:focus {
    border-color: var(--hrc-orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,95,0,.15);
}

.hrc-panel-field select {
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.hrc-panel-field-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

/* ── Settings override (dark context) ── */
.hrc-panel-card .hrc-field label,
.hrc-panel-card label {
    color: var(--hrc-gray-400) !important;
    font-size: 12px;
}

.hrc-panel-card input[type="text"],
.hrc-panel-card input[type="number"],
.hrc-panel-card input[type="email"],
.hrc-panel-card input[type="tel"],
.hrc-panel-card input[type="url"],
.hrc-panel-card input[type="time"],
.hrc-panel-card input[type="date"],
.hrc-panel-card input[type="datetime-local"],
.hrc-panel-card select,
.hrc-panel-card textarea {
    background: rgba(255,255,255,.06) !important;
    border: 1px solid #333 !important;
    color: #fff !important;
    border-radius: 8px;
    padding: 10px 12px;
    font-family: var(--hrc-font);
}

.hrc-panel-card input:focus,
.hrc-panel-card select:focus,
.hrc-panel-card textarea:focus {
    border-color: var(--hrc-orange) !important;
    box-shadow: 0 0 0 3px rgba(255,95,0,.15);
}

/* Fix select dropdown option colors (browser renders options with their own bg) */
.hrc-panel select option,
.hrc-panel-card select option {
    background: #1a1a1a;
    color: #fff;
}

.hrc-panel select optgroup {
    background: #1a1a1a;
    color: #fff;
}

/* ── Admin forms reused in panel ───── */
.hrc-panel .hrc-card,
.hrc-panel .hrc-detail-grid .hrc-card {
    background: var(--hrc-dark);
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
    color: #fff;
}

.hrc-panel .hrc-card h3 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 14px;
}

.hrc-panel .hrc-detail-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
}

.hrc-panel .hrc-field label,
.hrc-panel .hrc-field-row label {
    color: var(--hrc-gray-400) !important;
    font-size: 12px;
}

.hrc-panel .hrc-field input,
.hrc-panel .hrc-field select,
.hrc-panel .hrc-field textarea,
.hrc-panel .hrc-field-row input,
.hrc-panel .hrc-field-row select {
    background: rgba(255,255,255,.06) !important;
    border: 1px solid #333 !important;
    color: #fff !important;
    border-radius: 8px;
    padding: 10px 12px;
    font-family: var(--hrc-font);
    width: 100%;
}

.hrc-panel .hrc-field input:focus,
.hrc-panel .hrc-field select:focus,
.hrc-panel .hrc-field textarea:focus {
    border-color: var(--hrc-orange) !important;
}

.hrc-panel .hrc-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hrc-panel .widefat {
    background: transparent;
    border: none;
    color: #fff;
}

.hrc-panel .widefat th {
    color: var(--hrc-gray-400);
    font-size: 11px;
    text-transform: uppercase;
    border-bottom: 1px solid #333;
    padding: 8px 10px;
}

.hrc-panel .widefat td {
    border-bottom: 1px solid #2a2a2a;
    padding: 8px 10px;
    color: #fff;
}

.hrc-panel .widefat input {
    background: rgba(255,255,255,.06) !important;
    border: 1px solid #333 !important;
    color: #fff !important;
    border-radius: 6px;
    padding: 8px 10px;
}

.hrc-panel .widefat select {
    background: rgba(255,255,255,.06) !important;
    border: 1px solid #333 !important;
    color: #fff !important;
    border-radius: 6px;
}

.hrc-panel .button {
    background: rgba(255,255,255,.08);
    border: 1px solid #444;
    color: #fff;
    border-radius: 8px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 13px;
}

.hrc-panel .button:hover {
    background: rgba(255,255,255,.12);
}

.hrc-panel .button-primary {
    background: var(--hrc-orange) !important;
    border-color: var(--hrc-orange) !important;
    color: #fff !important;
}

.hrc-panel .button-primary:hover {
    background: var(--hrc-orange-dark) !important;
}

.hrc-panel .notice {
    background: rgba(255,255,255,.06);
    border-left: 3px solid var(--hrc-orange);
    color: #fff;
    border-radius: 8px;
}

@media (max-width: 900px) {
    .hrc-panel .hrc-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Badges in dark context ────────── */
.hrc-panel .hrc-badge {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
}

/* ── Message ───────────────────────── */
.hrc-panel .hrc-message {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 16px;
}

.hrc-panel .hrc-message.success {
    background: rgba(0,200,83,.1);
    color: #22c55e;
    border: 1px solid rgba(0,200,83,.2);
}

.hrc-panel .hrc-message.error {
    background: rgba(255,23,68,.1);
    color: #ef4444;
    border: 1px solid rgba(255,23,68,.2);
}

/* ── Responsive ────────────────────── */
@media (max-width: 900px) {
    .hrc-panel {
        margin-top: -20px;
        margin-bottom: -20px;
    }

    .hrc-panel-sidebar {
        position: fixed;
        left: -240px;
        width: 240px;
        transition: left 0.3s cubic-bezier(.32,.72,0,1);
        z-index: 300;
    }

    .hrc-panel-sidebar.open {
        left: 0;
    }

    .hrc-panel-sidebar .hrc-panel-nav-label {
        opacity: 1;
    }

    .hrc-panel-toggle {
        display: flex;
    }

    .hrc-panel-main {
        padding: 60px 16px 24px;
    }

    .hrc-panel-kpis {
        grid-template-columns: 1fr 1fr;
    }

    .hrc-panel-form-grid {
        grid-template-columns: 1fr;
    }

    .hrc-panel-header h1 {
        font-size: 20px;
    }
}

/* Driver profile compliance notice (wizard step 4) */
.hrc-driver-profile-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 14px 0 4px;
    padding: 12px 14px;
    border-radius: var(--hrc-radius-sm);
    border: 1px solid transparent;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;
}

.hrc-driver-profile-notice .hrc-driver-profile-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    margin-top: 2px;
}

.hrc-driver-profile-notice .hrc-driver-profile-text { flex: 1; }

.hrc-driver-profile-notice a {
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dashed currentColor;
}

.hrc-driver-profile-notice a:hover { border-bottom-style: solid; }

.hrc-driver-profile-success {
    background: rgba(0, 200, 83, 0.08);
    border-color: rgba(0, 200, 83, 0.28);
    color: #117a3d;
}

.hrc-driver-profile-warning {
    background: rgba(255, 152, 0, 0.08);
    border-color: rgba(255, 152, 0, 0.32);
    color: #8a4b00;
}

.hrc-driver-profile-info {
    background: rgba(60, 110, 200, 0.06);
    border-color: rgba(60, 110, 200, 0.22);
    color: #2a4f8f;
}

@keyframes hrcDriverNoticeFlash {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.hrc-driver-profile-notice.hrc-driver-profile-flash {
    animation: hrcDriverNoticeFlash .55s cubic-bezier(.32, .72, 0, 1);
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.18);
}

#hrc-book-btn[disabled],
#hrc-book-btn:disabled,
#hrc-book-btn.is-disabled {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    filter: grayscale(40%) !important;
    background: var(--hrc-gray-400) !important;
    border-color: var(--hrc-gray-400) !important;
    box-shadow: none !important;
}

/* Payment card wrapper — visible, spaced, structured */
.hrc-payment-card-wrap {
    margin: 22px 0 18px;
    padding: 22px 22px 20px;
    background: linear-gradient(180deg, #fff, #fafbfc);
    border: 1px solid var(--hrc-gray-200);
    border-radius: var(--hrc-radius);
    box-shadow: 0 4px 20px -8px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    box-sizing: border-box;
}

.hrc-payment-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--hrc-gray-200);
}

.hrc-payment-card-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--hrc-orange-light);
    color: var(--hrc-orange);
    border-radius: 12px;
    border: 1px solid rgba(255, 95, 0, 0.18);
}

.hrc-payment-card-head strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--hrc-black);
    letter-spacing: -0.005em;
}

.hrc-payment-card-head small {
    display: block;
    font-size: 11px;
    color: var(--hrc-gray-500);
    margin-top: 2px;
    font-weight: 500;
}

#hrc-stripe-card-element {
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--hrc-gray-200);
    border-radius: var(--hrc-radius-sm);
    transition: border-color .25s cubic-bezier(.32, .72, 0, 1), box-shadow .25s cubic-bezier(.32, .72, 0, 1);
    min-height: 48px;
}

#hrc-stripe-card-element.StripeElement--focus {
    border-color: var(--hrc-orange);
    box-shadow: 0 0 0 3px rgba(255, 95, 0, 0.12);
}

/* Promo code field */
.hrc-promo-field {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--hrc-gray-200);
}

.hrc-promo-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--hrc-gray-500);
    margin-bottom: 8px;
}

.hrc-promo-row {
    display: flex;
    gap: 8px;
}

.hrc-promo-row input {
    flex: 1;
    padding: 11px 14px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--hrc-font);
    color: var(--hrc-black);
    background: #fff;
    border: 1px solid var(--hrc-gray-200);
    border-radius: var(--hrc-radius-sm);
    box-sizing: border-box;
    outline: none;
    transition: border-color .25s cubic-bezier(.32, .72, 0, 1), box-shadow .25s cubic-bezier(.32, .72, 0, 1);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hrc-promo-row input:focus {
    border-color: var(--hrc-orange);
    box-shadow: 0 0 0 3px rgba(255, 95, 0, 0.12);
}

.hrc-promo-row .hrc-btn {
    flex-shrink: 0;
    padding: 0 18px;
    font-size: 12px;
    font-weight: 700;
}

/* Mobile : 16px sur l'input promo pour empêcher le zoom auto iOS au focus,
   et min-width:0 pour laisser flex rétrécir l'input dans la rangée. */
@media (max-width: 767px) {
    .hrc-promo-row input {
        font-size: 16px;
        min-width: 0;
    }
}

.hrc-promo-feedback {
    margin: 10px 0 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.hrc-promo-feedback.is-valid { color: var(--hrc-success); }
.hrc-promo-feedback.is-invalid { color: var(--hrc-danger); }

/* Notes collapsible */
.hrc-notes-section {
    margin: 18px 0 8px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--hrc-gray-200);
    border-radius: var(--hrc-radius-sm);
    overflow: hidden;
    transition: border-color .25s cubic-bezier(.32, .72, 0, 1);
}

.hrc-notes-section[open] {
    border-color: var(--hrc-orange);
}

.hrc-notes-summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--hrc-black);
    user-select: none;
}

.hrc-notes-summary::-webkit-details-marker { display: none; }

.hrc-notes-summary-hint {
    color: var(--hrc-gray-500);
    font-weight: 500;
    font-size: 12px;
}

.hrc-notes-summary-chevron {
    margin-left: auto;
    color: var(--hrc-gray-500);
    font-size: 14px;
    transition: transform .35s cubic-bezier(.32, .72, 0, 1);
}

.hrc-notes-section[open] .hrc-notes-summary-chevron {
    transform: rotate(180deg);
}

.hrc-notes-body {
    padding: 0 16px 14px;
}

.hrc-notes-body textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    font-family: var(--hrc-font);
    border: 1px solid var(--hrc-gray-200);
    border-radius: var(--hrc-radius-xs);
    box-sizing: border-box;
    outline: none;
    resize: vertical;
    transition: border-color .25s cubic-bezier(.32, .72, 0, 1);
}

.hrc-notes-body textarea:focus {
    border-color: var(--hrc-orange);
}

/* Vehicle search — agency-mismatch indicator (same visual as .hrc-unavailable) */
.hrc-elsewhere-badge {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--hrc-orange);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--hrc-radius-sm);
    font-weight: 800;
    font-size: 15px;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8);
    z-index: 10;
    pointer-events: none;
    white-space: nowrap;
}

.hrc-car-card--elsewhere .hrc-elsewhere-badge {
    display: block;
}

.hrc-car-card.hrc-unavailable .hrc-elsewhere-badge {
    display: none;
}

/* ──────────────────────────────────────────
   GLOBAL INFO MODALS — Tarifs livraison / Coming soon
   Same Editorial Luxury / Doppelrand vocabulary as auth modal
   ────────────────────────────────────────── */
.hrc-info-modal {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.hrc-info-modal-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(255, 95, 0, 0.08), rgba(8, 8, 10, 0.78) 60%);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    cursor: pointer;
    animation: hrcInfoBackdropIn .5s cubic-bezier(.32, .72, 0, 1);
}

@keyframes hrcInfoBackdropIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.hrc-info-modal-shell {
    position: relative;
    z-index: 1;
    max-width: 520px;
    width: 100%;
    max-height: calc(100dvh - 48px);
    padding: 6px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    border-radius: 28px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 30px 80px -20px rgba(0, 0, 0, 0.65),
        0 10px 30px -10px rgba(255, 95, 0, 0.18);
    animation: hrcInfoShellIn .65s cubic-bezier(.32, .72, 0, 1);
    overflow: hidden;
    display: flex;
}

.hrc-info-modal--compact .hrc-info-modal-shell {
    max-width: 440px;
}

@keyframes hrcInfoShellIn {
    0%   { opacity: 0; transform: translateY(28px) scale(0.97); filter: blur(6px); }
    100% { opacity: 1; transform: translateY(0)    scale(1);    filter: blur(0); }
}

.hrc-info-modal-card {
    position: relative;
    width: 100%;
    max-height: 100%;
    overflow-y: auto;
    background: linear-gradient(180deg, #131316 0%, #0c0c0e 100%);
    border-radius: calc(28px - 6px);
    padding: 36px 32px 32px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: #f5f5f5;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.hrc-info-modal-card--centered {
    text-align: center;
    padding: 48px 32px 36px;
}

.hrc-info-modal-card::-webkit-scrollbar { width: 6px; }
.hrc-info-modal-card::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 999px; }

.hrc-info-modal-glow {
    position: absolute;
    top: -120px;
    right: -120px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255, 95, 0, 0.22), transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.hrc-info-modal-card > *:not(.hrc-info-modal-glow) {
    position: relative;
    z-index: 1;
}

.hrc-info-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .35s cubic-bezier(.32, .72, 0, 1), background .35s cubic-bezier(.32, .72, 0, 1), color .35s cubic-bezier(.32, .72, 0, 1), border-color .35s cubic-bezier(.32, .72, 0, 1);
    z-index: 3;
}

.hrc-info-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
    transform: rotate(90deg);
}

.hrc-info-modal-close:active { transform: rotate(90deg) scale(0.92); }

.hrc-info-modal-head {
    margin-bottom: 22px;
    padding-right: 40px;
}

.hrc-info-modal-head--centered {
    padding-right: 0;
    margin-bottom: 4px;
}

.hrc-info-eyebrow {
    display: inline-block;
    padding: 4px 11px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--hrc-orange);
    background: rgba(255, 95, 0, 0.1);
    border: 1px solid rgba(255, 95, 0, 0.2);
    border-radius: 999px;
    margin-bottom: 14px;
}

.hrc-info-title {
    margin: 0 0 6px;
    font-family: var(--hrc-font);
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.hrc-info-subtitle {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
    text-wrap-style:pretty;
}

.hrc-info-modal-body {
    margin-top: 6px;
    min-height: 140px;
}

/* Loading state */
.hrc-info-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 0;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.01em;
}

.hrc-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--hrc-orange);
    border-radius: 50%;
    animation: hrcSpinnerRotate .9s linear infinite;
}

@keyframes hrcSpinnerRotate {
    to { transform: rotate(360deg); }
}

/* Error state */
.hrc-info-error {
    padding: 24px 22px;
    background: rgba(255, 23, 68, 0.08);
    border: 1px solid rgba(255, 23, 68, 0.22);
    border-radius: 14px;
    color: #ff8b9c;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.hrc-info-error-title {
    display: block;
    font-weight: 700;
    color: #ff7a92;
    margin-bottom: 4px;
    letter-spacing: 0.01em;
}

/* Delivery rates list */
.hrc-rates-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hrc-rates-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform .35s cubic-bezier(.32, .72, 0, 1), background .35s cubic-bezier(.32, .72, 0, 1), border-color .35s cubic-bezier(.32, .72, 0, 1);
}

.hrc-rates-list li:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.hrc-rates-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.005em;
}

.hrc-rates-price {
    flex-shrink: 0;
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    padding: 5px 12px;
    background: linear-gradient(180deg, rgba(255, 95, 0, 0.18), rgba(255, 95, 0, 0.08));
    border: 1px solid rgba(255, 95, 0, 0.32);
    border-radius: 999px;
    color: #ffb380;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hrc-rates-price-amount { font-size: 14px; }
.hrc-rates-price-currency { font-size: 11px; opacity: 0.85; }

.hrc-rates-empty {
    text-align: center;
    padding: 36px 20px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 14px;
}

/* Coming soon — clock icon styling */
.hrc-coming-soon-icon {
    display: none;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    background: linear-gradient(180deg, rgba(255, 95, 0, 0.18), rgba(255, 95, 0, 0.04));
    border: 1px solid rgba(255, 95, 0, 0.28);
    border-radius: 50%;
    color: var(--hrc-orange);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 8px 24px -6px rgba(255, 95, 0, 0.32);
    animation: hrcComingPulse 2.6s cubic-bezier(.32, .72, 0, 1) infinite;
}

@keyframes hrcComingPulse {
    0%, 100% { transform: scale(1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px -6px rgba(255, 95, 0, 0.32); }
    50%      { transform: scale(1.04); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 32px -6px rgba(255, 95, 0, 0.5); }
}

@media (max-width: 600px) {
    .hrc-info-modal { padding: 16px 12px; }
    .hrc-info-modal-card { padding: 28px 22px 24px; }
    .hrc-info-modal-card--centered { padding: 36px 22px 28px; }
    .hrc-info-title { font-size: 21px; }
    .hrc-rates-list li { padding: 12px 14px; }
}

@media (max-width: 600px) {
    .hrc-panel-kpis {
        grid-template-columns: 1fr;
    }
}