/* ═══════════════════════════════════════════════════════════════════════════
   Leads Remorquage — Public Form Styles
   All classes prefixed with .rml- to avoid WordPress theme conflicts.
   Scoped within .rml-form-wrapper
   Mobile-first responsive design.
═══════════════════════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ───────────────────────────────────────────────── */
:root {
    --rml-primary:        #1e3a6e;
    --rml-primary-dark:   #162d57;
    --rml-primary-light:  #e8eef7;
    --rml-green:          #16a34a;
    --rml-green-light:    #f0fdf4;
    --rml-green-border:   #86efac;
    --rml-red:            #dc2626;
    --rml-red-light:      #fef2f2;
    --rml-red-border:     #fca5a5;
    --rml-blue:           #2563eb;
    --rml-blue-light:     #eff6ff;
    --rml-blue-border:    #93c5fd;
    --rml-orange:         #f97316;
    --rml-orange-light:   #fff7ed;
    --rml-gray-50:        #f9fafb;
    --rml-gray-100:       #f3f4f6;
    --rml-gray-200:       #e5e7eb;
    --rml-gray-300:       #d1d5db;
    --rml-gray-400:       #9ca3af;
    --rml-gray-500:       #6b7280;
    --rml-gray-700:       #374151;
    --rml-gray-900:       #111827;
    --rml-white:          #ffffff;
    --rml-shadow-sm:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --rml-shadow-md:      0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
    --rml-shadow-lg:      0 10px 40px rgba(0,0,0,.12), 0 4px 16px rgba(0,0,0,.08);
    --rml-radius:         16px;
    --rml-radius-sm:      8px;
    --rml-radius-md:      12px;
    --rml-radius-full:    999px;
    --rml-transition:     0.2s ease;
    --rml-font:           -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* ── Reduced motion ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── Wrapper ─────────────────────────────────────────────────────────────── */
.rml-form-wrapper {
    position: relative;
    background: var(--rml-white);
    border-radius: var(--rml-radius);
    box-shadow: var(--rml-shadow-lg);
    max-width: 640px;
    margin: 0 auto;
    overflow: hidden;
    font-family: var(--rml-font);
    color: var(--rml-gray-900);
    line-height: 1.5;
}

/* ── Progress bar ────────────────────────────────────────────────────────── */
.rml-progress-bar-wrap {
    height: 8px;
    background: var(--rml-gray-200);
    position: relative;
    overflow: visible;
}
.rml-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--rml-primary), #3b82f6);
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 4px 4px 0;
    position: relative;
}
.rml-progress-bar::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 4px; height: 8px;
    background: inherit;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}
.rml-progress-pct {
    position: absolute;
    right: 8px;
    top: 12px;
    font-size: 11px;
    font-weight: 700;
    color: var(--rml-primary);
    pointer-events: none;
    transition: opacity 0.3s;
}
.rml-progress-encouragement {
    background: linear-gradient(135deg, #eff6ff, #f0fdf4);
    border-bottom: 1px solid var(--rml-gray-200);
    padding: 8px 24px;
    font-size: 13px;
    font-weight: 600;
    color: var(--rml-primary);
    text-align: center;
    animation: rml-slide-down 0.3s ease;
}
@keyframes rml-slide-down {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Steps header ────────────────────────────────────────────────────────── */
.rml-steps-header {
    padding: 20px 24px 0;
    border-bottom: 1px solid var(--rml-gray-200);
}
.rml-steps-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 13px;
}
.rml-step-counter {
    color: var(--rml-gray-500);
    font-weight: 500;
}
.rml-step-desc {
    color: var(--rml-gray-700);
    font-weight: 600;
}
.rml-step-indicators {
    display: flex;
    justify-content: space-between;
    padding-bottom: 20px;
    gap: 4px;
}
.rml-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}
.rml-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--rml-gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--rml-white);
    transition: background var(--rml-transition), transform var(--rml-transition);
    position: relative;
    flex-shrink: 0;
}
.rml-step-num {
    display: block;
}
.rml-step-check {
    display: none;
    font-size: 14px;
}
.rml-step-circle.is-completed {
    background: var(--rml-green);
    transform: scale(1.05);
}
.rml-step-circle.is-completed .rml-step-num {
    display: none;
}
.rml-step-circle.is-completed .rml-step-check {
    display: block;
}
.rml-step-circle.is-current {
    background: var(--rml-primary);
    box-shadow: 0 0 0 3px var(--rml-primary-light);
}
.rml-step-label {
    font-size: 11px;
    color: var(--rml-gray-400);
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}
.rml-step-label.is-current {
    color: var(--rml-primary);
    font-weight: 700;
}
.rml-step-label.is-completed {
    color: var(--rml-green);
    font-weight: 600;
}

