﻿
.modal-dialog-centered {
    align-items: baseline !important;
}

/* Blur background */
.modal-backdrop.show {
    opacity: 0.5;
}

.modal-backdrop
{
    height:0 !important;
}
/* Dialog */
.custom-modal-dialog {
    max-width: 700px;
    width: 95%;
}

/* Content */
.custom-modal-content {
    border: none;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,.15);
}

/* Header */
.custom-modal-header {
    background: #FCF1EE;
    color: #9a0101;
    border-bottom: none;
    padding: 20px 24px;
    position: relative;
}

    /* Title */
    .custom-modal-header .modal-title {
        width: 100%;
        text-align: center;
        font-size: 1.4rem;
        font-weight: 700;
        color: #9a0101;
        margin: 0;
    }

/* Close button */
.custom-close-btn {
    position: absolute;
    top: 22px;
    right: 22px;
    font-size: 14px;
    opacity: 1;
}

/* Body */
.modal-body {
    padding: 30px 40px;
}

    .modal-body p {
        margin: 0;
        color: #4a4a4a;
        font-size: 1rem;
        line-height: 1.7;
    }

/* Footer */
.modal-footer {
    padding-bottom: 30px;
}

    .modal-footer .btn-danger {
        min-width: 120px;
        border-radius: 0px;
        font-weight: 600;
    }
@media (max-width: 768px) {

    .custom-modal-dialog {
        width: calc(100% - 20px);
        margin: 10px;
    }

    .custom-modal-header {
        padding: 16px 20px;
    }

        .custom-modal-header .modal-title {
            font-size: 1.4rem;
            padding-right: 30px;
        }

    .custom-close-btn {
        top: 16px;
        right: 16px;
    }

    .modal-body {
        padding: 20px;
    }

        .modal-body p {
            font-size: 15px;
            line-height: 1.5;
        }

    .modal-footer .btn-danger {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {

    .custom-modal-header .modal-title {
        font-size: 20px;
    }

    .modal-body p {
        font-size: 14px;
    }
}