/* Modern Glassmorphism Overlay */
.premium-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.premium-modal-container {
    background: #ffffff;
    width: 95%;
    max-width: 440px;
    padding: 25px 35px;
    border-radius: 24px;
    position: relative;
    transform: translateY(40px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25);
}

.premium-modal-overlay.active .premium-modal-container {
    transform: translateY(0) scale(1);
}

/* Close Button */
.premium-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f8fafc;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.premium-close-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* Form Aesthetics */
.premium-modal-content h2 {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.premium-modal-content p {
    color: #64748b;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.4;
}

.premium-form-group {
    margin-bottom: 12px;
}

.premium-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premium-form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s;
}

.premium-form-group input:focus {
    outline: none;
    border-color: #494CC1;
    box-shadow: 0 0 0 4px rgba(73, 76, 193, 0.1);
}

.premium-submit-btn {
    width: 100%;
    padding: 16px;
    background: #494CC1;
    /* Matching your logo blue */
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.premium-submit-btn:hover {
    background: #3739a3;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(73, 76, 193, 0.2);
}

.premium-submit-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
}

/* Shortcode Button Style */
.modal-trigger-btn {
    padding: 14px 30px;
    background: #494CC1;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: 0.3s;
}

/* Mobile Responsive Adjustments */
@media screen and (max-width: 480px) {
    .premium-modal-container {
        padding: 30px 20px;
        width: 90%;
        border-radius: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .premium-modal-content h2 {
        font-size: 22px;
        margin-bottom: 5px;
    }

    .premium-modal-content p {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .premium-form-group input {
        padding: 12px 14px;
        font-size: 16px; /* Prevents iOS auto-zoom on focus */
    }

    .premium-submit-btn {
        padding: 14px;
        font-size: 15px;
    }
}

/* Landscape orientation on small devices */
@media screen and (max-height: 500px) {
    .premium-modal-container {
        max-height: 95vh;
        overflow-y: auto;
        padding: 20px;
    }
    
    .premium-modal-content p {
        margin-bottom: 15px;
    }
}