:root {
    --branch-choice-blue: #008cd7;
    --branch-choice-blue-dark: #075b86;
    --branch-choice-cape: #0b6b8d;
    --branch-choice-ink: #172a35;
    --branch-choice-muted: #617681;
    --branch-choice-line: #d9e5ea;
    --branch-choice-soft: #f2f7f9;
}

.branch-choice-managed-banner--top {
    padding-top: 42px;
}

.branch-choice-managed-banner--bottom {
    padding-bottom: 48px;
}

.branch-choice-page {
    position: relative;
    overflow: hidden;
    padding: 58px 0 64px;
    color: var(--branch-choice-ink);
    background-color: var(--branch-choice-soft);
    border-top: 1px solid var(--branch-choice-line);
    border-bottom: 1px solid var(--branch-choice-line);
}

.branch-choice-page__shape {
    position: absolute;
    top: -150px;
    right: -110px;
    width: 390px;
    height: 390px;
    border: 64px solid rgba(0, 140, 215, 0.08);
    pointer-events: none;
    transform: rotate(18deg);
}

.branch-choice-page__content {
    position: relative;
    z-index: 1;
}

.branch-choice-heading {
    max-width: 790px;
    margin: 0 auto 38px;
    text-align: center;
}

.branch-choice-heading__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--branch-choice-blue-dark);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.branch-choice-heading__eyebrow::before {
    width: 28px;
    height: 3px;
    background-color: var(--branch-choice-blue);
    content: "";
}

.branch-choice-heading h2 {
    margin: 0 0 14px;
    color: var(--branch-choice-ink);
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.12;
    text-transform: none;
}

.branch-choice-heading p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--branch-choice-muted);
    font-size: 16px;
    line-height: 1.75;
}

.branch-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 970px;
    margin: 0 auto;
}

.branch-choice-card {
    position: relative;
    margin: 0;
    background-color: #ffffff;
    border: 1px solid var(--branch-choice-line);
    box-shadow: 0 18px 42px rgba(20, 56, 74, 0.1);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.branch-choice-card::before {
    position: absolute;
    z-index: 2;
    top: -1px;
    left: -1px;
    width: calc(100% + 2px);
    height: 5px;
    background-color: var(--branch-card-accent, var(--branch-choice-blue));
    content: "";
    pointer-events: none;
}

.branch-choice-card--midrand {
    --branch-card-accent: var(--branch-choice-blue);
}

.branch-choice-card--capetown {
    --branch-card-accent: var(--branch-choice-cape);
}

.branch-choice-card:hover,
.branch-choice-card:focus-within {
    border-color: var(--branch-card-accent, var(--branch-choice-blue));
    box-shadow: 0 24px 52px rgba(20, 56, 74, 0.16);
    transform: translateY(-4px);
}

.branch-choice-card__button {
    width: 100%;
    min-height: 348px;
    padding: 38px 36px 0;
    overflow: hidden;
    appearance: none;
    color: inherit;
    background: transparent;
    border: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font: inherit;
    text-align: left;
}

.branch-choice-card__button:focus {
    outline: 0;
}

.branch-choice-card__button:focus-visible {
    outline: 3px solid rgba(0, 140, 215, 0.45);
    outline-offset: -7px;
}

.branch-choice-card__number {
    position: absolute;
    top: 22px;
    right: 28px;
    color: #e7eff3;
    font-size: 54px;
    font-weight: 900;
    letter-spacing: -0.06em;
    line-height: 1;
}

.branch-choice-card__logo-wrap {
    display: flex;
    width: 230px;
    height: 58px;
    margin-bottom: 34px;
    align-items: center;
}

.branch-choice-card__logo {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 53px;
    object-fit: contain;
    object-position: left center;
}

.branch-choice-card__region {
    margin-bottom: 5px;
    color: var(--branch-card-accent, var(--branch-choice-blue));
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.branch-choice-card__location {
    margin-bottom: 13px;
    color: var(--branch-choice-ink);
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.branch-choice-card__description {
    max-width: 360px;
    margin-bottom: 28px;
    color: var(--branch-choice-muted);
    font-size: 15px;
    line-height: 1.65;
}

.branch-choice-card__action {
    width: calc(100% + 72px);
    min-height: 58px;
    margin: auto -36px 0;
    padding: 17px 24px 16px 36px;
    color: #ffffff;
    background-color: var(--branch-card-accent, var(--branch-choice-blue));
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.branch-choice-card__action span:last-child {
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    transition: transform 180ms ease;
}

.branch-choice-card:hover .branch-choice-card__action span:last-child,
.branch-choice-card:focus-within .branch-choice-card__action span:last-child {
    transform: translateX(5px);
}

.branch-choice-benefits {
    display: flex;
    justify-content: center;
    gap: 34px;
    margin: 30px 0 0;
    padding: 0;
    color: var(--branch-choice-muted);
    font-size: 13px;
    font-weight: 700;
    list-style: none;
}

.branch-choice-benefits li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.branch-choice-benefits li > span {
    width: 7px;
    height: 7px;
    background-color: var(--branch-choice-blue);
    display: inline-block;
}

.branch-choice-alert {
    max-width: 970px;
    margin: 0 auto 28px;
    padding: 14px 17px;
    color: #6f4b00;
    background-color: #fff8e7;
    border: 1px solid #e9c875;
    font-size: 14px;
    line-height: 1.55;
}

.branch-choice-alert--standalone {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .branch-choice-managed-banner--top {
        padding-top: 28px;
    }

    .branch-choice-managed-banner--bottom {
        padding-bottom: 32px;
    }

    .branch-choice-page {
        padding: 42px 0 48px;
    }

    .branch-choice-page__shape {
        top: -120px;
        right: -170px;
        transform: scale(0.8) rotate(18deg);
    }

    .branch-choice-heading {
        margin-bottom: 28px;
        text-align: left;
    }

    .branch-choice-heading h2 {
        font-size: 32px;
    }

    .branch-choice-heading p {
        font-size: 15px;
    }

    .branch-choice-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .branch-choice-card__button {
        min-height: 326px;
        padding: 34px 26px 0;
    }

    .branch-choice-card__number {
        right: 20px;
        font-size: 45px;
    }

    .branch-choice-card__logo-wrap {
        width: 205px;
        margin-bottom: 28px;
    }

    .branch-choice-card__location {
        font-size: 29px;
    }

    .branch-choice-card__action {
        width: calc(100% + 52px);
        margin-right: -26px;
        margin-left: -26px;
        padding-right: 22px;
        padding-left: 26px;
    }

    .branch-choice-benefits {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 12px 24px;
        margin-top: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .branch-choice-card,
    .branch-choice-card__action span:last-child {
        transition: none;
    }

    .branch-choice-card:hover,
    .branch-choice-card:focus-within,
    .branch-choice-card:hover .branch-choice-card__action span:last-child,
    .branch-choice-card:focus-within .branch-choice-card__action span:last-child {
        transform: none;
    }
}