/* ===== Process: 2-column steps with alternating sides (fixed) ===== */

/* one step per row */
.process .proc-grid {
    grid-template-columns: 1fr !important;
    row-gap: 96px;
    column-gap: 0;
}

/* STEP CARD */
.proc-step {
    /* Wider media by default */
    --media-col: 1.35fr;
    --text-col: 0.65fr;

    display: grid;
    grid-template-columns: var(--media-col) var(--text-col);
    align-items: center;
    gap: 32px;
    padding: 28px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .75), rgba(255, 255, 255, .60));
    border: 1px solid rgba(12, 19, 31, .08);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .08), inset 0 1px 0 rgba(255, 255, 255, .70);
    backdrop-filter: blur(8px) saturate(140%);
    -webkit-backdrop-filter: blur(8px) saturate(140%);
    max-width: 1200px;
    margin: 20px;
}

/* Even rows: flip order AND swap column widths
   -> keeps animation in the wider column on the right */
.proc-step:nth-child(even) {
    --media-col: 0.65fr;
    --text-col: 1.35fr;
}

.proc-step:nth-child(even) .proc-anim {
    order: 2;
}

.proc-step:nth-child(even) .proc-body {
    order: 1;
}

/* Animation frame */
.proc-anim {
    border-radius: 14px;
    background:
        radial-gradient(90% 120% at 10% 0%, rgba(114, 113, 251, .18), transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .12));
    border: 1px solid rgba(12, 19, 31, .10);
    box-shadow: 0 12px 28px rgba(10, 19, 40, .12), inset 0 1px 0 rgba(255, 255, 255, .45);
    overflow: hidden;
    max-width: none;
    margin: 0;
}

/* keep animations crisp */
.lottie-box,
.anim {
    aspect-ratio: 16/9;
    width: 100%;
    height: auto;
}

/* Text column */
.proc-body {
    text-align: left;
}

.proc-body h3 {
    margin: 2px 0 8px;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
    color: #0b1220;
}

.proc-body p {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: #425064;
}

.proc-kicker {
    display: inline-block;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6c7a92;
    background: rgba(12, 19, 31, .05);
    border: 1px solid rgba(12, 19, 31, .08);
    border-radius: 999px;
    padding: 4px 8px;
    margin-bottom: 8px;
}

/* Hover */
.proc-step:hover {
    box-shadow: 0 16px 36px rgba(66, 61, 252, .16), inset 0 1px 0 rgba(255, 255, 255, .75);
    transform: translateY(-2px);
    transition: box-shadow .25s ease, transform .2s ease;
}

/* Stack on mobile */
@media (max-width: 992px) {
    .proc-step {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 18px;
    }

    .proc-step .proc-anim,
    .proc-step .proc-body {
        order: 0;
    }

    /* cancel alternating */
    .proc-body {
        text-align: center;
    }

    .proc-kicker {
        justify-self: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .proc-step {
        transition: none;
    }
}

/* Stacked variant: text on top, animation full width */
.proc-step--stack {
    grid-template-columns: 1fr;
    /* single column */
    gap: 18px;
}

.proc-step--stack .proc-body {
    max-width: 760px;
    /* readable line-length */
}

.proc-step--stack .proc-anim.proc-anim--full {
    /* let the animation span the whole card width */
    grid-column: 1 / -1;
    border-radius: 16px;
}

/* Make the inner scanner breathe more on wide screens */
.proc-step--stack #procStep2Scanner .qual-grid {
    grid-template-columns: 1.15fr 0.85fr;
    /* list | score */
    gap: 18px;
}

/* If you truly want edge-to-edge inside the card, remove inner padding: */
.proc-step--stack #procStep2Scanner .qual-panel {
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: 0;
}

/* Optional: allow this one step to use the full panel width (ignore 1200px cap) */
.proc-step--stack {
    max-width: 100%;
}

/* comment out if you prefer the 1200px cap */