/* ============================================================
   Evoriz Lead Capture Popup  — theme: #8a4179
   ============================================================ */

/* Overlay */
#leadPopupOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeInOverlay 0.3s ease;
}

#leadPopupOverlay.active {
    display: flex;
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Modal Card */
#leadPopupCard {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 560px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(138, 65, 121, 0.25);
    animation: slideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(40px) scale(0.97);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Header gradient strip — #8a4179 brand */
#leadPopupHeader {
    background: linear-gradient(135deg, #8a4179 0%, #b5608f 50%, #d490b8 100%);
    padding: 36px 36px 28px;
    position: relative;
    overflow: hidden;
}

#leadPopupHeader::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    top: -80px;
    right: -80px;
}

#leadPopupHeader::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    bottom: -50px;
    left: 30px;
}

#leadPopupHeader h4 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

#leadPopupHeader p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

/* Body */
#leadPopupBody {
    padding: 30px 36px 36px;
}

/* Close button */
#leadPopupClose {
    position: absolute;
    top: 14px;
    right: 18px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 1rem;
    transition: background 0.2s;
    z-index: 2;
}

#leadPopupClose:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Form Elements */
.lead-form-group {
    margin-bottom: 16px;
}

.lead-form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lead-form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #111827;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f9fafb;
    font-family: inherit;
}

.lead-form-control:focus {
    border-color: #8a4179;
    box-shadow: 0 0 0 3px rgba(138, 65, 121, 0.12);
    background: #fff;
}

.lead-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Submit Button */
.lead-submit-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #8a4179 0%, #b5608f 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
    letter-spacing: 0.01em;
}

.lead-submit-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(138, 65, 121, 0.4);
}

/* Success state */
#leadPopupSuccess {
    display: none;
    text-align: center;
    padding: 20px 0 10px;
}

#leadPopupSuccess .success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8a4179 0%, #b5608f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.8rem;
    color: #fff;
}

#leadPopupSuccess h5 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}

#leadPopupSuccess p {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Badge strip */
.lead-popup-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.lead-popup-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.lead-popup-badge i {
    color: #8a4179;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 480px) {
    #leadPopupHeader {
        padding: 28px 24px 22px;
    }

    #leadPopupBody {
        padding: 24px 24px 28px;
    }

    .lead-form-row {
        grid-template-columns: 1fr;
    }
}