
/* CSS for Modal  */
.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    display: flex;
}

.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px; /* Increase max width */
    position: relative;
    z-index: 1001;
    box-sizing: border-box;
    overflow: hidden;
    min-height: 400px;
    max-height: 85vh; /* Set max height based on viewport height */
    border-radius: 10px;
    padding-top: 30px;
    display: flex;
    flex-direction: column;
}

.close-modal {
    background: none;
    border: none;
    font-size: 30px;
    color: #333;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1002; /* Ensure it's above everything */
}

.close-modal:hover {
    color: #ff0000;
}

.modal-body {
    flex-grow: 1; /* Takes remaining space */
    max-height: calc(85vh - 80px); /* Adjust height dynamically */
    overflow-y: auto; /* Scroll only when needed */
}
.nf-form-hp {
    display: none !important;
}


/* Responsive Styles */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: 500px;
        padding-top: 40px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 90vh;
        padding: 20px 10px;
    }

    .modal-body {
        max-height: calc(90vh - 80px);
    }

    .close-modal {
        font-size: 28px;
    }
}

.flex-wrap {
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}
.flex {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}
