/* ============================================================
   MOTO BOOKING — Scoped styles
   ============================================================ */

#moto-booking-app {
    --mb-bg:            #f7f7f5;
    --mb-surface:       #ffffff;
    --mb-surface-2:     #f5f4f0;
    --mb-border:        #e5e3de;
    --mb-border-strong: #ccc9c2;
    --mb-text:          #1a1916;
    --mb-text-2:        #5c5a55;
    --mb-text-muted:    #9c9a95;
    --mb-text-disabled: #c8c6c1;
    --mb-accent:        #1d6fb8;
    --mb-accent-hover:  #155fa0;
    --mb-accent-light:  #eff6ff;
    --mb-accent-border: #bfdbfe;
    --mb-success:       #16a34a;
    --mb-success-bg:    #f0fdf4;
    --mb-error:         #dc2626;
    --mb-error-bg:      #fef2f2;
    --mb-warning:       #b45309;
    --mb-radius-md:     10px;
    --mb-radius-lg:     14px;
    --mb-radius-xl:     20px;
    --mb-shadow-md:     0 4px 12px rgba(0,0,0,.07);
    --mb-shadow-xl:     0 24px 48px rgba(0,0,0,.10);
    --mb-t:             .2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--mb-text);
    line-height: 1.6;
}

/* ── Motorcycles ── */
#moto-booking-app .motorcycles { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 24px; padding: 24px 0 40px; }
#moto-booking-app .moto-card { background: var(--mb-surface); border-radius: var(--mb-radius-xl); border: 1px solid var(--mb-border); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: transform var(--mb-t), box-shadow var(--mb-t); }
#moto-booking-app .moto-card:hover { transform: translateY(-4px); box-shadow: var(--mb-shadow-xl); }
#moto-booking-app .moto-card img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform .35s ease; }
#moto-booking-app .moto-card:hover img { transform: scale(1.04); }
#moto-booking-app .moto-card .info { padding: 20px; display: flex; flex-direction: column; flex: 1; }
#moto-booking-app .moto-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
#moto-booking-app .moto-card .desc { color: var(--mb-text-2); font-size: .875rem; margin-bottom: 10px; flex: 1; }
#moto-booking-app .moto-card-pricing { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
#moto-booking-app .moto-card .price { font-size: 1.2rem; font-weight: 800; }
#moto-booking-app .moto-card .price-label { font-size: .8rem; color: var(--mb-text-muted); }
#moto-booking-app .deposit-badge { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--mb-text-2); background: var(--mb-surface-2); padding: 3px 8px; border-radius: 999px; border: 1px solid var(--mb-border); font-weight: 500; margin-bottom: 10px; width: fit-content; }
#moto-booking-app .btn-book { display: flex; align-items: center; justify-content: center; width: 100%; padding: 12px 16px; background: var(--mb-accent); color: #fff; border: none; border-radius: var(--mb-radius-lg); font-size: .9rem; font-weight: 700; cursor: pointer; transition: background var(--mb-t); margin-top: auto; }
#moto-booking-app .btn-book:hover { background: var(--mb-accent-hover); }

/* ── Booking section ── */
#moto-booking-app .booking-section { display: none; }
#moto-booking-app .booking-section.active { display: block; background: var(--mb-surface); border-radius: var(--mb-radius-xl); border: 1px solid var(--mb-border); margin-bottom: 32px; overflow: hidden; box-shadow: var(--mb-shadow-md); animation: mbSlideDown .28s ease; }
@keyframes mbSlideDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
#moto-booking-app .booking-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; background: var(--mb-surface-2); border-bottom: 1px solid var(--mb-border); }
#moto-booking-app .booking-header-left { display: flex; align-items: center; gap: 12px; }
#moto-booking-app .booking-header-icon { width: 40px; height: 40px; background: var(--mb-accent-light); border: 1px solid var(--mb-accent-border); border-radius: var(--mb-radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
#moto-booking-app .booking-header h2 { font-size: 1.1rem; font-weight: 700; margin: 0; }
#moto-booking-app .booking-moto-name { font-size: .8rem; color: var(--mb-text-muted); }
#moto-booking-app .btn-close { background: transparent; border: 1px solid var(--mb-border); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; color: var(--mb-text-muted); font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: all var(--mb-t); }
#moto-booking-app .btn-close:hover { background: var(--mb-surface); color: var(--mb-text); }
#moto-booking-app .booking-body { padding: 24px; }

