/* Booking flow. Reuses the theme variables from style.css (colors, fonts). */
body.bk { background: var(--smoke-color); color: var(--body-color); min-height: 100vh; padding-bottom: env(safe-area-inset-bottom); }
.bk *, .bk *::before, .bk *::after { box-sizing: border-box; }
.bk [hidden] { display: none !important; }

.bk-header { background: var(--black-color); display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; padding-top: calc(14px + env(safe-area-inset-top)); }
.bk-logo img { height: 36px; width: auto; display: block; }
.bk-help { color: #fff; font-weight: 600; padding: 10px 4px; }
.bk-help:hover { color: var(--smoke-color3); }

.bk-wrap { max-width: 1120px; margin: 0 auto; padding: 32px 16px 64px; }
.bk-title { font-family: var(--title-font); color: var(--title-color); font-size: clamp(28px, 5vw, 44px); line-height: 1.1; margin: 0 0 20px; }

.bk-stepcount { font-weight: 600; color: var(--title-color); margin: 0 0 16px; }
.bk-steps { display: none; list-style: none; padding: 0; margin: 0 0 24px; gap: 8px; align-items: center; }
.bk-steps li { display: flex; align-items: center; gap: 8px; color: var(--body-color); font-weight: 600; }
.bk-steps li:not(:last-child)::after { content: "→"; margin-left: 8px; color: var(--light-color); }
.bk-steps li span { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; background: #e2e8f0; color: var(--title-color); font-size: 13px; }
.bk-steps li.is-current { color: var(--title-color); }
.bk-steps li.is-current span, .bk-steps li.is-done span { background: var(--theme-color); color: #fff; }

.bk-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.bk-side { order: -1; display: grid; gap: 16px; align-content: start; }

.bk-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 20px; }
.bk-card h2 { font-family: var(--title-font); color: var(--title-color); font-size: 24px; margin: 0 0 16px; }
.bk-card h3 { font-family: var(--title-font); color: var(--title-color); font-size: 18px; margin: 0 0 8px; }

.bk-field { margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.bk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bk-label { display: block; font-weight: 600; color: var(--title-color); margin: 0 0 6px; padding: 0; font-size: 15px; }
.bk-opt { font-weight: 400; color: var(--body-color); }
.bk-hint, .bk-note, .bk-mapnote { font-size: 14px; margin: 6px 0 0; color: var(--body-color); }
.bk-note { margin: 0 0 16px; }
.bk-error { color: var(--error-color); font-size: 14px; margin: 6px 0 12px; font-weight: 600; }
.bk-error::before { content: "! "; font-weight: 800; }

.bk-input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: var(--title-color); font: inherit; font-size: 16px; }
.bk-input:focus, .bk-seg input:focus-visible + span, .bk-vehicle input:focus-visible + div, .bk-stepper button:focus-visible, .bk-btn:focus-visible, .bk-link:focus-visible { outline: 3px solid var(--theme-color); outline-offset: 2px; }
.bk-input[aria-invalid="true"] { border-color: var(--error-color); }
#placeBox gmp-place-autocomplete { width: 100%; display: block; color-scheme: light; }

.bk-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border: 0; padding: 0; margin: 0 0 16px; }
.bk-seg legend { grid-column: 1 / -1; margin-bottom: 0; float: none; width: auto; }
.bk-seg label { cursor: pointer; }
.bk-seg input { position: absolute; opacity: 0; }
.bk-seg span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 10px; font-weight: 600; color: var(--title-color); text-align: center; }
.bk-seg input:checked + span { border-color: var(--theme-color); background: var(--smoke-color3); }

