/**
 * Styles for Process Flow Block (VN Food Theme)
 * Circular Rotating Hub on Desktop & Vertical Card List on Mobile
 */

.vnfood-process-flow-block {
    --process-primary: #15803d;
    --process-primary-dark: #0d5427;
    --process-accent: #a3e635;
    --process-light-bg: white;
    --process-light-border: #E5E7EB;
    --process-text-dark: #132610;
    --process-text-muted: #64748b;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    position: relative;
    font-family: inherit;
}

.vnfood-process-flow-block *,
.vnfood-process-flow-block *::before,
.vnfood-process-flow-block *::after {
    box-sizing: border-box;
}

.vnfood-process-container {
    max-width: 1212px;
    width: 100%;
}

.vnfood-process-header {
    text-align: center;
    margin-bottom: 30px;
}

.vnfood-process-heading {
    font-weight: 700;
    color: var(--process-text-dark);
    margin: 0;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .vnfood-process-heading {
        font-size: 32px;
    }
}

/* ================================================================
   1. DESKTOP LAYOUT (Circular Hub - Hình 1)
   ================================================================ */
.vnfood-process-desktop-layout {
    display: block;
    width: 100%;
    position: relative;
}

.vnfood-process-hub-wrap {
    position: relative;
    width: 100%;
    max-width: 980px;
    height: 540px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

/* Semicircular Arc Path */
.vnfood-process-arc-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Center Hub Circle */
.vnfood-process-center-hub {
    position: relative;
    z-index: 10;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 30%, var(--process-primary) 0%, var(--process-primary-dark) 100%);
    /*     box-shadow: 0 0 0 8px rgba(21, 128, 61, 0.12), 0 20px 40px -10px rgba(0, 0, 0, 0.25); */
    border: 2px solid rgba(255, 255, 255, 0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.vnfood-process-center-num {
    font-size: 42px;
    font-weight: 800;
    color: var(--process-accent);
    line-height: 1;
    margin-bottom: 2px;
    transition: all 0.25s ease;
}

.vnfood-process-center-title {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.25;
    transition: all 0.25s ease;
}

.vnfood-process-center-divider {
    width: 36px;
    height: 2px;
    background: transparent;
    border-radius: 2px;
    margin: 8px 0;
}

.vnfood-process-center-desc {
    font-size: 13px;
    color: #d1fae5;
    max-width: 200px;
    margin: 0 0 14px;
    line-height: 1.4;
    transition: all 0.25s ease;
}

.vnfood-process-center-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    border-radius: 9999px;
    background: #ffffff;
    color: var(--process-primary);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.vnfood-process-center-btn:hover {
    transform: scale(1.05);
    background: #f8fafc;
    color: var(--process-primary-dark);
}

.vnfood-process-center-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
}

.vnfood-process-dot {
    width: 6px;
    height: 6px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vnfood-process-dot.is-active {
    width: 16px;
    border-radius: 3px;
    background: var(--process-accent);
}

/* ================================================================
   2. Surrounding 7 Nodes Positioning
   ================================================================ */
.vnfood-process-node {
    position: absolute;
    z-index: 12;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.vnfood-process-node:hover {
    transform: scale(1.04);
}

/* Vị trí chính xác 7 Nodes */
.vnfood-process-node.node-pos-1 {
    top: 18px;
    left: 170px;
}

.vnfood-process-node.node-pos-2 {
    top: 165px;
    left: 45px;
}

.vnfood-process-node.node-pos-3 {
    bottom: 110px;
    left: 100px;
}

.vnfood-process-node.node-pos-4 {
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
    gap: 8px;
}

.vnfood-process-node.node-pos-4:hover {
    transform: translateX(-50%) scale(1.04);
}

.vnfood-process-node.node-pos-5 {
    bottom: 110px;
    right: 100px;
}

.vnfood-process-node.node-pos-6 {
    top: 165px;
    right: 45px;
}

.vnfood-process-node.node-pos-7 {
    top: 18px;
    right: 170px;
}

/* Text alignment helpers */
.vnfood-process-node.text-right {
    text-align: right;
}

.vnfood-process-node.text-left {
    text-align: left;
}

.vnfood-process-node.text-center {
    text-align: center;
}

/* Node Text Styles */
.vnfood-process-node-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--process-text-dark);
    line-height: 1.3;
    white-space: nowrap;
}

.vnfood-process-node-num {
    /*     font-weight: 800;
    color: var(--process-primary);
    margin-right: 4px; */
    display: none;
}

.vnfood-process-node-sub {
    font-size: 14px;
    line-height: 1.35;
    margin-top: 1px;
}

/* Node Icon Box */
.vnfood-process-node-icon-box {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--process-light-bg);
    border: 1px solid var(--process-light-border);
    /*     color: var(--process-primary); */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* .vnfood-process-node-icon-box svg {
    display: block;
    width: 26px;
    height: 26px;
    stroke: currentColor;
    transition: all 0.3s ease;
}

.vnfood-process-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
} */
/* Số thứ tự thay thế icon trong icon-box */
.vnfood-process-icon-num {
    font-size: 18px;
    font-weight: 800;
    color: var(--process-primary);
    line-height: 1;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

/* Active Node State */
.vnfood-process-node.is-active .vnfood-process-node-icon-box {
    background: var(--process-primary);
    border: 3px solid #ffffff;
    /*     color: #ffffff; */
    transform: scale(1.12);
    /*     box-shadow: 0 0 0 6px rgba(21, 128, 61, 0.25), 0 8px 20px rgba(21, 128, 61, 0.35); */
}

.vnfood-process-node.is-active .vnfood-process-node-icon-box .vnfood-process-icon-num {
    color: #ffffff;
}


.vnfood-process-node.is-active .vnfood-process-node-title {
    color: var(--process-primary);
}

/* ================================================================
   3. MOBILE LAYOUT (Vertical Card List - Hình 2)
   ============================================================== */
.vnfood-process-mobile-layout {
    display: none;
    width: 100%;
}

.vnfood-process-mobile-timeline {
    position: relative;
    width: 100%;
    padding: 0;
}

/* Top Start Dot (Mốc tròn to ở đầu dòng kẻ - Căn chuẩn tâm ngang hàng với số 01: 58px / 2 = 29px) */
.vnfood-process-start-dot {
    position: absolute;
    top: 29px;
    left: 10px;
    transform: translate(-50%, -50%);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--process-primary, #15803d);
    border: none;
    box-shadow: none !important;
    z-index: 3;
}

/* Vertical Base Line - Bắt đầu từ tâm Bước 01 (29px) đến tâm Bước 07 (đáy 29px) */
.vnfood-process-timeline-line {
    position: absolute;
    top: 29px;
    bottom: 29px;
    left: 10px;
    width: 0.625px;
    background: #e2e8f0;
    transform: translateX(-50%);
    z-index: 1;
}

/* Progress Fill Line - Bắt đầu từ tâm Bước 01 (29px) */
.vnfood-process-timeline-progress {
    position: absolute;
    top: 29px;
    left: 10px;
    width: 0.625px;
    background: var(--process-primary, #15803d);
    transform: translateX(-50%);
    z-index: 2;
    height: 0px;
    will-change: height;
    transition: height 0.85s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Food Supply Traveling Runner Indicator - GPU Hardware Accelerated (Trượt mượt mà êm ái) */
.vnfood-process-traveling-indicator {
    position: absolute;
    top: 0;
    left: 10px;
    width: 25px;
    height: 25px;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
    transform: translate3d(-50%, 29px, 0) translateY(-50%);
    transition: transform 0.85s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vnfood-process-runner-badge {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--process-primary, #15803d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: none !important;
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
}

/* Các icon bên trong runner badge: Runner Icon và Checkmark Icon */
.vnfood-process-traveling-indicator .vnfood-process-runner-icon,
.vnfood-process-traveling-indicator .vnfood-process-check-icon {
    position: absolute;
    width: 15px;
    height: 15px;
    transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vnfood-process-traveling-indicator .vnfood-process-runner-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.vnfood-process-traveling-indicator .vnfood-process-check-icon {
    opacity: 0;
    transform: scale(0.3) rotate(-45deg);
    color: #ffffff;
}

/* Bỏ vòng lan tỏa mờ xung quanh */
.vnfood-process-traveling-indicator::after {
    display: none !important;
}

/* Hoàn tất toàn bộ quy trình: Khi đến bước 07, icon chạy chuyển sang dấu tick hoàn tất */
.vnfood-process-flow-block.is-timeline-completed .vnfood-process-traveling-indicator .vnfood-process-runner-icon {
    opacity: 0;
    transform: scale(0.3) rotate(45deg);
}

.vnfood-process-flow-block.is-timeline-completed .vnfood-process-traveling-indicator .vnfood-process-check-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.vnfood-process-flow-block.is-timeline-completed .vnfood-process-traveling-indicator .vnfood-process-runner-badge {
    transform: scale(1.08);
}


.vnfood-process-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 38px;
    width: 100%;
}

.vnfood-process-mobile-card {
    position: relative;
    margin-left: 50px;
    width: calc(100% - 50px);
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    cursor: pointer;
    box-shadow: none;
}

.vnfood-process-mobile-card:hover {
    border-color: transparent;
}

/* Card Active */
.vnfood-process-mobile-card.is-active {
    border: none;
    box-shadow: none;
}

.vnfood-process-card-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.vnfood-process-step-badge {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 50%;
    background: #00652c;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
    flex-shrink: 0;
}

.vnfood-process-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vnfood-process-card-title {
    font-weight: 700;
    color: var(--process-text-dark);
    margin: 0;
    line-height: 1.3;
}

.vnfood-process-card-desc {
    line-height: 1.5;
    margin: 0 !important;
    margin-bottom: 0px !important;
}

/* ================================================================
   4. RESPONSIVE BREAKPOINTS
   ================================================================ */
@media (max-width: 991px) {
    .vnfood-process-desktop-layout {
        display: none;
    }

    .vnfood-process-mobile-layout {
        display: block;
    }
}

@media (max-width: 500px) {
	.vnfood-process-header{
		max-width: 324px;
		margin-left: auto;
		margin-right: auto;
	}
}