/* =====================================================================
   Transfer Booking — Frontend v2.1 (separate-page steps)
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.trb-wrap {
    max-width: 860px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
    color: #1a1a2e;
    --blue: #1a1a2e;
    --blue-light: #0a72d4;
    --green: #27ae60;
    --gold: #f39c12;
    --radius: 14px;
    --shadow: 0 4px 24px rgba(0,0,0,.08);
    padding: 0 12px;
}

/* Step 2 needs extra width for the sidebar layout */
.trb-wrap:has(.trb-step2-layout) {
    max-width: 1100px;
}

/* ── Route Title (Step 2) ───────────────────────────────────────────── */
.trb-route-title {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 800;
    text-align: center;
    margin: 0 0 24px;
    color: #1a1a2e;
    line-height: 1.3;
}

/* ── Step 2 two-column layout ──────────────────────────────────────── */
.trb-step2-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    align-items: start;
}
.trb-step2-main { min-width: 0; }

/* ── Sidebar ───────────────────────────────────────────────────────── */
.trb-step2-sidebar { position: sticky; top: 80px; }
.trb-sidebar-card {
    background: #fff;
    border: 1px solid #e3e7eb;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}
.trb-sidebar-card__title {
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

/* Journey route inside sidebar */
.trb-sidebar-journey { margin-bottom: 16px; }
.trb-sidebar-journey__label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #888;
    margin-bottom: 12px;
}
.trb-sidebar-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.trb-sidebar-dot--outward { background: #1a1a2e; }

.trb-sidebar-journey__route { padding-left: 4px; }
.trb-sidebar-stop {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
}
.trb-sidebar-stop__dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.trb-sidebar-stop__dot--from { background: #1a1a2e; }
.trb-sidebar-stop__dot--to   { background: var(--gold); border: 2px solid #1a1a2e; }
.trb-sidebar-line {
    width: 2px;
    height: 28px;
    background: #ddd;
    margin-left: 4px;
}

/* Sidebar meta rows */
.trb-sidebar-meta { border-top: 1px solid #f0f0f0; padding-top: 14px; }
.trb-sidebar-meta__row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
}
.trb-sidebar-meta__icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.trb-sidebar-meta__row strong { display: block; font-size: 14px; }
.trb-sidebar-meta__row span:last-child { font-size: 12px; color: #888; }



/* ── STEP 1 — Search cards ──────────────────────────────────────────── */
.trb-search-card {
    background: #f5f5f5;
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 10px;
    position: relative;
}
.trb-search-card__label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #1a1a2e;
    margin-bottom: 6px;
}
.trb-search-card__field {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}
.trb-pin-icon { display:flex; align-items:center; flex-shrink:0; }
.trb-search-input {
    border: none;
    background: transparent;
    font-size: 15px;
    color: #999;
    width: 100%;
    outline: none;
    font-family: inherit;
}
.trb-search-input:not(:placeholder-shown),
.trb-search-input.has-value { color: #1a1a2e; font-weight:500; }
.trb-search-input:disabled { cursor: not-allowed; opacity:.5; }

/* Passenger row */
.trb-pax-row { justify-content: space-between; }
.trb-pax-icon { display:flex; align-items:center; }
.trb-pax-count {
    font-size: 16px;
    font-weight: 700;
    flex: 1;
    text-align: center;
}
.trb-pax-controls { display:flex; gap:8px; }
.trb-pax-btn {
    width: 36px; height: 36px;
    border-radius: 8px;
    border: none;
    background: #1a1a2e;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex; align-items:center; justify-content:center;
    transition: background .15s;
    line-height:1;
}
.trb-pax-btn:hover { background: var(--blue-light); }

/* Dropdown list */
.trb-field__list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    z-index: 999;
    background: #fff;
    border: 1px solid #e0e4e8;
    border-radius: 10px;
    max-height: 260px;
    overflow-y: auto;
    list-style: none;
    padding: 6px 0;
    margin: 0;
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
.trb-field__list.is-open { display:block; }
.trb-field__list-item {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #f1f3f5;
    transition: background .1s;
}
.trb-field__list-item:last-child { border-bottom: 0; }
.trb-field__list-item:hover { background: #f3f8fd; color: var(--blue-light); }

/* Search button */
.trb-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    background: #1a1a2e;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    margin-top: 10px;
    transition: background .15s, transform .05s;
}
.trb-search-btn:hover { background: #0a72d4; }
.trb-search-btn:active { transform: translateY(1px); }

/* ── Progress bar ─────────────────────────────────────────────────── */
.trb-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 26px;
    gap: 0;
}
.trb-progress__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .6px;
    color: #bbb;
    min-width: 70px;
    text-align: center;
}
.trb-progress__item.is-active { color: #1a1a2e; }
.trb-progress__item.is-done { color: var(--green); }
.trb-progress__dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #ddd;
    transition: background .3s;
}
.trb-progress__item.is-active .trb-progress__dot { background: #1a1a2e; box-shadow: 0 0 0 3px rgba(26,26,46,.18); }
.trb-progress__item.is-done .trb-progress__dot { background: var(--green); }
.trb-progress__line {
    flex: 1;
    height: 2px;
    background: #ddd;
    margin-bottom: 18px;
    transition: background .3s;
}
.trb-progress__line.is-done { background: var(--green); }

/* ── Free cancellation banner ─────────────────────────────────────── */
.trb-free-cancel-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f0faf4;
    border: 1px solid #c3e6cb;
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 20px;
}
.trb-free-cancel-banner__icon { flex-shrink:0; }
.trb-free-cancel-banner strong { font-size:15px; display:block; margin-bottom:2px; }
.trb-free-cancel-banner p { margin:0; font-size:13px; color:#555; }

/* ── Route summary ────────────────────────────────────────────────── */
#trb-route-summary {
    background: #f3f8fd;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--blue-light);
}

/* ── Car cards (horizontal) ──────────────────────────────────────── */
.trb-cars { display:flex; flex-direction:column; gap:16px; }

.trb-car {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    gap: 0;
    border: 1px solid #e3e7eb;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
    align-items: stretch;
}
.trb-car:hover { border-color: var(--blue-light); box-shadow: 0 6px 28px rgba(10,114,212,.14); }

.trb-car__img-wrap {
    background: #f8fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-right: 1px solid #f0f0f0;
}
.trb-car__img-wrap img { width:100%; max-width:150px; height:110px; object-fit:contain; }
.trb-car__img-placeholder {
    width: 130px; height: 90px;
    background: linear-gradient(135deg,#e8edf5,#d0d8e8);
    border-radius: 8px;
    display: flex; align-items:center; justify-content:center;
    color:#aaa; font-size:28px;
}

.trb-car__info { padding: 20px; }
.trb-car__name { font-size:18px; font-weight:800; margin:0 0 8px; }

.trb-car__meta {
    display: flex;
    gap: 14px;
    margin-bottom: 10px;
    font-size:13px;
    color:#555;
}
.trb-car__meta span { display:flex; align-items:center; gap:4px; }
.trb-car__meta .meta-icon { color: var(--gold); }

.trb-car__features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.trb-car__feature-tag {
    background: #f1f3f5;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 12px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 4px;
}

.trb-car__price-col {
    padding: 20px;
    border-left: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    min-width: 160px;
}
.trb-car__price-label { font-size:11px; color:#888; text-align:right; }
.trb-car__price { font-size:30px; font-weight:800; line-height:1; margin:4px 0; }
.trb-car__cancel-badge {
    font-size:11px;
    color: var(--green);
    font-weight:700;
    background:#f0faf4;
    border:1px solid #c3e6cb;
    border-radius:20px;
    padding: 3px 8px;
    display: flex; align-items:center; gap:3px;
}
.trb-car__incl { font-size:11px; color:#888; text-align:right; margin:3px 0; }
.trb-car__select {
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 22px;
    font-size:14px;
    font-weight:700;
    letter-spacing:.5px;
    cursor: pointer;
    transition: background .15s;
    margin-top:8px;
    width:100%;
}
.trb-car__select:hover { background: var(--blue-light); }

/* ── Generic form helpers ─────────────────────────────────────────── */
.trb-step__title { margin:0 0 20px; font-size:20px; font-weight:800; }
.trb-form { }
.trb-row { display:flex; flex-wrap:wrap; gap:14px; }
.trb-field { flex:1; min-width:200px; margin-bottom:14px; position:relative; }
.trb-field--small { flex:0 0 160px; }
.trb-label { display:block; font-size:13px; font-weight:600; margin-bottom:6px; color:#444; }
.trb-input {
    width:100%; padding:12px 14px; border:1px solid #d8dde3; border-radius:10px;
    font-size:15px; font-family:inherit; background:#fff; transition:border-color .15s;
    box-sizing:border-box;
}
.trb-input:focus { outline:none; border-color:var(--blue-light); box-shadow:0 0 0 3px rgba(10,114,212,.12); }
textarea.trb-input { resize:vertical; }

.trb-btn {
    display:inline-flex; align-items:center; justify-content:center; gap:6px;
    padding:12px 24px; border:0; border-radius:10px; font-weight:700;
    font-size:14px; cursor:pointer; letter-spacing:.5px; transition:transform .05s,background .15s;
    font-family:inherit;
}
.trb-btn--primary { background:#1a1a2e; color:#fff; }
.trb-btn--primary:hover { background:var(--blue-light); }
.trb-btn--ghost { background:#f1f3f5; color:#333; }
.trb-btn--ghost:hover { background:#e4e6e9; }
.trb-btn:active { transform:translateY(1px); }

.trb-actions { margin-top:20px; display:flex; justify-content:flex-end; gap:10px; }

/* Trip type radios */
.trb-trip-type { display:flex; gap:12px; margin-bottom:20px; }
.trb-radio {
    flex:1; border:2px solid #e0e4e8; border-radius:10px; padding:14px 16px;
    cursor:pointer; text-align:center; background:#fff; font-weight:600; font-size:14px;
    transition:border-color .15s; display:flex; align-items:center; justify-content:center; gap:8px;
}
.trb-radio:has(input:checked) { border-color:#1a1a2e; background:#f8f9ff; }
.trb-radio input { accent-color:#1a1a2e; }

/* ── Payment step ─────────────────────────────────────────────────── */
.trb-payment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.trb-payment-header h3 { margin:0; font-size:20px; font-weight:800; }

.trb-payment-summary {
    background: #f8fafb;
    border-radius: var(--radius);
    padding: 16px 18px;
    font-size:14px;
    line-height:1.8;
    margin-bottom:20px;
    border: 1px dashed #d8dde3;
}
.trb-payment-summary strong { font-size:15px; }

.trb-payment-methods { margin-bottom:20px; }
.trb-pm-label { font-size:13px; font-weight:600; display:block; margin-bottom:10px; }
.trb-pm-icons {
    display: flex;
    gap: 8px;
    align-items: center;
    background:#fff;
    border:1px solid #d8dde3;
    border-radius:10px;
    padding:12px 16px;
    flex-wrap:wrap;
}
.trb-pm-icons img { height:26px; width:auto; object-fit:contain; }

/* Deposit slider */
.trb-deposit-wrap { margin-bottom:16px; }
.trb-deposit-label {
    display:flex; justify-content:space-between; align-items:center;
    margin-bottom:10px; font-size:14px; font-weight:600;
}
.trb-deposit-pct { color: var(--gold); font-size:16px; }

.trb-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, var(--gold) 50%, #ddd 50%);
    outline: none;
    cursor: pointer;
}
.trb-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #1a1a2e;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.trb-slider::-moz-range-thumb {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #1a1a2e;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

/* Totals */
.trb-totals {
    margin-bottom:20px;
    border-top:1px solid #e8e8e8;
    padding-top:14px;
}
.trb-totals__row {
    display:flex; justify-content:space-between;
    font-size:15px; padding:6px 0; font-weight:500;
}
.trb-totals__row--pay { font-size:18px; font-weight:800; }
.trb-topay-amount { color: #1a1a2e; }

.trb-book-now-btn { font-size:15px; letter-spacing:1.5px; }

/* Spinner */
.trb-spinner {
    display:flex; align-items:center; gap:10px;
    font-size:13px; color:#666; margin-top:12px; justify-content:center;
}
.trb-spinner__dot {
    width:16px; height:16px; border-radius:50%;
    border:3px solid #e0e0e0; border-top-color:#1a1a2e;
    animation:trbSpin .7s linear infinite; display:inline-block;
}
@keyframes trbSpin { to { transform:rotate(360deg); } }

/* ── Thank you ────────────────────────────────────────────────────── */
.trb-thanks { text-align:center; padding:48px 24px; }
.trb-thanks__icon { font-size:56px; margin-bottom:16px; }
.trb-thanks h2 { font-size:28px; font-weight:800; margin:0 0 12px; }
.trb-thanks p { font-size:15px; color:#666; }
.trb-booking-id { font-weight:700; color:var(--blue-light); font-size:16px; margin-top:8px; }

/* ── Errors ───────────────────────────────────────────────────────── */
.trb-error { color:#c0392b; font-size:13px; margin:10px 0 0; min-height:18px; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width:900px) {
    .trb-step2-layout {
        grid-template-columns: 1fr;
    }
    .trb-step2-sidebar {
        position: static;
        order: -1; /* Sidebar above cars on mobile */
    }
}
@media (max-width:700px) {
    .trb-car {
        grid-template-columns: 1fr;
    }
    .trb-car__img-wrap { border-right:none; border-bottom:1px solid #f0f0f0; }
    .trb-car__price-col { border-left:none; border-top:1px solid #f0f0f0; align-items:flex-start; }
    .trb-progress__item span { display:none; }
    .trb-trip-type { flex-direction:column; }
    .trb-row { flex-direction:column; }
    .trb-field--small { flex:1; }
    .trb-route-title { font-size:18px; }
}

/* ── Static Information Box ────────────────────────────────────────── */
.trb-info-box {
    background: #fff;
    border: 1px solid #e3e7eb;
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 24px;
    box-shadow: var(--shadow);
}
.trb-info-box__title {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 18px;
    color: var(--blue);
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}
.trb-info-box__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.trb-info-box__heading {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 14px;
    color: var(--blue);
}
.trb-info-box__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.trb-info-box__list li {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #555;
}
.trb-info-icon {
    font-size: 14px;
    flex-shrink: 0;
}
.trb-info-box__subheading {
    font-size: 13px;
    font-weight: 700;
    margin: 16px 0 8px;
    color: var(--blue);
}
.trb-info-box__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.trb-info-box__table th,
.trb-info-box__table td {
    padding: 6px 10px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}
.trb-info-box__table th {
    font-weight: 700;
    color: #888;
    background: #f8fafb;
}
.trb-info-box__table td strong {
    color: var(--blue);
}
@media (max-width: 700px) {
    .trb-info-box__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

