/* ==========================================================================
   LEAD MAGNET SYSTEM
   Styles for lead magnet landing page, popup, and thank you page
   ========================================================================== */

/* ==========================================================================
   FORM OPT-IN STYLES
   ========================================================================== */

.lead-form-container {
    background: var(--warmth-cream);
    padding: var(--spacing-xl);
    border-radius: var(--radius-organic-lg);
    box-shadow: var(--shadow-medium);
    max-width: 520px;
    margin: var(--spacing-xl) auto;
    border: 2px solid var(--border-primary-light);
}

.lead-form-intro {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--warmth-charcoal);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--warmth-charcoal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: var(--font-primary);
    border: 2px solid var(--border-primary-light);
    border-radius: 8px;
    background: white;
    color: var(--warmth-charcoal);
    transition: all 0.3s var(--ease-organic);
    min-height: 50px;
}

.form-input:focus {
    outline: none;
    border-color: var(--warmth-primary);
    box-shadow: 0 0 0 4px rgba(201, 74, 42, 0.1);
}

.form-input::placeholder {
    color: rgba(44, 38, 37, 0.4);
}

.form-input.error {
    border-color: #e74c3c;
}

.error-message {
    font-size: 0.875rem;
    color: #e74c3c;
    margin-top: 0.25rem;
    display: none;
}

.error-message.visible {
    display: block;
}

/* RODO Checkbox */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--warmth-primary);
}

.form-checkbox label {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--warmth-charcoal);
    cursor: pointer;
}

.form-checkbox label a {
    color: var(--warmth-primary);
    text-decoration: underline;
}

.form-checkbox label a:hover {
    color: var(--warmth-accent);
}

/* Popup Form Field Adjustments */
.popup-form .form-field {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.popup-form .form-checkbox {
    justify-content: flex-start;
}

/* Privacy guarantee */
.privacy-guarantee {
    text-align: center;
    font-size: 0.875rem;
    color: rgba(44, 38, 37, 0.6);
    margin-top: var(--spacing-sm);
}

.privacy-guarantee::before {
    content: "🔒 ";
}

/* Submit Button */
.btn-lead-submit {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    font-family: var(--font-primary);
    color: white;
    background: var(--warmth-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s var(--ease-organic);
    min-height: 56px;
    text-transform: none;
    letter-spacing: 0.3px;
    box-shadow: var(--shadow-soft);
}

.btn-lead-submit:hover {
    background: var(--warmth-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-lead-submit:active {
    transform: translateY(0);
}

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

.btn-subtext {
    text-align: center;
    font-size: 0.875rem;
    font-style: italic;
    color: rgba(44, 38, 37, 0.6);
    margin-top: var(--spacing-sm);
}

/* ==========================================================================
   EXIT-INTENT POPUP
   ========================================================================== */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s var(--ease-organic);
}

.popup-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.popup-container {
    position: relative;
    background: white;
    padding: var(--spacing-xxl);
    border-radius: var(--radius-organic-lg);
    box-shadow: var(--shadow-strong);
    max-width: 540px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.4s var(--ease-bounce);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    background: rgba(44, 38, 37, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--warmth-charcoal);
    transition: all 0.2s var(--ease-organic);
    z-index: 10;
}

.popup-close:hover {
    background: rgba(44, 38, 37, 0.2);
    transform: rotate(90deg);
}

.popup-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.popup-headline {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--warmth-charcoal);
    text-align: center;
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.popup-text {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(44, 38, 37, 0.8);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.popup-input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: var(--font-primary);
    border: 2px solid var(--border-primary-light);
    border-radius: 8px;
    background: white;
    color: var(--warmth-charcoal);
    transition: all 0.3s var(--ease-organic);
}

.popup-input:focus {
    outline: none;
    border-color: var(--warmth-primary);
    box-shadow: 0 0 0 4px rgba(201, 74, 42, 0.1);
}

.popup-social-proof {
    text-align: center;
    font-size: 0.875rem;
    font-style: italic;
    color: rgba(44, 38, 37, 0.6);
    margin-top: var(--spacing-md);
}

.popup-decline {
    text-align: center;
    margin-top: var(--spacing-md);
}

.popup-decline-link {
    font-size: 0.875rem;
    color: rgba(44, 38, 37, 0.5);
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
}

.popup-decline-link:hover {
    color: var(--warmth-charcoal);
}

/* ==========================================================================
   THANK YOU PAGE STYLES
   ========================================================================== */

.thankyou-hero {
    text-align: center;
    padding: var(--spacing-xxl) var(--spacing-md);
    background: var(--bg-cream-gradient);
}

.thankyou-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
}

.thankyou-headline {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--warmth-charcoal);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.thankyou-instructions {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(44, 38, 37, 0.8);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.thankyou-instructions strong {
    color: var(--warmth-primary);
    font-weight: 700;
}

.btn-download-direct {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    font-family: var(--font-primary);
    color: white;
    background: var(--warmth-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s var(--ease-organic);
    box-shadow: var(--shadow-medium);
    text-decoration: none;
}

.btn-download-direct:hover {
    background: var(--warmth-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.btn-download-direct::before {
    content: "⭳";
    font-size: 1.5rem;
}

/* Next Steps Section */
.next-steps {
    padding: var(--spacing-xxl) var(--spacing-md);
    background: white;
}

.next-steps-headline {
    font-size: 2rem;
    font-weight: 700;
    color: var(--warmth-charcoal);
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.next-steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .next-steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.next-step-card {
    padding: var(--spacing-lg);
    background: var(--warmth-cream);
    border-radius: var(--radius-organic-md);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: all 0.3s var(--ease-organic);
}

.next-step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.next-step-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--warmth-charcoal);
    margin-bottom: var(--spacing-md);
}

.next-step-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(44, 38, 37, 0.8);
    margin-bottom: var(--spacing-md);
}

/* Social Media Buttons */
.social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
}

.btn-social {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-primary);
    color: white;
    background: var(--warmth-charcoal);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s var(--ease-organic);
    text-decoration: none;
}

.btn-social:hover {
    background: var(--warmth-primary);
    transform: translateY(-2px);
}

/* Recommended Content */
.recommended-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .recommended-content {
        grid-template-columns: 1fr;
    }
}

.content-card {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: white;
    border: 2px solid var(--border-primary-light);
    border-radius: var(--radius-organic-sm);
    transition: all 0.3s var(--ease-organic);
    text-decoration: none;
    color: inherit;
}

.content-card:hover {
    border-color: var(--warmth-primary);
    transform: translateX(4px);
}

.content-card-image {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: var(--bg-primary-light);
    border-radius: var(--radius-organic-sm);
    object-fit: cover;
}

.content-card-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--warmth-charcoal);
    margin-bottom: var(--spacing-xs);
}

