/* أنيميشن تبديل المحتوى */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step.completed {
    color: white;
    align-items: start;
}

.step-content.animate {
    animation: fadeInSlide 0.4s ease-out;
}

/* النقطة عند اكتمال الخطوة (علامة الصح) */
.step.completed .step-dot {
    background-color: #27ae60;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 0 5px rgba(39, 174, 96, 0.5);
    /* align-self: start; */
    width: 20px;
    height: 20px;
}

.step.completed .step-dot::after {
    content: '✓';
    color: black;
    font-size: 15px;
    font-weight: bold;
}

/* تنسيق البيانات المختارة داخل الخطوة في القائمة اليمنى */
.step-summary {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.5s;
    opacity: 0;
}

.step.completed .step-summary {
    max-height: 100px;
    opacity: 1;
    margin-top: 8px;
    padding-right: 15px;
    /* لضمان المحاذاة الدقيقة تحت العنوان */
}

.summary-item {
    padding: 2px 0;
}

.summary-separator {
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
    margin: 4px 0;
    width: 95%;
}

/* زر العودة في الهيدر */
.back-btn {
    cursor: pointer;
    font-size: 1.5rem;
    margin-left: 10px;
    vertical-align: middle;
    transition: transform 0.2s;
}

.back-btn:hover {
    transform: translateX(5px);

}