/* Overlay */
#mpf-popup-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
}

/* Popup */
#mpf-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 700px;
    max-width: 95%;
    border-radius: 10px;
    z-index: 9999;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Popup content layout */
.mpf-popup-content {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

/* Left section (form) */
.mpf-left {
    flex: 1;
    padding: 30px;
    background: #111;
    color: #fff;
}

.mpf-left h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #fff;
}

.mpf-left p {
    color: #ccc;
    margin-bottom: 15px;
}

.mpf-left input[type="text"],
.mpf-left input[type="email"] {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: none;
    border-radius: 5px;
}

.mpf-left button {
    background: #e60000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.mpf-left button:hover {
    background: #ff1a1a;
}

/* Terms label */
.mpf-terms {
    display: block;
    font-size: 0.9em;
    margin: 10px 0;
}

.mpf-terms a {
    color: #fff;
    text-decoration: underline;
}

/* Right section (image) */
.mpf-right {
    flex: 1;
    background: #222;
}

.mpf-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Close button (top right) */
#mpf-close {
    position: absolute;
    top: 12px;
    right: 18px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2em;
    line-height: 1;
    cursor: pointer;
    z-index: 10000;
    font-weight: bold;
    transition: color 0.3s ease;
}

#mpf-close:hover {
    color: #ff5555;
}

@media (max-width: 600px) {
    .mpf-popup-content {
        flex-direction: column;
    }
    .mpf-right img {
        height: 200px;
    }
}