/* ── Step content areas ──────────────────────────────────────────────────── */
.rml-step {
    animation: rmlStepIn 0.3s ease;
}
.rml-step[hidden] {
    display: none;
}
@keyframes rmlStepIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.rml-step-content {
    padding: 28px 24px 16px;
}
.rml-step-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--rml-gray-900);
    margin: 0 0 6px;
    line-height: 1.2;
}
.rml-step-subtitle {
    font-size: 14px;
    color: var(--rml-gray-500);
    margin: 0 0 24px;
}

/* ── Step footer / navigation ────────────────────────────────────────────── */
.rml-step-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px 24px;
    gap: 12px;
}
.rml-footer-single {
    justify-content: flex-end;
}
.rml-btn-back {
    background: none;
    border: none;
    color: var(--rml-gray-500);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 10px 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color var(--rml-transition);
    font-family: var(--rml-font);
}
.rml-btn-back:hover {
    color: var(--rml-primary);
}
.rml-btn-next,
.rml-btn-submit {
    background: var(--rml-primary);
    color: var(--rml-white);
    border: none;
    border-radius: var(--rml-radius-full);
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background var(--rml-transition), transform var(--rml-transition), box-shadow var(--rml-transition);
    font-family: var(--rml-font);
    letter-spacing: 0.01em;
}
.rml-btn-next:hover,
.rml-btn-submit:hover {
    background: var(--rml-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(30,58,110,.3);
}
.rml-btn-next:active,
.rml-btn-submit:active {
    transform: translateY(0);
}
.rml-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ── Field groups ────────────────────────────────────────────────────────── */
.rml-field-group {
    margin-bottom: 20px;
}
.rml-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--rml-gray-700);
    margin-bottom: 8px;
}
.rml-required {
    color: var(--rml-red);
}
.rml-input {
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid var(--rml-gray-200);
    border-radius: var(--rml-radius-sm);
    padding: 12px 16px;
    font-size: 15px;
    font-family: var(--rml-font);
    color: var(--rml-gray-900);
    background: var(--rml-white);
    transition: border-color var(--rml-transition), box-shadow var(--rml-transition);
    outline: none;
}
.rml-input:focus {
    border-color: var(--rml-primary);
    box-shadow: 0 0 0 3px var(--rml-primary-light);
}
.rml-input.rml-input-error {
    border-color: var(--rml-red);
    box-shadow: 0 0 0 3px var(--rml-red-light);
}
.rml-input::placeholder {
    color: var(--rml-gray-400);
}
.rml-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}
.rml-select-wrap {
    position: relative;
}
.rml-textarea {
    resize: vertical;
    min-height: 100px;
}
.rml-license-input {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

/* ── Input with icon ─────────────────────────────────────────────────────── */
.rml-input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.rml-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
    line-height: 1;
}
.rml-input-with-icon {
    padding-left: 44px !important;
}

/* ── Char counter ────────────────────────────────────────────────────────── */
.rml-char-counter {
    text-align: right;
    font-size: 12px;
    color: var(--rml-gray-400);
    margin-top: 4px;
}

