/* Stepper CSS - Stepper component styles */

/* Stepper Container */
.stepper-container {
    margin-bottom: 50px;
    padding: 20px 0;
    overflow: hidden;
}

.stepper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: nowrap;
    gap: 0;
    direction: rtl;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 150px;
}

.step-circle {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    background: #f8fafc;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid #e2e8f0;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    z-index: 2;
}

.step.active .step-circle {
    background: linear-gradient(135deg, #C06E4F 0%, #A85838 100%);
    color: white;
    border-color: #C06E4F;
    box-shadow: 0 8px 24px rgba(192, 110, 79, 0.38), 0 0 0 4px rgba(192, 110, 79, 0.12);
    transform: scale(1.15);
}

.step.completed .step-circle {
    background: linear-gradient(135deg, #C06E4F 0%, #A85838 100%);
    color: white;
    border-color: #C06E4F;
    box-shadow: 0 6px 20px rgba(192, 110, 79, 0.35);
    transform: scale(1.05);
}

.step.completed .step-circle::after {
    content: '✓';
    position: absolute;
    font-size: 28px;
    font-weight: bold;
    animation: checkmark 0.5s ease-in-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(0deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.step-label {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    text-align: center;
    min-width: 100px;
    transition: all 0.3s ease;
    line-height: 1.3;
}

.step.active .step-label {
    color: #C06E4F;
    font-weight: 700;
    transform: translateY(-2px);
}

.step.completed .step-label {
    color: #C06E4F;
    font-weight: 600;
}

.step-connector {
    display: none;
}

/* Step Content */
.step-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.step-content.active {
    display: block;
}

/* Mobile Responsive Stepper */
@media (max-width: 768px) {
    .stepper-container {
        margin-bottom: 20px;
    }

    .stepper {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: 0 5px;
    }

    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        position: relative;
        margin: 0;
        background: transparent;
        border-radius: 12px;
        transition: all 0.3s ease;
        flex-shrink: 0;
    }

    .step-circle {
        width: 35px !important;
        height: 35px !important;
        border-radius: 50% !important;
        background: #f3f4f6;
        color: #6b7280;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 14px;
        transition: all 0.4s ease;
        border: 2px solid #e5e7eb;
        position: relative;
        z-index: 2;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    }

    .step.active .step-circle {
        background: linear-gradient(135deg, #C06E4F 0%, #A85838 100%);
        color: white;
        border-color: #C06E4F;
        box-shadow: 0 4px 15px rgba(192, 110, 79, 0.38);
        transform: scale(1.1);
    }

    .step.completed .step-circle {
        background: linear-gradient(135deg, #C06E4F 0%, #A85838 100%);
        color: white;
        border-color: #C06E4F;
        box-shadow: 0 4px 15px rgba(192, 110, 79, 0.3);
    }

    .step.completed .step-circle::after {
        content: '✓';
        position: absolute;
        font-size: 16px;
        font-weight: bold;
    }

    /* Hide step names in mobile */
    .step-label {
        display: none;
    }

    /* Horizontal connection lines */
    .step-connector {
        display: block;
        width: 20px;
        height: 2px;
        background: #e5e7eb;
        margin: 0;
        transition: all 0.3s ease;
        border-radius: 1px;
    }

    .step.completed + .step .step-connector,
    .step.completed .step-connector {
        background: linear-gradient(90deg, #C06E4F, #A85838);
    }

    /* Mobile heading - Hidden */
    .stepper-container::before {
        display: none;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
    .stepper {
        padding: 15px 10px;
        gap: 10px;
    }

    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .step-connector {
        width: 20px;
        height: 2px;
    }
}

/* Dark Mode */
[data-theme="dark"] .stepper-container { background: transparent !important; }
[data-theme="dark"] .step-circle { background: #334155 !important; color: #94a3b8 !important; border-color: #475569 !important; }
[data-theme="dark"] .step.active .step-circle { background: #C06E4F !important; color: white !important; }
[data-theme="dark"] .step.completed .step-circle { background: #C06E4F !important; color: white !important; }
[data-theme="dark"] .step-label { color: #94a3b8 !important; }
[data-theme="dark"] .step.active .step-label { color: #C06E4F !important; }
[data-theme="dark"] .step-connector { background: #334155 !important; }
[data-theme="dark"] .step-connector.completed { background: #C06E4F !important; }

/* Fix white circle in dark mode */
[data-theme="dark"] .step-circle { background: #334155 !important; color: #94a3b8 !important; }
