/* All rules are scoped under .rb and class names use the rb- prefix to avoid clashes with Bootstrap 3 */
.rb .rb-head {
    background: linear-gradient(160deg,#eaf3ff,#fff 55%,#eef8ea);
    padding: 48px 0 40px;
    text-align: center
}

    .rb .rb-head h1 {
        font-size: clamp(28.8px,5vw,44.8px);
        line-height: 1.15;
        color: var(--navy);
        font-weight: 800
    }

    .rb .rb-head p {
        color: var(--muted);
        margin: 12px auto 24px
    }

.rb .rb-search {
    max-width: 460px;
    margin: 0 auto;
    position: relative
}

    .rb .rb-search input {
        width: 100%;
        padding: 14px 20px;
        border-radius: 999px;
        border: 2px solid #d8e4f3;
        font: inherit;
        outline: none;
        background: #fff
    }

        .rb .rb-search input:focus {
            border-color: var(--blue)
        }

.rb .rb-drivers-main {
    background: var(--soft);
    padding: 40px 0 72px
}

.rb .rb-count {
    color: var(--muted);
    margin-bottom: 20px;
    font-size: 15.2px
}

.rb .rb-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 24px
}

.rb .rb-driver {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15,58,115,.08);
    display: flex;
    flex-direction: column
}

.rb .rb-car {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #dfe9f5
}

    .rb .rb-car img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center
    }

.rb .rb-body {
    padding: 0 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1
}

.rb .rb-avatar {
    display: block;
    width: 112px;
    height: 112px;
    border-radius: 18px;
    object-fit: cover;
    border: 4px solid #fff;
    margin-top: -56px;
    position: relative;
    background: #cfe4fb;
    box-shadow: 0 6px 16px rgba(15,58,115,.18)
}

.rb .rb-name {
    font-size: 20.8px;
    font-weight: 700;
    color: var(--navy);
    margin-top: 14px
}

.rb .rb-info {
    list-style: none;
    margin: 10px 0 20px;
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 15.2px
}

    .rb .rb-info li {
        display: flex;
        gap: 10px;
        align-items: flex-start
    }

    .rb .rb-info .rb-i {
        flex: none;
        width: 20px;
        text-align: center
    }

    .rb .rb-info a:hover {
        color: var(--blue);
        text-decoration: underline
    }

.rb .rb-actions {
    margin-top: auto;
    display: flex;
    gap: 10px
}

    .rb .rb-actions .rb-btn {
        flex: 1
    }

.rb .rb-empty {
    text-align: center;
    color: var(--muted);
    padding: 60px 0;
    display: none
}

@media (max-width:900px) {
    .rb .rb-grid {
        grid-template-columns: repeat(2,1fr)
    }
}

@media (max-width:600px) {
    .rb .rb-grid {
        grid-template-columns: 1fr;
        gap: 20px
    }

    .rb .rb-head {
        padding: 36px 0 30px
    }
}

.rb .rb-name a:hover {
    color: var(--blue)
}

/* Search form */
.rb .rb-head h1 {
    margin-bottom: 0
}

.rb .rb-form {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(15,58,115,.1);
    padding: 24px;
    max-width: 960px;
    margin: 0 auto;
    text-align: left
}

.rb .rb-f-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px 18px
}

.rb .rb-field[hidden] {
    display: none
}

.rb .rb-span2 {
    grid-column: span 2
}

.rb .rb-field > label {
    display: block;
    font-size: 13.6px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px
}

.rb .rb-field input[type=text], .rb .rb-field input[type=date], .rb .rb-field input[type=time], .rb .rb-field input[type=number], .rb .rb-field input[type=search], .rb .rb-field select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 2px solid #d8e4f3;
    border-radius: 12px;
    font: inherit;
    font-size: 15px;
    background: #fff;
    outline: none;
    color: inherit
}

    .rb .rb-field input:focus, .rb .rb-field select:focus {
        border-color: var(--blue)
    }

.rb .rb-toggle {
    display: flex;
    height: 46px;
    border: 2px solid #d8e4f3;
    border-radius: 12px;
    overflow: hidden
}

    .rb .rb-toggle input {
        position: absolute;
        opacity: 0;
        pointer-events: none
    }

    .rb .rb-toggle label {
        flex: 1;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: 15px;
        color: var(--muted);
        cursor: pointer
    }

    .rb .rb-toggle input:checked + label {
        background: var(--blue);
        color: #fff
    }

    .rb .rb-toggle input:focus-visible + label {
        outline: 2px solid var(--navy);
        outline-offset: -4px
    }

.rb .rb-airport {
    grid-column: span 1
}

.rb .rb-f-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 22px
}

@media (max-width:900px) {
    .rb .rb-f-grid {
        grid-template-columns: repeat(2,1fr)
    }
}

@media (max-width:600px) {
    .rb .rb-form {
        padding: 18px
    }

    .rb .rb-f-grid {
        grid-template-columns: 1fr
    }

    .rb .rb-span2, .rb .rb-airport {
        grid-column: auto
    }

    .rb .rb-f-actions .rb-btn {
        flex: 1
    }
}

/* Pick-up / drop-off blocks */
.rb .rb-loc[hidden] {
    display: none
}

.rb .rb-loc-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    min-height: 34px
}

.rb .rb-loc-title {
    font-size: 13.6px;
    font-weight: 600;
    color: var(--navy)
}

.rb .rb-loc-tog {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.6px;
    font-weight: 600;
    color: var(--navy)
}

    .rb .rb-loc-tog .rb-toggle {
        height: 34px;
        min-width: 110px;
        border-width: 1px
    }

        .rb .rb-loc-tog .rb-toggle label {
            font-size: 14px;
            padding: 0 14px
        }

