/* Auto Glass World - Next steps (modules/global/global_steps.php) */
.agw-stp {
    position: relative;
    padding: var(--agw-space-section) 0;
    background: var(--agw-color-pale);
    view-timeline-name: --agw-stp;
}

.agw-stp-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: var(--agw-gap);
    align-items: start;
}

.agw-stp-intro {
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
}

.agw-stp-intro .eyebrow {
    margin-bottom: calc(var(--agw-label-gap) - 22px);
}

.agw-stp-intro .agw-lead {
    max-width: 36ch;
}

/* Steps: round numbers joined by a line that fills as the section scrolls by. */
.agw-stp-list {
    position: relative;
    margin-top: 14px;
}

.agw-stp-list ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.agw-stp-list::before,
.agw-stp-fill {
    content: "";
    position: absolute;
    top: 44px;
    bottom: 44px;
    left: 21px;
    width: 1px;
    background: rgba(11, 30, 61, 0.18);
}

.agw-stp-fill {
    left: 20.5px;
    width: 2px;
    background: var(--agw-color-primary);
    transform: scaleY(0);
    transform-origin: top;
}

.agw-stp-list li {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 20px;
    padding-bottom: 30px;
}

.agw-stp-list li:last-child {
    padding-bottom: 0;
}

.agw-stp-n {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #c4cfe2;
    border-radius: 50%;
    background: var(--agw-color-white);
    color: var(--agw-color-primary);
    font-family: var(--agw-font-mono);
    font-size: var(--agw-fs-label);
    font-weight: 500;
}

.agw-stp-list h3 {
    margin: 0 0 4px;
    padding-top: 8px;
    color: var(--agw-color-navy);
    font-size: var(--agw-fs-card);
}

.agw-stp-list p {
    margin: 0;
    font-size: var(--agw-fs-text);
    line-height: 1.55;
}

/* No scroll timelines: show the line full. */
@supports not (animation-timeline: view()) {
    .agw-stp-fill {
        transform: none;
    }
}

@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .agw-stp-fill {
            animation: agw-grow-y linear both;
            animation-timeline: --agw-stp;
            animation-range: cover 12% cover 55%;
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    .agw-stp-fill {
        transform: none;
    }
}

@keyframes agw-grow-y {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

@media (max-width: 991px) {
    .agw-stp-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
