/* VENDEX GLOBAL WIDGET STYLES */
.vxg-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #111827;
    background: #ffffff;
    padding: 60px 20px;
    border-radius: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.vxg-section { margin-bottom: 80px; }
.vxg-section:last-child { margin-bottom: 0; }

.vxg-header { text-align: center; margin-bottom: 60px; max-width: 800px; margin-left: auto; margin-right: auto; }
.vxg-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.vxg-heading {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.vxg-subheading {
    font-size: 18px;
    color: #4b5563;
    line-height: 1.6;
}

/* TIMELINE GRID */
.vxg-timeline-container { position: relative; padding: 20px 0; }
.vxg-timeline-line, .vxg-timeline-progress { display: none; } 

.vxg-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

/* Connective Line Desktop */
@media (min-width: 1025px) {
    .vxg-steps-grid::before {
        content: '';
        position: absolute;
        top: 40px;
        left: 10%;
        right: 10%;
        height: 2px;
        background: #e5e7eb;
        z-index: 0;
    }
    .vxg-animate .vxg-steps-grid::before {
        background: linear-gradient(90deg, #3b82f6 0%, #3b82f6 100%) no-repeat;
        background-size: 0% 100%;
        transition: background-size 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .vxg-animate.is-visible .vxg-steps-grid::before {
        background-size: 100% 100%;
    }
}

.vxg-step {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 24px;
    background: #fff;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 1025px) {
    .vxg-step:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    }
    .vxg-step:hover .vxg-step-visual {
        transform: scale(1.08);
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
    }
}

.vxg-step-visual {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    animation: floatIcon 4s ease-in-out infinite alternate;
}

@keyframes floatIcon {
    0% { transform: translateY(0); }
    100% { transform: translateY(-3px); }
}

.vxg-step-number {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    background: #3b82f6;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    transition: transform 0.3s ease;
}

.vxg-animate.is-visible .vxg-step-number {
    animation: pulseNumber 0.5s ease-out;
}

@keyframes pulseNumber {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.vxg-step-icon {
    font-size: 24px;
    color: #3b82f6;
    transition: transform 0.6s ease-out;
}
.vxg-step-icon svg { width: 32px; height: 32px; fill: #3b82f6; }

.vxg-animate.is-visible .vxg-step-icon {
    animation: slightRotate 0.6s ease-out;
}

@keyframes slightRotate {
    0% { transform: rotate(-10deg) scale(0.8); }
    100% { transform: rotate(0) scale(1); }
}

.vxg-step-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}
.vxg-step-desc {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

/* FAQ GRID */
.vxg-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}
.vxg-faq-item {
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #f3f4f6;
    overflow: hidden;
    transition: all 0.3s ease;
}
.vxg-faq-item.is-open {
    background: #fff;
    border-color: #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.vxg-faq-question {
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: color 0.2s;
}
.vxg-faq-icon {
    transition: transform 0.3s ease;
    display: flex;
    color: #9ca3af;
}
.vxg-faq-item.is-open .vxg-faq-icon {
    transform: rotate(180deg);
}

.vxg-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.vxg-faq-answer-inner {
    padding: 0 24px 24px;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
}

/* ANIMATIONS */
.vxg-animate .vxg-step {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.vxg-animate.is-visible .vxg-step {
    opacity: 1;
    transform: translateY(0);
}
.vxg-animate.is-visible .vxg-step:nth-child(1) { transition-delay: 0.1s; }
.vxg-animate.is-visible .vxg-step:nth-child(2) { transition-delay: 0.3s; }
.vxg-animate.is-visible .vxg-step:nth-child(3) { transition-delay: 0.5s; }
.vxg-animate.is-visible .vxg-step:nth-child(4) { transition-delay: 0.7s; }

/* TABLET RESPONSIVE */
@media (min-width: 768px) and (max-width: 1024px) {
    .vxg-steps-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 40px;
    }
    .vxg-step { height: 100%; display: flex; flex-direction: column; }
    .vxg-steps-grid::before { display: none; }
}

/* MOBILE RESPONSIVE */
@media (max-width: 767px) {
    .vxg-heading { font-size: 32px; }
    .vxg-steps-grid { grid-template-columns: 1fr; gap: 40px; padding-left: 20px; }
    .vxg-faq-grid { grid-template-columns: 1fr; }
    
    .vxg-steps-grid::before {
        display: block;
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 36px; /* center of the 80px visual icon mapped from left 20px padding */
        width: 2px;
        background: #e5e7eb;
        z-index: 0;
    }
    
    .vxg-animate .vxg-steps-grid::before {
        background: linear-gradient(180deg, #3b82f6 0%, #3b82f6 100%) no-repeat;
        background-size: 100% 0%;
        transition: background-size 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .vxg-animate.is-visible .vxg-steps-grid::before {
        background-size: 100% 100%;
    }

    .vxg-step { 
        text-align: left; 
        display: flex; 
        align-items: flex-start; 
        gap: 20px; 
        padding: 0; 
        background: transparent; 
        width: 100%;
    }
    .vxg-step:hover { transform: none; box-shadow: none; }
    
    .vxg-step-visual { 
        margin: 0; 
        width: 32px; 
        height: 32px; 
        flex-shrink: 0; 
        z-index: 2;
        background: #fff;
    }
    .vxg-step-number {
        top: -8px; right: -8px; width: 20px; height: 20px; font-size: 10px;
    }
    .vxg-step-icon { font-size: 14px; }
    .vxg-step-icon svg { width: 16px; height: 16px; }
    
    .vxg-step-content { flex: 1; padding-top: 4px; }
    .vxg-step-title { margin-bottom: 8px; font-size: 16px; }
}
