/* custom css start for branch modal */
.branch_modal .modal-dialog {
    max-width: 520px;
}
.branch-modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,.20);
}

/* Header */
.branch-modal-header {
    background: #1b386e;
    padding: 20px 25px;
    justify-content: center;
    border: none;
}

.branch-logo {
    max-height: 65px;
    width: auto;
    object-fit: contain;
}

/* Body */
.branch-modal-body {
    padding: 35px 30px !important;
    background: #fff;
}

.branch-heading {
    margin-bottom: 25px;
}

.branch-heading-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f7f1e6;
    color: #b89455;
    font-size: 20px;
    margin-bottom: 12px;
}

.branch-heading h5 {
    color: #1b386e;
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 8px;
}

.branch-heading p {
    color: #777;
    font-size: 14px;
    margin: 0;
}

/* Branch cards */
.branch-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.branch-option {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding: 17px 13px;
    border: 1px solid #e5e5e5;
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
    margin: 0;
    text-align: left;
    transition: all .25s ease;
}

.branch-option:hover {
    border-color: #b89455;
    background: #fcfaf6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,.06);
}

/* Hide default radio */
.branch-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Custom radio */
.branch-radio {
    width: 19px;
    height: 19px;
    min-width: 19px;
    border: 2px solid #c8c8c8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}

.branch-option input:checked + .branch-radio {
    border-color: #b89455;
}

.branch-option input:checked + .branch-radio::after {
    content: "";
    width: 9px;
    height: 9px;
    background: #b89455;
    border-radius: 50%;
}

/* Branch name */
.branch-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    flex: 1;
}

/* Arrow */
.branch-arrow {
    color: #b89455;
    font-size: 12px;
    opacity: 0;
    transition: all .2s ease;
}

/* Selected card */
.branch-option:has(input:checked) {
    border: 1.5px solid #b89455;
    background: #fcf9f2;
    box-shadow: 0 4px 15px rgba(184,148,85,.12);
}

.branch-option:has(input:checked) .branch-name {
    color: #1b386e;
}

.branch-option:has(input:checked) .branch-arrow {
    opacity: 1;
}

/* Footer */
.branch-footer {
    color: #999;
    font-size: 12px;
    margin-top: 25px;
}

.branch-footer i {
    color: #b89455;
    margin-right: 5px;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .branch-modal-body {
        padding: 25px 18px !important;
    }
    .branch-options {
        grid-template-columns: 1fr;
    }
    .branch-heading h5 {
        font-size: 19px;
    }
}
/* custom css end for branch modal */
