
.ame-optin-modal {
    display: none; 
    position: fixed; 
    z-index: 99999; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.4); 
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ame-optin-modal.show {
    opacity: 1;
}

.ame-optin-content {
    background-color: #0b0b0b;
    margin: 10% auto; 
    padding: 0;
    border: 1px solid #333;
    width: 70%; 
    max-width: 680px;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    display: flex;
    overflow: hidden;
    color: #fff;
}

.ame-optin-close {
    color: #888;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.ame-optin-close:hover,
.ame-optin-close:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.ame-optin-columns {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.ame-optin-left {
    flex: 0 0 50%;
    width: 50%;
    background-color: #121212;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ame-optin-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ame-optin-right {
    flex: 0 0 50%;
    width: 50%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ame-optin-right h2 {
    margin-top: 0;
    color: #fff;
    margin-bottom: 10px;
}

.ame-optin-right p {
    color: #aaa;
    margin-bottom: 20px;
}

.ame-form-group {
    margin-bottom: 15px;
}

.ame-form-group input {
    width: 100%;
    padding: 12px 16px !important;
    font-size: 14px !important;
    background-color: #1a1a1a !important;
    border: 1px solid #333 !important;
    border-radius: 6px !important;
    color: #fff !important;
    outline: none;
    transition: border-color 0.3s;
}

.ame-form-group input:focus {
    border-color: #7b2cbf;
}

.ame-optin-right button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #7b2cbf 0%, #3a0ca3 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: opacity 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ame-optin-right button:hover {
    opacity: 0.9;
}

#ame-optin-message {
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
}

.ame-optin-text-content {
    padding: 30px;
    font-size: 1.8em;
    font-weight: bold;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #121212 0%, #1a1a1a 100%);
}

.ame-optin-footer-text {
    font-size: 1.1em;
    text-align: center;
    margin-top: 10px;
    display: none;
}

@media (max-width: 768px) {
    .ame-optin-columns {
        flex-direction: column;
    }
    .ame-optin-left {
        display: flex;
        width: 100%;
        min-height: 200px;
        flex: 1 1 auto;
    }

    .ame-optin-right {
        padding: 15px;
        width: 100%;
        flex: 1 1 auto;
    }

    .ame-optin-right h2 {
        margin-bottom: 0px;
    }

    .ame-optin-text-content {
        font-size: 1.4em;
        padding: 20px;
    }
}

/* Fix for landscape mobile devices (short height) */
@media (max-height: 500px) and (orientation: landscape) {
    .ame-optin-content {
        margin: 2% auto;
        width: 90%;
        max-width: 700px;
    }
    
    .ame-optin-columns {
        flex-direction: row; /* Force side-by-side */
    }

    .ame-optin-left {
        width: 40%;
        flex: 0 0 40%;
        min-height: auto;
    }

    .ame-optin-right {
        width: 60%;
        flex: 0 0 60%;
        padding: 20px;
    }
}
