/* ============================================================
   DrCHECK Booking Portal — Stylesheet
   Dark theme default — matches preowned.drcheck.ae
   ============================================================ */

/* ==================== Dark Theme (Default) ==================== */
:root {
    --primary: #F7E500;
    --primary-dark: #FFD700;
    --primary-light: rgba(247, 229, 0, 0.12);
    --primary-glow: rgba(247, 229, 0, 0.25);
    --success: #22C55E;
    --success-light: rgba(34, 197, 94, 0.12);
    --warning: #F59E0B;
    --warning-light: rgba(245, 158, 11, 0.12);
    --danger: #EF4444;
    --danger-light: rgba(239, 68, 68, 0.12);
    --text: #FAFAFA;
    --text-light: #A1A1AA;
    --text-muted: #71717A;
    --bg: #0A0A0B;
    --white: #111113;
    --border: #27272A;
    --border-light: #1F1F23;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
    --shadow: 0 4px 12px rgba(0,0,0,0.5);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.6);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --font: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
    --transition: all 0.2s ease;
    --input-bg: #18181B;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ==================== Header ==================== */
.book-header {
    background: var(--white);
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: 640px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo img { height: 32px; filter: none; }
.logo-text { font-size: 18px; color: #E63946; text-decoration: none; font-weight: 700; letter-spacing: -0.3px; }
.logo-text strong { color: var(--primary); font-weight: 800; }
.header-right { display: flex; align-items: center; gap: 12px; }
.header-trust {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--success); font-weight: 500;
}
.header-trust i { font-size: 14px; }

/* ==================== Progress ==================== */
.progress-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 16px 20px 0;
}
.progress-bar {
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.4s ease;
}
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}
.progress-steps .step {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}
.progress-steps .step span {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}
.progress-steps .step.active span { background: var(--primary); color: #0A0A0B; }
.progress-steps .step.active { color: var(--primary); font-weight: 500; }
.progress-steps .step.completed span { background: var(--success); color: white; }

/* ==================== Main ==================== */
.book-main { max-width: 640px; margin: 0 auto; padding: 20px; }
.container { width: 100%; }

/* ==================== Steps ==================== */
.step-section {
    display: none;
    animation: fadeIn 0.3s ease;
}
.step-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.step-header { margin-bottom: 24px; }
.step-header h2 { font-size: 22px; font-weight: 700; color: var(--text); }
.step-subtitle { font-size: 14px; color: var(--text-light); margin-top: 4px; }

.step-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #0A0A0B; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); color: #0A0A0B; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: var(--white); color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-text { background: none; color: var(--primary); padding: 8px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 50%; background: var(--white); border: 1px solid var(--border); color: var(--text); }
.btn-icon:hover { background: var(--primary-light); color: var(--primary); }
.btn-pay { background: var(--success); min-width: 200px; }
.btn-pay:hover:not(:disabled) { background: #00A845; }

/* ==================== Forms ==================== */
.form-group { margin-bottom: 16px; }
.form-group label, .required-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.label-optional {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 12px;
}

/* ==================== OR Divider ==================== */
.or-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0 20px;
}
.or-divider::before,
.or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.or-divider span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: var(--font);
    color: var(--text);
    background: var(--input-bg);
    transition: var(--transition);
    outline: none;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.form-input::placeholder { color: var(--text-muted); }
textarea.form-input { resize: vertical; min-height: 80px; }
.form-hint { font-size: 12px; color: var(--text-light); margin-top: 6px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 6px; }
.form-success { color: var(--success); }
.mt-2 { margin-top: 8px; }

/* ==================== VIN Input Row ==================== */
.vin-input-row {
    display: flex;
    gap: 8px;
}
.vin-input-row .form-input { flex: 1; }
.vin-input-row .btn { white-space: nowrap; }

/* ==================== VIN Result Card ==================== */
.vin-result { margin-bottom: 20px; }
.vin-result-card {
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 16px;
}
.vin-result-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.vin-result-header i { color: var(--primary); font-size: 18px; }
.vin-result-details { margin-bottom: 12px; }
.vin-result-details p { font-size: 15px; }
.vin-result-sub { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.vin-result-actions { display: flex; gap: 8px; }

/* ==================== Search Select ==================== */
.search-select { position: relative; }
.search-select input { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 15px; font-family: var(--font); outline: none; color: var(--text); background: var(--input-bg); }
.search-select input:focus { border-color: var(--primary); }
.select-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    max-height: 280px;
    overflow-y: auto;
    z-index: 50;
    box-shadow: var(--shadow-lg);
    margin-top: 4px;
}
.select-dropdown.open { display: block; }
.dropdown-section { padding: 4px 0; }
.dropdown-label { padding: 8px 16px; font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.dropdown-item {
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text);
}
.dropdown-item:hover { background: var(--primary-light); color: var(--primary); }

/* ==================== Year Select ==================== */
#year-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239CA3AF' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
#year-select option {
    background: var(--white);
    color: var(--text);
}