/* ── Field error ─────────────────────────────────────────────────────────── */
.rml-field-error {
    display: none;
    color: var(--rml-red);
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
}
.rml-field-error.is-visible {
    display: flex;
    align-items: center;
    gap: 4px;
}
.rml-field-error::before {
    content: '⚠';
    font-size: 12px;
}
.rml-general-error {
    background: var(--rml-red-light);
    border: 1px solid var(--rml-red-border);
    border-radius: var(--rml-radius-sm);
    padding: 12px 16px;
    margin-top: 16px;
}
.rml-general-error.is-visible {
    display: block;
}
.rml-general-error::before {
    display: none;
}

/* ══════════════════════════════════════════════════════════════════════════
   STEP 1 — SERVICE GRID
═══════════════════════════════════════════════════════════════════════════ */
.rml-service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
@media (min-width: 480px) {
    .rml-service-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.rml-service-card {
    position: relative;
    background: var(--rml-white);
    border: 1.5px solid var(--rml-gray-200);
    border-radius: var(--rml-radius-md);
    padding: 16px 10px 12px;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: border-color var(--rml-transition), background var(--rml-transition),
                box-shadow var(--rml-transition), transform var(--rml-transition);
    font-family: var(--rml-font);
}
.rml-service-card:hover {
    border-color: var(--rml-primary);
    box-shadow: var(--rml-shadow-md);
    transform: translateY(-2px);
}
.rml-service-card.is-selected {
    background: var(--rml-primary);
    border-color: var(--rml-primary);
    color: var(--rml-white);
    box-shadow: var(--rml-shadow-md);
}
.rml-service-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    background: var(--rml-white);
    color: var(--rml-primary);
    border-radius: 50%;
    font-size: 11px;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}
.rml-service-card.is-selected .rml-service-check {
    display: flex;
}
.rml-service-icon {
    font-size: 28px;
    line-height: 1;
    display: block;
    height: 32px;
    width: 32px;
    margin: 0 auto;
}
/* SVG-based service icons */
.rml-icon-tow,
.rml-icon-wrench,
.rml-icon-battery,
.rml-icon-tire,
.rml-icon-key,
.rml-icon-ev,
.rml-icon-terrain,
.rml-icon-question {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.rml-icon-tow::before      { content: '🚛'; font-size: 26px; }
.rml-icon-wrench::before    { content: '🔧'; font-size: 26px; }
.rml-icon-battery::before   { content: '🔋'; font-size: 26px; }
.rml-icon-tire::before      { content: '🛞'; font-size: 26px; }
.rml-icon-key::before       { content: '🔑'; font-size: 26px; }
.rml-icon-ev::before        { content: '⚡'; font-size: 26px; }
.rml-icon-terrain::before   { content: '🌿'; font-size: 26px; }
.rml-icon-question::before  { content: '❓'; font-size: 26px; }

.rml-service-name {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    color: inherit;
}
.rml-service-desc {
    font-size: 10px;
    color: var(--rml-gray-400);
    line-height: 1.2;
}
.rml-service-card.is-selected .rml-service-desc {
    color: rgba(255,255,255,0.75);
}

/* ── Trust badges ────────────────────────────────────────────────────────── */
.rml-trust-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 16px 0;
    flex-wrap: wrap;
}
.rml-trust-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--rml-gray-700);
}
.rml-trust-icon {
    color: var(--rml-green);
    font-weight: 800;
}

/* ── Info box ────────────────────────────────────────────────────────────── */
.rml-info-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: var(--rml-radius-sm);
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #0369a1;
    margin-top: 16px;
    line-height: 1.4;
}
.rml-info-icon {
    flex-shrink: 0;
    font-size: 15px;
}

