/**
 * ISC Customer Flow - Progress Indicator Styles
 */

.iscf-progress-indicator {
    margin: 0 0 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.iscf-progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

/* Individual step */
.iscf-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex-shrink: 0;
}

/* Step number circle */
.iscf-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Step label */
.iscf-step-label {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    text-align: center;
    white-space: nowrap;
    transition: color 0.3s ease;
}

/* Connector line between steps */
.iscf-connector,
.iscf-connector-completed {
    flex: 1;
    height: 3px;
    min-width: 20px;
    max-width: 60px;
    background: #e2e8f0;
    border-radius: 2px;
    margin: 0 4px;
    transition: background 0.3s ease;
    list-style: none;
}

.iscf-connector-completed {
    background: #10b981;
}

/* Completed step */
.iscf-step-completed .iscf-step-number {
    background: #10b981;
    color: #fff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.iscf-step-completed .iscf-step-label {
    color: #10b981;
}

.iscf-step-check {
    width: 20px;
    height: 20px;
}

/* Current step */
.iscf-step-current .iscf-step-number {
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.4);
    transform: scale(1.1);
}

.iscf-step-current .iscf-step-label {
    color: #3b82f6;
    font-weight: 600;
}

/* Upcoming step */
.iscf-step-upcoming .iscf-step-number {
    background: #fff;
    color: #94a3b8;
    border: 2px solid #e2e8f0;
}

.iscf-step-upcoming .iscf-step-label {
    color: #94a3b8;
}

/* Compact mode */
.iscf-progress-compact {
    padding: 1rem;
}

.iscf-progress-compact .iscf-step-number {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
}

.iscf-progress-compact .iscf-step-check {
    width: 16px;
    height: 16px;
}

.iscf-progress-compact .iscf-connector,
.iscf-progress-compact .iscf-connector-completed {
    min-width: 16px;
    max-width: 40px;
    height: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .iscf-progress-indicator {
        padding: 1rem;
        overflow-x: auto;
    }

    .iscf-progress-steps {
        min-width: max-content;
        padding: 0 0.5rem;
    }

    .iscf-step-number {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }

    .iscf-step-label {
        font-size: 0.65rem;
        max-width: 50px;
        white-space: normal;
        line-height: 1.2;
    }

    .iscf-connector,
    .iscf-connector-completed {
        min-width: 12px;
        max-width: 24px;
    }

    .iscf-step-check {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .iscf-step-label {
        display: none;
    }

    .iscf-progress-steps {
        gap: 4px;
    }
}

/* Animation for step transitions */
@keyframes iscf-step-complete {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.iscf-step-completed .iscf-step-number {
    animation: iscf-step-complete 0.4s ease-out;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .iscf-step-completed .iscf-step-number {
        border: 2px solid #000;
    }

    .iscf-step-current .iscf-step-number {
        border: 2px solid #000;
    }

    .iscf-step-upcoming .iscf-step-number {
        border: 2px solid #666;
    }

    .iscf-connector,
    .iscf-connector-completed {
        height: 4px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .iscf-step-number,
    .iscf-step-label,
    .iscf-connector,
    .iscf-connector-completed {
        transition: none;
    }

    .iscf-step-completed .iscf-step-number {
        animation: none;
    }
}

