
/*
 * DIGIKROM Szalona Italia — shared purchase flow
 * v0.6.1
 */

.dksi-flow-hero,
.dksi-flow-hero * {
    box-sizing: border-box;
}

.dksi-flow-hero {
    --dksi-flow-green-950: #0d2417;
    --dksi-flow-green-900: #112c1c;
    --dksi-flow-green-800: #173a24;
    --dksi-flow-green-600: #197b34;
    --dksi-flow-radius: 4px;

    position: relative;
    overflow: hidden;

    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(460px, .84fr);
    align-items: center;
    gap: 44px;

    width: 100%;
    min-height: 176px;
    margin: 30px 0;
    padding: clamp(26px, 3vw, 42px);

    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--dksi-flow-radius);

    background:
        radial-gradient(circle at 88% 8%, rgba(31,138,58,.22), transparent 27%),
        linear-gradient(120deg, var(--dksi-flow-green-950) 0%, var(--dksi-flow-green-900) 54%, #173d24 100%);

    box-shadow: 0 20px 54px rgba(13,36,23,.15);
}

.dksi-flow-hero::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(
        to bottom,
        #1c8c3d 0 33.333%,
        #fff 33.333% 66.666%,
        #d23632 66.666% 100%
    );
}

.dksi-flow-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -130px;
    width: 320px;
    height: 320px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    box-shadow:
        0 0 0 38px rgba(255,255,255,.022),
        0 0 0 78px rgba(255,255,255,.015);
    pointer-events: none;
}

.dksi-flow-hero__copy,
.dksi-flow-steps {
    position: relative;
    z-index: 1;
}

.dksi-flow-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #9ed8a9;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
}

.dksi-flow-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 3.7vw, 58px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.045em;
}

.dksi-flow-hero p {
    max-width: 650px;
    margin: 14px 0 0;
    color: rgba(255,255,255,.7);
    font-size: clamp(13px, 1.05vw, 16px);
    line-height: 1.6;
}

.dksi-flow-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dksi-flow-step {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 62px;
    padding: 11px 12px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: var(--dksi-flow-radius);
    background: rgba(255,255,255,.055);
    color: rgba(255,255,255,.58);
}

.dksi-flow-step__number {
    display: grid;
    flex: 0 0 32px;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.72);
    font-size: 10px;
    font-weight: 800;
}

.dksi-flow-step__label {
    min-width: 0;
    color: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.dksi-flow-step.is-active {
    border-color: rgba(91,190,108,.55);
    background: var(--dksi-flow-green-600);
    color: #fff;
}

.dksi-flow-step.is-active .dksi-flow-step__number {
    border-color: rgba(255,255,255,.28);
    background: #fff;
    color: var(--dksi-flow-green-800);
}

.dksi-flow-step.is-complete {
    background: rgba(255,255,255,.11);
    color: #fff;
}

@media (max-width: 900px) {
    .dksi-flow-hero {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 620px) {
    .dksi-flow-hero {
        min-height: 0;
        padding: 24px 20px;
    }

    .dksi-flow-steps {
        gap: 5px;
    }

    .dksi-flow-step {
        justify-content: center;
        min-height: 48px;
        padding: 8px 5px;
    }

    .dksi-flow-step__label {
        display: none;
    }

    .dksi-flow-step__number {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
    }
}

.dksi-flow-hero h1 br { display: block; }
.dksi-flow-hero__copy { max-width: 620px; }