.bk-stepper { display: flex; align-items: center; border: 1px solid #cbd5e1; border-radius: 10px; overflow: hidden; width: 100%; }
.bk-stepper button { width: 52px; min-height: 48px; border: 0; background: #f1f5f9; color: var(--title-color); font-size: 22px; cursor: pointer; }
.bk-stepper button:disabled { color: #cbd5e1; cursor: not-allowed; }
.bk-stepper output { flex: 1; text-align: center; font-weight: 700; color: var(--title-color); font-size: 18px; }

.bk-vehicles { display: grid; gap: 10px; }
.bk-vehicle { cursor: pointer; position: relative; display: block; }
.bk-vehicle input { position: absolute; opacity: 0; }
.bk-vehicle > div { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px; border: 1px solid #cbd5e1; border-radius: 10px; }
.bk-vehicle img { width: 96px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; background: #e2e8f0; }
.bk-vehicle > div > span { flex: 1; min-width: 0; }
.bk-photo { width: 100%; max-height: 180px; object-fit: cover; border-radius: 10px; margin: 0 0 12px; background: #e2e8f0; }
.bk-vehicle input:checked + div { border-color: var(--theme-color); background: var(--smoke-color3); box-shadow: inset 0 0 0 1px var(--theme-color); }
.bk-vehicle input:disabled + div { opacity: .55; cursor: not-allowed; }
.bk-vehicle b { color: var(--title-color); display: block; }
.bk-vehicle small { display: block; font-size: 14px; }
.bk-vehicle .bk-vprice { font-weight: 700; color: var(--title-color); white-space: nowrap; text-align: right; }
.bk-vehicle .bk-vprice small { font-weight: 400; }

.bk-price { background: var(--black-color); color: #fff; border-radius: 12px; padding: 16px; margin: 4px 0 16px; }
.bk-price .bk-ptype { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--smoke-color3); }
.bk-price .bk-ptotal { font-family: var(--title-font); font-size: 34px; font-weight: 700; line-height: 1.1; margin: 2px 0 8px; transition: opacity .2s; }
.bk-price ul { list-style: none; padding: 0; margin: 0; font-size: 14px; border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 8px; }
.bk-price li { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.bk-price.is-loading .bk-ptotal { opacity: .4; }

.bk-actions { display: flex; gap: 12px; justify-content: space-between; margin-top: 8px; flex-wrap: wrap; }
.bk-actions--start { justify-content: flex-start; margin-top: 16px; }
.bk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 14px 24px; border: 1px solid var(--theme-color); border-radius: 10px; background: var(--theme-color); color: #fff; font: inherit; font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .02em; cursor: pointer; text-decoration: none; flex: 1 1 auto; transition: background .2s, border-color .2s; }
.bk-btn:hover { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.bk-btn:disabled { background: #cbd5e1; border-color: #cbd5e1; color: #64748b; cursor: not-allowed; }
.bk-btn--ghost { background: #fff; color: var(--title-color); border-color: #cbd5e1; }
.bk-btn--ghost:hover { background: #f1f5f9; border-color: #94a3b8; color: var(--title-color); }
.bk-driver-actions .bk-btn { text-transform: none; }
.bk-btn--wa { background: #16a34a; border-color: #16a34a; }
.bk-btn--wa:hover { background: #15803d; border-color: #15803d; }
.bk-link { background: none; border: 0; padding: 8px 0; color: var(--theme-color); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

.bk-mapcard { padding: 0; overflow: hidden; }
.bk-map { width: 100%; height: 260px; background: #e2e8f0; }
.bk-mapnote { padding: 12px 16px; }
.bk-route { padding: 12px 16px; margin: 0; font-weight: 600; color: var(--title-color); border-top: 1px solid #e2e8f0; }
.bk-summary p { margin: 0 0 4px; }
.bk-sum-price { font-weight: 700; color: var(--title-color); font-size: 22px; }

.bk-dl { margin: 0 0 16px; display: grid; gap: 0; }
.bk-dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #e2e8f0; }
.bk-dl dt { font-weight: 400; }
.bk-dl dd { margin: 0; font-weight: 600; color: var(--title-color); text-align: right; overflow-wrap: anywhere; }

.bk-success { width: 56px; height: 56px; border-radius: 50%; background: #16a34a; color: #fff; display: grid; place-items: center; font-size: 24px; margin-bottom: 12px; }
.bk-ref { background: var(--smoke-color3); border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; }
.bk-ref strong { display: block; font-family: var(--title-font); font-size: 32px; color: var(--title-color); letter-spacing: .04em; }
.bk-driver { border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; margin-top: 8px; }
.bk-driver-name { font-weight: 700; color: var(--title-color); margin: 0; font-size: 18px; }
.bk-driver-phone { margin: 0 0 12px; }
.bk-driver-actions { display: grid; gap: 10px; grid-template-columns: 1fr; }

.bk-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--black-color); color: #fff; padding: 12px 18px; border-radius: 10px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; max-width: calc(100vw - 32px); }
.bk-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.bk-install { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 460px; margin: 0 auto; background: var(--black-color); color: #fff; border-radius: 12px; padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; z-index: 40; }
.bk-install > div { flex: 1 1 200px; display: grid; }
.bk-install span { font-size: 14px; color: var(--smoke-color3); }
.bk-install .bk-btn { flex: 0 0 auto; min-height: 44px; padding: 10px 18px; }
.bk-install .bk-link { color: #fff; }

@media (min-width: 640px) {
  .bk-driver-actions { grid-template-columns: 1fr 1fr; }
  .bk-card { padding: 28px; }
  .bk-mapcard { padding: 0; }
  .bk-map { height: 320px; }
}
@media (min-width: 992px) {
  .bk-stepcount { display: none; }
  .bk-steps { display: flex; }
  .bk-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; }
  .bk-side { order: 0; position: sticky; top: 16px; }
  .bk-map { height: 380px; }
}
/* mobile sticky action bar on confirmation */
@media (max-width: 639px) {
  #step4 .bk-driver-actions { position: sticky; bottom: calc(8px + env(safe-area-inset-bottom)); background: #fff; padding: 8px 0; z-index: 5; }
}
@media (prefers-reduced-motion: reduce) {
  .bk *, .bk *::before, .bk *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ===== Refined booking UI: homepage header, hero and footer reused ===== */
.bk-site-header { z-index: 20; }
.bk-site-header .bk-mobile-actions { gap: 8px; }
.bk-hero .hero-style1 { padding: 205px 0 150px; }
.bk-hero .bk-title { font-size: clamp(32px, 5.2vw, 56px); margin: 0 0 12px; color: #fff; }
.bk-hero .bk-hero-text { margin: 0 0 24px; max-width: 620px; }
.bk-hero .sub-title { margin-bottom: 20px; }
.bk-hero .bk-stepcount { display: inline-block; background: rgba(255,255,255,.12); color: #fff; border-radius: 99px; padding: 6px 14px; margin: 0; font-size: 14px; }
.bk-hero .bk-steps { margin: 0; color: #fff; }
.bk-hero .bk-steps li { color: var(--th-border-color); }
.bk-hero .bk-steps li.is-current, .bk-hero .bk-steps li.is-done { color: #fff; }
.bk-hero .bk-steps li span { background: rgba(255,255,255,.18); color: #fff; }
.bk-hero .bk-steps li.is-current span, .bk-hero .bk-steps li.is-done span { background: var(--theme-color); }
.bk-hero .bk-steps li:not(:last-child)::after { color: rgba(255,255,255,.4); }

.bk-wrap.container { max-width: 1240px; margin: -96px auto 0; padding: 0 16px 72px; position: relative; z-index: 3; }
.bk-card { border-radius: 20px; box-shadow: 0 12px 32px rgba(11, 31, 51, .08); border-color: #e6ebf2; }
.bk-card h2 { font-weight: 800; letter-spacing: -.01em; }
.bk-input { border-radius: 12px; border-color: #d5dde8; transition: border-color .15s, box-shadow .15s; }
.bk-input:hover { border-color: #94a3b8; }
.bk-input:focus { border-color: var(--theme-color); box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); outline: none; }
.bk-seg span { border-radius: 12px; }
.bk-stepper { border-radius: 12px; border-color: #d5dde8; }
.bk-btn { border-radius: 12px; }
.bk-price { border-radius: 16px; background: linear-gradient(135deg, var(--black-color), #12304d); }
.bk-mapcard { border-radius: 20px; }
.bk-summary { display: grid; gap: 2px; }

.bk-vehicle > div { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 12px; align-items: center; border-radius: 14px; padding: 10px 12px 10px 10px; transition: border-color .15s, background .15s; }
.bk-vehicle > div:not(:has(img)) { grid-template-columns: minmax(0, 1fr) auto; }
.bk-vehicle:hover > div { border-color: #94a3b8; }
.bk-vehicle img { width: 88px; height: 60px; }
.bk-cap { color: var(--body-color); }
.bk-cap i { color: var(--theme-color); }
.bk-barprice { display: none; }
.bk-terms a { color: var(--theme-color); text-decoration: underline; }
.bk-footer { margin-top: 0; }

/* tablet */
@media (max-width: 991px) {
  .bk-hero .hero-style1 { padding: 185px 0 130px; }
  .bk-wrap.container { margin-top: -80px; }
  .bk-actions { position: sticky; bottom: 0; background: #fff; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); margin: 8px 0 0; z-index: 6; border-top: 1px solid #eef2f7; }
  .bk-actions--start { position: static; border: 0; padding: 0; }
  #step1 .bk-barprice { display: block; flex: 0 0 auto; align-self: center; font-family: var(--title-font); font-weight: 800; font-size: 20px; color: var(--title-color); min-width: 0; }
  #step1 .bk-actions { justify-content: flex-end; flex-wrap: nowrap; gap: 14px; }
  #step1 .bk-actions .bk-btn { flex: 1 1 auto; }
}
/* phone */
@media (max-width: 575px) {
  .bk-hero .hero-style1 { padding: 165px 0 112px; }
  .bk-hero .bk-hero-text { font-size: 15px; margin-bottom: 18px; }
  .bk-wrap.container { margin-top: -64px; padding: 0 12px 48px; }
  .bk-card { padding: 18px 16px; border-radius: 18px; }
  .bk-card h2 { font-size: 22px; }
  .bk-row { gap: 10px; }
  .bk-vehicle > div { grid-template-columns: 72px minmax(0, 1fr); }
  .bk-vehicle img { width: 72px; height: 54px; }
  .bk-vehicle .bk-vprice { grid-column: 1 / -1; text-align: left; padding-top: 8px; border-top: 1px dashed #e2e8f0; display: flex; justify-content: space-between; align-items: center; }
  .bk-actions .bk-btn { width: 100%; }
  .bk-driver-actions { grid-template-columns: 1fr; }
  .bk-ref strong { font-size: 26px; }
  .bk-map { height: 220px; }
  .bk-price .bk-ptotal { font-size: 30px; }
  .bk-dl > div { flex-direction: column; gap: 2px; }
  .bk-dl dd { text-align: left; }
}
@media (max-width: 359px) {
  .bk-row { grid-template-columns: 1fr; }
  .bk-seg { grid-template-columns: 1fr; }
}
@media (min-width: 1400px) {
  .bk-grid { gap: 36px; }
  .bk-map { height: 440px; }
}
@media (min-width: 992px) { .bk-hero .bk-stepcount { display: none; } }
@media (max-width: 991px) { .bk-hero .bk-steps { display: none; } }
/* mobile header: one row, no top bar */
.bk-site-header .menu-area .row { flex-wrap: nowrap; }
.bk-site-header .header-logo img { height: 40px; width: auto; max-width: 100%; }
.bk-mobile-actions .icon-btn { width: 44px; height: 44px; line-height: 44px; font-size: 16px; }
@media (max-width: 575px) {
  .bk-site-header .header-top { display: none; }
  .bk-hero.hero-1 .th-hero-bg { top: 10px; }
  .bk-hero .hero-style1 { padding: 110px 0 104px; }
  .bk-site-header .header-logo img { height: 34px; }
  .bk-site-header .sticky-wrapper { padding-top: 12px; }
}
@media (min-width: 576px) and (max-width: 991px) { .bk-hero .hero-style1 { padding: 170px 0 120px; } }
@media (max-width: 575px) {
  .bk-seg span { font-size: 14px; padding: 8px 6px; gap: 6px; line-height: 1.2; }
  .bk-map { height: 190px; }
}
.bk-card h2:focus { outline: none; }
#placeBox gmp-place-autocomplete { border: 1px solid #d5dde8; border-radius: 12px; overflow: hidden; background: #fff; }
#placeBox gmp-place-autocomplete:focus-within { border-color: var(--theme-color); box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
.bk-ref .bk-link { margin-right: 18px; }
.bk-offer { margin: 4px 0 16px; }