/* ── Season banner ── */
#moto-booking-app .season-banner { display: flex; align-items: center; gap: 10px; background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--mb-radius-md); padding: 12px 16px; font-size: .875rem; color: var(--mb-warning); margin-bottom: 20px; }

/* ── Steps ── */
#moto-booking-app .steps { display: flex; align-items: center; margin-bottom: 24px; }
#moto-booking-app .step-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
#moto-booking-app .step-circle { width: 32px; height: 32px; border-radius: 50%; background: var(--mb-surface-2); border: 2px solid var(--mb-border); display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; color: var(--mb-text-muted); transition: all var(--mb-t); }
#moto-booking-app .step-circle.active { background: var(--mb-accent); border-color: var(--mb-accent); color: #fff; }
#moto-booking-app .step-circle.done   { background: var(--mb-success-bg); border-color: var(--mb-success); color: var(--mb-success); }
#moto-booking-app .step-label { font-size: .72rem; font-weight: 600; color: var(--mb-text-muted); }
#moto-booking-app .step-label.active { color: var(--mb-accent); }
#moto-booking-app .step-label.done   { color: var(--mb-success); }
#moto-booking-app .step-line { flex: 1; height: 2px; background: var(--mb-border); margin: 0 8px 20px; transition: background var(--mb-t); }
#moto-booking-app .step-line.done { background: var(--mb-success); }

/* ── Section title ── */
#moto-booking-app .section-title { font-size: 1rem; font-weight: 700; margin: 20px 0 14px; }

