.booking-redesign {
    --booking-border: #dbe4f0;
    --booking-shadow: 0 16px 40px rgba(12, 38, 73, 0.3);
    --booking-card-bg: #ffffff;
    --booking-muted-bg: #f6f9ff;
    --fare-panel-sticky-top: 90px;
}

.booking-redesign #bookingPayment {
    display: block;
}

.booking-redesign .card,
.booking-redesign .bg-light.shadow-md.rounded.p-3,
.booking-redesign .bg-light.shadow-md.rounded.p-3 .bg-light.shadow-md.rounded.p-3 {
    border: 1px solid var(--booking-border);
    border-radius: 16px !important;
    box-shadow: var(--brand-box-shadow) !important;
    background: var(--booking-card-bg) !important;
}

.booking-redesign .card-header {
    border: 0;
    border-radius: 16px 16px 0 0 !important;
    background: #fff;
    color: #fff;
    padding: 16px 20px;
}

.booking-redesign .trip-title .trip-place,
.booking-redesign .trip-title .date {
    color: var(--text-high) !important;
}

.booking-redesign .card-body {
    background: var(--booking-muted-bg);
    border-radius: 0 0 16px 16px !important;
    padding: 18px;
}

.booking-redesign .alert-info {
    border: 1px solid #bfdbff;
    background: #eaf3ff;
    color: var(--brand-primary) !important;
    border-radius: 14px;
}

.booking-redesign .card.p-3 {
    border-radius: 16px !important;
    border: 1px solid var(--booking-border);
    background: #fff;
}

.booking-redesign .ui-input,
.booking-redesign .form-control,
.booking-redesign .custom-select {
    border: 1px solid #cdd9ea;
    border-radius: 12px !important;
    min-height: 46px;
    box-shadow: var(--box-shadow-inset) !important;
}

.pc-line-container {
    width: 40%;
    position: relative;
    height: 2px;
    background-color: var(--brand-primary);
    margin-top: 10px;
}

.pc-dot {
    width: 6px;
    height: 6px;
    background-color: var(--brand-primary);
    border-radius: 50%;
    position: absolute;
    top: -2px;
}

.pc-dot.left {
    left: 0;
}

.pc-dot.right {
    right: 0;
}

.booking-redesign .form-control:focus,
.booking-redesign .custom-select:focus,
.booking-redesign .ui-input:focus {
    box-shadow: var(--box-shadow-inset-focus) !important;
}

.booking-redesign #paymentSelectionSection>div {
    background: #f5f9ff !important;
    border: 1px solid #d7e4f8;
    border-radius: 14px !important;
}

.booking-redesign #proceedPayment {
    margin-top: 14px;
    border-radius: 12px;
    min-height: 48px;
    font-weight: 700;
}

.booking-redesign .payments-types {
    gap: 8px !important;
}

.booking-redesign .fare-panel-mobilelike {
    background: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: var(--borderRadius-default) !important;
    box-shadow: 0 12px 28px rgba(17, 52, 95, 0.5) !important;
    color: var(--text-high) !important;
}

.booking-redesign .fare-panel-shell {
    box-shadow: var(--brand-box-shadow) !important;
}

.booking-redesign .fare-panel-mobilelike h3,
.booking-redesign .fare-panel-mobilelike li,
.booking-redesign .fare-panel-mobilelike label {
    color: var(--text-high) !important;
}

.booking-redesign .fare-panel-total {
    background: #f1f6ff !important;
    border-radius: 12px !important;
    color: var(--text-high) !important;
}

.booking-redesign .fare-panel-payment-box {
    border: 1px solid #d4e1f3 !important;
    border-radius: 12px !important;
    background: #f7faff !important;
}

.booking-redesign .fare-panel-apply-btn {
    background: #fff !important;
    color: var(--brand-primary) !important;
    border: 0;
    border-radius: 10px !important;
}

.booking-redesign .fare-panel-proceed {
    min-height: 48px;
    border-radius: 999px !important;
    font-weight: 700;
    background: var(--brand-primary) !important;
    color: #fff !important;
    border: 0 !important;
    transition: all 0.3s ease-in !important;
}

