/* RedBus-style horizontal seat selection */
.btb-seat-page--redbus { padding: 16px 0 48px; }
.btb-seat-page__grid {
    display: grid;
    gap: 20px;
    align-items: start;
}
.btb-seat-page__summary h1 { margin: 0 0 6px; font-size: 1.375rem; color: var(--btb-navy); }
.btb-seat-page__summary p { margin: 0 0 4px; font-size: 0.875rem; color: var(--btb-muted); }

/* RedBus-style seat deck */
.btb-seat-deck--redbus,
.btb-seat-deck--horizontal {
    max-width: 100%;
    overflow-x: auto;
    padding: 4px 0;
}
.btb-seat-deck__shell {
    position: relative;
    display: flex;
    align-items: stretch;
    min-width: min-content;
    padding: 28px 12px 12px 36px;
    background: #f4f6f8;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: inset 0 1px 0 #fff;
}
.btb-seat-deck__steering {
    position: absolute;
    top: 8px;
    left: 8px;
    color: #b0bcc9;
    z-index: 2;
}
.btb-seat-deck__cols {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 5px;
    flex: 1;
}
.btb-seat-deck__rear {
    align-self: center;
    margin-left: 8px;
    padding-left: 8px;
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #a8b3c2;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.btb-seat-map__col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}
.btb-seat-map__col--back {
    padding-left: 10px;
    margin-left: 6px;
    border-left: 1.5px dashed #d5dde8;
}
.btb-seat-map__aisle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 28px;
    flex-shrink: 0;
    margin: 4px 0;
}
.btb-seat-map__aisle span {
    display: block;
    width: 88%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #c8d4e0 12%, #c8d4e0 88%, transparent);
    border-radius: 2px;
}

.btb-rb-seat {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}
.btb-rb-seat__tag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    min-height: 44px;
    font-size: 0.5625rem;
    font-weight: 600;
    color: #5f6b7a;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 0.02em;
    line-height: 1;
    user-select: none;
}
.btb-rb-seat__tag.is-muted {
    color: #a8b3c2;
    font-weight: 500;
    font-size: 0.5rem;
}
.btb-rb-seat__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 42px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    margin: 0;
}
.btb-rb-seat__input { display: none; }

/* Seat icon */
.btb-rb-seat__icon { transition: transform 0.12s ease; display: block; }
.btb-rb-seat__icon--available .btb-rb-seat__shell,
.btb-rb-seat__icon--available .btb-rb-seat__base,
.btb-rb-seat__icon--available .btb-rb-seat__arm-l,
.btb-rb-seat__icon--available .btb-rb-seat__arm-r {
    fill: #fff;
    stroke: #22a06b;
    stroke-width: 1.5;
    stroke-linejoin: round;
}
.btb-rb-seat__icon--sold .btb-rb-seat__shell,
.btb-rb-seat__icon--sold .btb-rb-seat__base,
.btb-rb-seat__icon--sold .btb-rb-seat__arm-l,
.btb-rb-seat__icon--sold .btb-rb-seat__arm-r {
    fill: #eef2f6;
    stroke: #c5d0dc;
    stroke-width: 1.5;
    stroke-linejoin: round;
}
.btb-rb-seat__icon--sold .btb-rb-seat__person {
    fill: #b8c5d6;
    stroke: #b8c5d6;
}
.btb-rb-seat__icon--available .btb-rb-seat__person {
    fill: #1a73e8;
    stroke: #1a73e8;
}

