/* Mobile CSS-Only Progress Indicator */
/* This works without JavaScript and is triggered by form submission */

/* Hide by default */
.mobile-progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Show when form is being submitted */
body.form-submitting .mobile-progress-overlay {
    display: flex;
}

.mobile-progress-modal {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mobile-progress-modal::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(103, 126, 234, 0.05), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.mobile-progress-header {
    position: relative;
    z-index: 2;
    margin-bottom: 30px;
}

.mobile-progress-header h2 {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 700;
    color: #2d3748;
    line-height: 1.2;
}

.mobile-progress-header p {
    margin: 0;
    color: #718096;
    font-size: 14px;
    line-height: 1.4;
}

/* Simple animated dots */
.mobile-progress-dots {
    position: relative;
    z-index: 2;
    margin: 30px 0;
}

.mobile-progress-dots::before {
    content: '●●●●●';
    font-size: 24px;
    color: #667eea;
    letter-spacing: 8px;
    animation: pulse-dots 2s infinite;
}

@keyframes pulse-dots {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Loading text with animation */
.mobile-progress-text {
    position: relative;
    z-index: 2;
    font-size: 14px;
    color: #4a5568;
    margin-top: 20px;
    line-height: 1.5;
}

.mobile-progress-text::after {
    content: '';
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
    100% { content: ''; }
}

/* Timing information text */
.mobile-progress-timing {
    position: relative;
    z-index: 2;
    font-size: 12px;
    color: #718096;
    margin-top: 15px;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .mobile-progress-overlay {
        padding: 15px;
    }
    
    .mobile-progress-modal {
        padding: 30px 15px;
        border-radius: 15px;
    }
    
    .mobile-progress-header h2 {
        font-size: 20px;
    }
    
    .mobile-progress-header p {
        font-size: 13px;
    }
    
    .mobile-progress-dots::before {
        font-size: 20px;
        letter-spacing: 6px;
    }
    
    .mobile-progress-timing {
        font-size: 11px;
    }
}

/* Hide desktop progress on mobile */
@media (max-width: 768px) {
    .glowply-progress-overlay {
        display: none !important;
    }
} 