/* ==================== Toggle Cards ==================== */
.toggle-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.toggle-card {
    padding: 20px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--white);
}
.toggle-card i { font-size: 24px; color: var(--text-light); display: block; margin-bottom: 8px; }
.toggle-card strong { display: block; font-size: 14px; margin-bottom: 4px; color: var(--text); }
.toggle-card .toggle-desc { font-size: 12px; color: var(--text-light); }
.toggle-card.active { border-color: var(--primary); background: var(--primary-light); }
.toggle-card.active i { color: var(--primary); }

/* ==================== Emirate Grid ==================== */
.emirate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.emirate-card {
    padding: 14px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--white);
    position: relative;
}
.emirate-card i { display: block; font-size: 18px; color: var(--text-light); margin-bottom: 6px; }
.emirate-card span { font-size: 12px; font-weight: 500; color: var(--text); }
.emirate-card:hover { border-color: var(--primary); }
.emirate-card.active { border-color: var(--primary); background: var(--primary-light); }
.emirate-card.active i { color: var(--primary); }

/* ==================== Location Input Row ==================== */
.location-input-row {
    display: flex;
    gap: 8px;
}
.location-input-row .form-input { flex: 1; }
.btn-icon-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-width: 48px;
    height: 48px;
    padding: 0;
    border-radius: var(--radius-sm);
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 18px;
}
.btn-icon-label:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

/* Map divider */
.map-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
    color: var(--text-muted);
    font-size: 13px;
}
.map-divider::before, .map-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ==================== Badges ==================== */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
}
.badge-green { background: var(--success-light); color: var(--success) !important; }
.badge-amber { background: var(--warning-light); color: var(--warning) !important; }
.badge-red { background: var(--danger); color: #fff !important; }

/* ==================== Toggle Pills ==================== */
.toggle-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
    padding: 10px 18px;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: var(--white);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font);
    color: var(--text);
}
.pill:hover { border-color: var(--primary); }
.pill.active { background: var(--primary); color: #0A0A0B; border-color: var(--primary); }
.pill i { font-size: 14px; }

/* ==================== Alerts ==================== */
.alert {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    line-height: 1.5;
}
.alert i { margin-top: 2px; flex-shrink: 0; }
.alert-warning { background: var(--warning-light); color: var(--warning); }
.alert-info { background: var(--primary-light); color: var(--primary); }

/* ==================== Collapsible ==================== */
.collapsible .collapsible-content { display: none; padding-top: 12px; }
.collapsible.open .collapsible-content { display: block; }
.collapsible-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 0;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    cursor: pointer;
    font-family: var(--font);
}
.collapsible-toggle i { transition: transform 0.2s; }
.collapsible.open .collapsible-toggle i { transform: rotate(180deg); }

/* ==================== Workshop Card ==================== */
.workshop-card {
    background: var(--white);
    border: 2px solid var(--success);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.workshop-info h3 { font-size: 16px; margin-bottom: 4px; color: var(--text); }
.workshop-info h3 i { color: var(--primary); margin-right: 4px; }
.workshop-info p { font-size: 13px; color: var(--text-light); margin-bottom: 10px; }
.savings-badge { text-align: center; }
.savings-amount { display: block; font-size: 22px; font-weight: 700; color: var(--success); }
.savings-label { font-size: 11px; color: var(--text-light); }

/* ==================== Calendar ==================== */
.calendar-container {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 16px;
    margin-bottom: 20px;
}
.calendar-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.calendar-month { font-size: 16px; font-weight: 600; color: var(--text); }
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}
.calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text);
}
.cal-day.empty { cursor: default; }
.cal-day.disabled { color: var(--text-muted); opacity: 0.4; cursor: not-allowed; }
.cal-day.unavailable { color: var(--text-muted); opacity: 0.3; cursor: not-allowed; }
.cal-day.available { color: var(--text); background: var(--success-light); }
.cal-day.available:hover { background: var(--primary-light); }
.cal-day.limited { color: var(--warning); background: var(--warning-light); }
.cal-day.selected { background: var(--primary); color: #0A0A0B; }
.cal-day.today { position: relative; }
.cal-day.today::after {
    content: '';
    position: absolute;
    bottom: 2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
}
.cal-day.today.selected::after { background: white; }

/* ==================== Time Slots ==================== */
.timeslot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.timeslot-card {
    padding: 16px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--white);
    position: relative;
}
.timeslot-card i { font-size: 20px; color: var(--text-light); display: block; margin-bottom: 6px; }
.timeslot-card strong { display: block; font-size: 13px; margin-bottom: 2px; color: var(--text); }
.timeslot-card span { font-size: 11px; color: var(--text-light); }
.timeslot-card:hover:not(.disabled):not(.muted) { border-color: var(--primary); }
.timeslot-card.active { border-color: var(--primary); background: var(--primary-light); }
.timeslot-card.active i { color: var(--primary); }
.timeslot-card.disabled { opacity: 0.4; cursor: not-allowed; }
.timeslot-card.muted { opacity: 0.25; cursor: not-allowed; text-decoration: line-through; }
.slot-remaining { position: absolute; top: 4px; right: 6px; font-size: 9px; color: var(--warning); font-weight: 700; }

