/* RoveBolt — customer booking: hero form (step 0) + stepped modal. Loaded by pages/index.php. */

/* ── hero form ── */
.hero-card.has-booking { max-width: 760px; width: calc(100% - 40px); padding: 26px 28px 20px; top: -560px; }
.hero-card.has-booking h1 { font-size: 30px; margin-bottom: 16px; }
.hero-card-actions-stores { margin-top: 14px; }
.hero-card-actions-stores .hero-card-stores { margin-left: 2px; }
.bk-hero { margin-top: 4px; }
.bk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bk-row-2 { grid-template-columns: 1.15fr 0.9fr 1.5fr 0.8fr auto; margin-top: 10px; align-items: end; }
.bk-field { position: relative; display: flex; flex-direction: column; min-width: 0; }
.bk-field input, .bk-field select, .bk-pax-toggle {
    width: 100%; height: 46px; border: 1.5px solid #E0E0E0; border-radius: 10px; background: #fff;
    font: 500 14px/1.2 'Inter', sans-serif; color: #212121; padding: 0 12px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.bk-field input:focus, .bk-field select:focus, .bk-pax-toggle:focus { border-color: #FF8F00; box-shadow: 0 0 0 3px rgba(255,143,0,.14); }
.bk-place input { padding-left: 34px; }
.bk-place.bk-ok input { border-color: #1E7A46; }
.bk-ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 11px; height: 11px; border-radius: 50%; pointer-events: none; }
.bk-ic-a { background: #fff; box-shadow: inset 0 0 0 3px #1A237E; }
.bk-ic-b { background: #FF8F00; }
.bk-lbl { font-size: 10.5px; font-weight: 700; color: #757575; text-transform: uppercase; letter-spacing: .5px; margin: 0 0 4px 2px; }
.bk-pax-toggle { display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; text-align: left; white-space: nowrap; overflow: hidden; }
.bk-pax-toggle span { overflow: hidden; text-overflow: ellipsis; }
.bk-pax-pop { display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; width: 260px; background: #fff; border-radius: 12px; padding: 8px 12px; box-shadow: 0 12px 36px rgba(13,22,84,.18); border: 1px solid #EEE; }
.bk-pax-pop.open { display: block; }
.bk-pax-line { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; font-size: 14px; font-weight: 500; color: #212121; }
.bk-pax-line + .bk-pax-line { border-top: 1px solid #F0F0F0; }
.bk-pax-line small { color: #9E9E9E; font-weight: 400; }
.bk-stepper { display: inline-flex; align-items: center; gap: 2px; }
.bk-step-btn { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid #E0E0E0; background: #fff; font-size: 18px; line-height: 1; color: #1A237E; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.bk-step-btn:hover { border-color: #1A237E; }
.bk-num { min-width: 28px; text-align: center; font-weight: 700; font-size: 15px; color: #212121; }
.bk-go { height: 46px; padding: 0 22px; border: 0; border-radius: 10px; background: #FF8F00; color: #fff; font: 700 15px 'Inter', sans-serif; cursor: pointer; white-space: nowrap; box-shadow: 0 6px 18px rgba(255,143,0,.35); transition: transform .15s, background .2s; }
.bk-go:hover { background: #E07D00; transform: translateY(-1px); }
.bk-hero-error { margin-top: 10px; font-size: 13px; font-weight: 600; color: #C62828; background: #FFEBEE; border-radius: 8px; padding: 8px 12px; }
/* place suggestions — our own dropdown (new Places API); same look the Google .pac-container had */
.rb-ac { display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 10000; max-height: 280px; overflow-y: auto; background: #fff; font-family: 'Inter', sans-serif; border-radius: 10px; box-shadow: 0 12px 36px rgba(13,22,84,.18); border: 1px solid #EEE; }
.rb-ac.open { display: block; }
.rb-ac-item { padding: 8px 12px; font-size: 13px; color: #757575; cursor: pointer; }
.rb-ac-item b { display: block; font-size: 14px; font-weight: 600; color: #212121; }
.rb-ac-item.on, .rb-ac-item:hover { background: #F5F6FF; }

/* ── modal ── */
.bk-modal { display: none; position: fixed; inset: 0; z-index: 10000; align-items: center; justify-content: center; padding: 16px; }
.bk-modal.active { display: flex; }
.bk-backdrop { position: absolute; inset: 0; background: rgba(8,13,46,.72); backdrop-filter: blur(6px); }
.bk-card { position: relative; width: 100%; max-width: 640px; max-height: calc(100vh - 32px); background: #fff; border-radius: 18px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.35); font-family: 'Inter', sans-serif; }
.bk-close { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; z-index: 2; }
.bk-head { background: linear-gradient(135deg, #1A237E, #0D1654); color: #fff; padding: 18px 24px 14px; }
.bk-head-logo { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 15px; letter-spacing: -.3px; margin-bottom: 8px; }
.bk-head-logo img { height: 20px; filter: brightness(0) invert(1); }
.bk-head-logo b { color: #FFB300; }
.bk-head h2 { font-size: 20px; font-weight: 800; margin: 0 0 4px; }
.bk-summary { font-size: 12.5px; color: rgba(255,255,255,.8); margin: 0 0 12px; }
.bk-dots { display: flex; gap: 18px; }
.bk-dot { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.55); }
.bk-dot i { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.4); display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; }
.bk-dot.on { color: #fff; } .bk-dot.on i { background: #FF8F00; border-color: #FF8F00; }
.bk-dot.done { color: #fff; } .bk-dot.done i { background: rgba(255,255,255,.2); border-color: transparent; }
.bk-body { padding: 18px 24px 8px; overflow-y: auto; flex: 1; }
.bk-step { display: none; } .bk-step.active { display: block; }
.bk-step-title { font-size: 16px; font-weight: 800; color: #212121; margin-bottom: 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.bk-step-title small { font-size: 12px; font-weight: 600; color: #757575; }
.bk-vehicles { display: flex; flex-direction: column; gap: 10px; }
.bk-veh { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 10px 12px; border: 1.5px solid #E8E8EE; border-radius: 14px; background: #fff; cursor: pointer; font-family: inherit; transition: border-color .15s, box-shadow .15s; }
.bk-veh:hover { border-color: #C5CAE9; }
.bk-veh.on { border-color: #FF8F00; box-shadow: 0 0 0 3px rgba(255,143,0,.14); background: #FFF8EE; }
.bk-veh-img { width: 92px; height: 56px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.bk-veh-img img { max-width: 92px; max-height: 56px; object-fit: contain; }
.bk-veh-body { flex: 1; min-width: 0; }
.bk-veh-name { font-size: 15px; font-weight: 800; color: #212121; }
.bk-veh-meta { font-size: 12px; color: #757575; margin-top: 3px; }
.bk-veh-price { text-align: right; font-size: 20px; font-weight: 800; color: #1A237E; white-space: nowrap; }
.bk-veh-price small { display: block; font-size: 10.5px; font-weight: 600; color: #9E9E9E; }
.bk-loading, .bk-empty { padding: 26px 12px; text-align: center; color: #757575; font-size: 14px; }
.bk-empty a { color: #1A237E; font-weight: 600; }
.bk-spinner { display: inline-block; width: 18px; height: 18px; border: 2.5px solid #E0E0E0; border-top-color: #FF8F00; border-radius: 50%; animation: bkspin .8s linear infinite; vertical-align: -4px; margin-right: 8px; }
@keyframes bkspin { to { transform: rotate(360deg); } }
.bk-hint { font-size: 12px; color: #757575; margin: 12px 2px 0; line-height: 1.5; }
.bk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bk-f { display: flex; flex-direction: column; min-width: 0; }
.bk-full { grid-column: 1 / -1; }
.bk-f > span { font-size: 11px; font-weight: 700; color: #757575; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 5px; }
.bk-f input, .bk-f select, .bk-f textarea { width: 100%; border: 1.5px solid #E0E0E0; border-radius: 10px; padding: 10px 12px; font: 500 14px 'Inter', sans-serif; color: #212121; outline: none; background: #fff; }
.bk-f input:focus, .bk-f select:focus, .bk-f textarea:focus { border-color: #FF8F00; box-shadow: 0 0 0 3px rgba(255,143,0,.14); }
.bk-f .bk-bad { border-color: #C62828 !important; background: #FFF5F5; }
.bk-phone { display: flex; gap: 6px; }
.bk-phone select { width: 112px; flex-shrink: 0; padding: 10px 6px; }
.bk-small { font-size: 11.5px; color: #757575; margin-top: 4px; }
.bk-review { border: 1.5px solid #EEE; border-radius: 12px; overflow: hidden; }
.bk-rev-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; font-size: 13px; }
.bk-rev-row + .bk-rev-row { border-top: 1px solid #F2F2F2; }
.bk-rev-row span { color: #757575; flex-shrink: 0; } .bk-rev-row b { color: #212121; text-align: right; font-weight: 600; word-break: break-word; }
.bk-total { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding: 12px 14px; background: #EEF0FA; border-radius: 12px; font-size: 14px; font-weight: 700; color: #1A237E; }
.bk-total b { font-size: 20px; font-weight: 800; }
.bk-captcha { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; background: #FAFAFA; border: 1.5px solid #E8E8EE; border-radius: 10px; font-size: 13px; }
.bk-captcha b { font-size: 16px; color: #1A237E; }
.bk-captcha input { width: 70px; margin-left: auto; text-align: center; border: 1.5px solid #E0E0E0; border-radius: 8px; padding: 8px; font: 700 15px 'Inter', sans-serif; outline: none; }
.bk-captcha input:focus { border-color: #FF8F00; }
.bk-agree { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: #616161; margin-top: 12px; line-height: 1.5; }
.bk-agree input { margin-top: 3px; width: 16px; height: 16px; accent-color: #FF8F00; }
.bk-agree a { color: #1A237E; font-weight: 600; }
.bk-error { margin-top: 12px; font-size: 13px; font-weight: 600; color: #C62828; background: #FFEBEE; border-radius: 8px; padding: 9px 12px; }
.bk-footer { display: flex; justify-content: space-between; gap: 10px; padding: 12px 24px 18px; border-top: 1px solid #F0F0F0; background: #fff; }
.bk-btn { min-width: 140px; padding: 12px 22px; border: 0; border-radius: 10px; background: #FF8F00; color: #fff; font: 700 14px 'Inter', sans-serif; cursor: pointer; transition: background .2s; }
.bk-btn:hover { background: #E07D00; } .bk-btn:disabled { background: #E3E6EC; color: #9AA0AE; cursor: not-allowed; }
.bk-btn-ghost { background: #F3F4F6; color: #1A237E; } .bk-btn-ghost:hover { background: #E8EAF6; }
.bk-done { text-align: center; padding: 20px 8px 26px; }
.bk-done-icon { width: 64px; height: 64px; border-radius: 50%; background: #E7F6EC; color: #1E7A46; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.bk-done h3 { font-size: 22px; font-weight: 800; color: #212121; margin: 0 0 6px; }
.bk-done p { color: #616161; font-size: 14px; margin: 0 0 6px; }
.bk-code { font-size: 30px; font-weight: 900; letter-spacing: 1px; color: #1A237E; margin: 8px 0 10px; }
.bk-done-total b { color: #212121; }
.bk-done-note { font-size: 12.5px; max-width: 420px; margin: 8px auto 18px; line-height: 1.55; }

@media (max-width: 900px) {
    .hero-card.has-booking { position: relative; top: auto; left: auto; margin: -80px 16px 0; width: auto; }
    .bk-row, .bk-row-2 { grid-template-columns: 1fr 1fr; }
    .bk-pax, .bk-go { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .bk-row, .bk-row-2 { grid-template-columns: 1fr; }
    .bk-grid { grid-template-columns: 1fr; }
    .bk-card { max-height: calc(100vh - 16px); border-radius: 14px; }
    .bk-modal { padding: 8px; }
    .bk-veh-img { width: 70px; height: 44px; }
    .bk-dots { gap: 10px; } .bk-dot { font-size: 11px; }
}