.btb-rb-seat.is-available .btb-rb-seat__btn:hover .btb-rb-seat__icon { transform: scale(1.08); }
.btb-rb-seat.is-available.is-selected .btb-rb-seat__shell,
.btb-rb-seat.is-available.is-selected .btb-rb-seat__base,
.btb-rb-seat.is-available.is-selected .btb-rb-seat__arm-l,
.btb-rb-seat.is-available.is-selected .btb-rb-seat__arm-r {
    fill: #e8f1ff;
    stroke: #1a73e8;
}
.btb-rb-seat.is-available.is-selected .btb-rb-seat__person {
    display: block !important;
    fill: #1a73e8;
    stroke: #1a73e8;
}
.btb-rb-seat.is-sold .btb-rb-seat__btn { cursor: not-allowed; }
.btb-rb-seat.is-held .btb-rb-seat__tag { color: #94a3b8; }

/* Legacy meta hidden — price/sold now in vertical tag */
.btb-rb-seat__meta { display: none; }

.btb-seat-hold[hidden] { display: none !important; }
.btb-seat-hold {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 14px;
    padding: 10px 14px;
    background: #fff8f0;
    border: 1px solid #ffd6a8;
    border-radius: 8px;
    font-size: 0.8125rem;
    color: #9a3412;
}
.btb-seat-hold__hint { color: #c2410c; font-size: 0.75rem; }
.btb-seat-hold.is-expired { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }

.btb-seat-legend--redbus {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 20px;
    margin-top: 16px;
    font-size: 0.75rem;
    color: #64748b;
}
.btb-seat-legend--redbus span { display: flex; align-items: center; gap: 6px; }
.btb-seat-legend__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 24px;
    flex-shrink: 0;
}
.btb-seat-legend__icon--available .btb-rb-seat__shell,
.btb-seat-legend__icon--available .btb-rb-seat__base,
.btb-seat-legend__icon--available .btb-rb-seat__arm-l,
.btb-seat-legend__icon--available .btb-rb-seat__arm-r {
    fill: #fff;
    stroke: #22a06b;
    stroke-width: 1.5;
}
.btb-seat-legend__icon--selected .btb-rb-seat__shell,
.btb-seat-legend__icon--selected .btb-rb-seat__base,
.btb-seat-legend__icon--selected .btb-rb-seat__arm-l,
.btb-seat-legend__icon--selected .btb-rb-seat__arm-r {
    fill: #e8f1ff;
    stroke: #1a73e8;
    stroke-width: 1.5;
}
.btb-seat-legend__icon--sold .btb-rb-seat__shell,
.btb-seat-legend__icon--sold .btb-rb-seat__base,
.btb-seat-legend__icon--sold .btb-rb-seat__arm-l,
.btb-seat-legend__icon--sold .btb-rb-seat__arm-r {
    fill: #eef2f6;
    stroke: #c5d0dc;
    stroke-width: 1.5;
}

.btb-seat-sidebar__card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 4px 24px rgba(0, 53, 128, 0.06);
}
.btb-seat-sidebar__card h2 { margin: 0 0 14px; font-size: 1.0625rem; color: var(--btb-navy); }
.btb-seat-sidebar__list { list-style: none; margin: 0 0 16px; padding: 0; border-bottom: 1px solid #e2e8f0; padding-bottom: 14px; }
.btb-seat-sidebar__list li { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 0.8125rem; }
.btb-seat-sidebar__list span { color: #64748b; }
.btb-seat-sidebar__list strong { color: var(--btb-navy); text-align: right; }
.btb-seat-sidebar__selected p { margin: 0 0 4px; font-size: 0.75rem; color: #64748b; text-transform: uppercase; letter-spacing: 0.04em; }
.btb-seat-sidebar__seats { font-size: 0.9375rem; font-weight: 700; color: var(--btb-navy); margin-bottom: 12px !important; }
.btb-seat-sidebar__total { display: flex; justify-content: space-between; align-items: center; margin: 12px 0; padding: 12px 0; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
.btb-seat-sidebar__total strong { font-size: 1.375rem; color: var(--btb-navy); }
.btb-seat-sidebar__hint { font-size: 0.8125rem; color: #64748b; margin: 0 0 12px; }
.btb-seat-sidebar__policy { font-size: 0.6875rem; color: #94a3b8; margin: 12px 0 0; line-height: 1.4; }
.btb-seat-sidebar .btb-search-submit { width: 100%; border-radius: 8px; }

@media (min-width: 900px) {
    .btb-seat-page__grid { grid-template-columns: 1fr 320px; gap: 24px; }
}

@media (max-width: 899px) {
    .btb-seat-sidebar__card { position: static; margin-top: 8px; }
}

.btb-seat-page__summary { margin: 0 0 16px; }

/* Admin horizontal seat map preview */
.btb-admin-seat-map .btb-seat-deck--horizontal { max-width: 100%; }

/* Inline seat panel on bus search */
.btb-bus-listing-card {
    flex-wrap: wrap;
}
.btb-bus-listing-card.is-expanded {
    border-color: #c5d4e8;
}
.btb-bus-listing-card__vehicle-name {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 6px;
}
.btb-bus-listing-card__seat-wrap {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--btb-border);
}
.btb-bus-listing-card__seat-loading {
    padding: 24px;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}
.btb-bus-seat-error {
    color: #b91c1c;
    padding: 16px;
    text-align: center;
}
.btb-seat-page__grid--inline {
    display: grid;
    gap: 16px;
}
.btb-seat-page__summary--compact p {
    margin: 0 0 4px;
    font-size: 0.8125rem;
    color: #64748b;
}
.btb-seat-sidebar--inline .btb-seat-sidebar__card {
    position: static;
}
@media (min-width: 900px) {
    .btb-seat-page__grid--inline { grid-template-columns: 1fr 280px; }
    .btb-customer-page__grid { grid-template-columns: 1fr 320px; gap: 24px; display: grid; align-items: start; }
}
.btb-customer-page { padding: 16px 0 48px; }
.btb-customer-page h1 { margin: 0 0 8px; color: var(--btb-navy); }
.btb-form-page__lead { margin: 0 0 20px; color: #64748b; font-size: 0.875rem; }
.btb-booking-form label { display: block; margin-bottom: 14px; font-size: 0.875rem; font-weight: 600; }
.btb-booking-form input { width: 100%; min-height: 42px; margin-top: 6px; padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 8px; }
.btb-form-grid { display: grid; gap: 12px; margin-bottom: 20px; }
@media (min-width: 700px) { .btb-form-grid { grid-template-columns: repeat(3, 1fr); } }
.btb-booking-form h2 { font-size: 1rem; margin: 20px 0 12px; color: var(--btb-navy); }
.btb-form-section { border: 0; margin: 0 0 24px; padding: 0; min-width: 0; }
.btb-form-section legend {
    font-size: 1rem;
    font-weight: 700;
    color: var(--btb-navy);
    margin-bottom: 12px;
    padding: 0;
}
.btb-form-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.btb-form-section__head legend { margin-bottom: 0; }
.btb-text-btn {
    border: 0;
    background: none;
    color: var(--btb-blue);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}
.btb-form-errors {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 0.875rem;
}
.btb-form-errors ul { margin: 0; padding-left: 18px; }
.btb-passenger-grid {
    display: grid;
    gap: 12px;
}
@media (min-width: 640px) {
    .btb-passenger-grid { grid-template-columns: repeat(2, 1fr); }
}
.btb-passenger-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}
.btb-passenger-card__seat {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--btb-navy);
}
.btb-passenger-card__price {
    font-size: 0.8125rem;
    color: #64748b;
}
.btb-passenger-card input { margin-top: 0; background: #fff; }
.btb-seat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 4px 8px;
    margin: 0 6px 6px 0;
    border-radius: 6px;
    background: #e8f1ff;
    color: var(--btb-navy);
    font-size: 0.8125rem;
    font-weight: 700;
}
.btb-booking-summary__photo {
    margin: -4px -4px 14px;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #e2e8f0;
}
.btb-booking-summary__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.btb-booking-summary__fare {
    list-style: none;
    margin: 0 0 12px;
    padding: 0 0 12px;
    border-bottom: 1px solid #e2e8f0;
}
.btb-booking-summary__fare li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.8125rem;
    color: #64748b;
}
.btb-booking-summary__fare strong { color: var(--btb-navy); }
.btb-booking-summary__change {
    margin: 0 0 12px;
    font-size: 0.8125rem;
}
.btb-booking-summary__change a { color: var(--btb-blue); font-weight: 600; }

/* Fixed top-right seat hold timer */
.btb-hold-timer {
    position: fixed;
    top: 72px;
    right: 16px;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #fff;
    border: 2px solid #ffd6a8;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.15);
    font-size: 0.8125rem;
    color: #9a3412;
}
.btb-hold-timer__icon { font-size: 1.125rem; line-height: 1; }
.btb-hold-timer__text { display: flex; flex-direction: column; gap: 1px; }
.btb-hold-timer__label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #c2410c;
}
.btb-hold-timer__clock {
    font-size: 1.125rem;
    font-weight: 800;
    color: #9a3412;
    font-variant-numeric: tabular-nums;
}
.btb-hold-timer.is-urgent {
    border-color: #f87171;
    background: #fef2f2;
    color: #b91c1c;
    animation: btb-hold-pulse 1s ease-in-out infinite;
}
.btb-hold-timer.is-urgent .btb-hold-timer__label,
.btb-hold-timer.is-urgent .btb-hold-timer__clock { color: #b91c1c; }
.btb-hold-timer.is-expired { border-color: #fca5a5; background: #fee2e2; }
@keyframes btb-hold-pulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(220, 38, 38, 0.12); }
    50% { box-shadow: 0 8px 28px rgba(220, 38, 38, 0.28); }
}
@media (max-width: 768px) {
    .btb-hold-timer {
        top: auto;
        bottom: 72px;
        right: 10px;
        left: 10px;
        justify-content: center;
        z-index: 180;
    }
    .btb-hold-timer__label { display: none; }
    .btb-seat-deck__shell { padding: 20px 8px 10px 28px; }
    .btb-rb-route-bar__date { white-space: normal; font-size: 0.75rem; }
    .btb-rb-route-bar__route { font-size: 0.8125rem; }
    .btb-rb-field__row .btb-rb-input { min-width: 0; width: 100%; }
    .btb-rb-card-form__row { grid-template-columns: 1fr; }
    .btb-rb-ci__section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .btb-seat-sidebar--inline .btb-search-submit,
    .btb-seat-sidebar .btb-search-submit {
        position: sticky;
        bottom: 8px;
        z-index: 5;
    }
}

@media (max-width: 640px) {
    .btb-hold-timer {
        top: 64px;
        right: 10px;
        padding: 8px 12px;
    }
    .btb-hold-timer__clock { font-size: 1rem; }
}

/* ── RedBus-style booking steps ── */
.btb-rb-steps {
    background: #fff;
    border-bottom: 1px solid #e8eaed;
    padding: 12px 0;
}
.btb-rb-steps__list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}
.btb-rb-steps__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: #8b95a5;
    font-weight: 500;
}
.btb-rb-steps__item.is-active { color: #1a1a1a; font-weight: 700; }
.btb-rb-steps__item.is-done { color: #16a34a; }
.btb-rb-steps__dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid currentColor;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}
.btb-rb-steps__item.is-active .btb-rb-steps__dot {
    background: #d84e55;
    border-color: #d84e55;
    color: #fff;
}
.btb-rb-steps__item.is-done .btb-rb-steps__dot {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}
.btb-rb-steps__line {
    width: 40px;
    height: 2px;
    background: #e2e8f0;
    margin: 0 10px;
    list-style: none;
}
.btb-rb-steps__line.is-done { background: #16a34a; }
@media (max-width: 520px) {
    .btb-rb-steps__label { display: none; }
    .btb-rb-steps__line { width: 24px; margin: 0 6px; }
}

/* ── Route bar (RedBus back + route) ── */
.btb-rb-route-bar {
    background: #fff;
    border-bottom: 1px solid #e8eaed;
    padding: 10px 0;
}
.btb-rb-route-bar__inner {
    display: flex;
    align-items: center;
    gap: 12px;
}
.btb-rb-route-bar__back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #1a1a1a;
    text-decoration: none;
    flex-shrink: 0;
}
.btb-rb-route-bar__back:hover { background: #f1f5f9; }
.btb-rb-route-bar__route {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    color: #1a1a1a;
    flex: 1;
    min-width: 0;
}
.btb-rb-route-bar__arrow { color: #94a3b8; font-weight: 400; }
.btb-rb-route-bar__date {
    font-size: 0.8125rem;
    color: #64748b;
    white-space: nowrap;
}

/* ── RedBus customer info page ── */
.btb-rb-ci {
    background: #f0f2f5;
    padding: 20px 0 48px;
    min-height: 60vh;
}
.btb-rb-ci__layout {
    display: grid;
    gap: 20px;
    align-items: start;
    width: 100%;
}
@media (min-width: 900px) {
    .btb-rb-ci__layout { grid-template-columns: minmax(0, 1fr) 320px; }
}
.btb-rb-ci__main {
    min-width: 0;
}
.btb-rb-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 0.875rem;
}
.btb-rb-alert ul { margin: 0; padding-left: 18px; }

.btb-rb-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8eaed;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    margin-bottom: 14px;
    overflow: hidden;
}
.btb-rb-card__head {
    padding: 16px 18px 0;
}
.btb-rb-card__head h2 {
    margin: 0 0 4px;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #1a1a1a;
}
.btb-rb-card__head p {
    margin: 0;
    font-size: 0.8125rem;
    color: #64748b;
}
.btb-rb-card__body { padding: 14px 18px 18px; }

.btb-rb-ci__section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 20px 0 12px;
}
.btb-rb-ci__section-head h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
}
.btb-rb-link-btn {
    border: 0;
    background: none;
    color: #0062e3;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}
.btb-rb-link-btn:hover { text-decoration: underline; }

.btb-rb-field__row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.btb-rb-field__row .btb-rb-input { flex: 1; min-width: 180px; }
.btb-rb-textarea {
    resize: vertical;
    min-height: 84px;
    line-height: 1.45;
}

/* Boarding / drop-off location cards */
.btb-rb-loc-track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 12px;
    padding: 4px 0 8px;
}
.btb-rb-loc-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-height: 128px;
    padding: 14px;
    border: 2px solid #e8eaed;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}