/* Urgent slot indicator */
.timeslot-card.urgent-slot { border-color: var(--warning); }
.urgent-badge-inline {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    font-weight: 700;
    color: var(--warning);
    white-space: nowrap;
}
.urgent-badge-inline i { font-size: 8px; display: inline; }

/* Urgent auto notice */
.urgent-auto-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--warning-light);
    color: var(--warning);
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-top: 12px;
}
.urgent-auto-notice i { font-size: 16px; }

/* ==================== Toggle Switch (FIXED) ==================== */
.toggle-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--text); }
.toggle-label input[type="checkbox"] { display: none; }
.toggle-switch {
    width: 44px; height: 24px;
    background: var(--border);
    border-radius: 12px;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
}
.toggle-switch::after {
    content: '';
    width: 20px; height: 20px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px; left: 2px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.toggle-label input[type="checkbox"]:checked + .toggle-switch { background: var(--primary); }
.toggle-label input[type="checkbox"]:checked + .toggle-switch::after { left: 22px; }

/* ==================== Summary Card ==================== */
.summary-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}
.summary-label { font-size: 13px; color: var(--text-light); }
.summary-value { font-size: 14px; font-weight: 600; color: var(--text); }
.summary-value.green { color: var(--success); }
.summary-row.total { padding-top: 12px; }
.summary-row.total .summary-label { font-size: 16px; font-weight: 700; color: var(--text); }
.summary-row.total .summary-value { font-size: 20px; font-weight: 700; color: var(--primary); }
.summary-card hr { border: none; border-top: 1px solid var(--border-light); margin: 4px 0; }

/* Promo */
.promo-row { display: flex; gap: 8px; }
.promo-row input { flex: 1; }

/* ==================== Auth Card ==================== */
.auth-required-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
}
.auth-required-card h3 { margin-bottom: 8px; color: var(--text); }
.auth-required-card h3 i { color: var(--primary); }
.auth-required-card p { color: var(--text-light); font-size: 13px; margin-bottom: 16px; }
.otp-flow { max-width: 320px; margin: 0 auto; }
.otp-flow .form-input { margin-bottom: 12px; }
.otp-inputs { display: flex; gap: 8px; justify-content: center; margin-bottom: 16px; }
.otp-digit {
    width: 44px; height: 52px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    font-family: var(--font);
    transition: var(--transition);
    color: var(--text);
    background: var(--input-bg);
}
.otp-digit:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }

/* Phone input with country code */
.phone-input-group {
    display: flex;
    gap: 0;
    align-items: stretch;
}
.country-code-select {
    width: 115px;
    flex-shrink: 0;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    background: var(--input-bg);
    font-size: 15px;
    font-family: var(--font);
    color: var(--text);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 24px;
    outline: none;
    height: auto;
    box-sizing: border-box;
}
.country-code-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    z-index: 1;
    position: relative;
}
.phone-local-input {
    flex: 1;
    min-width: 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
    border-left: none !important;
}

