/* assets/css/mcf-popup-styles.css */

/* Button Styling (Optional - make it look nice!) */
.mcfp-open-popup-btn {
    display: inline-block;
    padding: 12px 25px;
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    background-color: #0073aa; /* WordPress blue */
    border: none;
    border-radius: 8px; /* Rounded corners */
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    font-family: "Inter", sans-serif; /* Recommended font */
}

.mcfp-open-popup-btn:hover {
    background-color: #005f88;
    transform: translateY(-2px);
}

.mcfp-open-popup-btn:active {
    background-color: #004c6e;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}


/* Popup Overlay */
.mcfp-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Dark semi-transparent background */
    display: flex; /* Use flexbox for centering */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    z-index: 9999; /* Ensure it's on top of other content */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mcfp-popup-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* Popup Content Box */
.mcfp-popup-content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px; /* More rounded corners */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Stronger shadow */
    position: relative;
    max-width: 90%; /* Responsive width */
    width: 500px; /* Max width for desktop */
    box-sizing: border-box; /* Include padding in width calculation */
    transform: translateY(20px); /* Start slightly below center */
    transition: transform 0.3s ease;
}

.mcfp-popup-overlay.is-active .mcfp-popup-content {
    transform: translateY(0); /* Slide up into place */
}

/* Close Button */
.mcfp-popup-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.mcfp-popup-close-btn:hover {
    color: #333;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .mcfp-popup-content {
        padding: 20px;
        width: 95%; /* Adjust width for smaller screens */
    }
    .mcfp-open-popup-btn {
        font-size: 16px;
        padding: 10px 20px;
    }
}

/* Ensure Inter font is available, if not, fallback */
body {
    font-family: "Inter", sans-serif;
}
/* You might need to add a font-import if Inter is not universally available, e.g., via Google Fonts */
/*
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');
*/