/* ── Rental type ── */
#moto-booking-app .rental-type-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 4px; }
@media(max-width:600px){ #moto-booking-app .rental-type-grid { grid-template-columns: 1fr; } }
#moto-booking-app .rental-type-card { padding: 16px; border-radius: var(--mb-radius-lg); border: 2px solid var(--mb-border); cursor: pointer; background: var(--mb-surface-2); transition: all var(--mb-t); text-align: center; }
#moto-booking-app .rental-type-card:hover { border-color: var(--mb-accent-border); background: var(--mb-surface); box-shadow: var(--mb-shadow-md); }
#moto-booking-app .rental-type-card.selected { border-color: var(--mb-accent); background: var(--mb-accent-light); }
#moto-booking-app .rt-icon  { font-size: 1.6rem; margin-bottom: 4px; }
#moto-booking-app .rt-name  { font-weight: 800; font-size: .95rem; margin-bottom: 2px; }
#moto-booking-app .rt-hours { font-size: .75rem; color: var(--mb-text-muted); margin-bottom: 8px; }
#moto-booking-app .rt-prices { display: flex; flex-direction: column; gap: 2px; }
#moto-booking-app .rt-price-row { font-size: .78rem; color: var(--mb-text-2); }
#moto-booking-app .rental-type-card.selected .rt-price-row strong { color: var(--mb-accent); }
#moto-booking-app .rt-hint { font-size: .7rem; color: var(--mb-text-muted); margin-top: 6px; font-style: italic; }
#moto-booking-app .rt-return-label { font-size: .85rem; font-weight: 600; display: block; margin-bottom: 8px; }
#moto-booking-app .rt-return-options { display: flex; gap: 20px; }
#moto-booking-app .rt-return-opt { display: flex; align-items: center; gap: 6px; font-size: .9rem; cursor: pointer; font-weight: 500; }

/* ── Date info ── */
#moto-booking-app .date-selection-info { margin: 14px 0; padding: 10px 14px; background: var(--mb-surface-2); border: 1px solid var(--mb-border); border-radius: var(--mb-radius-md); font-size: .875rem; color: var(--mb-text-2); }

/* ── Calendar ── */
#moto-booking-app .calendar { background: var(--mb-surface); border: 1px solid var(--mb-border); border-radius: var(--mb-radius-lg); padding: 16px; margin-bottom: 20px; }
#moto-booking-app .cal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
#moto-booking-app .cal-header button { background: var(--mb-surface-2); color: var(--mb-text); border: 1px solid var(--mb-border); padding: 6px 12px; border-radius: var(--mb-radius-md); cursor: pointer; font-size: .82rem; font-weight: 600; transition: all var(--mb-t); }
#moto-booking-app .cal-header button:hover { background: var(--mb-surface); }
#moto-booking-app .cal-header span { font-weight: 700; font-size: 1rem; }
#moto-booking-app .cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; }
#moto-booking-app .day-name { text-align: center; font-weight: 600; font-size: .7rem; color: var(--mb-text-muted); padding: 4px 2px 8px; text-transform: uppercase; letter-spacing: .5px; }
#moto-booking-app .day { text-align: center; padding: 8px 4px; border-radius: var(--mb-radius-md); cursor: pointer; font-size: .875rem; font-weight: 500; min-height: 36px; display: flex; align-items: center; justify-content: center; transition: all var(--mb-t); position: relative; }
#moto-booking-app .day:hover:not(.blocked):not(.empty):not(.past):not(.not-available) { background: var(--mb-accent-light); color: var(--mb-accent); font-weight: 600; }
#moto-booking-app .day.past,
#moto-booking-app .day.not-available { color: var(--mb-text-disabled); cursor: not-allowed; }
#moto-booking-app .day.blocked { color: var(--mb-text-disabled); cursor: not-allowed; text-decoration: line-through; }
#moto-booking-app .day.selected { background: #1a1916; color: #fff; font-weight: 700; }
#moto-booking-app .day.in-range { background: #e8e6e0; border-radius: 0; }
#moto-booking-app .day.range-start { background: #1a1916; color: #fff; font-weight: 700; border-radius: var(--mb-radius-md) 0 0 var(--mb-radius-md); }
#moto-booking-app .day.range-end   { background: #1a1916; color: #fff; font-weight: 700; border-radius: 0 var(--mb-radius-md) var(--mb-radius-md) 0; }
#moto-booking-app .day.today::after { content:''; position:absolute; bottom:4px; left:50%; transform:translateX(-50%); width:4px; height:4px; border-radius:50%; background:var(--mb-accent); }
#moto-booking-app .day.selected.today::after,
#moto-booking-app .day.range-start.today::after { background: rgba(255,255,255,.7); }

/* ── Price breakdown ── */
#moto-booking-app .price-breakdown { margin: 20px 0; }
#moto-booking-app .price-breakdown-inner { background: var(--mb-surface-2); border: 1px solid var(--mb-border); border-radius: var(--mb-radius-lg); overflow: hidden; }
#moto-booking-app .price-breakdown table { width: 100%; border-collapse: collapse; font-size: .85rem; }
#moto-booking-app .price-breakdown thead { background: var(--mb-surface); border-bottom: 1px solid var(--mb-border); }
#moto-booking-app .price-breakdown th { padding: 8px 16px; text-align: left; font-weight: 600; color: var(--mb-text-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; }
#moto-booking-app .price-breakdown td { padding: 8px 16px; border-bottom: 1px solid var(--mb-border); color: var(--mb-text-2); }
#moto-booking-app .price-breakdown tbody tr:last-child td { border-bottom: none; }
#moto-booking-app .rule-tag { font-size: .7rem; background: var(--mb-accent-light); color: var(--mb-accent); padding: 2px 8px; border-radius: 999px; font-weight: 600; border: 1px solid var(--mb-accent-border); }
#moto-booking-app .price-summary { background: var(--mb-surface); border-top: 2px solid var(--mb-border); padding: 16px; }
#moto-booking-app .price-total-row { display: flex; justify-content: space-between; align-items: center; }
#moto-booking-app .price-total-value { font-size: 1.3rem; font-weight: 800; }

/* ── Accessories ── */
#moto-booking-app .accessories-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap: 10px; margin-bottom: 12px; }
#moto-booking-app .acc-card { padding: 14px; border-radius: var(--mb-radius-lg); border: 2px solid var(--mb-border); cursor: pointer; background: var(--mb-surface-2); transition: all var(--mb-t); }
#moto-booking-app .acc-card:hover { border-color: var(--mb-accent-border); background: var(--mb-surface); }
#moto-booking-app .acc-card.selected { border-color: var(--mb-accent); background: var(--mb-accent-light); }
#moto-booking-app .acc-name  { font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
#moto-booking-app .acc-price { font-size: .8rem; color: var(--mb-accent); font-weight: 600; }

/* ── Customer form ── */
#moto-booking-app .booking-form { display: none; margin-top: 24px; }
#moto-booking-app .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:540px){ #moto-booking-app .form-row { grid-template-columns: 1fr; } }
#moto-booking-app .form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
#moto-booking-app .form-group label { font-size: .85rem; font-weight: 600; }
#moto-booking-app .req { color: var(--mb-accent); }
#moto-booking-app .form-group input,
#moto-booking-app .form-group select,
#moto-booking-app .form-group textarea { padding: 10px 14px; border: 1px solid var(--mb-border); border-radius: var(--mb-radius-md); font-size: .9rem; background: var(--mb-surface); color: var(--mb-text); transition: border-color var(--mb-t); font-family: inherit; }
#moto-booking-app .form-group input:focus,
#moto-booking-app .form-group select:focus,
#moto-booking-app .form-group textarea:focus { outline: none; border-color: var(--mb-accent); }
#moto-booking-app .form-group input.invalid,
#moto-booking-app .form-group select.invalid { border-color: var(--mb-error); }
#moto-booking-app .field-error { font-size: .78rem; color: var(--mb-error); margin-top: 2px; }
#moto-booking-app .field-hint  { font-size: .78rem; color: var(--mb-text-muted); margin-top: 4px; font-style: italic; }
#moto-booking-app .consent-group { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
#moto-booking-app .consent-group input[type=checkbox] { margin-top: 3px; flex-shrink: 0; }
#moto-booking-app .consent-group label { font-size: .83rem; color: var(--mb-text-2); }
#moto-booking-app .msg { padding: 12px 16px; border-radius: var(--mb-radius-md); font-size: .875rem; margin-bottom: 14px; }
#moto-booking-app .msg.error   { background: var(--mb-error-bg);   color: var(--mb-error);   border: 1px solid #fecaca; }
#moto-booking-app .msg.success { background: var(--mb-success-bg); color: var(--mb-success); border: 1px solid #bbf7d0; }
#moto-booking-app .btn-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px 20px; background: var(--mb-accent); color: #fff; border: none; border-radius: var(--mb-radius-lg); font-size: 1rem; font-weight: 700; cursor: pointer; transition: background var(--mb-t); }
#moto-booking-app .btn-submit:hover:not(:disabled) { background: var(--mb-accent-hover); }
#moto-booking-app .btn-submit:disabled { opacity: .7; cursor: not-allowed; }
#moto-booking-app .btn-loader { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: mbSpin .8s linear infinite; }
@keyframes mbSpin { to { transform: rotate(360deg); } }

/* ── Discount ── */
#moto-booking-app .discount-row { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 4px; }
#moto-booking-app .btn-apply-discount { padding: 10px 18px; background: var(--mb-surface-2); border: 1px solid var(--mb-border); border-radius: var(--mb-radius-md); font-weight: 700; font-size: .875rem; cursor: pointer; white-space: nowrap; transition: all var(--mb-t); height: 42px; }
#moto-booking-app .btn-apply-discount:hover { background: var(--mb-accent-light); border-color: var(--mb-accent); color: var(--mb-accent); }
#moto-booking-app .discount-success { display: flex; align-items: center; gap: 8px; background: var(--mb-success-bg); border: 1px solid #bbf7d0; border-radius: var(--mb-radius-md); padding: 10px 14px; font-size: .875rem; color: var(--mb-success); font-weight: 600; }
#moto-booking-app .discount-error   { background: var(--mb-error-bg); border: 1px solid #fecaca; border-radius: var(--mb-radius-md); padding: 10px 14px; font-size: .875rem; color: var(--mb-error); }

/* ── Sticky bar ── */
#moto-booking-app .sticky-bar { position: fixed; bottom: 0; left: 0; right: 0; background: #1a1916; color: #fff; padding: 12px 24px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 -4px 24px rgba(0,0,0,.18); z-index: 9999; animation: mbSlideUp .3s ease; }
@keyframes mbSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
#moto-booking-app .sticky-bar-info { display: flex; flex-direction: column; gap: 2px; }
#moto-booking-app .sticky-moto  { font-weight: 700; font-size: .9rem; }
#moto-booking-app .sticky-dates { font-size: .78rem; opacity: .8; }
#moto-booking-app .sticky-bar-right { display: flex; align-items: center; gap: 14px; }
#moto-booking-app .sticky-price { font-size: 1.2rem; font-weight: 800; }
#moto-booking-app .btn-sticky { background: var(--mb-accent); color: #fff; border: none; padding: 10px 20px; border-radius: var(--mb-radius-md); font-weight: 700; font-size: .9rem; cursor: pointer; transition: background var(--mb-t); }
#moto-booking-app .btn-sticky:hover { background: var(--mb-accent-hover); }

/* ── Confirm modal ── */
#moto-booking-app .confirm-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; }
#moto-booking-app .confirm-modal { background: var(--mb-surface); border-radius: var(--mb-radius-xl); padding: 40px 32px; max-width: 420px; width: 100%; text-align: center; box-shadow: var(--mb-shadow-xl); animation: mbZoomIn .3s ease; }
@keyframes mbZoomIn { from { opacity:0; transform:scale(.9); } to { opacity:1; transform:scale(1); } }
#moto-booking-app .confirm-modal-icon     { font-size: 3rem; margin-bottom: 16px; }
#moto-booking-app .confirm-modal-title    { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
#moto-booking-app .confirm-modal-subtitle { color: var(--mb-text-2); font-size: .9rem; margin-bottom: 4px; }
#moto-booking-app .confirm-modal-email    { font-weight: 700; color: var(--mb-accent); margin-bottom: 20px; }
#moto-booking-app .confirm-modal-details  { background: var(--mb-surface-2); border-radius: var(--mb-radius-lg); padding: 16px; margin-bottom: 24px; text-align: left; }
#moto-booking-app .confirm-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: .875rem; }
#moto-booking-app .confirm-row span:first-child { color: var(--mb-text-muted); }
#moto-booking-app .confirm-row .price { font-weight: 800; font-size: 1rem; }
#moto-booking-app .confirm-modal-btn { width: 100%; padding: 14px; background: var(--mb-accent); color: #fff; border: none; border-radius: var(--mb-radius-lg); font-size: 1rem; font-weight: 700; cursor: pointer; transition: background var(--mb-t); }
#moto-booking-app .confirm-modal-btn:hover { background: var(--mb-accent-hover); }

/* ── Loading ── */
#moto-booking-app .loading-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; gap: 14px; color: var(--mb-text-muted); grid-column: 1/-1; }
#moto-booking-app .loading-spinner { width: 36px; height: 36px; border: 3px solid var(--mb-border); border-top-color: var(--mb-accent); border-radius: 50%; animation: mbSpin .8s linear infinite; }
