/* Lead Capture Modal Styles */

.lead-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lead-modal-overlay.show {
    display: flex;
    opacity: 1;
}

.lead-modal {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.4s ease;
}

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

.lead-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.5rem 2rem 2rem;
    border-radius: 20px 20px 0 0;
    position: relative;
    text-align: center;
}

.lead-modal-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.lead-modal-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.lead-modal-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 400;
}

.lead-modal-body {
    padding: 2rem;
}

.lead-modal-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.lead-modal-progress::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 3px;
    background: #e5e7eb;
    z-index: 1;
}

.lead-modal-progress-line {
    position: absolute;
    top: 15px;
    left: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 2;
    transition: width 0.4s ease;
}

.lead-modal-progress-step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: 3px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #9ca3af;
    position: relative;
    z-index: 3;
    transition: all 0.3s;
}

.lead-modal-progress-step.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    transform: scale(1.1);
}

.lead-modal-progress-step.completed {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.lead-modal-step {
    display: none;
}

.lead-modal-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.lead-modal-question {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    text-align: center;
}

.lead-modal-question-hint {
    font-size: 0.9rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.lead-modal-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lead-modal-option {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 1.05rem;
    text-align: center;
    color: #4b5563;
}

.lead-modal-option:hover {
    border-color: #667eea;
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.lead-modal-option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
    position: relative;
}

.lead-modal-option.selected::after {
    content: '✓';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    font-size: 1.2rem;
    color: #667eea;
}

.lead-modal-input-group {
    margin-bottom: 1.5rem;
}

.lead-modal-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #4b5563;
    font-size: 1rem;
}

.lead-modal-input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1.05rem;
    transition: all 0.3s;
    font-family: inherit;
}

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

.lead-modal-input.error {
    border-color: #ef4444;
}

.lead-modal-error {
    color: #ef4444;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

.lead-modal-error.show {
    display: block;
}

.lead-modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.lead-modal-btn {
    flex: 1;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

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

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

.lead-modal-btn-secondary {
    background: white;
    border: 2px solid #e5e7eb;
    color: #4b5563;
}

.lead-modal-btn-secondary:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #d1d5db;
}

.lead-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.lead-modal-decline {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
    text-decoration: underline;
}

.lead-modal-decline:hover {
    color: #6b7280;
}

.lead-modal-success {
    text-align: center;
    padding: 2rem;
}

.lead-modal-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
}

.lead-modal-success-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.lead-modal-success-message {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.lead-modal-coupon-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px dashed #667eea;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.lead-modal-coupon-label {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.lead-modal-coupon-code {
    font-size: 2rem;
    font-weight: 800;
    color: #667eea;
    letter-spacing: 0.1em;
}

.lead-modal-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .lead-modal {
        max-width: 100%;
        margin: 0;
        border-radius: 20px;
    }

    .lead-modal-header {
        padding: 2rem 1.5rem 1.5rem;
    }

    .lead-modal-title {
        font-size: 1.6rem;
    }

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

    .lead-modal-body {
        padding: 1.5rem;
    }

    .lead-modal-question {
        font-size: 1.1rem;
    }

    .lead-modal-option {
        padding: 1rem;
        font-size: 1rem;
    }

    .lead-modal-actions {
        flex-direction: column-reverse;
    }

    .lead-modal-btn {
        width: 100%;
    }

    .lead-modal-coupon-code {
        font-size: 1.5rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .lead-modal-overlay,
    .lead-modal,
    .lead-modal-step,
    .lead-modal-progress-step,
    .lead-modal-option,
    .lead-modal-btn,
    .lead-modal-close,
    .lead-modal-progress-line {
        animation: none;
        transition: none;
    }
}

