.ms-1fdc784f-wrapper {
    position: relative;
    width: 100%;
    padding: 20px 0;
    box-sizing: border-box;
}

.ms-1fdc784f-timeline-container {
    position: relative;
    width: 100%;
}

/* 
Connecting track line: 
Positioned precisely in the horizontal center of the badge container.
Offset starts dynamically at half-badge size from top/bottom.
*/
.ms-1fdc784f-progress-line {
    position: absolute;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 1; /* Below badge container */
}

.ms-1fdc784f-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: #ffffff;
    transition: height 0.1s linear;
    z-index: 1;
}

.ms-1fdc784f-steps-container {
    display: flex;
    flex-direction: column;
    gap: 60px; /* Custom gap between steps */\n    width: 100%;
    position: relative;
    z-index: 2;
}

.ms-1fdc784f-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    width: 100%;
}

.ms-1fdc784f-step.is-active {
    transform: translateY(0);
}

/* Badge container holds the flex baseline so horizontal centering is flawless */
.ms-1fdc784f-badge-container {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3; /* Always on top of lines */
    position: relative;
    flex-shrink: 0;
}

.ms-1fdc784f-badge {
    border-radius: 50%;
    border: 1px solid #ffffff;
    background-color: #000000;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, border-radius 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
    z-index: 4;
    opacity: 1 !important; /* Keep badge background fully opaque at all times */
}

/* Badge shape modifications */
.ms-shape--square .ms-1fdc784f-badge {
    border-radius: 4px;
}

.ms-shape--none .ms-1fdc784f-badge {
    border-radius: 0;
    border: none !important;
    background: transparent !important;
}

.ms-1fdc784f-step.is-active .ms-1fdc784f-badge {
    transform: scale(1.1);
}

.ms-1fdc784f-content {
    flex: 1;
    min-width: 0; /* Prevents text overflow breaks in grid/flex environments */\n    padding-top: 4px; /* Align slightly downward to match badge baseline vertical center */
    opacity: 0.4; /* Content opacity changes instead of the entire step */
    transition: opacity 0.5s ease;
}

.ms-1fdc784f-step.is-active .ms-1fdc784f-content {
    opacity: 1;
}

.ms-1fdc784f-title {
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.ms-1fdc784f-subtitle {
    display: block;
    font-size: 14px;
    font-style: italic;
    margin-bottom: 12px;
}

.ms-1fdc784f-description {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}
