/* ===================================
   LEAD GENERATION COMPONENTS
   Newsletter, Popups, Forms, CTAs
   =================================== */

/* ==================
   1. NEWSLETTER POPUP
   ================== */

.newsletter-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.newsletter-popup.active {
    opacity: 1;
    visibility: visible;
}

.newsletter-popup-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    max-width: 600px;
    width: 90%;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.newsletter-popup.active .newsletter-popup-content {
    transform: scale(1) translateY(0);
}

.newsletter-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10;
}

.newsletter-popup-close:hover {
    background: #a100ff;
    color: white;
    transform: rotate(90deg);
}

.newsletter-popup-body {
    padding: 60px 50px;
    text-align: center;
}

.newsletter-popup-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #a100ff 0%, #560591 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 40px;
    box-shadow: 0 10px 30px rgba(161, 0, 255, 0.3);
}

.newsletter-popup h3 {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.2;
}

.newsletter-popup p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-input {
    padding: 16px 20px;
    border: 2px solid #e5e5e5;
    border-radius: 50px;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}

.newsletter-input:focus {
    border-color: #a100ff;
    box-shadow: 0 0 0 4px rgba(161, 0, 255, 0.1);
}

.newsletter-submit {
    padding: 16px 40px;
    background: linear-gradient(135deg, #a100ff 0%, #560591 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.newsletter-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(161, 0, 255, 0.4);
}

.newsletter-privacy {
    font-size: 12px;
    color: #999;
    margin-top: 15px;
}

/* ==================
   2. INLINE NEWSLETTER
   ================== */

.newsletter-inline {
    background: linear-gradient(135deg, #560591 0%, #a100ff 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.newsletter-inline::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.newsletter-inline-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.newsletter-inline h2 {
    font-size: 42px;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
}

.newsletter-inline p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
}

.newsletter-inline-form {
    display: flex;
    gap: 15px;
    max-width: 550px;
    margin: 0 auto;
}

.newsletter-inline-form input {
    flex: 1;
    padding: 18px 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 15px;
    outline: none;
}

.newsletter-inline-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-inline-form input:focus {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-inline-form button {
    padding: 18px 40px;
    background: white;
    color: #560591;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-inline-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* ==================
   3. LEAD MAGNET CARDS
   ================== */

.lead-magnet-card {
    background: white;
    border: 2px solid #e5e5e5;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.lead-magnet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #a100ff, #560591);
    transition: left 0.4s ease;
}

.lead-magnet-card:hover::before {
    left: 0;
}

.lead-magnet-card:hover {
    border-color: #a100ff;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(161, 0, 255, 0.2);
}

.lead-magnet-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(161, 0, 255, 0.1) 0%, rgba(86, 5, 145, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
}

.lead-magnet-card h4 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.lead-magnet-card p {
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.lead-magnet-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: linear-gradient(135deg, #a100ff 0%, #560591 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.lead-magnet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(161, 0, 255, 0.3);
}

/* ==================
   4. EXIT INTENT POPUP
   ================== */

.exit-intent-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    max-width: 550px;
    width: 90%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.exit-intent-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.exit-intent-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.exit-intent-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==================
   5. STICKY BAR
   ================== */

.sticky-cta-bar {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #560591 0%, #a100ff 100%);
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: bottom 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.sticky-cta-bar.active {
    bottom: 0;
}

.sticky-cta-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.sticky-cta-text h4 {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.sticky-cta-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.sticky-cta-button {
    padding: 12px 30px;
    background: white;
    color: #560591;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.sticky-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.sticky-cta-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sticky-cta-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ==================
   6. CONTACT FORM
   ================== */

.lead-contact-form {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #a100ff;
    box-shadow: 0 0 0 4px rgba(161, 0, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 3px;
}

.form-checkbox label {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.form-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #a100ff 0%, #560591 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(161, 0, 255, 0.4);
}

.form-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==================
   7. SUCCESS MESSAGE
   ================== */

.success-message {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    display: none;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    animation: slideDown 0.4s ease;
}

.success-message.show {
    display: flex;
}

.success-message-icon {
    font-size: 32px;
}

.success-message-text h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.success-message-text p {
    font-size: 14px;
    opacity: 0.9;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================
   8. RESPONSIVE
   ================== */

@media (max-width: 768px) {
    .newsletter-popup-body {
        padding: 40px 30px;
    }

    .newsletter-popup h3 {
        font-size: 26px;
    }

    .newsletter-inline h2 {
        font-size: 32px;
    }

    .newsletter-inline-form {
        flex-direction: column;
    }

    .sticky-cta-content {
        flex-direction: column;
        text-align: center;
    }

    .sticky-cta-button {
        width: 100%;
    }

    .lead-contact-form {
        padding: 30px 20px;
    }
}