/* LeadCatcher Frontend Styles - Scoped to prevent conflicts */

#leadcatcher-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
}

#leadcatcher-popup .leadcatcher-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

#leadcatcher-popup .leadcatcher-modal {
    position: relative;
    max-width: 500px;
    margin: 100px auto;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: leadcatcher-slide-up 0.3s ease-out;
}

@keyframes leadcatcher-slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#leadcatcher-popup .leadcatcher-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    opacity: 0.5;
    transition: opacity 0.2s;
    padding: 5px 10px;
}

#leadcatcher-popup .leadcatcher-close:hover {
    opacity: 1;
}

#leadcatcher-popup .leadcatcher-headline {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

#leadcatcher-popup .leadcatcher-subheadline {
    margin: 0 0 25px 0;
    font-size: 16px;
    opacity: 0.8;
    line-height: 1.5;
}

#leadcatcher-popup .leadcatcher-form {
    margin: 0;
}

#leadcatcher-popup .leadcatcher-field {
    margin-bottom: 15px;
}

#leadcatcher-popup .leadcatcher-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    transition: border-color 0.2s;
    box-sizing: border-box;
}

#leadcatcher-popup .leadcatcher-input:focus {
    outline: none;
    border-color: #2563eb;
}

#leadcatcher-popup .leadcatcher-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

#leadcatcher-popup .leadcatcher-button {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

#leadcatcher-popup .leadcatcher-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#leadcatcher-popup .leadcatcher-button:active {
    transform: translateY(0);
}

#leadcatcher-popup .leadcatcher-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#leadcatcher-popup .leadcatcher-success,
#leadcatcher-popup .leadcatcher-error {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

#leadcatcher-popup .leadcatcher-success {
    background: #d1fae5;
    color: #065f46;
}

#leadcatcher-popup .leadcatcher-error {
    background: #fee2e2;
    color: #991b1b;
}

/* Mobile responsive */
@media (max-width: 600px) {
    #leadcatcher-popup .leadcatcher-modal {
        margin: 20px;
        padding: 30px 20px;
        max-width: calc(100% - 40px);
    }
    
    #leadcatcher-popup .leadcatcher-headline {
        font-size: 24px;
    }
}