.rb .rb-loc .rb-field + .rb-field {
    margin-top: 12px
}

/* Service type tabs */
.rb .rb-tabs {
    display: flex;
    gap: 6px;
    background: #eef3fa;
    border-radius: 14px;
    padding: 5px;
    margin-bottom: 22px;
    max-width: 360px
}

.rb .rb-tab {
    flex: 1;
    border: 0;
    background: transparent;
    border-radius: 10px;
    padding: 11px 16px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: background .15s,color .15s
}

    .rb .rb-tab:hover {
        color: var(--navy)
    }

    .rb .rb-tab.active {
        background: var(--blue);
        color: #fff;
        box-shadow: 0 4px 12px rgba(15,58,115,.18)
    }

@media (max-width:600px) {
    .rb .rb-tabs {
        max-width: none
    }
}

/* Address / Airport segmented switch (overrides the plain toggle inside location blocks) */
.rb .rb-loc-tog .rb-toggle {
    position: relative;
    height: auto;
    min-width: 0;
    border: 0;
    border-radius: 999px;
    background: #eef3fa;
    padding: 3px;
    gap: 2px;
    overflow: visible
}

    .rb .rb-loc-tog .rb-toggle label {
        flex: none;
        gap: 6px;
        padding: 6px 14px;
        border-radius: 999px;
        font-size: 13.6px;
        font-weight: 600;
        color: var(--muted);
        transition: background .15s,color .15s
    }

        .rb .rb-loc-tog .rb-toggle label:hover {
            color: var(--navy)
        }

    .rb .rb-loc-tog .rb-toggle input:checked + label {
        background: #fff;
        color: var(--blue);
        box-shadow: 0 2px 8px rgba(15,58,115,.15)
    }

    .rb .rb-loc-tog .rb-toggle input:focus-visible + label {
        outline: 2px solid var(--blue);
        outline-offset: 1px
    }

/* bootstrap-datetimepicker inputs (Bootstrap 3 input-group) */
.rb .rb-field .input-group {
    display: flex;
    width: 100%;
    position: relative
}

    .rb .rb-field .input-group .form-control {
        float: none;
        flex: 1;
        min-width: 0;
        height: 46px;
        padding: 0 14px;
        border: 2px solid #d8e4f3;
        border-right: 0;
        border-radius: 12px 0 0 12px;
        box-shadow: none;
        font: inherit;
        font-size: 15px;
        color: inherit
    }

        .rb .rb-field .input-group .form-control:focus {
            border-color: var(--blue);
            box-shadow: none
        }

.rb .rb-field .input-group-addon {
    display: flex;
    align-items: center;
    width: auto;
    padding: 0 14px;
    border: 2px solid #d8e4f3;
    border-left: 0;
    border-radius: 0 12px 12px 0;
    background: #eef3fa;
    color: var(--blue);
    cursor: pointer
}

.rb .rb-field .input-group .form-control:focus + .input-group-addon {
    border-color: var(--blue)
}

.rb .bootstrap-datetimepicker-widget {
    font-size: 14px;
    text-align: left
}

    .rb .bootstrap-datetimepicker-widget table td.active, .rb .bootstrap-datetimepicker-widget table td.active:hover {
        background: var(--blue)
    }

/* List heading */
.rb .rb-count strong {
    color: var(--navy);
    font-weight: 700
}

/* Initial state (before any search) */
.rb .rb-intro {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    background: #fff;
    border: 2px dashed #cfdcee;
    border-radius: var(--radius);
    padding: 44px 28px
}

.rb .rb-intro-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #eaf3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px
}

.rb .rb-intro h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 8px
}

.rb .rb-intro p {
    color: var(--muted);
    max-width: 480px;
    margin: 0 auto 24px
}

.rb .rb-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
    text-align: left
}

    .rb .rb-steps li {
        display: flex;
        gap: 10px;
        align-items: center;
        background: var(--soft);
        border-radius: 12px;
        padding: 12px 14px;
        font-size: 14.4px;
        color: var(--navy);
        font-weight: 500
    }

        .rb .rb-steps li span {
            flex: none;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: var(--blue);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            font-weight: 700
        }

@media (max-width:700px) {
    .rb .rb-intro {
        padding: 32px 18px
    }

    .rb .rb-steps {
        grid-template-columns: 1fr
    }
}

/* Advance booking note (full width, between the filters and the buttons) */
.rb .rb-head .rb-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    width: 100%;
    max-width: none;
    margin: 22px 0 0;
    padding: 12px 16px;
    background: #f4f7fb;
    border: 1px solid #e1e8f2;
    border-radius: 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    text-align: left
}

    .rb .rb-head .rb-note strong {
        color: var(--navy);
        font-weight: 600
    }

.rb .rb-note-i {
    flex: none;
    font-size: 15px;
    line-height: 1.5;
    opacity: .8
}

.rb .rb-noresult {
    margin-top: 24px
}

    .rb .rb-noresult .rb-intro-icon {
        background: #fff3e6
    }

.rb .rb-tips {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: grid;
    gap: 10px;
    max-width: 480px;
    text-align: left
}

    .rb .rb-tips li {
        position: relative;
        background: var(--soft);
        border-radius: 12px;
        padding: 12px 14px 12px 40px;
        font-size: 14.4px;
        color: var(--navy);
        font-weight: 500
    }

        .rb .rb-tips li:before {
            content: "\2022";
            position: absolute;
            left: 18px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--blue);
            font-size: 20px;
            line-height: 1
        }

.rb .rb-actions-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

.rb .rb-price {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    flex-grow:1
}

.rb .rb-price-label {
    font-size: 12.5px;
    color: var(--muted)
}

.rb .rb-price-amt {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy)
}