/* ══════════════════════════════════════════════════════════════════════════
   STEP 2 — DATE / URGENCY
═══════════════════════════════════════════════════════════════════════════ */
.rml-urgency-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
@media (min-width: 480px) {
    .rml-urgency-grid {
        flex-direction: row;
    }
}
.rml-urgency-card {
    flex: 1;
    background: var(--rml-white);
    border: 1.5px solid var(--rml-gray-200);
    border-radius: var(--rml-radius-md);
    padding: 18px 14px;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all var(--rml-transition);
    font-family: var(--rml-font);
}
.rml-urgency-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--rml-shadow-md);
}
.rml-urgency-icon {
    font-size: 28px;
}
.rml-urgency-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--rml-gray-900);
}
.rml-urgency-sub {
    font-size: 11px;
    color: var(--rml-gray-500);
}

/* Urgency selected states */
.rml-urgency-asap.is-selected {
    background: var(--rml-red-light);
    border-color: var(--rml-red);
}
.rml-urgency-asap.is-selected .rml-urgency-name {
    color: var(--rml-red);
}
.rml-urgency-no-rush.is-selected {
    background: var(--rml-green-light);
    border-color: var(--rml-green);
}
.rml-urgency-no-rush.is-selected .rml-urgency-name {
    color: var(--rml-green);
}
.rml-urgency-planned.is-selected {
    background: var(--rml-blue-light);
    border-color: var(--rml-blue);
}
.rml-urgency-planned.is-selected .rml-urgency-name {
    color: var(--rml-blue);
}

/* ── Urgency estimate box ────────────────────────────────────────────────── */
.rml-urgency-estimate {
    margin-top: 14px;
    padding: 12px 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    font-size: 14px;
    color: #1e3a6e;
    font-weight: 500;
    animation: rmlFadeDown 0.2s ease;
}

/* ── Calendar ────────────────────────────────────────────────────────────── */
.rml-calendar-wrap {
    margin-top: 16px;
    animation: rmlFadeDown 0.25s ease;
}
@keyframes rmlFadeDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.rml-calendar {
    background: var(--rml-white);
    border: 1.5px solid var(--rml-gray-200);
    border-radius: var(--rml-radius-md);
    overflow: hidden;
    margin-bottom: 12px;
}
.rml-cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--rml-gray-50);
    border-bottom: 1px solid var(--rml-gray-200);
}
.rml-cal-nav {
    background: none;
    border: 1.5px solid var(--rml-gray-200);
    border-radius: var(--rml-radius-sm);
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rml-gray-700);
    transition: background var(--rml-transition), color var(--rml-transition);
    font-family: var(--rml-font);
}
.rml-cal-nav:hover {
    background: var(--rml-primary);
    color: var(--rml-white);
    border-color: var(--rml-primary);
}
.rml-cal-month-label {
    font-weight: 700;
    font-size: 15px;
    color: var(--rml-gray-900);
    text-transform: capitalize;
}
.rml-cal-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 10px 12px 6px;
}
.rml-cal-days-header span {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--rml-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.rml-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    padding: 6px 12px 12px;
}
.rml-cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: none;
    color: var(--rml-gray-700);
    transition: background var(--rml-transition), color var(--rml-transition);
    font-family: var(--rml-font);
    min-width: 34px;
    min-height: 34px;
}
.rml-cal-day:hover:not(:disabled) {
    background: var(--rml-primary-light);
    color: var(--rml-primary);
}
.rml-cal-day.is-today {
    font-weight: 700;
    color: var(--rml-primary);
}
.rml-cal-day.is-selected {
    background: var(--rml-primary);
    color: var(--rml-white);
    font-weight: 700;
}
.rml-cal-day.is-past,
.rml-cal-day:disabled {
    color: var(--rml-gray-300);
    cursor: not-allowed;
}
.rml-cal-day.is-empty {
    pointer-events: none;
}

