/* Speed cab-booking funnel — styled to match the CabBhai website (brand #d52031,
 * Plus Jakarta Sans, Bootstrap). Renders inside the standard site header/footer
 * as a centered, mobile-first column. */
:root {
    --bk-brand: #d52031;
    --bk-brand-600: #c01b2c;
    --bk-ink: #202020;
    --bk-muted: #8b93a8;
    --bk-line: #eef1f6;
    --bk-bg: #f8f9fb;
}

.booking-wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 24px 16px 56px;
    font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
    color: var(--bk-ink);
}

.booking-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.booking-back {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 12px; background: #f4f5f8;
    text-decoration: none; color: var(--bk-ink); flex-shrink: 0;
}
.booking-head h1 { font-size: 20px; font-weight: 800; margin: 0; }

.screen { display: flex; flex-direction: column; gap: 16px; }
.screen-center { align-items: center; text-align: center; }

.screen-h1 { font-size: 22px; font-weight: 800; margin: 0 0 4px; }
.screen-sub { color: var(--bk-muted); margin: 0 0 16px; font-size: 14px; }

.hero-card, .route-summary, .summary-card, .auth-card, .fare-card,
.success-card, .app-promo {
    background: #fff;
    border: 1px solid var(--bk-line);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 6px 24px rgba(20, 20, 40, .04);
}

