/* iLED Lead Capture Popup */

#iled-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

#iled-overlay.active {
    display: flex;
    animation: iledFadeIn 0.3s ease;
}

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

#iled-popup {
    background: #050f28;
    border: 1px solid rgba(59, 130, 246, 0.45);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    width: 340px;
    max-width: 92vw;
    position: relative;
    color: #fff;
    animation: iledSlideIn 0.4s ease;
    box-shadow: 0 0 30px rgba(59,130,246,0.35), 0 0 60px rgba(59,130,246,0.15);
}

@keyframes iledSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes iledGlowPulse {
    0%, 100% { box-shadow: 0 0 25px rgba(59,130,246,0.35), 0 0 50px rgba(59,130,246,0.15); }
    50%       { box-shadow: 0 0 40px rgba(59,130,246,0.6), 0 0 80px rgba(59,130,246,0.3); }
}

#iled-popup {
    animation: iledSlideIn 0.4s ease forwards, iledGlowPulse 3s ease-in-out 0.5s infinite;
}

#iled-close {
    position: absolute;
    top: 12px; right: 14px;
    background: none; border: none;
    color: rgba(255,255,255,0.4);
    font-size: 22px; cursor: pointer;
    line-height: 1; padding: 0;
    transition: color 0.2s;
}
#iled-close:hover { color: #fff; }

.iled-icon-wrap {
    width: 54px; height: 54px;
    background: rgba(59,130,246,0.12);
    border: 1px solid rgba(59,130,246,0.4);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    box-shadow: 0 0 16px rgba(59,130,246,0.35);
    animation: iledIconFloat 2.5s ease-in-out infinite;
}

@keyframes iledIconFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-4px); }
}

#iled-popup h2 {
    font-size: 17px; font-weight: 500;
    text-align: center; margin: 0 0 6px;
    color: #ffffff;
}

#iled-popup > p {
    font-size: 12px; color: rgba(255,255,255,0.45);
    text-align: center; margin: 0 0 1.25rem;
    line-height: 1.6;
}

.iled-field {
    margin-bottom: 12px;
}

.iled-field label {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.iled-field input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(59,130,246,0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.iled-field input::placeholder { color: rgba(255,255,255,0.25); }

.iled-field input:focus {
    border-color: rgba(59,130,246,0.8);
    box-shadow: 0 0 12px rgba(59,130,246,0.3);
}

.iled-error {
    color: #f87171;
    font-size: 12px;
    margin-bottom: 10px;
    text-align: center;
}

#iled-submit {
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    border: none; border-radius: 8px;
    color: #fff; font-size: 14px; font-weight: 500;
    cursor: pointer; margin-top: 4px;
    box-shadow: 0 0 18px rgba(59,130,246,0.5);
    transition: box-shadow 0.3s, transform 0.15s;
}
#iled-submit:hover {
    box-shadow: 0 0 30px rgba(59,130,246,0.8);
    transform: translateY(-1px);
}
#iled-submit:active { transform: scale(0.98); }
#iled-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.iled-privacy {
    text-align: center;
    font-size: 11px;
    color: rgba(255,255,255,0.25);
    margin: 8px 0 0;
}

/* Success state */
#iled-success {
    text-align: center;
    padding: 1rem 0;
}
.iled-success-icon {
    width: 54px; height: 54px;
    background: rgba(59,130,246,0.15);
    border: 1px solid rgba(59,130,246,0.5);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    font-size: 24px; color: #60a5fa;
    box-shadow: 0 0 20px rgba(59,130,246,0.4);
}
#iled-success h3 {
    font-size: 17px; font-weight: 500;
    color: #fff; margin: 0 0 8px;
}
#iled-success p {
    font-size: 13px; color: rgba(255,255,255,0.5);
    margin: 0;
}
