.mem-form-wrapper {
    max-width: 620px;
    margin: 20px auto;
    padding: 10px;
}

.mem-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.mem-form h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.mem-form p {
    margin-bottom: 15px;
}

.mem-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #444;
}

.mem-form input[type="text"],
.mem-form input[type="tel"],
.mem-form input[type="email"],
.mem-form textarea,
.mem-form select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.mem-form textarea {
    height: 100px;
    resize: vertical;
}

.mem-form button {
    background-color: #00B1AB;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}

.mem-form button:hover {
    background-color: #d902b5;
}

/* Styling for the remove image button in the sell query form */
.mem-remove-image-btn {
    position: absolute;
    top: 0px; /* Adjust top position */
    right: 0px; /* Adjust right position */
    background: rgb(0, 159, 187); /* Background color */
    color: white !important; /* Text color */
    border: none;
    border-radius: 50%; /* Make the button circular */
    width: 20px !important; /* Size of the circular button */
    height: 20px; /* Size of the circular button */
    line-height: 20px; /* Vertically center the 'X' */
    text-align: center;
    cursor: pointer !important;
    z-index: 10;
    font-size: 14px !important; /* Adjust the font size for the 'X' */
    font-weight: bold; /* Bold text */
    display: flex;
    justify-content: center;
    align-items: center;
}

.mem-remove-image-btn:hover {
    background: rgb(0, 139, 167);
}


.mem-form .success-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    transition: opacity 0.5s ease;
}

.wp-list-table .image-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.wp-list-table .image-thumbnails img {
    max-width: 50px;
    max-height: 50px;
    object-fit: cover;
    border: 1px solid #ccc;
}

@media (max-width: 600px) {
    .mem-form {
        padding: 15px;
        margin: 0 -25px;
    }
    .mem-form-wrapper {
        margin: 10px;
        padding: 5px;
    }
}

/* Magnific Popup custom styles */
.mem-popup {
    background: var(--theme-palette-color-8, #fff);
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
    border-radius: var(--theme-border-radius, 5px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}
.mem-form-wrapper h1 {
    background-color: #01bec3;
    color: #ffff;
    padding: 10px 0px 15px 0px;
    border-radius: 10px;
    font-family: var(--theme-font-family, sans-serif);
}
.mem-form p {
    margin-bottom: 15px;
}
.mem-form label {
    display: block;
    font-weight: bold;
    color: var(--theme-text-color, #000);
}
.mem-form input[type="text"],
.mem-form input[type="tel"],
.mem-form input[type="email"],
.mem-form textarea,
.mem-form select {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--theme-border-color, #ccc);
    border-radius: var(--theme-border-radius, 3px);
}
.mfp-zoom-in .mfp-content {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease-in-out;
}
.mfp-zoom-in.mfp-bg {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.mfp-zoom-in.mfp-ready .mfp-content {
    opacity: 1;
    transform: scale(1);
}
.mfp-zoom-in.mfp-ready.mfp-bg {
    opacity: 0.8;
}
.mfp-zoom-in.mfp-removing .mfp-content {
    opacity: 0;
    transform: scale(0.8);
}
.mfp-zoom-in.mfp-removing.mfp-bg {
    opacity: 0;
}