/* ==========================================================================
   a1_daesung_process_4step-circle (원본 기반 — webpio primary 컬러 + 5-step 적응)
   Pill 컨테이너 + 원형 스텝 + 연결선/화살점
   ========================================================================== */

:root {
    --wdp-primary:        #2459E5;    /* webpio primary */
    --wdp-accent:         #2459E5;
    --wdp-text-primary:   #191919;
    --wdp-text-inverse:   #FFFFFF;
    --wdp-surface-white:  #FFFFFF;
    --wdp-surface-light:  #F7F8FA;
    --wdp-border-default: #E8E8E8;
}

.wd-process {
    font-family: inherit;
}

.wd-process__steps {
    padding: 70px 60px;
    border-radius: 210px;
    background-color: var(--wdp-surface-light);
}

.wd-process__list {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 70px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.wd-process__step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: calc((100% - 280px) / 5);
    aspect-ratio: 1 / 1;
    text-align: center;
    border-radius: 50%;
    background-color: var(--wdp-surface-white);
    box-shadow: 0 4px 14px rgba(15, 18, 32, 0.04);
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

.wd-process__step-icon,
.wd-process__step-label,
.wd-process__step-name {
    transition: color 0.5s ease;
}

/* 연결선 */
.wd-process__step::before {
    content: "";
    position: absolute;
    right: -70px;
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    height: 1px;
    background-color: var(--wdp-border-default);
}

/* 화살표 점 */
.wd-process__step::after {
    content: "";
    position: absolute;
    right: -43px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--wdp-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpolygon points='11,9 21,15 11,21' fill='white'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
}

.wd-process__step:last-child::before,
.wd-process__step:nth-child(5n)::before {
    display: none;
}

.wd-process__step:last-child::after,
.wd-process__step:nth-child(5n)::after {
    display: none;
}

/* 스텝 아이콘 */
.wd-process__step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin-bottom: 12px;
    color: var(--wdp-primary);
}
.wd-process__step-icon svg {
    width: 100%;
    height: 100%;
}
.wd-process__step-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* 스텝 텍스트 */
.wd-process__step-label {
    font-family: var(--font-en, 'Urbanist', 'Pretendard', sans-serif);
    font-size: 11px;
    font-weight: 700;
    color: var(--wdp-primary);
    line-height: 1.4;
    letter-spacing: 0.1em;
}
.wd-process__step-name {
    margin-top: 4px;
    font-size: 20px;
    font-weight: 700;
    color: var(--wdp-text-primary);
    line-height: 1.35;
    letter-spacing: -0.03em;
}

/* 활성 스텝 — 배경 채움 대신 primary 링 + 라벨 강조 */
.wd-process__step--active {
    box-shadow: 0 0 0 2px var(--wdp-primary), 0 8px 24px rgba(36, 89, 229, 0.15);
}
.wd-process__step--active .wd-process__step-name {
    color: var(--wdp-primary);
}

/* ── 1540px ── */
@media (max-width: 1540px) {
    .wd-process__steps {
        padding: 50px 40px;
    }
    .wd-process__list {
        gap: 36px 50px;
    }
    .wd-process__step {
        width: calc((100% - 200px) / 5);
    }
    .wd-process__step::before {
        right: -50px;
        width: 50px;
    }
    .wd-process__step::after {
        right: -34px;
    }
}

/* ── 1240px: 2-column 그리드 ── */
@media (max-width: 1240px) {
    .wd-process__step-icon {
        width: 64px;
        height: 64px;
    }
    .wd-process__step-label {
        font-size: 10px;
    }
    .wd-process__step-name {
        font-size: 17px;
    }
    .wd-process__list {
        max-width: 720px;
        margin: 0 auto;
        gap: 36px 60px;
    }
    .wd-process__step {
        width: calc((100% - 60px) / 2);
    }
    /* 2-col: 짝수 번째와 마지막은 connector 숨김 */
    .wd-process__step::before,
    .wd-process__step::after {
        display: none;
    }
}

@media (max-width: 767px) {
    .wd-process__steps {
        padding: 40px 28px;
        border-radius: 120px;
    }
}

@media (max-width: 620px) {
    .wd-process__steps {
        padding: 28px 18px;
        border-radius: 80px;
    }
    .wd-process__list {
        gap: 24px 24px;
    }
    .wd-process__step {
        width: calc((100% - 24px) / 2);
    }
    .wd-process__step-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 8px;
    }
    .wd-process__step-label {
        font-size: 9px;
    }
    .wd-process__step-name {
        font-size: 15px;
    }
}
