/**
 * ===================================================================
 * Unlock Addons for Elementor: Email Capture Widget Template Styles
 * Redesigned for an Awesome & Attractive Look
 * 
 * TABLE OF CONTENTS:
 * -------------------------------------------------------------------
 * 1.  Base Styles (for all templates)
 * 2.  Template 1: Default (New & Clean)
 * 3.  Template 2: Promotion (Vibrant Gradient)
 * 4.  Template 3: Special Offer (Bold & Green)
 * 5.  Template 4: Newsletter (Professional & Blue)
 * 6.  Template 5: Exit Intent (Dark & High Contrast)
 * 7.  Template 6: Glassmorphism (Frosted Glass Effect)
 * 8.  Template 7: Neon Cyber (Futuristic Glow)
 * 9.  Template 8: Minimal Zen (Simple & Elegant)
 * 10. Template 9: Gaming (Pixel Art & Retro)
 * 11. Template 10: Social Media (Clean & Corporate)
 * 12. Template 11: Black Friday (Bold & Urgent)
 * 13. Template 12: Crypto/Web3 (Modern & Techy)
 * 14. Template 13: Gradient Mesh (Artistic & Smooth)
 * 15. Template 14: Neumorphism (Soft UI)
 * 16. Modal Styles
 * 17. Keyframe Animations
 * 18. Form Messages (Success/Error)
 * 19. Responsive Styles
 * ===================================================================
 */

/*
 * -------------------------------------------------------------------
 * 1. Base Styles (for all templates)
 * -------------------------------------------------------------------
 * These are the foundational styles that apply to all templates unless
 * overridden by a specific template's styles.
 * ------------------------------------------------------------------- 
 */
.unlockafe-email-capture-form {
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease-in-out;
}

.unlockafe-email-capture-form .form-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.unlockafe-email-capture-form .form-description {
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.7;
    color: #555;
}

.unlockafe-email-capture-form .form-group,
.unlockafe-email-capture-form .unlockaddons-emailcapture-form-group {
    margin-bottom: 20px;
}

.unlockafe-email-capture-form .unlockaddons-emailcapture-input-field {
    width: 100%;
    box-sizing: border-box;
    min-height: 52px;
    padding: 16px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.unlockafe-email-capture-form .unlockaddons-emailcapture-input-field::placeholder {
    color: #999;
}

.unlockafe-email-capture-form .unlockaddons-emailcapture-input-field:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
    outline: none;
}

.unlockafe-email-capture-form .submit-button {
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    background-color: #007bff;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.unlockafe-email-capture-form .submit-button:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.2);
}

.unlockafe-email-capture-form .submit-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}

.unlockafe-email-capture-form .form-message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    display: none;
    font-size: 14px;
}

.unlockafe-email-capture-form .form-message.success {
    background-color: #e6f7f0;
    color: #0d6a44;
    border: 1px solid #b3e6d1;
}

.unlockafe-email-capture-form .form-message.error {
    background-color: #fdecea;
    color: #b32d2e;
    border: 1px solid #f8c4c5;
}

/*
 * -------------------------------------------------------------------
 * 2. Template 1: Default (New & Clean)
 * -------------------------------------------------------------------
 * A clean, modern, and versatile template that relies on the base 
 * styles. It's a great starting point for customization.
 * ------------------------------------------------------------------- 
 */


/*
 * -------------------------------------------------------------------
 * 3. Template 2: Promotion (Vibrant Gradient)
 * -------------------------------------------------------------------
 * An eye-catching template with a warm, vibrant gradient perfect for
 * promotions and special announcements.
 * ------------------------------------------------------------------- 
 */
