/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Funding Banner */
.funding-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: #3F6BF5;
    color: white;
    text-align: center;
    padding: 0.75rem 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.banner-text {
    display: block;
    padding: 0 1rem;
}

/* Loading Card */
.loading-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    margin-top: 0.25rem;
}

/* Header Icon */
.header-icon {
    text-align: center;
    margin-bottom: 2rem;
}

.graduation-cap-icon {
    width: 80px;
    height: 80px;
    background: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2.5rem;
}

/* Status Items */
.status-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    max-height: 0;
    overflow: hidden;
}

.status-item.visible {
    opacity: 1;
    transform: translateY(0);
    max-height: 100px;
}

.status-item.active {
    opacity: 1;
    background: #fef3c7;
    border: 1px solid #fde68a;
}

.status-item.completed {
    background: #f0f9ff;
    border: 1px solid #e0f2fe;
    opacity: 1;
}

/* Status Icons */
.status-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-icon svg {
    width: 20px;
    height: 20px;
}

.location-icon {
    background: #dbeafe;
    color: #2563eb;
}

.funding-icon {
    background: #dcfce7;
    color: #16a34a;
}

.calculation-icon {
    background: #e9d5ff;
    color: #7c3aed;
}

/* Status Text */
.status-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.status-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.status-value {
    font-size: 1rem;
    color: #111827;
    font-weight: 600;
}

/* Status Indicators */
.status-indicator {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-indicator.completed {
    background: #16a34a;
    border-radius: 50%;
    color: white;
}

.status-indicator.completed::after {
    content: "✓";
    font-size: 14px;
    font-weight: bold;
}

/* Loading Dots Animation - Ping Pong Effect */
.loading-dots {
    display: flex;
    gap: 6px;
    align-items: center;
    height: 24px;
    justify-content: flex-start;
    margin-left: 4px;
    margin-right: 12px;
}

.loading-dots .dot {
    width: 12px;
    height: 12px;
    background: #8b5cf6;
    border-radius: 50%;
    animation: pingPong 1.2s ease-in-out infinite both;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
}

.loading-dots .dot:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pingPong {
    0%, 30%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    15% {
        transform: translateY(-18px);
        opacity: 1;
    }
}

/* Main Content Styles */
.main-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    background: white;
    min-height: 100vh;
}

.main-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.main-content.hidden {
    display: none;
}

/* Funding Container */
.funding-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    text-align: center;
}

/* Location Support */
.location-support {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    color: #66CC66;
    font-weight: 700;
    padding-left: 0.5rem;
}

.location-icon {
    width: 18px;
    height: 18px;
    color: #66CC66;
}

.location-icon svg {
    width: 100%;
    height: 100%;
}

.location-text {
    font-size: 1.1rem;
}

/* Main Heading */
.main-heading {
    font-size: 2.2rem;
    font-weight: 800;
    color: #343A40;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: center;
}

/* Funding Card */
.funding-card {
    background: #2D3748;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.funding-content {
    color: white;
}

.funding-label {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.money-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: #00FF88;
    margin: 1rem 0;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: neonGlow 2s ease-in-out infinite alternate;
    transition: transform 0.2s ease;
}

@keyframes neonGlow {
    from {
        text-shadow: 0 0 20px rgba(0, 255, 136, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    to {
        text-shadow: 0 0 30px rgba(0, 255, 136, 0.8), 0 0 40px rgba(0, 255, 136, 0.3), 0 2px 4px rgba(0, 0, 0, 0.3);
    }
}

.funding-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.funding-description {
    font-size: 1rem;
    opacity: 0.8;
    margin: 0;
}

/* Steps Container */
.steps-container {
    margin-bottom: 1.5rem;
}

.step-card {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.step-card:hover {
    transform: translateY(-2px);
}

.step-icon {
    width: 36px;
    height: 36px;
    background: #66CC66;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-icon svg {
    width: 20px;
    height: 20px;
}

.step-text {
    flex: 1;
    text-align: left;
    color: #343A40;
}

.step-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.step-subtitle {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6B7280;
}

.step-check {
    width: 28px;
    height: 28px;
    background: #66CC66;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

/* CTA Button */
.cta-button {
    background: #3F6BF5;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(63, 107, 245, 0.3);
    width: 100%;
    max-width: 100%;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

.disclaimer-text {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #6B7280;
    text-align: center;
    line-height: 1.4;
    max-width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile Banner Optimization */
    .funding-banner {
        padding: 0.6rem 0;
        font-size: 0.9rem;
        letter-spacing: 0.3px;
    }
    
    .banner-text {
        padding: 0 1rem;
    }
    
    /* Loading Card Mobile */
    .loading-card {
        margin-top: 0.5rem;
        padding: 1.5rem;
    }
    
    /* Main Content Mobile */
    .funding-container {
        padding: 1rem 1.5rem;
    }
    
    .main-heading {
        font-size: 1.9rem;
        margin-bottom: 1.25rem;
    }
    
    .money-amount {
        font-size: 2.8rem;
    }
    
    .funding-card {
        padding: 1.75rem 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .step-card {
        padding: 1rem 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .step-title {
        font-size: 0.95rem;
    }
    
    .step-subtitle {
        font-size: 0.85rem;
    }
    
    .cta-button {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile optimization */
    .funding-banner {
        padding: 0.5rem 0;
        font-size: 0.85rem;
    }
    
    .banner-text {
        padding: 0 0.75rem;
    }
    
    .loading-card {
        margin-top: 0.25rem;
        padding: 1rem;
    }
    
    .funding-container {
        padding: 0.75rem 1.25rem;
    }
    
    .main-heading {
        font-size: 1.7rem;
        margin-bottom: 1rem;
    }
    
    .money-amount {
        font-size: 2.4rem;
    }
    
    .funding-card {
        padding: 1.5rem 1rem;
    }
    
    .step-card {
        padding: 0.9rem 1rem;
    }
}
