.ef-process {
    --ef-line-start: #E0460A;
    --ef-line-end: #EE7A05;
    --ef-glow: rgba(236, 133, 30, .32);
    position: relative;
    width: 100%;
    margin: 0 auto;
    border: 1px solid rgba(236, 133, 30, .55);
    background: rgba(255, 255, 255, .02);
    overflow: hidden;
    box-sizing: border-box;
    box-shadow:
        inset 12px 0 18px -13px var(--ef-glow),
        inset -12px 0 18px -13px var(--ef-glow),
        inset 0 12px 18px -14px var(--ef-glow),
        inset 0 -12px 18px -14px var(--ef-glow),
        0 14px 40px rgba(0,0,0,.18);
}

.ef-process,
.ef-process * { box-sizing: border-box; }

.ef-process h3,
.ef-process p,
.ef-process-title,
.ef-process-description {
    margin: 0;
    padding: 0;
    text-transform: none;
    letter-spacing: normal;
}

/* ================= DESKTOP ================= */
.ef-process-desktop {
    --ef-line-y: 28px;
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    min-height: 420px;
}

.ef-process-horizontal-line {
    position: absolute;
    left: 0;
    right: 0;
    bottom: var(--ef-line-y);
    height: 7px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ef-line-start), var(--ef-line-end));
}

.ef-process-step {
    position: relative;
    min-width: 0;
    text-align: center;
    padding: 0 14px;
}

.ef-process-copy {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 28px);
    max-width: 235px;
    z-index: 2;
}

.ef-process-step-top .ef-process-copy { top: 0; }
.ef-process-step-bottom .ef-process-copy { top: 155px; }

.ef-process-title {
    color: #EC851E;
    font-family: Montserrat, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.ef-process-description {
    margin-top: 14px;
    color: #fff;
    font-family: Montserrat, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
    text-align: center;
}

.ef-process-number {
    position: absolute;
    left: 50%;
    bottom: calc(var(--ef-line-y) - 13px);
    transform: translateX(-50%);
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--ef-line-start), var(--ef-line-end));
    font-family: Montserrat, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    box-shadow: none;
    border: 0;
}

.ef-process-connector {
    position: absolute;
    left: 50%;
    width: 3px;
    transform: translateX(-50%);
    z-index: 1;
    background: linear-gradient(180deg, transparent 0%, rgba(236,133,30,.28) 18%, var(--ef-line-end) 100%);
    box-shadow: 0 0 10px rgba(236,133,30,.15);
}

.ef-process-step-top .ef-process-connector {
    top: 132px;
    bottom: calc(var(--ef-line-y) + 17px);
}

.ef-process-step-bottom .ef-process-connector {
    top: 274px;
    bottom: calc(var(--ef-line-y) + 17px);
}

.ef-process-mobile { display: none; }

@media (max-width: 1024px) and (min-width: 768px) {
    .ef-process-desktop { min-height: 400px; }
    .ef-process-copy { max-width: 180px; }
    .ef-process-step { padding: 0 8px; }
    .ef-process-title { font-size: 16px; }
    .ef-process-description { font-size: 13px; }
    .ef-process-step-bottom .ef-process-copy { top: 150px; }
}

/* ================= MOBILE ================= */
@media (max-width: 767px) {
    .ef-process {
        padding: 26px 14px 26px !important;
    }

    .ef-process-desktop { display: none; }

    .ef-process-mobile {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .ef-process-mobile-step {
        position: relative;
        text-align: center;
        padding: 0 0 30px;
    }

    .ef-process-mobile-step:last-child { padding-bottom: 0; }

    .ef-process-mobile-marker {
        position: relative;
        display: block;
        width: 100%;
        height: 36px;
        margin-bottom: 6px;
    }

    .ef-process-mobile-line {
        position: absolute;
        left: 0;
        top: 50%;
        width: 50%;
        height: 3px;
        transform: translateY(-50%);
        background: linear-gradient(90deg, transparent 0%, var(--ef-line-start) 42%, var(--ef-line-end) 100%);
        box-shadow: 0 0 8px rgba(236,133,30,.12);
    }

    .ef-process-mobile-marker::after { display: none; }

    .ef-process-mobile .ef-process-number {
        position: absolute;
        left: 50%;
        top: 50%;
        bottom: auto;
        transform: translate(-50%, -50%);
        width: 34px;
        height: 34px;
    }

    .ef-process-mobile-step .ef-process-title {
        max-width: 250px;
        margin: 0 auto;
        font-size: 16px;
        line-height: 1.25;
    }

    .ef-process-mobile-step .ef-process-description {
        max-width: 250px;
        margin: 12px auto 0;
        font-size: 14px;
        line-height: 1.55;
    }
}
