/* 업무 흐름 섹션 스타일 */
.business-flow-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0a0e27 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 배경 장식 요소 */
.business-flow-section .glow-1,
.business-flow-section .glow-2,
.business-flow-section .glow-3 {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    pointer-events: none;
}

.business-flow-section .glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #4f46e5 0%, transparent 70%);
    top: -200px;
    left: -100px;
    animation: pulse 8s ease-in-out infinite;
}

.business-flow-section .glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
    bottom: -150px;
    right: -100px;
    animation: pulse 10s ease-in-out infinite 2s;
}

.business-flow-section .glow-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 12s ease-in-out infinite 4s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.2); opacity: 0.25; }
}

/* 배경 그리드 */
.business-flow-section .bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* 컨테이너 */
.business-flow-container {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    z-index: 1;
}

/* 헤더 */
.business-flow-header {
    text-align: center;
    margin-bottom: 30px;
}

.business-flow-title {
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.business-flow-subtitle {
    font-size: 15px;
    color: #94a3b8;
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto;
}

/* 업무 흐름 그리드 */
.flow-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    position: relative;
}

/* 흐름 카드 */
.flow-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.flow-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

/* 단계 번호 */
.flow-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
}

.flow-card:hover .flow-step {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.6);
}

/* 흐름 아이콘 */
.flow-icon {
    font-size: 40px;
    margin-bottom: 12px;
    filter: grayscale(0);
    transition: all 0.3s ease;
}

.flow-card:hover .flow-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.6));
}

/* 흐름 제목 */
.flow-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.3;
}

/* 흐름 설명 */
.flow-description {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
}

/* 화살표 (데스크톱에서만 표시) */
.flow-arrow {
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    font-size: 32px;
    color: #8b5cf6;
    opacity: 0.6;
    z-index: 2;
    pointer-events: none;
    animation: arrowMove 1.5s ease-in-out infinite;
}

@keyframes arrowMove {
    0%, 100% { transform: translateY(-50%) translateX(0); opacity: 0.6; }
    50% { transform: translateY(-50%) translateX(8px); opacity: 1; }
}

/* 마지막 카드의 화살표 숨김 */
.flow-card:last-child .flow-arrow {
    display: none;
}

/* CTA 섹션 */
.flow-cta {
    text-align: center;
    margin-top: 30px;
    padding: 35px 30px;
    background: rgba(139, 92, 246, 0.05);
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.flow-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.flow-cta-title {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.flow-cta-subtitle {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 20px;
    line-height: 1.5;
}

.flow-cta-btn,
button.flow-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 35px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    text-decoration: none;
    position: relative;
    z-index: 1;
    font-family: inherit;
}

.flow-cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.6);
}

.flow-cta-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.flow-cta-btn .btn-icon {
    font-size: 18px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .flow-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .flow-arrow {
        display: none;
    }
    
    .business-flow-title {
        font-size: 32px;
    }
}

