/* ============================================================
   JZ-PROCESS SECTION v2 — Premium Dark-Accented Steps
   ============================================================ */

.jz-process-section {
    padding: 40px 0 48px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Subtle bg texture */
.jz-process-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 10% 20%, rgba(99,102,241,0.04) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 90% 80%, rgba(168,85,247,0.04) 0%, transparent 60%);
    pointer-events: none;
}

/* Header */
.jz-process-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.jz-process-header .hp-badge-premium {
    margin-bottom: 16px;
    display: inline-flex;
}

.jz-process-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 12px;
}

.jz-process-header p {
    font-size: 1rem;
    color: #64748b;
    margin: 0 auto;
    max-width: 480px;
    line-height: 1.6;
}

/* Progress track above cards */
.jz-process-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
    padding: 0 24px;
}

.jz-process-track-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.jz-process-track-dot:nth-child(1) { background: linear-gradient(135deg, #6366f1, #818cf8); }
.jz-process-track-dot:nth-child(3) { background: linear-gradient(135deg, #10b981, #34d399); }
.jz-process-track-dot:nth-child(5) { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.jz-process-track-dot:nth-child(7) { background: linear-gradient(135deg, #a855f7, #c084fc); }

.jz-process-track-line {
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg, currentColor 0%, currentColor 100%);
    position: relative;
    max-width: 80px;
}

.jz-process-track-line:nth-child(2) { background: linear-gradient(90deg, #6366f1, #10b981); }
.jz-process-track-line:nth-child(4) { background: linear-gradient(90deg, #10b981, #f59e0b); }
.jz-process-track-line:nth-child(6) { background: linear-gradient(90deg, #f59e0b, #a855f7); }

/* Grid */
.jz-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    position: relative;
}

/* Card */
.jz-process-card {
    background: #fff;
    border-radius: 24px;
    padding: 28px 22px 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.jz-process-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(0,0,0,0.09);
}

/* Color accent top bar */
.jz-process-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    border-radius: 24px 24px 0 0;
}

.jz-process-card[data-step="1"]::before { background: linear-gradient(90deg, #6366f1, #818cf8); }
.jz-process-card[data-step="2"]::before { background: linear-gradient(90deg, #10b981, #34d399); }
.jz-process-card[data-step="3"]::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.jz-process-card[data-step="4"]::before { background: linear-gradient(90deg, #a855f7, #c084fc); }

/* Watermark number */
.jz-process-card::after {
    content: attr(data-step);
    position: absolute;
    bottom: -10px;
    right: 12px;
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    color: #f1f5f9;
    letter-spacing: -0.04em;
    pointer-events: none;
    user-select: none;
}

/* Icon */
.jz-process-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.jz-process-card:hover .jz-process-icon {
    transform: scale(1.1) rotate(-6deg);
}

.jz-process-card[data-step="1"] .jz-process-icon { background: #eff3ff; color: #6366f1; }
.jz-process-card[data-step="2"] .jz-process-icon { background: #ecfdf5; color: #10b981; }
.jz-process-card[data-step="3"] .jz-process-icon { background: #fffbeb; color: #d97706; }
.jz-process-card[data-step="4"] .jz-process-icon { background: #fdf4ff; color: #a855f7; }

/* Phase label */
.jz-process-phase {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: -4px;
}

.jz-process-card[data-step="1"] .jz-process-phase { color: #6366f1; }
.jz-process-card[data-step="2"] .jz-process-phase { color: #10b981; }
.jz-process-card[data-step="3"] .jz-process-phase { color: #d97706; }
.jz-process-card[data-step="4"] .jz-process-phase { color: #a855f7; }

/* Title */
.jz-process-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Desc */
.jz-process-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

/* Bottom tag */
.jz-process-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 4px 12px;
    width: fit-content;
    position: relative;
    z-index: 1;
}

.jz-process-card[data-step="1"] .jz-process-tag { background: #eff3ff; color: #6366f1; }
.jz-process-card[data-step="2"] .jz-process-tag { background: #ecfdf5; color: #10b981; }
.jz-process-card[data-step="3"] .jz-process-tag { background: #fffbeb; color: #d97706; }
.jz-process-card[data-step="4"] .jz-process-tag { background: #fdf4ff; color: #a855f7; }

/* Hide old connector elements */
.jz-process-connector { display: none !important; }

/* ---- Responsive: Tablet 2x2 ---- */
@media (max-width: 991.98px) {
    .jz-process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .jz-process-track { display: none; }
}

/* ---- Responsive: Mobile — Vertical Timeline ---- */
@media (max-width: 575.98px) {
    .jz-process-section {
        padding: 24px 0 32px;
    }

    .jz-process-header {
        margin-bottom: 2rem;
        text-align: left;
    }

    .jz-process-header h2 {
        font-size: 1.45rem;
    }

    .jz-process-header p {
        font-size: 0.875rem;
    }

    .jz-process-track { display: none; }

    /* Vertical timeline: single column, garis kiri */
    .jz-process-grid {
        grid-template-columns: 1fr;
        gap: 0;
        position: relative;
        padding-left: 40px; /* space for the left line */
    }

    /* Vertical connecting line */
    .jz-process-grid::before {
        content: '';
        position: absolute;
        left: 14px;
        top: 20px;
        bottom: 20px;
        width: 3px;
        background: linear-gradient(180deg,
            #6366f1 0%,
            #10b981 33%,
            #f59e0b 66%,
            #a855f7 100%
        );
        border-radius: 3px;
    }

    /* Card: full width, flat left side */
    .jz-process-card {
        flex-direction: column;
        padding: 16px 16px 14px;
        border-radius: 16px;
        gap: 8px;
        margin-bottom: 12px;
        position: relative;
    }

    .jz-process-card:last-child {
        margin-bottom: 0;
    }

    /* Step dot on left axis */
    .jz-process-card::before {
        /* Top accent bar stays */
        border-radius: 16px 16px 0 0;
    }

    /* Step dot — positioned over the left line */
    .jz-process-card .jz-process-icon {
        position: absolute;
        left: -44px;
        top: 16px;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        font-size: 0.8rem;
        border: 3px solid #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.12);
        z-index: 2;
    }

    /* Watermark smaller */
    .jz-process-card::after {
        font-size: 3.5rem;
        bottom: -4px;
        right: 8px;
    }

    /* Phase label */
    .jz-process-phase {
        font-size: 0.62rem;
        letter-spacing: 0.06em;
    }

    /* Title */
    .jz-process-title {
        font-size: 0.92rem;
        margin-top: 2px;
    }

    /* Desc */
    .jz-process-desc {
        font-size: 0.8rem;
        line-height: 1.55;
    }

    /* Tag */
    .jz-process-tag {
        font-size: 0.65rem;
        padding: 3px 10px;
    }
}