/* WhatsApp toggle card */
.wa-toggle-card {
    margin: 12px 0 16px;
    background: rgba(37, 211, 102, 0.1);
    border: 2px solid #25D366;
    border-radius: var(--radius);
    padding: 14px 16px;
    transition: var(--transition);
}
.wa-toggle-card.wa-off {
    background: var(--white);
    border-color: var(--border);
}
.wa-toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    gap: 12px;
    margin: 0;
}
.wa-toggle-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.wa-toggle-icon {
    font-size: 24px;
    color: #25D366;
}
.wa-toggle-card.wa-off .wa-toggle-icon {
    color: var(--text-muted);
}
.wa-toggle-card.wa-off .wa-toggle-left span {
    color: var(--text-light);
}
/* Toggle switch */
.wa-toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}
.wa-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.wa-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #3F3F46;
    border-radius: 26px;
    transition: 0.3s;
}
.wa-toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.wa-toggle-switch input:checked + .wa-toggle-slider {
    background-color: #25D366;
}
.wa-toggle-switch input:checked + .wa-toggle-slider::before {
    transform: translateX(22px);
}

/* Legacy WhatsApp checkbox (keep for compat) */
.whatsapp-check-row {
    margin: 10px 0 12px;
}
.whatsapp-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text);
}
.whatsapp-checkbox-label input[type="checkbox"] {
    display: none;
}
.wa-check-box {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    transition: var(--transition);
    background: var(--input-bg);
}
.whatsapp-checkbox-label input:checked + .wa-check-box {
    background: #25D366;
    border-color: #25D366;
}
.whatsapp-checkbox-label input:checked + .wa-check-box::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.wa-check-text {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
}

/* ==================== Payment Card ==================== */
.payment-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}
.payment-card h3 { margin-bottom: 16px; font-size: 15px; color: var(--text); }
.payment-card h3 i { color: var(--success); }
#stripe-express-checkout {
    margin-bottom: 8px;
    min-height: 0;
}
.express-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: var(--text-muted);
    font-size: 13px;
}
.express-divider::before, .express-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
#stripe-payment-element {
    margin-bottom: 12px;
    min-height: 100px;
}
.refund-note { font-size: 12px; color: var(--text-light); text-align: center; margin-bottom: 16px; }
.refund-note i { color: var(--primary); }

/* ==================== Confirmation ==================== */
.confirmation-screen { text-align: center; padding: 40px 0; }
.confirm-icon { font-size: 64px; color: var(--success); margin-bottom: 16px; }
.confirm-icon i { animation: scaleIn 0.5s ease; }
@keyframes scaleIn { from { transform: scale(0); } to { transform: scale(1); } }
.confirmation-screen h2 { font-size: 24px; margin-bottom: 8px; color: var(--text); }
.confirm-ref { font-size: 16px; color: var(--text-light); margin-bottom: 24px; }
.confirm-ref strong { color: var(--primary); font-size: 18px; }
.confirm-summary { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; text-align: center; color: var(--text); }
.confirm-summary p { margin: 4px 0; }
.confirm-total { font-size: 22px; font-weight: 700; color: var(--primary); margin-top: 8px; }
.confirm-sms { font-size: 13px; color: var(--text-light); margin-bottom: 24px; }
.confirm-sms i { color: var(--primary); }
.confirm-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ==================== Modal ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
}
.modal-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 400px;
    width: 100%;
    position: relative;
    text-align: center;
    border: 1px solid var(--border);
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px; height: 32px;
    border: none;
    background: var(--bg);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}
.modal-card h3 { margin-bottom: 8px; color: var(--text); }
.modal-card > p { color: var(--text-light); font-size: 13px; margin-bottom: 20px; }
.otp-sent-to { font-size: 13px; color: var(--text-light); margin-bottom: 16px; }
.otp-sent-to span { color: var(--primary); font-weight: 600; }