@media (max-width: 1024px) {
    .business-flow-section {
        padding: 30px 20px;
        min-height: 700px;
    }
    
    .business-flow-header {
        margin-bottom: 25px;
    }
    
    .business-flow-title {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .business-flow-subtitle {
        font-size: 14px;
    }
    
    .flow-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .flow-card {
        padding: 20px 15px;
    }
    
    .flow-step {
        width: 45px;
        height: 45px;
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .flow-icon {
        font-size: 35px;
        margin-bottom: 10px;
    }
    
    .flow-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .flow-description {
        font-size: 12px;
    }
    
    .flow-cta {
        margin-top: 25px;
        padding: 30px 20px;
    }
    
    .flow-cta-title {
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .flow-cta-subtitle {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .flow-cta-btn {
        padding: 12px 28px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .business-flow-section {
        height: 100vh;
        min-height: 100vh;
        padding: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .business-flow-container {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        height: 100%;
        justify-content: center;
    }
    
    .business-flow-header {
        margin-bottom: 15px;
        flex-shrink: 0;
    }
    
    .business-flow-title {
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .business-flow-subtitle {
        font-size: 11px;
        line-height: 1.4;
    }
    
    .flow-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 15px;
        flex: 1;
        overflow-y: auto;
        max-height: calc(100vh - 250px);
        padding-right: 5px;
    }
    
    .flow-grid::-webkit-scrollbar {
        width: 4px;
    }
    
    .flow-grid::-webkit-scrollbar-thumb {
        background: rgba(139, 92, 246, 0.5);
        border-radius: 2px;
    }
    
    .flow-card {
        padding: 12px;
        border-radius: 12px;
    }
    
    .flow-step {
        width: 32px;
        height: 32px;
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .flow-icon {
        font-size: 24px;
        margin-bottom: 6px;
    }
    
    .flow-title {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .flow-description {
        font-size: 10px;
        line-height: 1.3;
    }
    
    .flow-arrow {
        display: none;
    }
    
    .flow-cta {
        margin-top: 15px;
        padding: 18px 12px;
        border-radius: 16px;
        flex-shrink: 0;
    }
    
    .flow-cta-title {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .flow-cta-subtitle {
        font-size: 10px;
        margin-bottom: 12px;
        line-height: 1.3;
    }
    
    .flow-cta-btn {
        padding: 10px 20px;
        font-size: 13px;
        gap: 6px;
    }
    
    .flow-cta-btn .btn-icon {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .business-flow-section {
        padding: 20px 12px;
    }
    
    .business-flow-title {
        font-size: 24px;
    }
    
    .business-flow-subtitle {
        font-size: 10px;
    }
    
    .flow-cta-title {
        font-size: 18px;
    }
    
    .flow-cta-btn {
        padding: 10px 22px;
        font-size: 13px;
    }
    
    .flow-cta-btn .btn-icon {
        font-size: 16px;
    }
}

/* -------------------------------------------------------------------------
   업무 프로세스 정적 이미지 (index.php) — PC: pc_process.png, MO: mo_process.png
   ------------------------------------------------------------------------- */
.business-flow-section.business-flow-section--process-image {
    height: auto;
    min-height: 0;
    padding: 0;
    background: #000;
    overflow: hidden;
    display: block;
    align-items: stretch;
    justify-content: flex-start;
}

.business-flow-section--process-image .business-flow-image-wrap {
    position: relative;
    width: 100%;
    line-height: 0;
}

/* 모바일 mo_process 하단 '파트너 등록하기' 버튼 — PC에서는 비활성 */
.business-flow-mo-cta-link {
    display: none;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .business-flow-mo-cta-link {
        display: block;
        position: absolute;
        z-index: 2;
        /* 우측 빨간 CTA(이미지 너비 기준 %). 시안과 어긋나면 left/width/bottom/height만 조정 */
        left: 58%;
        width: 40%;
        bottom: 2%;
        height: 11%;
        min-height: 36px;
        overflow: hidden;
        text-decoration: none;
        cursor: pointer;
        background: transparent;
    }

    .business-flow-mo-cta-link:focus-visible {
        outline: 2px solid #fff;
        outline-offset: 3px;
    }
}

.business-flow-section--process-image .process-banner-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.business-flow-section--process-image .process-banner-img-mo {
    display: none;
}

@media (max-width: 768px) {
    .business-flow-section.business-flow-section--process-image {
        height: auto !important;
        min-height: 0 !important;
        padding: 0 !important;
        display: block !important;
        align-items: unset !important;
        justify-content: unset !important;
    }

    .business-flow-section--process-image .process-banner-img-pc {
        display: none;
    }

    .business-flow-section--process-image .process-banner-img-mo {
        display: block;
    }
}

@media (max-width: 480px) {
    .business-flow-section.business-flow-section--process-image {
        padding: 0 !important;
    }
}

