/* ═══════════════════════════════════════════════════════
   Hiwash RDV — Front-end Tunnel Styles
   Prefixed with hw- to avoid WordPress theme conflicts.
   ═══════════════════════════════════════════════════════ */

:root {
    --hw-brand-1: #0a67ff;
    --hw-brand-2: #00c2ff;
    --hw-brand-3: #18d38b;
    --hw-ink: #0b1220;
    --hw-muted: #667085;
    --hw-bg: #f6f8fb;
    --hw-card: #ffffff;
    --hw-border: #e7ecf3;
    --hw-shadow: 0 16px 50px rgba(16, 24, 40, 0.08);
    --hw-radius: 18px;
    --hw-warning: #f59e0b;
    --hw-warning-bg: #fffbeb;
}

/* Test mode banner */
.hw-test-banner {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid #f59e0b;
    border-radius: var(--hw-radius);
    padding: 12px 18px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #92400e;
    text-align: center;
    line-height: 1.5;
}
.hw-test-banner code {
    background: rgba(0,0,0,.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

#hiwash-rdv-app * { box-sizing: border-box; }

#hiwash-rdv-app {
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--hw-ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ─── Layout ────────────────────────────────────────── */

.hw-layout {
    max-width: 1200px;
    margin: 28px auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 18px;
}

@media (max-width: 768px) {
    .hw-layout {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 16px auto;
    }
    
    .hw-steps {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px;
    }
    
    .hw-step {
        flex: 0 0 auto;
        padding: 8px 12px;
    }
    
    .hw-step span {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .hw-step .hw-step-label {
        display: none;
    }
}

/* ─── Steps sidebar ─────────────────────────────────── */

.hw-steps {
    background: rgba(255,255,255,.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--hw-border);
    border-radius: var(--hw-radius);
    box-shadow: var(--hw-shadow);
    padding: 18px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.hw-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 10px;
    border-radius: 14px;
    color: var(--hw-muted);
    font-size: 14px;
}

.hw-step span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 2px solid var(--hw-border);
    font-weight: 800;
    background: #fff;
    flex-shrink: 0;
}

.hw-step.hw-active {
    color: var(--hw-ink);
    background: linear-gradient(90deg, rgba(0,194,255,.12), rgba(24,211,139,.10));
}

.hw-step.hw-active span {
    border-color: rgba(0,194,255,.75);
    color: #fff;
    background: linear-gradient(135deg, var(--hw-brand-1), var(--hw-brand-2));
}

.hw-step.hw-done span {
    border-color: rgba(24,211,139,.9);
    background: linear-gradient(135deg, var(--hw-brand-3), var(--hw-brand-2));
    color: #fff;
}

/* ─── Panel ─────────────────────────────────────────── */

.hw-panel {
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--hw-border);
    border-radius: var(--hw-radius);
    box-shadow: var(--hw-shadow);
    display: flex;
    flex-direction: column;
    min-height: 740px;
}

.hw-head {
    padding: 18px 22px 8px;
    border-bottom: 1px solid var(--hw-border);
    background: linear-gradient(180deg, rgba(0,194,255,.07), transparent);
}

.hw-brand {
    display: flex;
    gap: 14px;
    align-items: center;
}

.hw-brand-logo {
    width: 92px;
    height: auto;
    display: block;
}

.hw-kicker {
    color: var(--hw-brand-1);
    font-weight: 900;
    font-size: 12px;
    margin-bottom: 6px;
}

#hiwash-rdv-app h1 {
    margin: 0 0 6px;
    font-size: 28px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

#hiwash-rdv-app p { margin: 0; color: var(--hw-muted); line-height: 1.45; }

.hw-content {
    padding: 18px 24px 24px;
    flex: 1;
    overflow-y: auto;
}

.hw-hidden { display: none !important; }

#hiwash-rdv-app h2 {
    margin: 18px 0 6px;
    font-size: 17px;
    line-height: 1.3;
}

