/**
 * Journey stepper styles
 *
 * @package Silva_Customer_Portal
 * @since 3.2.0
 */

.journey-stepper {
    margin: 16px 0 0;
    padding: 0;
}

.journey-stepper__list {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.journey-stepper__list::-webkit-scrollbar {
    display: none;
}

.journey-stepper__step {
    flex: 1 1 0;
    min-width: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    position: relative;
}

.journey-stepper__step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 12px;
    left: calc(50% + 14px);
    width: calc(100% - 28px);
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.journey-stepper__step--complete:not(:last-child)::after {
    background: #10b981;
}

.journey-stepper__dot {
    position: relative;
    z-index: 1;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.journey-stepper__step--current .journey-stepper__dot {
    background: var(--primary-color, #014385);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(1, 67, 133, 0.15);
}

.journey-stepper__step--complete .journey-stepper__dot {
    background: #10b981;
    color: #fff;
}

.journey-stepper__label {
    font-size: 10px;
    font-weight: 600;
    color: #6b7280;
    line-height: 1.2;
    max-width: 72px;
}

.journey-stepper__step--current .journey-stepper__label {
    color: var(--primary-color, #014385);
}

.journey-stepper__step--complete .journey-stepper__label {
    color: #059669;
}

.property-greeting {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted, #6b7280);
}

@media (min-width: 769px) {
    .journey-stepper__label {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .journey-stepper__label {
        font-size: 9px;
        max-width: 56px;
    }
}