/* ==================== Loading ==================== */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13,13,26,0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 300;
}
.spinner {
    width: 40px; height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay p { font-size: 14px; color: var(--text-light); }

/* ==================== Toast ==================== */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1100;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
    max-width: 90%;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast-error { background: var(--danger); color: white; }
.toast-success { background: var(--success); color: white; }
.toast-info { background: #2a2a40; color: white; }

/* ==================== Utility ==================== */
.hidden { display: none !important; }

/* ==================== Responsive ==================== */
@media (max-width: 480px) {
    .header-trust { display: none; }
    .step-header h2 { font-size: 18px; }
    .toggle-cards { grid-template-columns: 1fr; }
    .emirate-grid { grid-template-columns: repeat(2, 1fr); }
    .year-grid { grid-template-columns: repeat(4, 1fr); }
    .timeslot-grid { grid-template-columns: 1fr; }
    .workshop-card { flex-direction: column; text-align: center; }
    .otp-digit { width: 38px; height: 46px; font-size: 18px; }
    .btn-lg { padding: 12px 20px; font-size: 15px; }
    .confirm-actions { flex-direction: column; }
    .confirm-actions .btn { width: 100%; }
    .modal-card { padding: 24px 20px; }
    .vin-input-row { flex-direction: row; }
    .vin-result-actions { flex-direction: column; }
}

/* Main content padding for bottom nav */
.book-main { padding-bottom: 80px; }

/* Step navigation arrows */
.step-nav-arrows {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: var(--bg-card, #141c18);
    border-top: 1px solid var(--border, #1e2a24);
    z-index: 100;
    backdrop-filter: blur(10px);
}
.step-nav-arrows .nav-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--border, #2a3830);
    background: transparent;
    color: var(--text-primary, #fff);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.step-nav-arrows .nav-arrow:hover { background: var(--accent, #22c55e); color: #000; border-color: var(--accent, #22c55e); }
.step-nav-arrows .nav-arrow:disabled { opacity: 0.3; cursor: not-allowed; }
.step-nav-arrows .nav-arrow:disabled:hover { background: transparent; color: var(--text-primary, #fff); border-color: var(--border, #2a3830); }
.nav-step-label { font-size: 0.85rem; color: var(--text-secondary, #a8b5ae); font-weight: 500; }

/* Terms popup */
.terms-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.7); z-index:1000; align-items:center; justify-content:center; padding:20px; }
.terms-overlay.active { display:flex; }
.terms-popup { background:var(--bg-card,#141c18); border-radius:16px; max-width:500px; width:100%; max-height:85vh; display:flex; flex-direction:column; border:1px solid var(--border,#1e2a24); }
.terms-popup-header { display:flex; align-items:center; justify-content:space-between; padding:16px 20px; border-bottom:1px solid var(--border,#1e2a24); }
.terms-popup-header h3 { font-size:1rem; margin:0; color:var(--text-primary,#fff); }
.terms-close { background:none; border:none; color:var(--text-secondary,#a8b5ae); font-size:1.1rem; cursor:pointer; padding:4px; }
.terms-scroll-notice { padding:10px 20px; background:rgba(34,197,94,0.1); border-bottom:1px solid var(--border,#1e2a24); font-size:0.8rem; color:var(--accent,#22c55e); text-align:center; display:flex; align-items:center; justify-content:center; gap:8px; }
.terms-scroll-notice.hidden { display:none; }
.terms-scroll-notice i { animation: bounceDown 1.2s infinite; }
@keyframes bounceDown { 0%,100%{transform:translateY(0)} 50%{transform:translateY(4px)} }
.terms-scroll-box { overflow-y:auto; padding:20px; flex:1; min-height:0; font-size:0.85rem; line-height:1.7; color:var(--text-secondary,#a8b5ae); }
.terms-scroll-box h4 { color:var(--text-primary,#fff); font-size:0.9rem; margin:16px 0 8px; }
.terms-scroll-box h4:first-child { margin-top:0; }
.terms-checkbox { display:flex; align-items:flex-start; gap:10px; padding:12px 20px; cursor:pointer; font-size:0.82rem; color:var(--text-secondary,#a8b5ae); border-top:1px solid var(--border,#1e2a24); }
.terms-checkbox input { margin-top:3px; accent-color:var(--accent,#22c55e); }
#termsAcceptBtn { margin:0 20px 20px; width:calc(100% - 40px); }
#termsAcceptBtn:disabled { opacity:0.4; cursor:not-allowed; }

/* WhatsApp verification step */
.wa-verify{padding:4px 0}
.wa-open-btn{background:#25D366;color:#fff;font-weight:700;font-size:1.05rem;padding:14px;border-radius:12px;display:flex;align-items:center;justify-content:center;gap:10px;text-decoration:none}
.wa-open-btn:hover{background:#1ebe5b;color:#fff}
.wa-code-row{display:flex;align-items:center;justify-content:space-between;margin:12px 0 6px;padding:10px 14px;border:1px dashed var(--border,#333);border-radius:10px;font-size:.9rem;color:var(--text-muted,#aaa)}
.wa-code-row code{font-size:1.25rem;font-weight:700;letter-spacing:.08em;color:var(--text,#fff)}
.wa-wait{display:flex;align-items:center;gap:8px;font-size:.9rem;color:var(--text-muted,#aaa);margin:8px 0}
.wa-manual{font-size:.8rem}
.wa-manual a{color:#25D366}
.wa-alt{display:flex;justify-content:space-between;margin-top:6px}