.booking-redesign .fare-panel-proceed:hover {
    transform: scale(1.02) !important;
}

.booking-redesign .fare-panel-proceed:active {
    transform: scale(0.98) !important;
}

.payment-img {
    transition: filter 0.3s, border-color 0.3s;
    cursor: pointer;
    padding: 8px;
    border: 2px solid #d5e2f4;
    border-radius: 12px !important;
    background: #fff;
}

.grayscale {
    filter: grayscale(100%);
}

.selected-payment {
    filter: none !important;
    border-color: var(--brand-primary) !important;
    box-shadow: 0 8px 20px rgba(25, 100, 185, 0.18);
}

.payments-types {
    list-style: none;
    padding-left: 0;
}

.payments-types li {
    display: inline-block;
}

@media (min-width: 992px) {
    .booking-redesign .row {
        overflow: visible !important;
    }

    .booking-redesign .fare-panel-sticky-col {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: var(--fare-panel-sticky-top) !important;
        height: fit-content !important;
        align-self: flex-start !important;
        overflow: visible !important;
        z-index: 10 !important;
    }


}

.booking-redesign .select2-container {
    transform: scale(0.95);
    transform-origin: left top;
}

/* Redesigned Journey Details Card (Clean Rectangular Style) */
.booking-journey-card {
    background-color: var(--bg-card-body, #ffffff) !important;
    border-radius: var(--borderRadius-default, 24px) !important;
    box-shadow: var(--brand-box-shadow) !important;
    border: 1px solid var(--light-bg, #F0F4F8) !important;
    margin-bottom: 2rem !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
}

.booking-journey-card .journey-header {
    padding: 1rem 1.5rem !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
}

.booking-journey-card .bus-info {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    flex-wrap: wrap !important;
}

.booking-journey-card .bus-class {
    background: var(--bg-gradient) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    font-size: 1rem !important;
    font-weight: 900 !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 99px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.booking-journey-card .bus-name {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: var(--text-high) !important;
}

.booking-journey-card .trip-duration {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    background: var(--bg-gradient);
    border-radius: var(--borderRadius-default);
    padding: 4px 10px;
    box-shadow: var(--brand-box-shadow);
}

.booking-journey-card .journey-body {
    padding: 1.5rem !important;
}

.booking-journey-card .route-info-row {
    margin-bottom: 1.25rem !important;
}

.booking-journey-card .route-point {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}

@media (min-width: 768px) {
    .booking-journey-card .route-point.arrival {
        text-align: right !important;
    }
}

.booking-journey-card .point-label {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    color: var(--text-low) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.booking-journey-card .point-time {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    color: var(--brand-primary) !important;
    line-height: 1.2 !important;
    margin: 0.15rem 0 !important;
}

.booking-journey-card .point-station {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: var(--text-high) !important;
}

.booking-journey-card .point-date {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: var(--text-low) !important;
}

.booking-journey-card .route-separator {
    color: var(--text-low) !important;
    font-size: 1.5rem !important;
    padding: 0 1.5rem !important;
}

.booking-journey-card .journey-divider {
    border: 0 !important;
    border-top: 1px solid var(--light-bg) !important;
    margin: 1.25rem 0 !important;
}

.booking-journey-card .specs-info-row {
    display: flex !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 1.5rem !important;
}

.booking-journey-card .spec-item {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
    min-width: 120px !important;
}

.booking-journey-card .spec-label {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    color: var(--text-low) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.booking-journey-card .spec-value {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: var(--text-high) !important;
}

.booking-journey-card .seat-badge {
    background-color: rgba(24, 164, 248, 0.08) !important;
    border: 1px solid rgba(24, 164, 248, 0.15) !important;
    color: var(--brand-primary) !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    border-radius: 6px !important;
    padding: 0.2rem 0.6rem !important;
    display: inline-block !important;
    margin-right: 0.25rem !important;
    margin-bottom: 0.25rem !important;
    box-shadow: var(--box-shadow-inset);
}

/* Expiration Timer Banner */
.seat-expiration-timer {
    padding: 1rem 1.25rem !important;
    background-color: rgba(202, 2, 52, 0.05) !important;
    border: 1px solid rgba(202, 2, 52, 0.15) !important;
    border-radius: 16px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--alert) !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
}

.expiration-badge {
    background-color: #ffffff !important;
    border: 1px solid rgba(202, 2, 52, 0.15) !important;
    color: var(--alert) !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 12px !important;
    font-weight: 900 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
    white-space: nowrap;
}

/* ===== Traveller Details Card ===== */
.traveller-details-card {
    background: var(--bg-card-body);
    border-radius: var(--borderRadius-default) !important;
    border: 1px solid var(--booking-border);
    box-shadow: var(--brand-box-shadow);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.traveller-details-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--light-bg);
    background: var(--bg-card-body);
}

.traveller-details-header > i {
    font-size: 1.25rem;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.traveller-details-header h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-high);
    margin: 0;
}

.traveller-details-body {
    padding: 1.25rem 1.5rem;
}

.td-section {
    margin-bottom: 0.25rem;
}

.td-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-low);
    margin-bottom: 1rem;
}