/* ── Time slots ──────────────────────────────────────────────────────────── */
.rml-time-slots {
    margin-top: 12px;
    animation: rmlFadeDown 0.2s ease;
}
.rml-time-slots-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--rml-gray-700);
    margin: 0 0 10px;
}
.rml-time-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
@media (min-width: 400px) {
    .rml-time-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}
.rml-time-slot {
    background: var(--rml-white);
    border: 1.5px solid var(--rml-gray-200);
    border-radius: 6px;
    padding: 8px 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all var(--rml-transition);
    color: var(--rml-gray-700);
    font-family: var(--rml-font);
}
.rml-time-slot:hover {
    border-color: var(--rml-primary);
    color: var(--rml-primary);
    background: var(--rml-primary-light);
}
.rml-time-slot.is-selected {
    background: var(--rml-primary);
    border-color: var(--rml-primary);
    color: var(--rml-white);
}

/* ── Date summary ────────────────────────────────────────────────────────── */
.rml-date-summary {
    background: var(--rml-blue-light);
    border: 1.5px solid var(--rml-blue-border);
    border-radius: var(--rml-radius-sm);
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--rml-blue);
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.rml-date-summary::before {
    content: '📅';
}

/* ══════════════════════════════════════════════════════════════════════════
   STEP 3 — LIEU / ADDRESSES
═══════════════════════════════════════════════════════════════════════════ */
.rml-field-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.rml-field-label-row .rml-label {
    margin-bottom: 0;
}
.rml-gps-btn {
    background: none;
    border: 1.5px solid var(--rml-gray-200);
    border-radius: var(--rml-radius-full);
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: var(--rml-primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all var(--rml-transition);
    font-family: var(--rml-font);
    white-space: nowrap;
}
.rml-gps-btn:hover {
    background: var(--rml-primary);
    color: var(--rml-white);
    border-color: var(--rml-primary);
}
.rml-address-arrow {
    text-align: center;
    color: var(--rml-gray-400);
    font-size: 22px;
    margin: -8px 0;
    padding: 0;
    line-height: 1;
}

/* ── Autocomplete ────────────────────────────────────────────────────────── */
.rml-autocomplete-wrap {
    position: relative;
}
.rml-autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--rml-white);
    border: 1.5px solid var(--rml-gray-200);
    border-radius: var(--rml-radius-sm);
    box-shadow: var(--rml-shadow-md);
    z-index: 1000;
    max-height: 240px;
    overflow-y: auto;
}
.rml-autocomplete-item {
    padding: 11px 14px;
    cursor: pointer;
    font-size: 13px;
    color: var(--rml-gray-700);
    border-bottom: 1px solid var(--rml-gray-200);
    transition: background var(--rml-transition);
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
}
.rml-autocomplete-item:last-child {
    border-bottom: none;
}
.rml-autocomplete-item:hover,
.rml-autocomplete-item.is-active {
    background: var(--rml-primary-light);
    color: var(--rml-primary);
}
.rml-autocomplete-item::before {
    content: '📍';
    font-size: 14px;
    flex-shrink: 0;
}
.rml-autocomplete-loading {
    padding: 12px 14px;
    font-size: 13px;
    color: var(--rml-gray-400);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ══════════════════════════════════════════════════════════════════════════
   STEP 4 — VÉHICULE
═══════════════════════════════════════════════════════════════════════════ */

/* Vehicle state cards: 5-card grid (3+2) */
.rml-vehicle-state-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
@media (max-width: 380px) {
    .rml-vehicle-state-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.rml-state-card {
    background: var(--rml-white);
    border: 1.5px solid var(--rml-gray-200);
    border-radius: var(--rml-radius-md);
    padding: 14px 8px 10px;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: all var(--rml-transition);
    font-family: var(--rml-font);
}
.rml-state-card:hover {
    border-color: var(--rml-primary);
    box-shadow: var(--rml-shadow-sm);
    transform: translateY(-1px);
}
.rml-state-card.is-selected {
    border-color: var(--rml-primary);
    background: var(--rml-primary-light);
}
.rml-state-accidente.is-selected  { border-color: var(--rml-red);    background: var(--rml-red-light);   }
.rml-state-en-panne.is-selected   { border-color: var(--rml-orange);  background: var(--rml-orange-light); }
.rml-state-roulant.is-selected    { border-color: var(--rml-green);   background: var(--rml-green-light);  }
.rml-state-roue-bloquee.is-selected { border-color: var(--rml-blue); background: var(--rml-blue-light);   }
.rml-state-immobilise.is-selected { border-color: var(--rml-gray-400); background: var(--rml-gray-100); }

.rml-state-icon {
    font-size: 24px;
    display: block;
}
.rml-state-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--rml-gray-900);
    line-height: 1.2;
}
.rml-state-desc {
    font-size: 10px;
    color: var(--rml-gray-400);
    line-height: 1.2;
}

