﻿/* Pop-up Styles */
.mk-custom-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s ease-in-out;
}
.mk-custom-popup.active {
    visibility: visible;
    opacity: 1;
}
.mk-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    cursor: pointer;
}
.mk-popup-content {
    position: relative;
    background: #ffffff;
    width: 90%;
    max-width: 600px;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 100000;
    max-height: 90vh;
    overflow-y: auto;
}
.mk-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #333;
    text-decoration: none;
    line-height: 1;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}
.mk-popup-close:hover {
    color: #000;
}
.mk-popup-title {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-family: var(--wp--preset--font-family--open-sans, sans-serif);
    text-align: center;
}

/* Fluent Forms Integration Styles */
.mk-custom-popup .ff-el-form-control {
    border-radius: 8px !important;
    border: 1px solid rgba(149, 117, 205, 0.3) !important;
    padding: 0.8rem !important;
    background-color: #fff !important;
    transition: all 0.3s ease !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    font-family: inherit !important;
}

.mk-custom-popup .ff-el-form-control:focus {
    border-color: var(--wp--preset--color--primary, #9575cd) !important;
    box-shadow: 0 0 0 3px rgba(149, 117, 205, 0.2) !important;
    outline: none !important;
}

.mk-custom-popup .ff-btn-submit {
    background-color: var(--wp--preset--color--tertiary) !important; /* Theme yellow button color based on standard premium-pill-btn */
    color: #000 !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    padding: 1rem 2rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border: none !important;
    display: inline-block !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.mk-custom-popup .ff-btn-submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
    background-color: #fff176 !important;
}

.mk-custom-popup .ff-el-group {
    margin-bottom: 1.2rem !important;
}

/* Remove default fluent forms margins/borders that might conflict */
.mk-custom-popup .fluentform {
    margin-top: 1rem !important;
}

