/* Sales Funnel Styles - Onboarding, Upgrade Prompts, Lead Capture */

/* Onboarding Tour Styles */
.onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    pointer-events: none;
}

.onboarding-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.onboarding-highlight {
    position: relative;
    z-index: 9999 !important;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.8), 0 0 20px rgba(102, 126, 234, 0.4) !important;
    border-radius: 8px;
}

.onboarding-tooltip {
    position: fixed;
    z-index: 10000;
    pointer-events: auto;
    animation: tooltipFadeIn 0.3s ease;
}

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

.onboarding-tooltip-content {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    max-width: 320px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.onboarding-step-indicator {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.onboarding-tooltip-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.onboarding-tooltip-content p {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.95;
}

.onboarding-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.onboarding-buttons .btn-link {
    margin-left: auto;
}

/* Upgrade Modal Styles */
.upgrade-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

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

.upgrade-modal {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: slideUp 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

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

.upgrade-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.upgrade-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.upgrade-modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffd700, #ffa500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.3);
}

.upgrade-modal h3 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.upgrade-modal > p {
    text-align: center;
    color: #718096;
    margin-bottom: 1.5rem;
}

.upgrade-benefits {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    color: #4a5568;
}

.benefit-item i {
    color: #48bb78;
    margin-right: 0.75rem;
    font-size: 1rem;
}

.upgrade-pricing {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.price-option {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.price-option:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.price-option.featured {
    border-color: #667eea;
    background: linear-gradient(135deg, #f0f4ff, #e8f0ff);
}

.popular-tag {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    white-space: nowrap;
}

.price-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.price-amount span {
    font-size: 0.875rem;
    font-weight: 400;
    color: #718096;
}

.price-desc {
    font-size: 0.75rem;
    color: #718096;
}

.upgrade-guarantee {
    text-align: center;
    font-size: 0.875rem;
    color: #718096;
    margin-top: 1rem;
    margin-bottom: 0;
}

.upgrade-guarantee i {
    color: #48bb78;
    margin-right: 0.5rem;
}

/* Lead Magnet Popup Styles */
.lead-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.lead-popup {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 450px;
    width: 100%;
    position: relative;
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

.lead-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 10;
}

.lead-popup-close:hover {
    background: white;
    color: #333;
}

.lead-popup-content {
    padding: 2rem;
}

.lead-popup-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.lead-popup-icon.success {
    background: linear-gradient(135deg, #48bb78, #38a169);
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.3);
}

.lead-popup h3 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.lead-popup > .lead-popup-content > p {
    text-align: center;
    color: #718096;
    margin-bottom: 1.5rem;
}

.lead-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    background: #f8fafc;
    border-radius: 12px;
    padding: 1rem;
}

.lead-benefits li {
    padding: 0.5rem 0;
    color: #4a5568;
    display: flex;
    align-items: center;
}

.lead-benefits li i {
    color: #48bb78;
    margin-right: 0.75rem;
}

.lead-popup .form-control {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
}

.lead-popup .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.lead-privacy {
    text-align: center;
    font-size: 0.8rem;
    color: #a0aec0;
    margin-top: 1rem;
    margin-bottom: 0;
}

.lead-privacy i {
    margin-right: 0.5rem;
}

/* Inline Lead Capture Form on Landing Page */
.lead-capture-inline {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lead-capture-inline h5 {
    color: white;
    margin-bottom: 0.5rem;
}

.lead-capture-inline p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.lead-capture-inline .input-group {
    max-width: 400px;
}

.lead-capture-inline .form-control {
    border-radius: 50px 0 0 50px;
    border: none;
    padding: 0.75rem 1.25rem;
}

.lead-capture-inline .btn {
    border-radius: 0 50px 50px 0;
    padding: 0.75rem 1.5rem;
}

/* Social Proof Styles */
.social-proof {
    margin-top: 1.5rem;
}

.user-avatars {
    display: flex;
}

.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    border: 2px solid white;
    margin-left: -8px;
}

.avatar-circle:first-child {
    margin-left: 0;
}

/* Urgency Banner Styles */
.urgency-banner {
    background: linear-gradient(90deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    border-radius: 12px 12px 0 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.urgency-banner i {
    color: #ffd32a;
}

/* Trial Countdown Styles */
.trial-countdown {
    background: linear-gradient(90deg, #f39c12, #e74c3c);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0 1rem;
    font-size: 0.85rem;
}

.trial-countdown i {
    animation: hourglass 1.5s infinite;
}

@keyframes hourglass {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

/* Responsive */
@media (max-width: 576px) {
    .upgrade-modal {
        padding: 1.5rem;
    }
    
    .upgrade-pricing {
        grid-template-columns: 1fr;
    }
    
    .lead-popup-content {
        padding: 1.5rem;
    }
    
    .onboarding-tooltip-content {
        max-width: 280px;
        padding: 1rem;
    }
    
    .urgency-banner {
        margin: -1.5rem -1.5rem 1rem -1.5rem;
        font-size: 0.8rem;
    }
}

/* Enhanced Mobile Optimization for Lead Popup */
@media (max-width: 480px) {
    .lead-popup-overlay {
        padding: 0.5rem;
        align-items: flex-end;
    }
    
    .lead-popup {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .lead-popup-content {
        padding: 1.25rem;
    }
    
    .lead-popup-close {
        width: 40px;
        height: 40px;
        font-size: 1.75rem;
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .lead-popup-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .lead-popup h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .lead-popup > .lead-popup-content > p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }
    
    .lead-benefits {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .lead-benefits li {
        padding: 0.4rem 0;
        font-size: 0.9rem;
    }
    
    .lead-popup .form-control {
        padding: 0.875rem 1rem;
        font-size: 16px;
        border-radius: 8px;
        min-height: 48px;
    }
    
    .lead-popup .btn {
        padding: 0.875rem 1rem;
        font-size: 1rem;
        min-height: 48px;
        border-radius: 8px;
    }
    
    .lead-popup .mb-3 {
        margin-bottom: 0.75rem !important;
    }
    
    .lead-privacy {
        font-size: 0.75rem;
        margin-top: 0.75rem;
    }
}

/* Small mobile devices */
@media (max-width: 360px) {
    .lead-popup-content {
        padding: 1rem;
    }
    
    .lead-popup h3 {
        font-size: 1.1rem;
    }
    
    .lead-popup-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .lead-benefits li {
        font-size: 0.85rem;
    }
}

/* Landscape mobile orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .lead-popup-overlay {
        align-items: center;
        padding: 0.5rem;
    }
    
    .lead-popup {
        border-radius: 16px;
        max-height: 95vh;
    }
    
    .lead-popup-content {
        padding: 1rem;
    }
    
    .lead-popup-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .lead-popup h3 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .lead-popup > .lead-popup-content > p {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .lead-benefits {
        display: none;
    }
    
    .lead-popup .mb-3 {
        margin-bottom: 0.5rem !important;
    }
}