.custom-modal-top {
    margin-top: 1% !important;
}

.custom-alert-modal {
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    font-family: Lato;
}

.custom-alert-header {
    background-color: #37385c;
    color: #fff;
    padding: 16px 20px;
}

.custom-alert-header h5 {
    margin: 0;
    font-size: 18px;
}

.custom-alert-body {
    padding: 20px;
    padding-bottom: 1px;
    color: #37385c;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-height: 75vh;
    overflow-y: auto;
}

/* Alert box */
.alert-box {
    background-color: #f8f8fb;
    border-left: 4px solid #ec743f;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.alert-box ul {
    padding-left: 18px;
    margin: 10px 0 0;
}

.alert-box li,
.list-contact li {
    font-size: 14px;
    margin-bottom: 6px;
    line-height: 1.4;
}

.list-contact {
    padding-left: 18px;
}

/* Modal */
.modal-dialog {
    max-width: 670px;
    width: 95%;
    margin: auto;
}

.modal-content {
    overflow-x: hidden;
}

/* RBI Style */
.rbi-alert-body {
    padding: 18px;
    color: #333;
}

.rbi-alert-header {
    font-size: 15px;
    font-weight: 700;
    color: #b30000;
    margin-bottom: 10px;
}

.rbi-alert-text {
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.rbi-alert-box {
    background: #fff4f4;
    border-left: 4px solid #b30000;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.rbi-alert-box ul {
    padding-left: 18px;
    margin: 6px 0 0;
}

.rbi-alert-box li {
    font-size: 14px;
    margin-bottom: 5px;
}

.rbi-contact {
    font-size: 14px;
    margin-bottom: 8px;
}

.rbi-contact p {
    margin-bottom: 4px;
}

.rbi-contact a {
    color: #b30000;
    text-decoration: none;
}

.rbi-warning {
    font-size: 16px;
    font-weight: 600;
    color: #b30000;
}

/* Contact line */
.contact-line {
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    margin-left: 5px;
    margin-bottom: 4px;
}

.contact-fa {
    color: #b30000;
    font-size: 12px;
    margin-right: 6px;
    margin-top: 3px;
}

/* Responsive */
@media (max-width: 992px) {
    .modal-dialog {
        max-width: 90%;
    }
}

@media (max-width: 576px) {

    .modal-dialog {
        margin: 8px;
        max-width: 95%;
    }

    .custom-alert-header {
        padding: 12px 14px;
    }

    .custom-alert-header h5 {
        font-size: 13px;
        line-height: 1.4;
    }

    .custom-alert-body {
        padding: 12px;
        max-height: 65vh;
    }

    .rbi-alert-text {
        font-size: 13px;
    }

    .rbi-alert-box {
        padding: 8px;
    }

    .rbi-alert-box li {
        font-size: 12.5px;
    }

    .contact-line {
        font-size: 12.5px;
    }

    .contact-fa {
        font-size: 11px;
    }

    .rbi-warning {
        font-size: 13px;
        text-align: center;
    }
}