/* Access cards */
.rml-access-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rml-access-card {
    width: 100%;
    background: var(--rml-white);
    border: 1.5px solid var(--rml-gray-200);
    border-radius: var(--rml-radius-md);
    padding: 14px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    transition: all var(--rml-transition);
    font-family: var(--rml-font);
    box-sizing: border-box;
}
.rml-access-card:hover {
    border-color: var(--rml-primary);
    box-shadow: var(--rml-shadow-sm);
}
.rml-access-card.is-selected,
.rml-access-card[aria-checked="true"] {
    border-color: var(--rml-primary);
    background: var(--rml-primary-light);
}
.rml-access-icon {
    font-size: 22px;
    flex-shrink: 0;
    width: 36px;
    text-align: center;
}
.rml-access-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.rml-access-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--rml-gray-900);
    line-height: 1.3;
}
.rml-access-desc {
    font-size: 12px;
    color: var(--rml-gray-500);
    line-height: 1.3;
}

/* ══════════════════════════════════════════════════════════════════════════
   STEP 5 — CONTACT
═══════════════════════════════════════════════════════════════════════════ */

/* Phone with prefix */
.rml-phone-wrap {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.rml-phone-prefix {
    flex-shrink: 0;
    width: auto;
    min-width: 100px;
    border: 1.5px solid var(--rml-gray-200);
    border-radius: var(--rml-radius-sm);
    padding: 12px 8px;
    font-size: 14px;
    font-family: var(--rml-font);
    color: var(--rml-gray-900);
    background: var(--rml-white);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    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='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 24px;
    transition: border-color var(--rml-transition);
}
.rml-phone-prefix:focus {
    outline: none;
    border-color: var(--rml-primary);
    box-shadow: 0 0 0 3px var(--rml-primary-light);
}
.rml-phone-input-wrap {
    flex: 1;
}

/* Checkbox / RGPD */
.rml-rgpd-group {
    background: var(--rml-gray-50);
    border: 1px solid var(--rml-gray-200);
    border-radius: var(--rml-radius-sm);
    padding: 14px 16px;
}
.rml-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--rml-gray-700);
    line-height: 1.4;
}
.rml-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.rml-checkbox-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 2px solid var(--rml-gray-300);
    border-radius: 4px;
    background: var(--rml-white);
    flex-shrink: 0;
    margin-top: 1px;
    transition: all var(--rml-transition);
}
.rml-checkbox:checked + .rml-checkbox-custom {
    background: var(--rml-primary);
    border-color: var(--rml-primary);
}
.rml-checkbox:checked + .rml-checkbox-custom::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: 2px solid var(--rml-white);
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translate(-1px, -1px);
}
.rml-checkbox:focus + .rml-checkbox-custom {
    box-shadow: 0 0 0 3px var(--rml-primary-light);
}
.rml-checkbox-text {
    flex: 1;
}