.td-divider {
    border: 0;
    border-top: 1px solid var(--light-bg);
    margin: 1.25rem 0;
}

.td-field-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-low);
    margin-bottom: 0.45rem;
    display: block;
}

/* Icon-prefixed inputs */
.td-input-wrap {
    position: relative;
}

.td-input-wrap > i {
    position: absolute;
    left: 16px;
    top: 20px !important;
    transform: none;
    color: var(--text-low);
    font-size: 13px;
    z-index: 2;
    pointer-events: none;
}

/* Inner-shadow style matching search card neumorphic design */
.td-input-wrap .td-input {
    background: var(--input-bg) !important;
    border: 1px solid transparent !important;
    border-radius: var(--borderRadius-default) !important;
    box-shadow: var(--box-shadow-inset) !important;
    padding-left: 42px !important;
    min-height: 46px;
    color: var(--text-high);
    transition: box-shadow 0.2s ease;
}

.td-input-wrap .td-input:focus {
    border-color: transparent !important;
    box-shadow: var(--box-shadow-inset-focus) !important;
    outline: none !important;
}

.td-input-wrap .td-input[readonly] {
    opacity: 0.75;
    cursor: default;
}


/* Select2 inside td-select-wrap */
.td-select-wrap .select2-container {
    width: 100% !important;
    transform: none !important;
}

.td-select-wrap .select2-container--bootstrap .select2-selection--single {
    padding-left: 40px !important;
    height: 46px !important;
    padding-top: 13px !important;
    background: var(--input-bg) !important;
    border: 1px solid transparent !important;
    box-shadow: var(--box-shadow-inset) !important;
    border-radius: var(--borderRadius-default) !important;
}

/* Passenger Type – Pill Radio Buttons */
.td-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.td-radio-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 99px;
    border: 1.5px solid #cdd9ea;
    background: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-medium);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    margin-bottom: 0;
    white-space: nowrap;
}

.td-radio-pill input[type="radio"] {
    display: none;
}

.td-radio-pill i {
    font-size: 0.8rem;
    color: var(--text-low);
    transition: color 0.2s ease;
}

.td-radio-pill:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.td-radio-pill:hover i {
    color: var(--brand-primary);
}

.td-radio-pill.active {
    border-color: #fff;
    background: var(--brand-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(24, 164, 248, 0.15);
}

.td-radio-pill.active i {
    color: #fff;
}

/* Radio group error state */
.td-radio-group--error .td-radio-pill {
    border-color: #ff0000;
}

.td-radio-error-msg {
    display: block;
    color: #ff0000;
    margin-top: 4px;
}

@media (max-width: 576px) {
    .traveller-details-body {
        padding: 1rem;
    }

    .td-radio-group {
        gap: 8px;
    }

    .td-radio-pill {
        padding: 7px 14px;
        font-size: 0.8rem;
    }
}