@media (max-width: 639px) {
    .btb-rb-loc-track {
        display: flex;
        flex-direction: row;
        gap: 12px;
        overflow-x: auto;
        padding: 4px 2px 14px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .btb-rb-loc-track::-webkit-scrollbar { height: 6px; }
    .btb-rb-loc-track::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 3px;
    }
    .btb-rb-loc-card {
        flex: 0 0 min(78vw, 220px);
        width: auto;
        scroll-snap-align: start;
    }
}
.btb-rb-loc-card:hover { border-color: #cbd5e1; }
.btb-rb-loc-card.is-invalid { border-color: #fecaca; }
.btb-rb-loc-card__input { position: absolute; opacity: 0; pointer-events: none; }
.btb-rb-loc-card__radio {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}
.btb-rb-loc-card__body { flex: 1; min-width: 0; }
.btb-rb-loc-card__body strong {
    display: block;
    font-size: 0.8125rem;
    color: #1a1a1a;
    margin-bottom: 4px;
    line-height: 1.3;
}
.btb-rb-loc-card__addr {
    display: block;
    font-size: 0.75rem;
    color: #475569;
    line-height: 1.35;
}
.btb-rb-loc-card__meta {
    display: block;
    margin-top: 6px;
    font-size: 0.6875rem;
    color: #64748b;
    line-height: 1.3;
}
.btb-rb-loc-card__time {
    display: block;
    margin-top: 6px;
    font-size: 0.6875rem;
    color: #b45309;
    font-weight: 600;
    line-height: 1.3;
}
.btb-rb-loc-card--boarding.is-active {
    border-color: #0062e3;
    box-shadow: 0 0 0 3px rgba(0, 98, 227, 0.12);
    background: #f8fbff;
}
.btb-rb-loc-card--boarding.is-active .btb-rb-loc-card__radio { border-color: #0062e3; }
.btb-rb-loc-card--boarding.is-active .btb-rb-loc-card__radio::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #0062e3;
}
.btb-rb-loc-card--dropoff.is-active {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
    background: #f0fdf8;
}
.btb-rb-loc-card--dropoff.is-active .btb-rb-loc-card__radio { border-color: #059669; }
.btb-rb-loc-card--dropoff.is-active .btb-rb-loc-card__radio::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #059669;
}

.btb-rb-field { display: block; margin-bottom: 14px; }
.btb-rb-field:last-child { margin-bottom: 0; }
.btb-rb-field__label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.btb-rb-req { color: #d84e55; font-weight: 700; }
.btb-rb-field.is-invalid .btb-rb-input,
.btb-rb-field.is-invalid .btb-rb-phone {
    border-color: #ef4444;
}
.btb-rb-field.is-invalid .btb-rb-gender__btn { border-color: #fecaca; }
.btb-rb-field__error {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    color: #dc2626;
    font-weight: 500;
}
.btb-rb-form-status {
    margin-bottom: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #fff8f0;
    border: 1px solid #ffd6a8;
    font-size: 0.8125rem;
    color: #9a3412;
}
.btb-rb-form-note {
    margin: 4px 0 12px;
    font-size: 0.75rem;
    color: #94a3b8;
}
.btb-rb-ci__section-sub {
    margin: 4px 0 0;
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 400;
}
.btb-rb-input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d8dde6;
    border-radius: 8px;
    font-size: 0.9375rem;
    color: #1a1a1a;
    background: #fff;
    transition: border-color 0.15s;
}
.btb-rb-input:focus {
    outline: none;
    border-color: #0062e3;
    box-shadow: 0 0 0 3px rgba(0, 98, 227, 0.12);
}
.btb-rb-phone {
    display: flex;
    align-items: stretch;
    border: 1px solid #d8dde6;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.btb-rb-phone:focus-within {
    border-color: #0062e3;
    box-shadow: 0 0 0 3px rgba(0, 98, 227, 0.12);
}
.btb-rb-phone__code {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}
.btb-rb-phone__input {
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.btb-rb-passenger-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e8eaed;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a1a;
}
.btb-rb-passenger-card__fare {
    margin-left: auto;
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 500;
}
.btb-rb-passenger-card__grid {
    display: grid;
    gap: 12px;
    padding: 16px 18px;
}
@media (min-width: 640px) {
    .btb-rb-passenger-card__grid {
        grid-template-columns: 1fr 160px;
        align-items: end;
    }
}
.btb-rb-field--grow { min-width: 0; }

.btb-rb-gender {
    display: flex;
    gap: 8px;
}
.btb-rb-gender__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid #d8dde6;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    background: #fff;
    transition: all 0.12s;
}
.btb-rb-gender__btn input { display: none; }
.btb-rb-gender__btn.is-active {
    border-color: #0062e3;
    background: #e8f1ff;
    color: #0062e3;
}

.btb-rb-seat-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 4px 10px;
    border-radius: 6px;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.btb-rb-ci__mobile-cta {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 14px;
    border: 0;
    border-radius: 8px;
    background: #d84e55;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}
@media (min-width: 900px) {
    .btb-rb-ci__mobile-cta { display: none; }
}

/* ── RedBus fare sidebar ── */
.btb-rb-fare__card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8eaed;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 18px;
}
@media (min-width: 900px) {
    .btb-rb-fare__card { position: sticky; top: 88px; }
}
.btb-rb-fare__operator {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8eaed;
}
.btb-rb-fare__thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    background: #e2e8f0;
    flex-shrink: 0;
}
.btb-rb-fare__operator h2 {
    margin: 0 0 2px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}
.btb-rb-fare__operator p {
    margin: 0;
    font-size: 0.75rem;
    color: #64748b;
}
.btb-rb-fare__journey {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: start;
    margin-bottom: 10px;
}
.btb-rb-fare__time strong {
    display: block;
    font-size: 1.125rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
}
.btb-rb-fare__time span {
    display: block;
    font-size: 0.6875rem;
    color: #64748b;
    margin-top: 2px;
}
.btb-rb-fare__time--end { text-align: right; }
.btb-rb-fare__duration {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding-top: 4px;
    font-size: 0.6875rem;
    color: #94a3b8;
    white-space: nowrap;
}
.btb-rb-fare__duration-line {
    display: block;
    width: 48px;
    height: 2px;
    background: #cbd5e1;
    position: relative;
}
.btb-rb-fare__duration-line::before,
.btb-rb-fare__duration-line::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    transform: translateY(-50%);
}
.btb-rb-fare__duration-line::before { left: 0; }
.btb-rb-fare__duration-line::after { right: 0; }
.btb-rb-fare__date {
    margin: 0 0 14px;
    font-size: 0.8125rem;
    color: #475569;
    font-weight: 500;
}
.btb-rb-fare__seats {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed #e2e8f0;
}
.btb-rb-fare__seats-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
}
.btb-rb-fare__seat-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.btb-rb-fare__breakup {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
}
.btb-rb-fare__breakup li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 0.8125rem;
    color: #64748b;
}
.btb-rb-fare__breakup strong { color: #1a1a1a; font-weight: 600; }
.btb-rb-fare__change {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0062e3;
    text-decoration: none;
}
.btb-rb-fare__change:hover { text-decoration: underline; }
.btb-rb-fare__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid #e8eaed;
    margin-bottom: 14px;
}
.btb-rb-fare__total span {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a1a;
}
.btb-rb-fare__total strong {
    font-size: 1.375rem;
    font-weight: 800;
    color: #1a1a1a;
}
.btb-rb-fare__cta {
    display: none;
    width: 100%;
    padding: 14px;
    border: 0;
    border-radius: 8px;
    background: #d84e55;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}
.btb-rb-fare__cta:hover:not(:disabled) { background: #c4434a; }
.btb-rb-fare__cta:disabled,
.btb-rb-ci__mobile-cta:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
}
@media (min-width: 900px) {
    .btb-rb-fare__cta { display: block; }
}
.btb-rb-fare__note {
    margin: 12px 0 0;
    font-size: 0.6875rem;
    color: #94a3b8;
    line-height: 1.4;
    text-align: center;
}

/* ── Premium payment page ── */
.btb-rb-pay {
    background: #f0f2f5;
    padding: 20px 0 48px;
    min-height: 60vh;
}
.btb-rb-pay__layout {
    display: grid;
    gap: 20px;
    align-items: start;
}
@media (min-width: 900px) {
    .btb-rb-pay__layout { grid-template-columns: 1fr 340px; }
}
.btb-rb-pay__secure {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 10px 14px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    font-size: 0.8125rem;
    color: #047857;
    font-weight: 500;
}
.btb-rb-pay__methods {
    display: grid;
    gap: 10px;
    padding: 14px 18px 18px;
}
@media (min-width: 600px) {
    .btb-rb-pay__methods { grid-template-columns: repeat(2, 1fr); }
}
.btb-rb-pay-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 2px solid #e8eaed;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, box-shadow 0.15s;
    position: relative;
}
.btb-rb-pay-method:hover { border-color: #cbd5e1; }
.btb-rb-pay-method.is-active {
    border-color: var(--pay-color, #d84e55);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--pay-color, #d84e55) 15%, transparent);
}
.btb-rb-pay-method__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--pay-color, #64748b) 12%, #fff);
    color: var(--pay-color, #64748b);
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}
.btb-rb-pay-method__text { flex: 1; min-width: 0; }
.btb-rb-pay-method__text strong {
    display: block;
    font-size: 0.875rem;
    color: #1a1a1a;
}
.btb-rb-pay-method__text small {
    display: block;
    font-size: 0.6875rem;
    color: #64748b;
    margin-top: 2px;
}
.btb-rb-pay-method__badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #fef3c7;
    color: #b45309;
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
}
.btb-rb-pay-panel { margin-bottom: 14px; }
.btb-rb-pay-panel__title {
    margin: 0;
    padding: 16px 18px 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
}
.btb-rb-pay-panel__body { padding: 14px 18px 18px; }
.btb-rb-pay-panel__grid {
    display: grid;
    gap: 20px;
    padding: 16px 18px 18px;
}
@media (min-width: 700px) {
    .btb-rb-pay-panel__grid { grid-template-columns: 1fr 260px; align-items: start; }
}
.btb-rb-pay-panel__info h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: #1a1a1a;
}
.btb-rb-pay-panel__info p {
    margin: 0 0 12px;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.5;
}
.btb-rb-pay-panel__steps {
    margin: 0 0 12px;
    padding-left: 18px;
    font-size: 0.8125rem;
    color: #475569;
    line-height: 1.6;
}
.btb-rb-pay-panel__note {
    margin: 0;
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.4;
}
.btb-rb-qr-card {
    padding: 16px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    text-align: center;
}
.btb-rb-qr-card--fonepay {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border-color: #fecaca;
}
.btb-rb-qr-card__img {
    display: block;
    margin: 0 auto 12px;
    border-radius: 8px;
    background: #fff;
}
.btb-rb-qr-card__meta p {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 6px;
    font-size: 0.75rem;
    color: #64748b;
}
.btb-rb-qr-card__meta strong { color: #1a1a1a; }
.btb-rb-select { appearance: auto; }
.btb-rb-card-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.btb-rb-pay-cards {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.btb-rb-pay__trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    margin: 16px 0;
    font-size: 0.75rem;
    color: #64748b;
}
.btb-rb-pay__cta {
    display: block;
    width: 100%;
    padding: 16px;
    border: 0;
    border-radius: 10px;
    background: #d84e55;
    color: #fff;
    font-size: 1.0625rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}
.btb-rb-pay__cta:hover:not(:disabled) { background: #c4434a; }
.btb-rb-pay__cta:disabled { background: #cbd5e1; cursor: wait; }
.btb-rb-pay-summary__title {
    margin: 0 0 14px;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #1a1a1a;
}
.btb-rb-pay-summary__trip {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e8eaed;
}
.btb-rb-pay-summary__trip h3 {
    margin: 0 0 4px;
    font-size: 0.9375rem;
    color: #1a1a1a;
}
.btb-rb-pay-summary__trip p {
    margin: 0;
    font-size: 0.8125rem;
    color: #64748b;
}
.btb-rb-pay-summary__list {
    list-style: none;
    margin: 0 0 14px;
    padding: 0 0 14px;
    border-bottom: 1px solid #e8eaed;
}
.btb-rb-pay-summary__list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.8125rem;
}
.btb-rb-pay-summary__list span { color: #64748b; }
.btb-rb-pay-summary__list strong {
    color: #1a1a1a;
    text-align: right;
    word-break: break-word;
}
.btb-rb-pay-summary__passengers {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed #e2e8f0;
}
.btb-rb-pay-summary__label {
    margin: 0 0 8px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
}
.btb-rb-pay-summary__pax {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.8125rem;
    color: #1a1a1a;
}
.btb-rb-pay-summary__gender {
    margin-left: auto;
    font-size: 0.6875rem;
    color: #64748b;
    text-transform: capitalize;
}
.btb-rb-pay-summary__ref {
    margin: 12px 0 0;
    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
}
@media (min-width: 900px) {
    .btb-rb-pay-summary .btb-rb-fare__card { position: sticky; top: 88px; }
}

/* Cab trip planner (passenger step) */
.btb-rb-route-bar--cab .btb-rb-route-bar__inner {
    border-left: 3px solid #003580;
}

.btb-cab-trip__route-visual {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(90deg, #eff6ff, #f8fafc 50%, #fef3c7);
    border-bottom: 1px solid #e8eaed;
}

.btb-cab-trip__pin span {
    display: block;
    font-size: 0.625rem;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 600;
}

.btb-cab-trip__pin strong {
    display: block;
    font-size: 0.9375rem;
    color: #1a1a1a;
    margin-top: 2px;
}

.btb-cab-trip__route-line {
    text-align: center;
    min-width: 80px;
}

.btb-cab-trip__route-line span {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #003580;
}

.btb-cab-trip__route-line em {
    display: block;
    font-size: 0.6875rem;
    color: #64748b;
    font-style: normal;
}

.btb-cab-trip__grid {
    display: grid;
    gap: 16px;
}

@media (min-width: 640px) {
    .btb-cab-trip__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .btb-cab-trip__grid .btb-rb-field--grow {
        grid-column: 1 / -1;
    }
}

.btb-cab-trip__loc-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.btb-cab-trip__loc-row .btb-rb-input {
    flex: 1;
}

.btb-cab-trip__loc-btn {
    flex-shrink: 0;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.btb-cab-trip__loc-btn:hover {
    border-color: #003580;
    background: #eff6ff;
}

.btb-cab-trip__hint {
    display: block;
    margin-top: 4px;
    font-size: 0.6875rem;
    color: #64748b;
}

.btb-cab-trip__vehicles {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e8eaed;
}

.btb-cab-trip__vehicles-title {
    margin: 0 0 12px;
    font-size: 0.875rem;
    font-weight: 700;
}

.btb-cab-trip__vehicle-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btb-cab-trip__vehicle {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 2px solid #e8eaed;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.btb-cab-trip__vehicle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.btb-cab-trip__vehicle.is-selected {
    border-color: #003580;
    background: #eff6ff;
}

.btb-cab-trip__vehicle.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.btb-cab-trip__vehicle-icon {
    font-size: 1.75rem;
}

.btb-cab-trip__vehicle-body strong {
    display: block;
    font-size: 0.875rem;
}

.btb-cab-trip__vehicle-body small {
    display: block;
    font-size: 0.6875rem;
    color: #64748b;
    margin-top: 2px;
}

.btb-cab-trip__vehicle-price {
    font-weight: 700;
    font-size: 0.875rem;
    color: #1a1a1a;
}

.btb-rb-fare__cab-icon {
    font-size: 2rem;
    line-height: 1;
}

.btb-confirmed-page {
    padding: 24px 0 40px;
}

.btb-confirmed-card {
    max-width: 640px;
    margin: 0 auto;
    padding: 28px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 53, 128, 0.08);
}

.btb-confirmed-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