.ua-template-promotion {
    background: linear-gradient(45deg, #ff7e5f, #feb47b) !important;
    border: none !important;
    color: #fff !important;
}
 
.ua-template-promotion .form-title {
    color: #fff !important;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}
 
.ua-template-promotion .form-description {
    color: rgba(255, 255, 255, 0.9) !important;
}
 
.ua-template-promotion .unlockaddons-emailcapture-name-input-field,
.ua-template-promotion .unlockaddons-emailcapture-email-input-field {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #fff !important;
}
 
.ua-template-promotion .unlockaddons-emailcapture-input-field::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}
 
.ua-template-promotion .unlockaddons-emailcapture-input-field:focus {
    background-color: rgba(255, 255, 255, 0.3) !important;
    border-color: #fff !important;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}
 
.ua-template-promotion .submit-button {
    background-color: #fff !important;
    color: #ff7e5f !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
 
.ua-template-promotion .submit-button:hover {
    background-color: #fff !important;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}


/*
 * -------------------------------------------------------------------
 * 4. Template 3: Special Offer (Bold & Green)
 * -------------------------------------------------------------------
 * A design focused on offers and discounts, using green to evoke a
 * sense of positivity and growth.
 * ------------------------------------------------------------------- 
 */
/*
 * -------------------------------------------------------------------
 * 4. Template 3: Special Offer (Bold & Green)
 * -------------------------------------------------------------------
 * A design focused on offers and discounts, using green to evoke a
 * sense of positivity and growth.
 * ------------------------------------------------------------------- 
 */
.ua-template-offer {
    background-color: #f0fff4 !important;
    border: 2px solid #28a745 !important;
    color: #28a745 !important;
}
.ua-template-offer .form-title { color: #28a745 !important; }
.ua-template-offer .form-description { color: #555 !important; }
.ua-template-offer .unlockaddons-emailcapture-input-field:focus { border-color: #28a745 !important; box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.1) !important; }
.ua-template-offer .submit-button { background-color: #28a745 !important; color: #fff !important; }
.ua-template-offer .submit-button:hover { background-color: #218838 !important; box-shadow: 0 8px 20px rgba(40, 167, 69, 0.2); }

/* --- 4. Newsletter (Modern & Blue) --- */
/*
 * -------------------------------------------------------------------
 * 5. Template 4: Newsletter (Professional & Blue)
 * -------------------------------------------------------------------
 * A clean and professional design suitable for newsletter sign-ups,
 * using a classic blue color scheme.
 * ------------------------------------------------------------------- 
 */
.ua-template-newsletter {
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
}
.ua-template-newsletter .form-title { color: #007bff !important; }
.ua-template-newsletter .form-description { color: #495057 !important; }
.ua-template-newsletter .unlockaddons-emailcapture-input-field { border-color: #ced4da !important; }
.ua-template-newsletter .unlockaddons-emailcapture-input-field:focus { border-color: #007bff !important; box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1) !important; }
.ua-template-newsletter .submit-button { background-color: #007bff !important; color: #fff !important; }
.ua-template-newsletter .submit-button:hover { background-color: #0056b3 !important; }

/* --- 5. Exit Intent (Dark & Urgent) --- */
/*
 * -------------------------------------------------------------------
 * 6. Template 5: Exit Intent (Dark & High Contrast)
 * -------------------------------------------------------------------
 * A high-contrast, dark-themed design intended to grab the user's
 * attention, often used with exit-intent triggers.
 * ------------------------------------------------------------------- 
 */
.ua-template-exit_intent {
    background-color: #343a40 !important;
    color: #f8f9fa !important;
    border: 1px solid #495057 !important;
}
.ua-template-exit_intent .form-title { color: #ffc107 !important; text-shadow: 0 0 10px rgba(255, 193, 7, 0.3); }
.ua-template-exit_intent .form-description { color: #adb5bd !important; }
.ua-template-exit_intent .unlockaddons-emailcapture-input-field {
    background-color: #495057 !important;
    border-color: #6c757d !important;
    color: #f8f9fa !important;
}
.ua-template-exit_intent .unlockaddons-emailcapture-input-field::placeholder { color: #adb5bd !important; }
.ua-template-exit_intent .unlockaddons-emailcapture-input-field:focus {
    border-color: #ffc107 !important;
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.2) !important;
}
.ua-template-exit_intent .submit-button {
    background-color: #ffc107 !important;
    color: #212529 !important;
    font-weight: 800;
}
.ua-template-exit_intent .submit-button:hover {
    background-color: #ffca2c !important;
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.25);
}

/* --- 6. Glassmorphism (Futuristic Blur) --- */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}
/*
 * -------------------------------------------------------------------
 * 7. Template 6: Glassmorphism (Frosted Glass Effect)
 * -------------------------------------------------------------------
 * A modern design that uses a frosted-glass effect with a background
 * blur, creating a sense of depth and translucency.
 * ------------------------------------------------------------------- 
 */
.ua-template-glassmorphism {
    background: rgba(30, 30, 40, 0.6) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.125) !important;
    color: #fff !important;
}
.ua-template-glassmorphism .form-title { color: #fff !important; text-shadow: 1px 1px 10px rgba(0,0,0,0.3); }
.ua-template-glassmorphism .form-description { color: rgba(255,255,255,0.8) !important; }
.ua-template-glassmorphism .unlockaddons-emailcapture-input-field {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}
.ua-template-glassmorphism .unlockaddons-emailcapture-input-field::placeholder { color: rgba(255,255,255,0.6) !important; }
.ua-template-glassmorphism .unlockaddons-emailcapture-input-field:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1) !important;
}
.ua-template-glassmorphism .submit-button {
    background: linear-gradient(45deg, rgba(255,255,255,0.2), rgba(255,255,255,0.4)) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.5) !important;
    position: relative;
    overflow: hidden;
}
.ua-template-glassmorphism .submit-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}
.ua-template-glassmorphism .submit-button:hover:before {
    left: 100%;
}

/*
 * -------------------------------------------------------------------
 * 8. Template 7: Neon Cyber (Futuristic Glow)
 * -------------------------------------------------------------------
 * A futuristic, cyberpunk-inspired design featuring a glowing neon
 * border and a dark, techy aesthetic.
 * ------------------------------------------------------------------- 
 */
@keyframes neon-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 0 0 5px #00aaff, 0 0 10px #00aaff, 0 0 20px #00aaff, 0 0 40px #0077cc, 0 0 80px #0077cc, 0 0 90px #0077cc, 0 0 100px #0077cc, 0 0 150px #0077cc;
        box-shadow: 0 0 5px rgba(0,170,255,0.8), inset 0 0 5px rgba(0,170,255,0.8);
    }
    20%, 24%, 55% {
        text-shadow: none;
        box-shadow: none;
    }
}
/*
 * -------------------------------------------------------------------
 * 8. Template 7: Neon Cyber (Futuristic Glow)
 * -------------------------------------------------------------------
 * A futuristic, cyberpunk-inspired design featuring a glowing neon
 * border and a dark, techy aesthetic.
 * ------------------------------------------------------------------- 
 */
.ua-template-neon_cyber {
    background: #010c1b;
    color: #cceeff !important;
    font-family: 'Orbitron', sans-serif;
    animation: neon-flicker 10s infinite alternate;
}
.ua-template-neon_cyber .form-title { color: #00ffdd !important; text-shadow: 0 0 10px #00ffdd, 0 0 20px #00ffdd; }
.ua-template-neon_cyber .form-description { color: #c0c0c0 !important; }
.ua-template-neon_cyber .unlockaddons-emailcapture-input-field {
    background-color: rgba(0, 170, 255, 0.1);
    border: 1px solid rgba(0, 170, 255, 0.4);
    color: #cceeff;
}
.ua-template-neon_cyber .unlockaddons-emailcapture-input-field::placeholder { color: #a0a0a0 !important; }
.ua-template-neon_cyber .unlockaddons-emailcapture-input-field:focus {
    border-color: #e94560 !important;
    box-shadow: 0 0 15px rgba(233, 69, 96, 0.5) !important;
}
.ua-template-neon_cyber .submit-button {
    background-color: transparent !important;
    color: #00aaff !important;
    border: 1px solid #00aaff;
    text-shadow: 0 0 5px #00aaff;
}
.ua-template-neon_cyber .submit-button:hover {
    background-color: #00aaff !important;
    color: #010c1b !important;
    box-shadow: 0 0 20px #00aaff !important;
}

/*
 * -------------------------------------------------------------------
 * 8. Template 8: Minimal Zen (Elegant & Simple)
 * -------------------------------------------------------------------
 */
.ua-template-minimal_zen {
    background-color: #f4f7f6 !important;
    color: #555 !important;
    font-family: 'Lato', sans-serif;
}
.ua-template-minimal_zen .form-title { color: #333 !important; }
.ua-template-minimal_zen .unlockaddons-emailcapture-input-field {
    background-color: #fff !important;
    border: 1px solid #ddd !important;
    color: #555 !important;
}
.ua-template-minimal_zen .submit-button {
    background-color: #333 !important;
    color: #fff !important;
}

/*
 * -------------------------------------------------------------------
 * 9. Template 9: Black Friday (Bold & Urgent)
 * -------------------------------------------------------------------
 */
.ua-template-black_friday {
    background-color: #111 !important;
    color: #fff !important;
    border: 4px dashed #ffff00 !important;
    font-family: 'Anton', sans-serif;
}
.ua-template-black_friday .form-title { color: #ffff00 !important; }
.ua-template-black_friday .unlockaddons-emailcapture-input-field {
    background-color: #333 !important;
    border: 2px solid #555 !important;
    color: #fff !important;
}
.ua-template-black_friday .submit-button {
    background-color: #ffff00 !important;
    color: #111 !important;
}

/*
 * -------------------------------------------------------------------
 * 10. Template 10: Crypto (Modern & Techy)
 * -------------------------------------------------------------------
 */
.ua-template-crypto {
    background: linear-gradient(135deg, #1f1c2c, #3a3456) !important;
    color: #e0e0e0 !important;
    font-family: 'Roboto Mono', monospace;
}
.ua-template-crypto .form-title { color: #fff !important; }
.ua-template-crypto .unlockaddons-emailcapture-input-field {
    background-color: rgba(0,0,0,0.2) !important;
    border: 1px solid #5354a2 !important;
    color: #fff !important;
}
.ua-template-crypto .submit-button {
    background: linear-gradient(45deg, #7e57c2, #ab47bc) !important;
    color: #fff !important;
}

/*
 * -------------------------------------------------------------------
 * 11. Template 11: Gaming (Dark & Energetic)
 * -------------------------------------------------------------------
 */
.ua-template-gaming {
    background-color: #1a1a2e !important;
    border: 2px solid #0f3460 !important;
    color: #e94560 !important;
}
.ua-template-gaming .form-title { color: #f9d423 !important; }
.ua-template-gaming .unlockaddons-emailcapture-input-field {
    background-color: #0f3460 !important;
    border: 1px solid #16213e !important;
    color: #fff !important;
}
.ua-template-gaming .submit-button {
    background-color: #e94560 !important;
    color: #fff !important;
}

/*
 * -------------------------------------------------------------------
 * 12. Template 12: Social Media (Vibrant & Trendy)
 * -------------------------------------------------------------------
 */
.ua-template-social_media {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    color: #fff !important;
}
.ua-template-social_media .unlockaddons-emailcapture-input-field {
    background-color: rgba(255,255,255,0.2) !important;
    border: 1px solid rgba(255,255,255,0.5) !important;
    color: #fff !important;
}
.ua-template-social_media .submit-button {
    background-color: #fff !important;
    color: #dc2743 !important;
}

/*
 * -------------------------------------------------------------------
 * 13. Template 13: Diamond Luxury
 * ------------------------------------------------------------------- 
 */
.ua-template-diamond {
    background: linear-gradient(145deg, #e0e5ec, #ffffff) !important;
    color: #5b6271 !important;
}
.ua-template-diamond .form-title { color: #3a3e47 !important; }
.ua-template-diamond .unlockaddons-emailcapture-input-field {
    background-color: #eef2f5 !important;
    border: 1px solid #d3d8db !important;
    color: #5b6271 !important;
}
.ua-template-diamond .submit-button {
    background: linear-gradient(145deg, #a6b1c7, #c4cde0) !important;
    color: #fff !important;
    box-shadow: 5px 5px 10px #d3d8db, -5px -5px 10px #ffffff !important;
}

/*
 * -------------------------------------------------------------------
 * 14. Template 14: Space Journey
 * ------------------------------------------------------------------- 
 */
.ua-template-space {
    background: #000010 url('https://www.transparenttextures.com/patterns/stardust.png') !important;
    color: #fff !important;
    border: 2px solid #4a4e69 !important;
}
.ua-template-space .form-title { color: #9a8c98 !important; }
.ua-template-space .unlockaddons-emailcapture-input-field {
    background-color: rgba(74, 78, 105, 0.5) !important;
    border: 1px solid #9a8c98 !important;
    color: #fff !important;
}
.ua-template-space .submit-button {
    background-color: #c9ada7 !important;
    color: #000010 !important;
}

/*
 * -------------------------------------------------------------------
 * 15. Template 15: Tropical Paradise
 * ------------------------------------------------------------------- 
 */
.ua-template-tropical {
    background: linear-gradient(to right, #ffecd2 0%, #fcb69f 100%) !important;
    color: #a56c64 !important;
}
.ua-template-tropical .form-title { color: #ff8c69 !important; }
.ua-template-tropical .unlockaddons-emailcapture-input-field {
    background-color: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid #fbc2a9 !important;
    color: #a56c64 !important;
}
.ua-template-tropical .submit-button {
    background-color: #ff8c69 !important;
    color: #fff !important;
}

/*
 * -------------------------------------------------------------------
 * 16. Template 16: Mystic Magic
 * ------------------------------------------------------------------- 
 */
.ua-template-mystic {
    background: linear-gradient(to top, #301934, #6a5acd) !important;
    color: #e6e6fa !important;
}
.ua-template-mystic .form-title { color: #dda0dd !important; }
.ua-template-mystic .unlockaddons-emailcapture-input-field {
    background-color: rgba(230, 230, 250, 0.2) !important;
    border: 1px solid #dda0dd !important;
    color: #e6e6fa !important;
}
.ua-template-mystic .submit-button {
    background-color: #dda0dd !important;
    color: #301934 !important;
}

/*
 * -------------------------------------------------------------------
 * 14. Template 13: Gradient Mesh (Artistic & Smooth)
 * -------------------------------------------------------------------
 * An artistic design featuring a smoothly animated gradient mesh that
 * creates a dynamic and visually interesting background.
 * ------------------------------------------------------------------- 
 */
@keyframes gradient-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.ua-template-gradient_mesh {
    background: linear-gradient(-45deg, #f83600, #f9d423, #4facfe, #00f2fe);
    background-size: 400% 400%;
    animation: gradient-move 18s ease infinite;
    color: #fff;
    border: none;
}
.ua-template-gradient_mesh .form-title { text-shadow: 2px 2px 6px rgba(0,0,0,0.3); }
.ua-template-gradient_mesh .unlockaddons-emailcapture-input-field {
    background-color: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
}
.ua-template-gradient_mesh .unlockaddons-emailcapture-input-field::placeholder { color: rgba(255,255,255,0.7); }
.ua-template-gradient_mesh .unlockaddons-emailcapture-input-field:focus { background-color: rgba(255,255,255,0.3); border-color: #fff; }
.ua-template-gradient_mesh .submit-button {
    background-color: #fff !important;
    color: #f83600 !important;
}

/*
 * -------------------------------------------------------------------
 * 15. Template 14: Neumorphism (Soft UI)
 * -------------------------------------------------------------------
 * A design based on the neumorphism trend, using soft shadows and
 * highlights to create a "soft plastic" or extruded UI look.
 * ------------------------------------------------------------------- 
 */
.ua-template-neumorphism {
    background-color: #eef2f5 !important;
    color: #5b6271 !important;
    font-family: 'Poppins', sans-serif;
}
.ua-template-neumorphism .form-title { color: #3a3e47 !important; }
.ua-template-neumorphism .unlockaddons-emailcapture-input-field {
    background-color: #eef2f5 !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: inset 7px 7px 14px #d3d8db, inset -7px -7px 14px #ffffff !important;
}
.ua-template-neumorphism .unlockaddons-emailcapture-input-field:focus {
    box-shadow: inset 5px 5px 10px #d3d8db, inset -5px -5px 10px #ffffff;
}
.ua-template-neumorphism .submit-button {
    background-color: #eef2f5 !important;
    color: #5b6271 !important;
    box-shadow: 7px 7px 14px #d3d8db, -7px -7px 14px #ffffff !important;
}
.ua-template-neumorphism .submit-button:hover {
    box-shadow: 5px 5px 10px #d3d8db, -5px -5px 10px #ffffff !important;
}
.ua-template-neumorphism .submit-button:active {
    box-shadow: inset 5px 5px 10px #d3d8db, inset -5px -5px 10px #ffffff !important;
}

/*
 * -------------------------------------------------------------------
 * 16. Modal Styles
 * -------------------------------------------------------------------
 * Styles for the modal pop-up functionality, including the overlay,
 * container, and close button.
 * ------------------------------------------------------------------- 
 */
.unlockafe-email-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.unlockafe-email-modal-container {
    background: transparent; /* Container is transparent, form has the background */
    border-radius: 16px;
    position: relative;
    max-width: 550px;
    width: 90%;
    box-shadow: none;
    animation: ua-modal-fade-in 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}



.unlockafe-email-modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #fff;
    color: #333;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.unlockafe-email-modal-close:hover {
    transform: rotate(180deg) scale(1.1);
    background: #ff4d4d;
    color: #fff;
}

/*
 * -------------------------------------------------------------------
 * 17. Keyframe Animations
 * -------------------------------------------------------------------
 * Animations used across various templates for dynamic effects.
 * ------------------------------------------------------------------- 
 */

/* Fades in the modal with a subtle upward movement */
@keyframes ua-modal-fade-in {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

body.ua-modal-open {
    overflow: hidden;
}

/*
 * -------------------------------------------------------------------
 * 18. Form Messages (Success/Error)
 * -------------------------------------------------------------------
 * Styles for the feedback messages shown after form submission.
 * ------------------------------------------------------------------- 
 */
.unlockafe-email-capture-form .success-message,
.unlockafe-email-capture-form .error-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none; /* Initially hidden */
    text-align: center;
    font-size: 16px;
}

.unlockafe-email-capture-form .success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.unlockafe-email-capture-form .error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/*
 * -------------------------------------------------------------------
 * 19. Responsive Styles
 * -------------------------------------------------------------------
 * Adjustments for smaller screens to ensure the widget looks great
 * on all devices.
 * ------------------------------------------------------------------- 
 */
@media only screen and (max-width: 767px) {
    .unlockafe-email-capture-form {
        padding: 25px;
    }
    .unlockafe-email-capture-form .form-title {
        font-size: 22px;
    }
    .unlockafe-email-capture-form .form-description {
        font-size: 14px;
    }
}