#hiwash-rdv-app h2:first-child { margin-top: 0; }

.hw-sub { margin: 0 0 12px; font-size: 13px; color: var(--hw-muted); }
.hw-mt { margin-top: 18px; }

/* ─── Cards ─────────────────────────────────────────── */

.hw-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hw-cards.hw-cards-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Mini category selector for phares + nettoyage option */
.hw-cards.hw-mini {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.hw-card {
    border: 1px solid var(--hw-border);
    border-radius: 16px;
    padding: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.6));
    cursor: pointer;
    transition: 0.15s ease;
}

.hw-card.hw-compact {
    padding: 14px 10px;
    text-align: center;
    min-height: auto;
}

.hw-card.hw-compact .hw-icon {
    margin-bottom: 6px;
}

.hw-card.hw-compact .hw-title {
    font-size: 13px;
    margin-bottom: 0;
}

.hw-card:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.06); }

.hw-card.hw-selected {
    border-color: rgba(0,194,255,.55);
    box-shadow: 0 10px 30px rgba(0,194,255,.12);
    background: linear-gradient(180deg, rgba(0,194,255,.10), rgba(24,211,139,.06));
}

.hw-card.hw-interior-card { background: #fff; border: 2px solid rgba(0,194,255,.25); }
.hw-card.hw-complet-card { background: #fff; border: 2px solid rgba(24,211,139,.25); }

.hw-card.hw-interior-card:hover { border-color: rgba(0,194,255,.5); box-shadow: 0 8px 24px rgba(0,194,255,.15); }
.hw-card.hw-complet-card:hover { border-color: rgba(24,211,139,.5); box-shadow: 0 8px 24px rgba(24,211,139,.15); }

.hw-card.hw-interior-card.hw-selected {
    border-color: var(--hw-brand-1);
    box-shadow: 0 10px 30px rgba(0,194,255,.2);
    background: linear-gradient(180deg, rgba(0,194,255,.12), #fff);
}

.hw-card.hw-complet-card.hw-selected {
    border-color: var(--hw-brand-3);
    box-shadow: 0 10px 30px rgba(24,211,139,.2);
    background: linear-gradient(180deg, rgba(24,211,139,.12), #fff);
}

.hw-card .hw-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.hw-card .hw-icon {
    width: 42px; height: 42px; border-radius: 12px;
    background: linear-gradient(135deg, rgba(0,194,255,.15), rgba(24,211,139,.1));
    display: grid; place-items: center; font-size: 20px; flex-shrink: 0;
}

.hw-badge {
    font-weight: 900;
    background: linear-gradient(135deg, var(--hw-brand-1), var(--hw-brand-2));
    color: #fff; padding: 6px 10px; border-radius: 999px; font-size: 12px; white-space: nowrap;
}

.hw-badge.hw-premium { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.hw-badge.hw-green { background: linear-gradient(135deg, var(--hw-brand-3), #10b981); }
.hw-badge.hw-gold { background: linear-gradient(135deg, #f59e0b, #fbbf24); }

.hw-card .hw-title { font-weight: 900; margin: 8px 0 4px; font-size: 15px; }
.hw-card .hw-subtitle { font-size: 11px; color: var(--hw-brand-1); font-weight: 700; margin-bottom: 4px; }
.hw-card.hw-complet-card .hw-subtitle { color: var(--hw-brand-3); }
.hw-card.hw-complet-card .hw-title { color: #065f46; }
.hw-card .hw-description { font-size: 12px; color: var(--hw-muted); line-height: 1.4; margin-top: 6px; }
.hw-card .hw-description ul { margin: 6px 0 0; padding-left: 16px; }
.hw-card .hw-description li { margin-bottom: 2px; }
.hw-card .hw-meta { display: flex; gap: 10px; color: var(--hw-muted); font-size: 11px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--hw-border); }

/* Tooltip ? icon */
.hw-tooltip {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; border-radius: 999px; background: rgba(0,194,255,.15);
    color: var(--hw-brand-1); font-size: 11px; font-weight: 900; cursor: help;
    position: relative; vertical-align: middle; margin-left: 4px; border: 1px solid rgba(0,194,255,.3);
}
.hw-tooltip-bubble {
    position: fixed; z-index: 999999;
    background: var(--hw-ink, #1e293b); color: #fff; padding: 10px 14px; border-radius: 12px;
    font-size: 12px; font-weight: 400; line-height: 1.4; width: 260px;
    box-shadow: 0 8px 24px rgba(0,0,0,.2); pointer-events: none;
}
.hw-tooltip-bubble::after {
    content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    border: 6px solid transparent; border-top-color: var(--hw-ink, #1e293b);
}

.hw-card.hw-interior-card .hw-badge { background: linear-gradient(135deg, var(--hw-brand-1), var(--hw-brand-2)); }
.hw-card.hw-complet-card .hw-badge { background: linear-gradient(135deg, var(--hw-brand-3), #10b981); }
.hw-card.hw-complet-card .hw-badge.hw-premium { background: linear-gradient(135deg, #059669, #10b981); }

/* ─── Section titles ────────────────────────────────── */

.hw-section-title {
    font-size: 14px; font-weight: 900; color: #fff; margin: 20px 0 0; padding: 10px 16px;
    background: linear-gradient(135deg, var(--hw-brand-1), var(--hw-brand-2));
    border-radius: 14px 14px 0 0; display: block;
}

.hw-section-title.hw-green { background: linear-gradient(135deg, var(--hw-brand-3), #10b981); }
.hw-section-title.hw-gold { background: linear-gradient(135deg, #f59e0b, #fbbf24); }

.hw-section-box {
    border: 2px solid rgba(0,194,255,.3); border-top: none; border-radius: 0 0 14px 14px;
    padding: 16px; background: linear-gradient(180deg, rgba(0,194,255,.06), rgba(255,255,255,.8)); margin-bottom: 20px;
}

.hw-section-box.hw-green { border-color: rgba(24,211,139,.3); background: linear-gradient(180deg, rgba(24,211,139,.06), rgba(255,255,255,.8)); }
.hw-section-box.hw-gold { border-color: rgba(245,158,11,.3); background: linear-gradient(180deg, rgba(245,158,11,.06), rgba(255,255,255,.8)); }

/* ─── Form fields ───────────────────────────────────── */

.hw-grid2 {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px;
}

.hw-field label { display: block; font-size: 12px; font-weight: 900; margin-bottom: 6px; }

.hw-autocomplete-wrapper {
    position: relative;
}

.hw-autocomplete-dropdown {
    display: none;
    position: fixed;
    background: white;
    border: 2px solid var(--hw-border);
    border-radius: 12px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

.hw-autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid var(--hw-border);
    font-size: 14px;
    /* Touch-friendly on mobile */
    min-height: 44px;
    display: flex;
    align-items: center;
}

.hw-autocomplete-item:last-child {
    border-bottom: none;
}

.hw-autocomplete-item:hover,
.hw-autocomplete-item.hw-selected {
    background: linear-gradient(90deg, rgba(0,194,255,.08), rgba(24,211,139,.06));
}

.hw-field input, .hw-field select, .hw-field textarea {
    width: 100%; padding: 12px; border: 1px solid var(--hw-border); border-radius: 14px;
    outline: none; background: #fff; font-size: 14px;
}

.hw-field input:focus, .hw-field select:focus {
    border-color: rgba(0,194,255,.75); box-shadow: 0 0 0 4px rgba(0,194,255,.15);
}

/* ─── Checkbox ──────────────────────────────────────── */

.hw-check {
    display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; color: var(--hw-ink); font-size: 13px;
}

.hw-check input { margin-top: 3px; flex-shrink: 0; width: 18px; height: 18px; }

/* ─── Notes & info boxes ────────────────────────────── */

.hw-note {
    margin-top: 16px; border: 1px dashed rgba(0,194,255,.55); background: rgba(0,194,255,.06);
    border-radius: 16px; padding: 14px;
}

.hw-note-title { font-weight: 900; margin-bottom: 6px; font-size: 13px; }
.hw-note-body { color: #1f2937; font-size: 13px; line-height: 1.4; }

.hw-info-box {
    margin-top: 16px; border: 1px solid rgba(245,158,11,.4); background: var(--hw-warning-bg);
    border-radius: 16px; padding: 14px;
}

.hw-info-title { font-weight: 900; margin-bottom: 6px; font-size: 13px; color: #92400e; }
.hw-info-body { color: #78350f; font-size: 13px; line-height: 1.4; }

/* ─── Blocks & rows ─────────────────────────────────── */

.hw-block {
    border: 1px solid var(--hw-border); border-radius: 16px; padding: 12px; background: rgba(255,255,255,.7);
}

.hw-row {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 8px; border-radius: 14px;
}

.hw-row + .hw-row { border-top: 1px solid var(--hw-border); }
.hw-row-title { font-weight: 900; font-size: 14px; }
.hw-row-desc { font-size: 12px; color: var(--hw-muted); margin-top: 2px; line-height: 1.35; }

.hw-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; flex-shrink: 0; }

.hw-pill {
    font-size: 12px; padding: 8px 10px; border-radius: 999px;
    background: rgba(0,194,255,.10); border: 1px solid rgba(0,194,255,.25);
    font-weight: 900; color: #0b3b4a; white-space: nowrap;
}

.hw-qty {
    display: flex; align-items: center; gap: 8px; background: #fff;
    border: 1px solid var(--hw-border); border-radius: 999px; padding: 6px 8px;
}

.hw-qbtn {
    width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--hw-border);
    background: #f3f6fb; cursor: pointer; font-weight: 900; transition: 0.15s; font-size: 16px;
    display: grid; place-items: center; line-height: 1;
}

.hw-qbtn:hover { background: #e5e9f0; }

.hw-qval { min-width: 22px; text-align: center; font-weight: 900; }

/* ─── Places selector ───────────────────────────────── */

.hw-places-selector { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

.hw-place-btn {
    width: 48px; height: 48px; border-radius: 14px; border: 2px solid var(--hw-border);
    background: #fff; cursor: pointer; font-weight: 900; font-size: 16px;
    transition: 0.15s; display: grid; place-items: center;
}

.hw-place-btn:hover { border-color: rgba(0,194,255,.5); background: rgba(0,194,255,.05); }

.hw-place-btn.hw-selected {
    border-color: var(--hw-brand-1);
    background: linear-gradient(135deg, var(--hw-brand-1), var(--hw-brand-2));
    color: #fff;
}

/* ─── Utilitaire options ────────────────────────────── */

.hw-utilitaire-options { border: 1px solid rgba(0,194,255,.3); border-radius: 14px; overflow: hidden; }

.hw-utilitaire-option {
    padding: 12px 14px; cursor: pointer; transition: 0.15s;
    display: flex; align-items: flex-start; gap: 10px;
}

.hw-utilitaire-option + .hw-utilitaire-option { border-top: 1px solid var(--hw-border); }
.hw-utilitaire-option:hover { background: rgba(0,194,255,.04); }
.hw-utilitaire-option.hw-selected { background: rgba(0,194,255,.08); }
.hw-utilitaire-option input[type="radio"] { margin-top: 3px; flex-shrink: 0; }
.hw-opt-label { font-weight: 700; font-size: 13px; }
.hw-opt-desc { font-size: 11px; color: var(--hw-muted); margin-top: 2px; }
.hw-opt-price { font-size: 11px; color: var(--hw-brand-1); font-weight: 700; margin-top: 2px; }

/* ─── Polissage ─────────────────────────────────────── */

.hw-polissage-section {
    margin-top: 20px; border: 1px dashed rgba(102,112,133,.3); border-radius: 16px;
    padding: 16px; background: rgba(102,112,133,.03);
}

.hw-polissage-title { font-size: 13px; font-weight: 700; color: var(--hw-muted); margin-bottom: 12px; }

.hw-polissage-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.hw-polissage-card {
    border: 1px solid var(--hw-border); border-radius: 12px; padding: 12px;
    background: #fff; cursor: pointer; transition: 0.15s;
}

.hw-polissage-card:hover { border-color: rgba(0,194,255,.4); }
.hw-polissage-card.hw-selected { border-color: var(--hw-brand-1); background: rgba(0,194,255,.05); }
.hw-polissage-card .hw-pol-title { font-weight: 900; font-size: 13px; margin-bottom: 4px; }
.hw-polissage-card .hw-pol-desc { font-size: 11px; color: var(--hw-muted); line-height: 1.3; }
.hw-polissage-card .hw-pol-price { margin-top: 8px; font-weight: 900; color: var(--hw-brand-1); }
.hw-polissage-card .hw-pol-supplement { font-size: 11px; color: var(--hw-muted); margin-top: 2px; }

/* ─── Calendar ──────────────────────────────────────── */

.hw-calendar-container { margin-top: 16px; }

.hw-calendar-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;
}

.hw-calendar-nav {
    width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--hw-border);
    background: #fff; cursor: pointer; font-weight: 900; font-size: 18px;
    display: grid; place-items: center;
}

.hw-calendar-nav:hover { background: #f3f6fb; }
.hw-calendar-month { font-weight: 900; font-size: 16px; }

.hw-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }

.hw-calendar-day-header {
    text-align: center; font-size: 11px; font-weight: 900; color: var(--hw-muted); padding: 8px 0;
}

.hw-calendar-day {
    aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px;
    font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: 0.15s;
}

.hw-calendar-day:hover:not(.hw-disabled):not(.hw-empty) { background: rgba(0,194,255,.1); }
.hw-calendar-day.hw-selected { background: linear-gradient(135deg, var(--hw-brand-1), var(--hw-brand-2)); color: #fff; }
.hw-calendar-day.hw-disabled { color: #ccc; cursor: not-allowed; }
.hw-calendar-day.hw-empty { cursor: default; }
.hw-calendar-day.hw-today { border-color: var(--hw-brand-2); }

.hw-loading { text-align: center; padding: 20px; color: var(--hw-muted); font-size: 14px; }

/* ─── Time slots ────────────────────────────────────── */

.hw-time-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }

.hw-time-slot {
    padding: 12px 8px; text-align: center; border: 1px solid var(--hw-border); border-radius: 12px;
    cursor: pointer; font-size: 13px; font-weight: 600; transition: 0.15s;
}

.hw-time-slot:hover:not(.hw-disabled) { border-color: rgba(0,194,255,.5); background: rgba(0,194,255,.05); }
.hw-time-slot.hw-selected { background: linear-gradient(135deg, var(--hw-brand-1), var(--hw-brand-2)); color: #fff; border-color: transparent; }
.hw-time-slot.hw-disabled { color: #ccc; cursor: not-allowed; background: #fafafa; }

.hw-selected-datetime {
    margin-top: 16px; padding: 14px; background: rgba(24,211,139,.08);
    border: 1px solid rgba(24,211,139,.3); border-radius: 14px; text-align: center;
}

.hw-selected-datetime .hw-label { font-size: 12px; color: var(--hw-muted); }
.hw-selected-datetime .hw-value { font-weight: 900; font-size: 16px; margin-top: 4px; }

/* ─── Step 6 — Deposit & legal ──────────────────────── */

.hw-deposit-box {
    margin-top: 16px; border: 2px solid rgba(10,103,255,.4);
    background: linear-gradient(135deg, rgba(10,103,255,.05), rgba(0,194,255,.05));
    border-radius: 16px; padding: 16px;
}

.hw-deposit-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; }
.hw-deposit-row + .hw-deposit-row { border-top: 1px dashed var(--hw-border); }
.hw-deposit-label { font-size: 13px; color: var(--hw-muted); }
.hw-deposit-value { font-weight: 900; font-size: 15px; }
.hw-deposit-value.hw-highlight { color: var(--hw-brand-1); font-size: 18px; }

.hw-legal-box {
    margin-top: 16px; border: 2px solid rgba(239,68,68,.3); background: rgba(239,68,68,.04);
    border-radius: 16px; padding: 14px;
}

.hw-legal-title { font-weight: 900; font-size: 13px; color: #991b1b; margin-bottom: 8px; }
.hw-legal-text { font-size: 12px; color: #7f1d1d; line-height: 1.4; }

.hw-payhint {
    margin-top: 12px; border: 1px solid rgba(24,211,139,.35); background: rgba(24,211,139,.06);
    border-radius: 16px; padding: 14px;
}

.hw-payhint-title { font-weight: 900; margin-bottom: 6px; }
.hw-payhint-body { color: #1f2937; font-size: 13px; line-height: 1.4; }

/* ─── Footer ────────────────────────────────────────── */

.hw-foot { border-top: 1px solid var(--hw-border); padding: 14px 16px; background: rgba(255,255,255,.9); }

.hw-totals {
    border: 1px solid rgba(0,194,255,.35); border-radius: 16px; padding: 12px 14px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: linear-gradient(90deg, rgba(0,194,255,.05), rgba(24,211,139,.04)); flex-wrap: wrap;
}

.hw-totals-item { text-align: center; }
.hw-totals-label { font-size: 11px; color: var(--hw-muted); }
.hw-totals-value { font-weight: 900; font-size: 14px; }
.hw-price { color: var(--hw-brand-1); font-size: 18px; }

.hw-actions { margin-top: 12px; display: flex; justify-content: space-between; gap: 10px; }

.hw-btn {
    padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
    color: #fff; font-weight: 900; cursor: pointer; transition: 0.15s ease; font-size: 14px;
}

.hw-btn.hw-primary {
    background: linear-gradient(135deg, var(--hw-brand-1), var(--hw-brand-2));
    box-shadow: 0 10px 26px rgba(10,103,255,.18);
}

.hw-btn.hw-primary:hover { transform: translateY(-1px); }

.hw-btn.hw-ghost { background: #f3f6fb; color: var(--hw-ink); border-color: var(--hw-border); }

.hw-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ─── Responsive ────────────────────────────────────── */

@media (max-width: 980px) {
    .hw-layout { grid-template-columns: 1fr; }
    .hw-steps { position: relative; top: 0; display: flex; gap: 4px; overflow-x: auto; padding: 12px; }
    .hw-step { padding: 8px 6px; font-size: 12px; white-space: nowrap; }
    .hw-step span { width: 28px; height: 28px; font-size: 12px; }
    .hw-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hw-cards.hw-cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
    .hw-cards, .hw-cards.hw-cards-4 { grid-template-columns: 1fr; }
    .hw-grid2 { grid-template-columns: 1fr; }
    .hw-time-slots { grid-template-columns: repeat(2, 1fr); }
    .hw-polissage-cards { grid-template-columns: 1fr; }
    .hw-row { flex-direction: column; align-items: flex-start; }
    .hw-right { width: 100%; justify-content: flex-start; }
    .hw-brand { flex-direction: column; text-align: center; }
    .hw-brand-logo { width: 72px; }
    #hiwash-rdv-app h1 { font-size: 22px; }
    .hw-totals { flex-direction: column; text-align: center; }
}

/* ─── Confirmation page ─────────────────────────────── */

.hw-confirmation {
    max-width: 700px; margin: 40px auto; padding: 0 16px;
}

.hw-confirmation .hw-card {
    padding: 28px; text-align: center;
}

.hw-confirmation .hw-success-icon {
    font-size: 48px; margin-bottom: 16px;
}

.hw-confirmation table {
    width: 100%; text-align: left; margin-top: 16px; border-collapse: collapse;
}

.hw-confirmation table th {
    padding: 8px 12px; background: var(--hw-bg); font-size: 13px; color: var(--hw-muted);
}

.hw-confirmation table td {
    padding: 8px 12px; border-bottom: 1px solid var(--hw-border); font-size: 14px;
}

/* ═══════════════════════════════════════════════════════
   Reschedule Tunnel
   ═══════════════════════════════════════════════════════ */

.hw-reschedule-wrap * { box-sizing: border-box; }

.hw-reschedule-wrap {
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--hw-ink);
    line-height: 1.5;
    max-width: 640px;
    margin: 32px auto;
    padding: 0 16px;
    -webkit-font-smoothing: antialiased;
}

.hw-resc-card {
    background: var(--hw-card);
    border: 1px solid var(--hw-border);
    border-radius: var(--hw-radius);
    padding: 32px;
    box-shadow: var(--hw-shadow);
}

.hw-resc-card h1 { margin: 0 0 4px; font-size: 22px; }
.hw-resc-card .hw-resc-sub { color: var(--hw-muted); margin: 0 0 24px; font-size: 14px; }

.hw-resc-recap {
    background: var(--hw-bg);
    border: 1px solid var(--hw-border);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 16px;
}
.hw-resc-recap h3 { margin: 0 0 10px; font-size: 14px; }
.hw-resc-recap table { width: 100%; border-collapse: collapse; }
.hw-resc-recap td { padding: 5px 8px; font-size: 13px; border-bottom: 1px solid var(--hw-border); }
.hw-resc-recap td:first-child { color: var(--hw-muted); width: 40%; }

.hw-resc-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 13px;
    color: #1e40af;
    margin-bottom: 20px;
}

.hw-resc-error {
    text-align: center;
    padding: 24px;
}
.hw-resc-error h2 { margin: 0 0 8px; }
.hw-resc-error p { color: var(--hw-muted); }

.hw-resc-section-title { font-size: 15px; margin: 20px 0 12px; }

/* Calendar */
.hw-resc-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.hw-resc-nav-btn {
    background: var(--hw-bg);
    border: 1px solid var(--hw-border);
    border-radius: 10px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hw-resc-nav-btn:hover { background: var(--hw-border); }
.hw-resc-month-label { font-weight: 700; font-size: 16px; }

.hw-resc-cal-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--hw-muted);
    margin-bottom: 6px;
}

.hw-resc-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.hw-resc-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: default;
    transition: all .15s;
}

.hw-resc-day-empty { visibility: hidden; }

.hw-resc-day-disabled {
    color: #d1d5db;
    background: #fafafa;
}

.hw-resc-day-available {
    background: #ecfdf5;
    color: #059669;
    cursor: pointer;
    border: 2px solid transparent;
}
.hw-resc-day-available:hover {
    border-color: #059669;
    background: #d1fae5;
}

.hw-resc-day-selected {
    background: linear-gradient(135deg, var(--hw-brand-1), var(--hw-brand-2)) !important;
    color: #fff !important;
    border-color: transparent !important;
}

/* Slots */
.hw-resc-slot-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.hw-resc-slot-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 2px solid var(--hw-border);
    border-radius: 14px;
    cursor: pointer;
    transition: all .15s;
    background: var(--hw-card);
}
.hw-resc-slot-card:hover {
    border-color: var(--hw-brand-1);
    background: #f0f7ff;
}
.hw-resc-slot-selected {
    border-color: var(--hw-brand-1) !important;
    background: linear-gradient(135deg, rgba(10,103,255,.06), rgba(0,194,255,.06)) !important;
}
.hw-resc-slot-icon { font-size: 22px; }
.hw-resc-slot-label { font-size: 14px; font-weight: 600; }

/* Confirm */
.hw-resc-confirm { margin-top: 20px; }

.hw-resc-selected-box {
    background: var(--hw-bg);
    border: 1px solid var(--hw-border);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 14px;
    font-size: 14px;
}
.hw-resc-selected-box strong { margin-right: 6px; }

.hw-resc-btn-primary {
    background: linear-gradient(135deg, var(--hw-brand-1), var(--hw-brand-2));
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s;
    margin-right: 8px;
}
.hw-resc-btn-primary:hover { opacity: .9; }
.hw-resc-btn-primary:disabled { opacity: .5; cursor: not-allowed; }

.hw-resc-btn-ghost {
    background: var(--hw-bg);
    color: var(--hw-ink);
    border: 1px solid var(--hw-border);
    padding: 14px 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* Result */
.hw-resc-result-success {
    background: rgba(24, 211, 139, .08);
    border: 1px solid rgba(24, 211, 139, .4);
    border-radius: 14px;
    padding: 20px;
    margin-top: 20px;
    color: #065f46;
}
.hw-resc-result-success h3 { margin: 0 0 6px; }

.hw-resc-result-error {
    background: rgba(239, 68, 68, .08);
    border: 1px solid rgba(239, 68, 68, .4);
    border-radius: 14px;
    padding: 20px;
    margin-top: 20px;
    color: #991b1b;
}
.hw-resc-result-error h3 { margin: 0 0 6px; }

/* ─── Reschedule Responsive ──────────────────────────── */

@media (max-width: 600px) {
    .hw-resc-card { padding: 20px 16px; }
    .hw-resc-card h1 { font-size: 19px; }
    .hw-resc-recap td { font-size: 12px; padding: 4px 6px; }
    .hw-resc-recap td:first-child { width: 35%; }
    .hw-resc-day { font-size: 12px; border-radius: 8px; }
    .hw-resc-slot-cards { grid-template-columns: 1fr; }
    .hw-resc-slot-card { padding: 12px 14px; }
    .hw-resc-btn-primary, .hw-resc-btn-ghost { display: block; width: 100%; text-align: center; margin: 0 0 8px; }
    .hw-resc-btn-primary { margin-right: 0; }
    .hw-resc-selected-box { font-size: 13px; padding: 12px 14px; }
    .hw-resc-info { font-size: 12px; padding: 10px 12px; }
    .hw-resc-section-title { font-size: 14px; }
    .hw-resc-month-label { font-size: 14px; }
}

/* ─── Autocomplete Responsive ───────────────────────── */

@media (max-width: 768px) {
    .hw-autocomplete-dropdown {
        max-height: 250px;
        border-radius: 10px;
    }
    
    .hw-autocomplete-item {
        padding: 14px 16px;
        font-size: 15px;
        min-height: 48px;
    }
    
    .hw-grid2 {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .hw-field input {
        font-size: 16px;
        padding: 14px;
    }
}

/* ─── Cancel page Responsive ─────────────────────────── */

@media (max-width: 520px) {
    .hw-cancel-wrap { padding: 0 10px; margin: 20px auto; }
    .hw-cancel-card { padding: 20px 16px; }
    .hw-cancel-card h1 { font-size: 19px; }
    .hw-cancel-table th, .hw-cancel-table td { padding: 6px 8px; font-size: 13px; }
    .hw-cancel-actions { flex-direction: column; }
    .hw-cancel-btn { width: 100%; text-align: center; padding: 14px 16px; }
}

/* ─── Confirmation Responsive ────────────────────────── */

@media (max-width: 520px) {
    .hw-confirmation { padding: 0 10px; margin: 20px auto; }
    .hw-confirmation .hw-card { padding: 20px 16px; }
    .hw-confirmation table th, .hw-confirmation table td { padding: 6px 8px; font-size: 13px; }
}