.content-card-text p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(44, 38, 37, 0.7);
    margin-bottom: var(--spacing-xs);
}

.content-card-meta {
    font-size: 0.75rem;
    color: rgba(44, 38, 37, 0.5);
}

/* Share Buttons */
.share-section {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--bg-primary-light);
    border-radius: var(--radius-organic-md);
}

.share-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--warmth-charcoal);
    margin-bottom: var(--spacing-md);
}

.share-section p {
    font-size: 1rem;
    color: rgba(44, 38, 37, 0.8);
    margin-bottom: var(--spacing-md);
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
}

.btn-share {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-primary);
    color: white;
    background: var(--warmth-accent);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s var(--ease-organic);
    text-decoration: none;
}

.btn-share:hover {
    background: var(--warmth-primary);
    transform: scale(1.05);
}

/* Tripwire Offer Box */
.tripwire-offer {
    max-width: 800px;
    margin: var(--spacing-xxl) auto;
    padding: var(--spacing-xl);
    background: var(--bg-gold-light);
    border: 3px solid var(--warmth-gold);
    border-radius: var(--radius-organic-lg);
    box-shadow: var(--shadow-medium);
}

.tripwire-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--warmth-gold);
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: var(--spacing-md);
}

.tripwire-offer h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--warmth-charcoal);
    margin-bottom: var(--spacing-md);
}

.tripwire-offer p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(44, 38, 37, 0.8);
    margin-bottom: var(--spacing-md);
}

.tripwire-benefits {
    list-style: none;
    padding: 0;
    margin: var(--spacing-md) 0;
}

.tripwire-benefits li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-xs) 0;
    font-size: 1rem;
    color: var(--warmth-charcoal);
}

.tripwire-benefits li::before {
    content: "✓";
    color: var(--warmth-gold);
    font-weight: 700;
    font-size: 1.25rem;
}

.tripwire-price {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
}

.price-original {
    font-size: 1.25rem;
    color: rgba(44, 38, 37, 0.5);
    text-decoration: line-through;
}

.price-discount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--warmth-primary);
}

.tripwire-urgency {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--warmth-primary);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
    margin-bottom: var(--spacing-md);
}

.btn-tripwire {
    width: 100%;
    padding: 1.25rem 2rem;
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-primary);
    color: white;
    background: var(--warmth-gold);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s var(--ease-organic);
    box-shadow: var(--shadow-medium);
}

.btn-tripwire:hover {
    background: var(--warmth-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

/* ==========================================================================
   MOBILE RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .lead-form-container {
        padding: var(--spacing-lg);
        margin: var(--spacing-md) auto;
    }

    .popup-container {
        padding: var(--spacing-lg);
        width: 95%;
    }

    .popup-headline {
        font-size: 1.5rem;
    }

    .thankyou-headline {
        font-size: 2rem;
    }

    .thankyou-instructions {
        font-size: 1.125rem;
    }

    .btn-download-direct {
        width: 100%;
        justify-content: center;
    }

    .next-steps-grid {
        grid-template-columns: 1fr;
    }

    .tripwire-offer {
        padding: var(--spacing-lg);
    }

    .tripwire-price {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }
}
