/* ===================================
   ONBOARDING SKELETON LOADER
   ================================ */

/* Full Page Skeleton Overlay */
.onboarding-skeleton-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.onboarding-skeleton-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Left Content Area (simulates content-left) */
.skeleton-content-left {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
}

/* Right Side (simulates content-right) */
.skeleton-content-right {
    flex: 1;
    background: #e5e7eb;
}

/* Progress Container */
.skeleton-progress-container {
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.skeleton-logo {
    width: 120px;
    height: 32px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-progress-bar {
    display: flex;
    gap: 8px;
    flex: 1;
    max-width: 400px;
}

.skeleton-progress-step {
    flex: 1;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
}

/* Content Section */
.skeleton-content-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 500px;
}

.skeleton-title {
    width: 60%;
    height: 38px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 16px;
}

.skeleton-description {
    width: 80%;
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 40px;
}

/* Form Elements Skeleton */
.skeleton-form-group {
    margin-bottom: 24px;
}

.skeleton-label {
    width: 30%;
    height: 14px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-input {
    width: 100%;
    height: 54px;
    background: linear-gradient(90deg, #f8f9fa 25%, #e9ecef 50%, #f8f9fa 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* PIN Inputs Skeleton (for Step 2) */
.skeleton-pin-container {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
}

.skeleton-pin-input {
    width: 56px;
    height: 56px;
    background: linear-gradient(90deg, #f8f9fa 25%, #e9ecef 50%, #f8f9fa 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* Role Buttons Skeleton (for Step 4) */
.skeleton-role-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.skeleton-role-btn {
    width: 130px;
    height: 48px;
    background: linear-gradient(90deg, #f8f9fa 25%, #e9ecef 50%, #f8f9fa 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* Phone Input Skeleton (for Step 5) */
.skeleton-phone-container {
    display: flex;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.skeleton-country-prefix {
    width: 60px;
    height: 54px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-right: 1px solid #e0e0e0;
}

.skeleton-phone-input {
    flex: 1;
    height: 54px;
    background: linear-gradient(90deg, #f8f9fa 25%, #e9ecef 50%, #f8f9fa 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Sumsub Container Skeleton (for Step 6) */
.skeleton-sumsub-container {
    width: 100%;
    height: 600px;
    background: linear-gradient(90deg, #f8f9fa 25%, #e9ecef 50%, #f8f9fa 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* Signature Container Skeleton (for Step 7) */
.skeleton-signature-container {
    width: 100%;
    height: 600px;
    background: linear-gradient(90deg, #f8f9fa 25%, #e9ecef 50%, #f8f9fa 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* Footer Actions */
.skeleton-footer-actions {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skeleton-btn {
    width: 140px;
    height: 54px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

/* Shimmer Animation */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .skeleton-content-left {
        padding: 40px 24px;
    }

    .skeleton-content-right {
        display: none;
    }

    .skeleton-progress-container {
        margin-bottom: 40px;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .skeleton-progress-bar {
        max-width: none;
        width: 100%;
    }

    .skeleton-content-section {
        max-width: none;
    }

    .skeleton-title {
        height: 30px;
    }

    .skeleton-pin-container {
        justify-content: space-between;
    }

    .skeleton-pin-input {
        width: 48px;
        height: 48px;
    }

    .skeleton-footer-actions {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .skeleton-btn {
        width: 100%;
    }
}
