
/* Scoped Styles for #bis-process-flow-custom */
#bis-process-flow-custom {
    position: relative;
    padding: 60px 0 20px 0;
}

#bis-process-flow-custom .bis-card {
    background: #fff;
    border: 2px solid #00cba0;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 203, 160, 0.05);

    /* Flip Animation Initial State */
    opacity: 0;
    transform: perspective(1000px) rotateY(90deg);
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 1.2s ease;
    z-index: 2;
}

#bis-process-flow-custom .bis-card.animate-in {
    opacity: 1;
    transform: perspective(1000px) rotateY(0deg);
}

#bis-process-flow-custom .bis-card:hover {
    transform: translateY(-5px);
}

/* Green Checkmark Badge */
#bis-process-flow-custom .bis-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 32px;
    height: 32px;
    background: #00cba0;
    color: #fff;
    font-size: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 203, 160, 0.3);
    z-index: 3;
}

/* Styles for responsive connectors */
#bis-process-flow-custom .col-connect {
    position: relative;
}

@media (min-width: 992px) {

    /* Line extending to the right of the card */
    #bis-process-flow-custom .col-connect:not(:last-child) .bis-card::after {
        content: '';
        position: absolute;
        top: 50%;
        right: -50px;
        /* Extend into gutter */
        width: 50px;
        height: 1px;
        background: #00cba0;
        z-index: 1;
    }

    /* Dot at the end of the line */
    #bis-process-flow-custom .col-connect:not(:last-child) .bis-card::before {
        content: '●';
        font-family: inherit;
        font-size: 8px;
        color: #00cba0;
        position: absolute;
        top: 50%;
        right: -53px;
        transform: translateY(-60%);
        z-index: 2;
    }
}

/* Text Styles */
#bis-process-flow-custom .bis-title {
    color: #262626;
    font-weight: 800;
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: .75rem;
}

#bis-process-flow-custom .bis-desc {
    color: #6c757d;
    font-size: .75rem;
    line-height: 1.4;
}

/* CUSTOM ICONS */
#bis-process-flow-custom .bis-icon-wrapper {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

/* Icon 1: Online Application (Browser) */
.icon-browser {
    width: 140px;
    height: 80px;
    background: #fff;
    border: 2px solid #212529;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.icon-browser-header {
    height: 20px;
    border-bottom: 2px solid #e9ecef;
    padding: 4px 8px;
    display: flex;
    gap: 4px;
}

.icon-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #dee2e6;
}

.icon-dot.red {
    background: #ff5f57;
}

.icon-browser-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.icon-line {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    width: 100%;
}

.icon-line.short {
    width: 60%;
}

.icon-line.red {
    background: #ff5f57;
    width: 40%;
}

/* Icon 2: Document Prep */
.icon-doc {
    width: 70px;
    height: 90px;
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.doc-stamp {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    border: 2px solid #ff5f57;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-stamp-inner {
    width: 10px;
    height: 10px;
    border: 1px solid #ff5f57;
    border-radius: 50%;
}

/* Icon 3: State Registration (Map) */
.icon-map-us {
    position: relative;
    width: 100px;
    height: 80px;
}

.map-shape {
    color: #e9ecef;
}

.map-pin {
    position: absolute;
    top: 10px;
    left: 45%;
    color: #ff5f57;
    font-size: 32px;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
    animation: bouncePin 2s infinite;
}

@keyframes bouncePin {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Icon 4: Bank & Payments */
.icon-bank-group {
    position: relative;
    width: 120px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-building {
    position: absolute;
    right: 0;
    bottom: 10px;
    width: 50px;
    height: 70px;
    background: #ffe3e3;
    border-radius: 4px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    padding: 6px;
    gap: 4px;
}

.building-line {
    height: 4px;
    width: 60%;
    background: #fff;
    border-radius: 2px;
}

.icon-terminal {
    position: relative;
    z-index: 2;
    width: 70px;
    height: 70px;
    background: #1a1d21;
    border-radius: 12px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-right: 20px;
    /* Spacer from building */
}

.terminal-screen {
    width: 100%;
    height: 40px;
    background: #00cba0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    margin-bottom: 6px;
}

.terminal-dots {
    display: flex;
    gap: 4px;
}

.t-dot {
    width: 6px;
    height: 6px;
    background: #343a40;
    border-radius: 50%;
}

/* BIS Diagram Animation Transitions */
#bis-diagram-target .diagram-node-wrapper,
#bis-diagram-target .diagram-connectors {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

#bis-diagram-target .diagram-node-wrapper.animate-in,
#bis-diagram-target .diagram-connectors.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Arrow Animation for Send Invoice Button */
.btn-send-invoice::after {
    content: '';
    background: url('<?php echo get_template_directory_uri(); ?>/assets/images/new-images/arrow-1.svg');
    width: 100%;
    height: 320px;
    position: absolute;
    right: 171px;
    background-repeat: no-repeat;
    top: -31px;
    opacity: 0;
    transition: opacity 0.6s ease-out;
    min-width: 320px;
    pointer-events: none;
    background-size: 320px;
}

.col-center.arrows-in .btn-send-invoice::after {
    opacity: 1;
}

/* BIS Diagram Arrows */
.mpc-body::after {
    content: "";
    position: absolute;
    left: 380px;
    top: 190px;
    width: 100%;
    height: 100%;
    background: url('<?php echo get_template_directory_uri(); ?>/assets/images/new-images/arrow-3.svg');
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.6s ease-out;
    pointer-events: none;
}

.mpc-footer-row::before {
    content: "";
    position: absolute;
    left: -107px;
    top: 537px;
    width: 100%;
    height: 100%;
    background: url('<?php echo get_template_directory_uri(); ?>/assets/images/new-images/arrow-4.svg');
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.6s ease-out;
    pointer-events: none;
}

.btn-mpc-pay::before {
    content: "";
    position: absolute;
    left: -219px;
    top: 297px;
    width: 100%;
    height: 100%;
    background: url('<?php echo get_template_directory_uri(); ?>/assets/images/new-images/arrow-7.svg');
    background-repeat: no-repeat;
    background-size: 240px;
    opacity: 0;
    transition: opacity 0.6s ease-out;
    pointer-events: none;
}

/* Trigger State */
.col-bis-center.arrows-in .mpc-body::after,
.col-bis-center.arrows-in .mpc-footer-row::before,
.col-bis-center.arrows-in .btn-mpc-pay::before {
    opacity: 1;
}