/* =========================================
   RBS HOME EXCHANGE
========================================= */

.rbs-home-exchange {
    display: grid;
    grid-template-columns: 600px 460px;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
    font-family: Montserrat, Helvetica, Arial, sans-serif;
}


/* =========================================
   LEFT - RATES
========================================= */

.rbs-rates-panel {
    border: 1px solid #d7d7d7;
    background: #fff;
    max-height: 620px;
    overflow-y: auto;
}

.rbs-rates-header {
    background: #333;
    color: #fff;
    padding: 15px 18px;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rbs-rates-header strong {
    font-weight: 700;
}

.rbs-rates-header span {
    font-size: 13px;
    opacity: .9;
}


.rbs-rate-list {
    background: #fff;
}


.rbs-rate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 65px;
    padding: 10px 14px;
    border-bottom: 1px solid #e5e5e5;
    box-sizing: border-box;
    cursor: pointer;
    transition: .2s ease;
}

.rbs-rate-item:hover {
    background: #f8f8f8;
}

.rbs-rate-item.active {
    border-left: 3px solid #ff1a1a;
    background: #fff7f7;
}


.rbs-rate-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
}


.rbs-rate-flag {
    width: 45px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rbs-rate-flag img {
    width: 42px;
    height: 30px;
    object-fit: cover;
}


.rbs-rate-title strong {
    display: block;
    color: #111;
    font-size: 14px;
    font-weight: 600;
}

.rbs-rate-title small {
    display: block;
    color: #666;
    font-size: 11px;
    margin-top: 3px;
}


.rbs-rate-values {
    display: flex;
    align-items: center;
    gap: 30px;
}


.rbs-rate-values div {
    min-width: 70px;
    text-align: center;
}


.rbs-rate-values small {
    display: block;
    font-size: 9px;
    color: #777;
    margin-bottom: 3px;
}


.rbs-rate-values strong {
    display: block;
    color: #222;
    font-size: 12px;
    font-weight: 600;
}


.rbs-rate-arrow {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #777;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rbs-rate-arrow:hover {
    color: #ff1a1a;
}


/* =========================================
   RIGHT - CALCULATOR
========================================= */

.rbs-calculator-panel {
    max-width: 100%;
    background: #fff;
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    box-sizing: border-box;
        margin-bottom: 70px;
}


/* TABS */

.rbs-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 76px;
}


.rbs-tabs button {
    border: 0;
    background: #fff;
    color: #111;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    cursor: pointer;
    padding: 10px;
}


.rbs-tabs button.active {
    background: #ff1a1a;
    color: #fff;
}


/* BODY */

.rbs-calc-body {
    padding: 28px 35px 36px;
    box-sizing: border-box;
}


.rbs-currency-label,
.rbs-branch-label {
    display: block;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #111 !important;
    margin: 0 0 8px !important;
}


.rbs-calc-body select {
    width: 100%;
    height: 48px;
    border: 1px solid #d2d2d2;
    border-radius: 5px;
    background: #fff !important;
    padding: 0 14px;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 14px;
    color: #555;
    box-sizing: border-box;
}


/* AMOUNT LABELS */

.rbs-home-amount-labels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    margin-top: 28px;
    margin-bottom: 7px;
    font-size: 14px;
    color: #111;
}


/* MONEY ROW */

.rbs-home-money-row {
    display: grid;
    grid-template-columns: 1fr 18px 1fr;
    gap: 9px;
    align-items: center;
}


.rbs-money-box {
    height: 48px;
    border: 1px solid #d2d2d2;
    border-radius: 5px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #fff;
}


.rbs-money-flag {
    width: 58px;
    min-width: 58px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}


.rbs-money-flag img {
    width: 42px;
    height: 28px;
    object-fit: cover;
}


.rbs-gbp-flag {
    font-size: 32px;
    line-height: 1;
}


.rbs-money-box input {
    flex: 1 !important;
    width: auto !important;
    height: 100% !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 10px !important;
    font-size: 14px !important;
    color: #111;
    background: #fff !important;
    box-sizing: border-box;
}


.rbs-money-box input:focus {
    outline: none;
    box-shadow: none;
}


.rbs-money-equals {
    text-align: center;
    font-size: 18px;
    color: #777;
    font-weight: 500;
}


/* PROMO */

.rbs-promo-message {
    margin-top: 24px;
    min-height: 23px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 3px 8px 3px 13px;
    background: #f4f4f4;
    border-left: 8px solid #ff1a1a;
    font-size: 12px;
    color: #111;
    box-sizing: border-box;
}


.rbs-promo-message strong {
    font-weight: 600;
}


/* TODAY RATE */

.rbs-today-rate {
    text-align: center;
    margin-top: 17px;
}


.rbs-today-title {
    font-size: 17px;
    color: #111;
    margin-bottom: 4px;
}


.rbs-today-value {
    font-size: 21px;
    font-weight: 700;
    color: #000;
}


.rbs-online-note {
    margin-top: 8px;
    font-size: 12px;
    color: #111;
}