/* Privacy notice */
.rml-privacy-notice {
    text-align: center;
    font-size: 12px;
    color: var(--rml-gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 12px 0 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   CONFIRMATION SCREEN
═══════════════════════════════════════════════════════════════════════════ */
.rml-confirmation {
    padding: 40px 24px;
    text-align: center;
    animation: rmlFadeUp 0.5s ease;
}
.rml-confirmation[hidden] {
    display: none;
}
@keyframes rmlFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.rml-confirmation-content {
    max-width: 440px;
    margin: 0 auto;
}
.rml-check-anim {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}
.rml-check-svg {
    width: 80px;
    height: 80px;
}
.rml-check-circle {
    stroke: var(--rml-green);
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-linecap: round;
    animation: rmlCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) 0.1s forwards;
}
.rml-check-path {
    stroke: var(--rml-green);
    stroke-width: 2.5;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: rmlCheck 0.4s ease 0.6s forwards;
}
@keyframes rmlCircle {
    to { stroke-dashoffset: 0; }
}
@keyframes rmlCheck {
    to { stroke-dashoffset: 0; }
}
.rml-confirm-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--rml-gray-900);
    margin: 0 0 10px;
}
.rml-confirm-msg {
    font-size: 16px;
    color: var(--rml-gray-500);
    margin: 0 0 28px;
}
.rml-confirm-summary {
    background: var(--rml-gray-50);
    border: 1px solid var(--rml-gray-200);
    border-radius: var(--rml-radius-md);
    padding: 20px;
    text-align: left;
}
.rml-summary-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid var(--rml-gray-200);
    font-size: 14px;
}
.rml-summary-item:last-child {
    border-bottom: none;
}
.rml-summary-label {
    color: var(--rml-gray-500);
    width: 110px;
    flex-shrink: 0;
    font-weight: 500;
}
.rml-summary-value {
    color: var(--rml-gray-900);
    font-weight: 600;
    flex: 1;
}

/* ── Loading overlay ─────────────────────────────────────────────────────── */
.rml-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 100;
    border-radius: var(--rml-radius);
    backdrop-filter: blur(4px);
}
.rml-loading-overlay[hidden] {
    display: none;
}
.rml-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid var(--rml-gray-200);
    border-top-color: var(--rml-primary);
    border-radius: 50%;
    animation: rmlSpin 0.8s linear infinite;
}
@keyframes rmlSpin {
    to { transform: rotate(360deg); }
}
.rml-loading-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--rml-gray-700);
}

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE FIRST
═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .rml-step-content {
        padding: 20px 16px 12px;
    }
    .rml-step-footer {
        padding: 12px 16px 20px;
        flex-wrap: wrap;
    }
    .rml-btn-next,
    .rml-btn-submit {
        flex: 1;
        justify-content: center;
    }
    .rml-steps-header {
        padding: 16px 16px 0;
    }
    .rml-step-label {
        font-size: 9px;
    }
    .rml-step-circle {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    .rml-step-title {
        font-size: 18px;
    }
    .rml-phone-wrap {
        flex-direction: column;
    }
    .rml-phone-prefix {
        width: 100%;
    }
    .rml-vehicle-state-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .rml-trust-badges {
        gap: 10px;
    }
    .rml-steps-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ── Floating urgent CTA (#9) ────────────────────────────────────────────── */
.rml-urgent-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    animation: rml-cta-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes rml-cta-in {
    from { opacity: 0; transform: scale(0.6) translateY(20px); }
    to   { opacity: 1; transform: scale(1)   translateY(0); }
}
.rml-urgent-cta-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #fff;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(220, 38, 38, 0.4), 0 2px 8px rgba(0,0,0,.2);
    font-family: var(--rml-font);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}
.rml-urgent-cta-btn:hover {
    transform: scale(1.04) translateY(-2px);
    box-shadow: 0 12px 40px rgba(220, 38, 38, 0.5);
    color: #fff;
    text-decoration: none;
}
.rml-urgent-cta-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
}
.rml-urgent-cta-content {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.rml-urgent-cta-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.rml-urgent-cta-phone {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.03em;
}
.rml-urgent-cta-pulse {
    position: absolute;
    top: 8px; right: 8px;
    width: 10px; height: 10px;
    background: #fff;
    border-radius: 50%;
    animation: rml-pulse 1.6s ease-in-out infinite;
}
@keyframes rml-pulse {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(1.6); }
}

