/* Scope everything to avoid theme conflicts */
.nexlyr-popup .modal-content {
    border-radius: 16px;
    padding: 0;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    /* overflow: hidden; */
}

/* Modal body spacing */
.nexlyr-popup .modal-body {
    padding: 15px;
}

.nexlyr-popup .wpcf7-form-control {
    margin-bottom: 15px;
    padding: 5px 10px !important;
    font-size: 13px;
    width: 100%;
    max-height: 40px;
    border-radius: 10px !important;
}

.nexlyr-popup .wpcf7-submit {
    width: 100%;
    margin-bottom: 0;
    height: 33px;
}

/* Close button */
.nexlyr-popup .btn-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
}

/* Custom close (if using your own button) */
.nexlyr-popup .nexlyr-close {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #333;
}

/* Image styling inside popup */
.nexlyr-popup img {
    max-width: 100%;
    border-radius: 0;
    margin-bottom: 0;
}

.nexlyr-popup .modal-header {
    border: none;
    padding: 0;
}

/* Text styling */
.nexlyr-popup p {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 0;
}

.nexlyr-popup .wp-block-columns {
    margin: 0;
}

/* Headings */
.nexlyr-popup h1,
.nexlyr-popup h2,
.nexlyr-popup h3 {
    margin-bottom: 10px;
}

/* Buttons inside popup */
.nexlyr-popup .wp-block-button__link,
.nexlyr-popup button {
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 500;
}

/* Overlay tweak (Bootstrap override) */
.modal-backdrop.show {
    opacity: 0.6;
}

/* Center modal nicely */
.nexlyr-popup .modal-dialog {
    max-width: 500px;
    margin: auto;
}

nexlyr-popup .modal-content {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.nexlyr-popup.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.nexlyr-popup .wp-block-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.nexlyr-popup .wp-block-column {
    flex: 1;
    min-width: 0;
}

/* Fix overflow inside modal */
.nexlyr-popup .modal-body {
    /* overflow: hidden;     */
}

.modal-header .btn-close {
    position: absolute;
    right: -9px;
    top: -17px;
    background-color: #FFF;
    color: #000 !important;
    border-radius: 30px;
    font-size: 12px;
}

/* Fix buttons inside columns */
.nexlyr-popup .wp-block-button {
    margin-top: 10px;
}

.nexlyr-popup h4 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.7;
    margin: 0 0 15px;
}

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

    .nexlyr-popup .modal-content {
        padding: 15px;
    }

    .nexlyr-popup .wp-block-columns {
        flex-direction: column;
    }

}