.flow-page {
    max-width: 960px;
    margin: 0 auto;
}

.flow-back-link {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border: 1px solid #eee2df;
    border-radius: 9px;
    background: #fff;
    color: #655d5b;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.flow-back-link span {
    color: #a33335;
    font-size: 18px;
    line-height: 1;
}

.flow-back-link:hover {
    border-color: #d9b8b2;
    background: #fffaf8;
    color: #a33335;
}

.flow-heading {
    max-width: 680px;
    margin: 34px auto 42px;
    text-align: center;
}

.flow-eyebrow {
    color: #a33335;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.flow-heading h1 {
    margin: 10px 0 0;
    color: #292525;
    font-size: clamp(27px, 4vw, 39px);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.2;
}

.flow-heading p {
    margin: 12px auto 0;
    color: #716967;
    font-size: 16px;
    line-height: 1.7;
}

.flow-timeline {
    display: grid;
    gap: 28px;
}

.flow-group-title {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 15px;
    color: #433c3a;
    font-size: 16px;
    font-weight: 700;
}

.flow-group-title::before {
    width: 4px;
    height: 17px;
    border-radius: 4px;
    background: #a33335;
    content: "";
}

.flow-steps {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.flow-step {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
}

.flow-step:not(:last-child)::after {
    position: absolute;
    top: 40px;
    bottom: -11px;
    left: 20px;
    width: 1px;
    background: #eadbd7;
    content: "";
}

.flow-step-number {
    position: relative;
    z-index: 1;
    display: grid;
    width: 41px;
    height: 41px;
    place-items: center;
    border: 1px solid #ead6d1;
    border-radius: 50%;
    background: #fff8f6;
    color: #a33335;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.flow-step-content {
    min-height: 68px;
    padding: 13px 16px;
    border: 1px solid #eee6e3;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(69, 43, 38, 0.025);
}

.flow-step-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.flow-step-content h3 {
    margin: 0;
    color: #342e2c;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}

.flow-step-content p {
    margin: 5px 0 0;
    color: #716967;
    font-size: 16px;
    line-height: 1.7;
}

.flow-badge {
    display: inline-flex;
    min-height: 21px;
    align-items: center;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.flow-badge--optional {
    background: #f4f0e7;
    color: #80611c;
}

.flow-status {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 5px;
    background: #f2f5f0;
    color: #536c48;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.flow-status--rejected {
    background: #fbefed;
    color: #a33335;
}

.flow-back-link:focus-visible {
    outline: 3px solid rgba(163, 51, 53, 0.25);
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .flow-heading {
        margin: 27px auto 30px;
        text-align: left;
    }

    .flow-heading h1 {
        font-size: 29px;
    }

    .flow-heading p {
        font-size: 16px;
    }

    .flow-timeline {
        gap: 23px;
    }

    .flow-group-title {
        font-size: 16px;
    }

    .flow-step {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 10px;
    }

    .flow-step-number {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .flow-step:not(:last-child)::after {
        top: 34px;
        left: 16px;
    }

    .flow-step-content {
        min-height: 62px;
        padding: 11px 12px;
    }

    .flow-step-content h3 {
        font-size: 16px;
    }

    .flow-step-content p {
        font-size: 16px;
    }
}