/* ── Dark mode (#11) ─────────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
    :root {
        --rml-primary:       #4e7cff;
        --rml-primary-dark:  #3b6deb;
        --rml-primary-light: #1a2a4a;
        --rml-green:         #34d399;
        --rml-green-light:   #0d2a1e;
        --rml-green-border:  #059669;
        --rml-red:           #f87171;
        --rml-red-light:     #2d1515;
        --rml-red-border:    #dc2626;
        --rml-blue-light:    #172240;
        --rml-orange:        #fb923c;
        --rml-orange-light:  #2d1a0a;
        --rml-gray-50:       #1a1d23;
        --rml-gray-100:      #1f2330;
        --rml-gray-200:      #2d3346;
        --rml-gray-300:      #3d4460;
        --rml-gray-400:      #6b7599;
        --rml-gray-500:      #8b96b5;
        --rml-gray-700:      #c5cddf;
        --rml-gray-900:      #e8ecf4;
        --rml-white:         #151820;
        --rml-shadow-sm:     0 1px 3px rgba(0,0,0,.3);
        --rml-shadow-md:     0 4px 16px rgba(0,0,0,.4);
        --rml-shadow-lg:     0 10px 40px rgba(0,0,0,.5), 0 4px 16px rgba(0,0,0,.3);
    }

    .rml-form-wrapper {
        background: #1a1d27;
        border: 1px solid #2d3346;
    }

    .rml-input,
    .rml-phone-prefix,
    .rml-vehicle-type-select {
        background: #1f2330;
        color: var(--rml-gray-900);
        border-color: var(--rml-gray-300);
    }
    .rml-input:focus,
    .rml-phone-prefix:focus {
        background: #252a3d;
    }

    .rml-service-card,
    .rml-urgency-card,
    .rml-state-card,
    .rml-access-card {
        background: #1f2330;
        border-color: var(--rml-gray-300);
    }
    .rml-service-card:hover,
    .rml-urgency-card:hover,
    .rml-state-card:hover,
    .rml-access-card:hover {
        background: #252a3d;
    }
    .rml-service-card.is-selected,
    .rml-urgency-card.is-selected,
    .rml-state-card.is-selected {
        background: var(--rml-primary-light);
        border-color: var(--rml-primary);
    }

    .rml-step-footer {
        background: #1f2330;
        border-color: #2d3346;
    }

    .rml-info-box {
        background: #1a2a4a;
        border-color: var(--rml-primary);
        color: var(--rml-gray-700);
    }

    .rml-trust-badge {
        background: #1f2330;
        border-color: #2d3346;
        color: var(--rml-gray-700);
    }

    .rml-urgency-estimate {
        background: #1f2330;
        border-color: var(--rml-primary);
        color: var(--rml-gray-900);
    }

    .rml-calendar {
        border-color: #2d3346;
    }
    .rml-cal-day:not(.is-past):not(:disabled):hover {
        background: #252a3d;
    }
    .rml-cal-day.is-today {
        border-color: var(--rml-primary);
    }
    .rml-time-slot:hover {
        background: #252a3d;
    }

    .rml-autocomplete-dropdown {
        background: #1f2330;
        border-color: #2d3346;
    }
    .rml-autocomplete-item:hover,
    .rml-autocomplete-item.is-active {
        background: #252a3d;
    }

    .rml-checkbox-custom {
        background: #1f2330;
        border-color: var(--rml-gray-300);
    }

    .rml-progress-encouragement {
        background: linear-gradient(135deg, #172240, #0d2a1e);
        border-color: #2d3346;
    }
}
