.custom-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-popup-overlay.active {
    opacity: 1;
}

.custom-popup-content {
    width: 90%;
    max-width: 900px;
    background: #fff;
    display: flex;
    border-radius: 4px;
    /* Slightly rounded or square based on image */
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    min-height: 500px;
    /* Added min-height */
}

.custom-popup-overlay.active .custom-popup-content {
    transform: scale(1);
}

.custom-popup-image-column {
    width: 50%;
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 400px;
}

.custom-popup-content-column {
    width: 50%;
    /* background-color handled inline */
    color: #000;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    position: relative;
}

.custom-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: currentColor;
    cursor: pointer;
    z-index: 10;
    /* width/height removed to let SVG control size */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.3s;
    background: transparent;
    /* Ensure transparent */
    border: none;
    padding: 0;
}

.custom-popup-logo {
    max-width: 150px;
    margin-bottom: 25px;
}

.custom-popup-title {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.custom-popup-subtitle {
    font-size: 14px;
    margin-bottom: 30px;
    font-weight: 300;
    opacity: 0.8;
}

.custom-popup-description {
    font-size: 15px;
    margin-bottom: 40px;
    line-height: 1.5;
    font-weight: 300;
}

.custom-popup-form {
    width: 100%;
    margin-top: auto;
}

.custom-popup-input {
    width: 100%;
    padding: 10px 0;
    margin-bottom: 25px;
    border: none;
    border-bottom: 1px solid #ccc;
    /* Lighter border by default */
    border-radius: 0;
    font-size: 14px;
    box-sizing: border-box;
    background: transparent;
    color: inherit;
    /* Inherits text color from parent */
    outline: none;
    transition: border-color 0.3s;
}

.custom-popup-input::placeholder {
    color: #888;
    opacity: 1;
}

.custom-popup-input:focus {
    border-bottom-color: #000;
    /* Darker border on focus */
}

.custom-popup-submit {
    width: 100%;
    padding: 15px;
    /* background-color and color handled inline/dynamic */
    border: 1px solid currentColor;
    border-radius: 0;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

/* Hover handled dynamically */

/* Mobile Responsiveness */
.custom-popup-privacy {
    margin-bottom: 20px;
    font-size: 12px;
    text-align: left;
    color: inherit;
    width: 100%;
    opacity: 0.8;
}

.custom-popup-privacy label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    cursor: pointer;
}

.custom-popup-privacy input {
    margin: 0;
    cursor: pointer;
    width: 14px;
    height: 14px;
    border: 1px solid currentColor;
    border-radius: 50%;
    /* Rounded radio style for checkbox if desired, or square */
    border-radius: 0;
    appearance: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-popup-privacy input:checked {
    background-color: currentColor;
}

.custom-popup-privacy a {
    color: inherit;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .custom-popup-content {
        flex-direction: column;
        width: 90%;
        max-width: 450px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .custom-popup-image-column {
        width: 100%;
        min-height: 200px;
        height: 200px;
        flex-shrink: 0;
        order: 1;
    }

    .custom-popup-content-column {
        width: 100%;
        padding: 30px 20px;
        box-sizing: border-box;
        order: 2;
    }

    .custom-popup-title {
        font-size: 20px;
    }

    .custom-popup-close {
        top: 15px;
        right: 15px;
        width: 30px;
        height: 30px;
        background: rgba(255, 255, 255, 0.8);
        /* readable on image if overlapping, or white bg on content */
        border-radius: 50%;
        color: #000;
    }
}