/* Modal overlay */
.qb-form-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
    z-index: 1000;
    display: none; /* Initially hidden */
    overflow-y: auto; /* Allows scrolling if content is too tall */
}

/* Modal content */
.wp-dialog-content {
    position: relative;
    margin: 10% auto;
    padding: 20px;
    width: 500px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    max-width: 90%; /* Ensures it doesn't overflow horizontally */
}

/* Modal header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 10px;
}

/* Close button in modal */
.modal-close-btn {
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: #333;
}

/* Modal body */
.modal-body {
    padding-top: 15px;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .wp-dialog-content {
        width: 90%; /* Adjust the modal width for smaller devices */
        margin: 20% auto; /* Adjust top margin for mobile screens */
    }
}
