/* Entity Cards */
#it .entity-box {
    background: #1c2632;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #e6edf3;
    text-align: center;
    padding: 15px 25px;
    /* min-height: 80px; */
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#it .entity-box h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 5px 0 0 0;
    line-height: 1.5;
}

#it .card-subtitle-text {
    font-size: 11px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0px;
}

/* Central TradeInAI Box */
#it .tradeinai-box {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border: 2px solid #60a5fa;
    border-radius: 12px;
    color: white;
    text-align: center;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
    position: relative;
    z-index: 10;
}

#it .tradeinai-box h2 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 5px 0;
}

#it .ai-middle-module {
    /* background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 8px; */
}

#it .ai-label {
    font-size: 12px;
    font-weight: 600;
}

/* SVG Path Styles */
#it .connection-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

#it .arrow-path {
    fill: none;
    stroke: #00a8ff;
    stroke-width: 2;
}

#it .arrow-marker {
    fill: #00a8ff;
}

#it .flow-dot {
    r: 5;
    fill: #60a5fa;
}

#it .path2-dot {
    fill: #00ff88 !important;
}

#it .path1-dot {
    fill: #aa7fbd !important;
}

#it .path4-dot {
    fill: #aa7fbd !important;
}

#it .path6-dot {
    fill: #ed7979 !important;
}

#it .path8-dot {
    fill: #cfed8e !important;
}

#it .path9-dot {
    fill: #ed8edb !important;
}

#it .flow-label {
    fill: #e8eef5;
    font-size: 14px;
    font-weight: 500;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#it .delay-1 {
    animation-delay: 0s;
}

#it .delay-2 {
    animation-delay: 0.15s;
}

#it .delay-3 {
    animation-delay: 0.3s;
}

#it .delay-4 {
    animation-delay: 0.45s;
}

/* Flow connector */
#it .flow-connector {
    text-align: center;
    padding: 15px 0;
}

#it .flow-connector .arrow {
    font-size: 28px;
    color: #00a8ff;
    display: block;
    animation: bounce 2s infinite;
    line-height: 1;
}

#it .flow-connector .label {
    font-size: 12px;
    color: #00a8ff;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

@keyframes bounce {

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

    50% {
        transform: translateY(8px);
    }
}

/* Desktop absolute positioning */
@media (min-width: 1025px) {
    #it .desktop-layout1 {
        position: relative;
        min-height: 600px;
    }

    #it .entity-supplier-desktop {
        position: absolute;
        top: 100px;
        left: 0;
        width: 200px;
    }

    #it .entity-tradeinai-desktop {
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 220px;
    }

    #it .entity-bank-desktop {
        position: absolute;
        top: 98px;
        right: -14px;
        width: 200px;
    }

    #it .entity-client-desktop {
        position: absolute;
        bottom: 130px;
        left: 0;
        width: 200px;
    }

    #it .entity-insurer-desktop {
        position: absolute;
        bottom: 130px;
        left: 50%;
        transform: translateX(-50%);
        width: 220px;
    }

    #it .flow-connector {
        display: none !important;
    }

    #it .mobile-order {
        display: none !important;
    }

    #it .desktop-order1 {
        display: block !important;
    }
}

/* Tablet and Mobile */
@media (max-width: 1024px) {
    #it .connection-svg {
        display: none !important;
    }

    #it .desktop-order1 {
        display: none !important;
    }

    #it .mobile-order {
        display: block !important;
    }
}

/* Mobile specific */
@media (max-width: 600px) {
    #it .entity-box {
        min-height: 95px;
    }

    #it .entity-box h3 {
        font-size: 16px;
    }

    #it .tradeinai-box h2 {
        font-size: 1.2rem;
    }
}

.entity-box.delay-1,
.warranty-box.delay-1 {
    border: 2px solid var(--purple) !important;
    background: rgba(155, 89, 182, 0.15) !important;
}

.entity-box.delay-2 {
    border: 2px solid var(--green) !important;
    background: rgba(0, 168, 107, 0.15) !important;
}

.entity-box.delay-3 {
    border: 2px solid var(--orange) !important;
    background: rgba(211, 84, 0, 0.15) !important;
}

.entity-box.delay-4 {
    border: 2px solid var(--secondary-blue) !important;
    background: rgba(65, 105, 225, 0.15) !important;
}