/* ── Process steps ──────────────────────────────────────────
   Figma: desktop 3093:120496 — numbers joined by a grey line,
   a step under each; mobile 3093:120817 — a list, the number
   beside each step, the button after them.
   ─────────────────────────────────────────────────────────── */

.process-steps {
    padding: 40px var(--pad-x) var(--pad-y);
    background: var(--color-grey-light);
}

.process-steps__inner {
    display: flex;
    flex-direction: column;
    gap: 52px;
    max-width: var(--site-max-w);
    margin: 0 auto;
}

.process-steps__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 20px;
}

.process-steps__head > div {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.process-steps__title {
    font-size: 45px;
    font-weight: 600;
    line-height: 48px;
}

.process-steps__button {
    flex: none;
    min-width: 157px;
}

.process-steps__button--end {
    display: none;
}

.process-steps__list {
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    list-style: none;
}

.process-steps__step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

/* The line through the numbers: from the first's middle to the last's */
.process-steps__step::before {
    content: "";
    position: absolute;
    top: 23px;
    right: 0;
    left: 0;
    height: 2px;
    background: var(--color-border);
}

.process-steps__step:first-child::before {
    left: 50%;
}

.process-steps__step:last-child::before {
    right: 50%;
}

.process-steps__number {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    line-height: 25px;
}

.process-steps__words {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 250px; /* the longest step (Book a slot) on two lines */
    color: var(--color-text-muted);
    line-height: 20.8px;
    text-wrap: pretty; /* no one word on a line of its own */
}

.process-steps__words strong {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 20px;
}

/* ── Next (the order confirmation, 3109:35752): white, the
   heading centred, step one done ────────────────────────────── */
.process-steps--next {
    background: var(--color-white);
}

.process-steps--next .process-steps__head {
    justify-content: center;
    text-align: center;
}

.process-steps--next .process-steps__step:first-child .process-steps__number {
    background: var(--color-secondary);
}

.process-steps--next .process-steps__words {
    max-width: 393px;
    font-family: var(--font-body);
}

.process-steps--next .process-steps__words strong {
    font-size: 20px;
    font-weight: 600;
    line-height: 25px;
}

@media (max-width: 1024px) {
    .process-steps__title {
        font-size: 32px;
        line-height: 36px;
    }
}

/* ── Mobile: a list ─────────────────────────────────────────── */
@media (max-width: 767px) {
    .process-steps__inner {
        gap: 24px;
    }

    .process-steps__head > div {
        gap: 4px;
        font-family: var(--font-body);
        font-weight: 400;
        line-height: 20.8px;
    }

    .process-steps__title {
        font-family: var(--font-heading);
        font-size: 28px;
        line-height: 36px;
    }

    .process-steps__head .process-steps__button {
        display: none;
    }

    .process-steps__button--end {
        display: inline-flex;
    }

    .process-steps__list {
        grid-auto-flow: row;
        gap: 20px;
    }

    .process-steps__step {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }

    .process-steps__step::before {
        display: none;
    }

    .process-steps__number {
        flex: none;
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .process-steps__words {
        max-width: none;
        gap: 4px;
    }
}
