/* ============================================================================
   JULIE ASSISTANT - Lead Capture Modal
   Glassmorphic popup for collecting visitor name and email
   ============================================================================ */

.lead-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

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

.lead-modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Close Button */
.lead-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lead-modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: rotate(90deg);
}

.lead-modal-close svg {
    width: 20px;
    height: 20px;
    stroke: #4a5568;
    stroke-width: 2;
}

/* Julie Avatar */
.lead-julie-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 3px solid #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.lead-julie-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content */
.lead-modal-content h3 {
    text-align: center;
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.lead-modal-content p {
    text-align: center;
    font-size: 1.1rem;
    color: #718096;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Form */
.lead-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.lead-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lead-input-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #4a5568;
}

.lead-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    color: #2d3748;
    transition: all 0.3s ease;
    background: #ffffff;
}

.lead-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.lead-input::placeholder {
    color: #a0aec0;
}

/* Buttons */
.lead-btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.lead-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.lead-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.lead-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.lead-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.lead-btn-secondary {
    background: transparent;
    color: #718096;
    border: 2px solid #e2e8f0;
}

.lead-btn-secondary:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

/* Step Indicator (if using multi-step) */
.lead-steps {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.lead-step {
    width: 40px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.lead-step.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Loading State */
.lead-loading {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.lead-loading-dot {
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    animation: leadBounce 1.4s infinite ease-in-out both;
}

.lead-loading-dot:nth-child(1) { animation-delay: -0.32s; }
.lead-loading-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes leadBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .lead-modal-content {
        padding: 2.5rem 2rem;
        max-width: 95%;
    }

    .lead-modal-content h3 {
        font-size: 1.5rem;
    }

    .lead-modal-content p {
        font-size: 1rem;
    }

    .lead-btn-group {
        flex-direction: column;
    }

    .lead-julie-avatar {
        width: 70px;
        height: 70px;
    }
}