/* BRANCH */

.rbs-branch-label {
    margin-top: 22px !important;
}


/* BUTTON */

#rbs-home-continue {
    width: 100%;
    height: 55px;
    margin-top: 25px;
    border: 0;
    border-radius: 5px;
    background: #ff1a1a;
    color: #fff;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s ease;
    position: relative;
}


#rbs-home-continue span {
    position: absolute;
    right: 20px;
    font-size: 28px;
    line-height: 20px;
    top: 17px;
}


#rbs-home-continue:hover {
    background: #c91b25 !important;
    color: #fff !important;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {

    .rbs-home-exchange {
        grid-template-columns: 1fr 430px;
        gap: 20px;
        padding: 0 20px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 991px) {

    .rbs-home-exchange {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .rbs-calculator-panel {
        width: 100%;
    }

    .rbs-rates-panel {
        max-height: none;
    }

}


@media (max-width: 500px) {

    .rbs-calc-body {
        padding: 25px 20px 30px;
    }

    .rbs-home-money-row {
        grid-template-columns: 1fr 15px 1fr;
        gap: 5px;
    }

    .rbs-money-flag {
        width: 45px;
        min-width: 45px;
    }

    .rbs-gbp-flag {
        font-size: 27px;
    }

    .rbs-tabs button {
        font-size: 14px;
    }

    .rbs-rate-values {
        gap: 10px;
    }

    .rbs-rate-left {
        min-width: 140px;
    }

}

/* ================================
   CUSTOMER INFORMATION
================================ */

.rbs-customer-card {
    width: 100%;
    max-width: 1100px;
    margin: 40px auto;
    padding: 35px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    box-sizing: border-box;
}

.rbs-customer-card h2 {
    margin: 0 0 8px;
    color: #111;
    font-size: 30px;
    line-height: 1.2;
}

.rbs-customer-card .rbs-subtitle {
    color: #666;
    margin: 0 0 30px;
    font-size: 15px;
}


/* FORM ROW */

.rbs-customer-card .row {
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
    margin: 0;
}


/* TWO COLUMN FIELDS */

.rbs-customer-card .col-md-6 {
    width: calc(50% - 10px);
    margin: 0 0 20px;
    padding: 0;
    box-sizing: border-box;
}


/* FULL WIDTH FIELDS */

.rbs-customer-card .col-12 {
    width: 100%;
    margin: 0 0 20px;
    padding: 0;
    box-sizing: border-box;
}


/* LABELS */

.rbs-customer-card label {
    display: block;
    margin: 0 0 8px;
    color: #111;
    font-size: 15px;
    font-weight: 600;
}


/* INPUTS + SELECT */

.rbs-customer-card input[type="text"],
.rbs-customer-card input[type="email"],
.rbs-customer-card input[type="tel"],
.rbs-customer-card input[type="number"],
.rbs-customer-card select,
.rbs-customer-card textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background: #fff !important;
    color: #222;
    font-size: 15px;
    font-family: inherit;
}


/* INPUT / SELECT HEIGHT */

.rbs-customer-card input[type="text"],
.rbs-customer-card input[type="email"],
.rbs-customer-card input[type="tel"],
.rbs-customer-card input[type="number"],
.rbs-customer-card select {
    height: 48px;
    padding: 0 14px;
}


/* TEXTAREA */

.rbs-customer-card textarea {
    height: 120px;
    padding: 14px;
    resize: vertical;
}


/* FOCUS */

.rbs-customer-card input:focus,
.rbs-customer-card select:focus,
.rbs-customer-card textarea:focus {
    outline: none;
    border-color: #ff1a1a;
    box-shadow: 0 0 0 1px #ff1a1a;
}


/* BUTTON AREA */

.rbs-customer-card .d-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}


/* BACK BUTTON */

#rbs-back-step {
    height: 50px;
    padding: 0 30px;
    border: none;
    border-radius: 4px;
    background: #555;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}


/* SUBMIT BUTTON */

#rbs-submit-booking {
    height: 50px;
    padding: 0 30px;
    border: none;
    border-radius: 4px;
    background: #ff1a1a;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

#rbs-submit-booking:hover {
    background: #000;
}


/* MOBILE */

@media (max-width: 767px) {

    .rbs-customer-card {
        margin: 25px 15px;
        padding: 25px 20px;
        width: calc(100% - 30px);
    }

    .rbs-customer-card h2 {
        font-size: 26px;
    }

    .rbs-customer-card .col-md-6 {
        width: 100%;
        margin-bottom: 20px;
    }

    .rbs-customer-card .d-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    #rbs-back-step,
    #rbs-submit-booking {
        width: 100%;
    }

}

.rbs-rate-symbol{
    width:42px;
    height:42px;
    border-radius:50%;
    background:#f1f1f1;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
    font-weight:700;
    color:#222;
    flex-shrink:0;
}

.rbs-money-symbol{
    width:62px;
    min-width:32px;
    height:32px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:21px;
    font-weight:600;
    color:#222;
}