/* Trip tabs */
.trip-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.trip-tab {
    border: 1px solid var(--bk-line); background: #fff; color: var(--bk-ink);
    border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.trip-tab.is-active { background: var(--bk-brand); color: #fff; border-color: var(--bk-brand); }

/* Inputs */
.trip-form { display: flex; flex-direction: column; gap: 12px; }
.field-wrap { position: relative; }
.location-field .app-input { padding-left: 34px; }
.app-input {
    width: 100%; border: 1.5px solid var(--bk-line); border-radius: 12px;
    padding: 14px; font-size: 15px; color: var(--bk-ink); background: #fff;
    outline: none; transition: border-color .15s;
    font-family: inherit;
}
.app-input:focus { border-color: var(--bk-brand); }

.dot { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 10px; height: 10px; border-radius: 50%; z-index: 2; }
.dot-green { background: #2ecc71; }
.dot-red { background: var(--bk-brand); }

/* Autocomplete dropdown (DB fallback) — see also speed-places.js .sp-suggest */
.suggest-list {
    position: absolute; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 6px;
    list-style: none; background: #fff; border: 1px solid var(--bk-line); border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08); z-index: 30; max-height: 240px; overflow: auto;
}
.suggest-list li { padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.suggest-list li:hover, .suggest-list li.active { background: #f4f5f8; }

/* Buttons */
.btn-primary-cta {
    width: 100%; background: var(--bk-brand); color: #fff; border: none; border-radius: 12px;
    padding: 15px; font-size: 16px; font-weight: 700; cursor: pointer;
    box-shadow: 0 8px 18px rgba(213, 32, 49, .22); transition: background .15s, transform .05s;
    font-family: inherit;
}
.btn-primary-cta:hover { background: var(--bk-brand-600); }
.btn-primary-cta:active { transform: translateY(1px); }
.btn-primary-cta:disabled { opacity: .6; cursor: not-allowed; box-shadow: none; }

.btn-secondary-cta {
    background: #fff; color: var(--bk-brand); border: 1.5px solid var(--bk-brand);
    border-radius: 12px; padding: 13px 18px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.btn-link {
    display: inline-block; background: none; border: none; color: var(--bk-muted);
    font-weight: 600; padding: 12px; cursor: pointer; text-decoration: none; text-align: center; width: 100%;
}

/* Reassurance */
.reassure-row { display: flex; gap: 10px; }
.reassure { flex: 1; background: #fff; border: 1px solid var(--bk-line); border-radius: 14px; padding: 12px; text-align: center; }
.reassure strong { display: block; font-size: 13px; }
.reassure span { font-size: 11px; color: var(--bk-muted); }

/* Route summary */
.route-line { position: relative; padding-left: 22px; display: flex; align-items: center; min-height: 26px; font-size: 14px; }
.route-line .dot { left: 2px; }
.route-line.muted, .route-line .muted { color: var(--bk-muted); }
.route-meta { color: var(--bk-muted); font-size: 12px; margin-top: 6px; padding-left: 22px; }

/* Cab list */
.cab-list { display: flex; flex-direction: column; gap: 12px; }
.cab-card { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--bk-line); border-radius: 16px; padding: 12px; box-shadow: 0 6px 24px rgba(20,20,40,.04); }
.cab-card-media { width: 72px; height: 54px; flex-shrink: 0; }
.cab-img { width: 100%; height: 100%; object-fit: contain; }
.cab-card-body { flex: 1; min-width: 0; }
.cab-card-head { display: flex; align-items: baseline; gap: 8px; }
.cab-name { font-weight: 700; font-size: 15px; text-transform: capitalize; }
.cab-seats { font-size: 12px; color: var(--bk-muted); }
.cab-card-meta { font-size: 12px; color: var(--bk-muted); }
.cab-card-action { text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.cab-price { font-weight: 800; font-size: 16px; }
.btn-select { background: var(--bk-brand); color: #fff; border: none; border-radius: 10px; padding: 8px 16px; font-weight: 700; font-size: 13px; cursor: pointer; }

/* State blocks */
.state-block { text-align: center; color: var(--bk-muted); padding: 36px 12px; }
.empty-title { font-weight: 700; color: var(--bk-ink); font-size: 16px; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--bk-line); border-top-color: var(--bk-brand); border-radius: 50%; margin: 0 auto 14px; animation: bkspin .8s linear infinite; }
@keyframes bkspin { to { transform: rotate(360deg); } }

/* Checkout */
.summary-cab { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.summary-cab-img { width: 64px; height: 48px; object-fit: contain; }
.summary-cab-name { font-weight: 700; text-transform: capitalize; }
.summary-cab-seats { font-size: 12px; color: var(--bk-muted); }
.summary-route { border-top: 1px dashed var(--bk-line); padding-top: 10px; }

.card-h2 { font-size: 17px; font-weight: 700; margin: 0 0 4px; }
.card-sub { color: var(--bk-muted); font-size: 13px; margin: 0 0 12px; }

.phone-input { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.phone-input .cc { font-weight: 700; padding: 0 4px; }
.otp-input { letter-spacing: 8px; text-align: center; font-size: 20px; font-weight: 700; }
.new-user-fields { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }

.coupon-row { display: flex; gap: 8px; margin-bottom: 14px; }
.coupon-row .app-input { flex: 1; }

.fare-lines { display: flex; flex-direction: column; gap: 8px; }
.fare-line { display: flex; justify-content: space-between; font-size: 14px; }
.fare-line.total { border-top: 1px solid var(--bk-line); padding-top: 10px; margin-top: 4px; font-weight: 800; font-size: 16px; }
.fare-line .text-end { text-align: right; max-width: 60%; }

.warn-note { color: #c0392b; font-size: 12px; margin: 10px 0 0; }
.secure-note { text-align: center; color: var(--bk-muted); font-size: 12px; margin: 10px 0 0; }

/* Success / open app */
.success-badge { margin: 8px 0; }
.success-title { font-size: 22px; font-weight: 800; margin: 8px 0 4px; }
.success-sub { color: var(--bk-muted); margin: 0; font-size: 13px; }
.success-ref { font-size: 22px; font-weight: 800; letter-spacing: 2px; margin: 4px 0 16px; color: var(--bk-brand); }
.success-card { width: 100%; text-align: left; margin-bottom: 16px; }
.handoff-note { color: var(--bk-muted); font-size: 13px; margin-bottom: 16px; }
.app-promo { width: 100%; margin-bottom: 16px; }
.app-icon { font-size: 44px; }
.store-buttons { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.store-btn { display: block; background: var(--bk-ink); color: #fff; text-decoration: none; padding: 13px; border-radius: 12px; font-weight: 600; }
