/* =================================================== */
/* VeraCita - The Prism Progress Stepper (Full-Width)  */
/* Integrated header bar with premium animations       */
/* =================================================== */

/* --- Prism Wrapper (inside container) --- */
.prism-wrapper {
    margin: 0;
    padding: 0;
}

/* --- Full-Width Bar --- */
.prism-bar-fullwidth {
    display: flex;
    align-items: stretch;
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 24px 24px 0 0;  /* Match container's top radius */
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

/* --- Full-Width Bar --- */
.prism-bar-fullwidth {
    display: flex;
    align-items: stretch;
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px 16px 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

/* --- Step Item --- */
.prism-step {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 20px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    z-index: 1;
}

/* Divider between steps */
.prism-step::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    bottom: 25%;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
    transition: opacity 0.3s ease;
}

.prism-step:last-of-type::after {
    display: none;
}

/* --- Step Icon --- */
.prism-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.prism-number {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.prism-check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: checkmarkPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Checkmark pop animation */
@keyframes checkmarkPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Icon transitioning state (number fading out) */
.prism-icon-transitioning .prism-number {
    transform: scale(0.5);
    opacity: 0;
}

/* --- Step Title --- */
.prism-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* =================================================== */
/* STEP STATES                                         */
/* =================================================== */

/* --- Active Step --- */
.prism-step-active {
    background: linear-gradient(180deg, 
        rgba(139, 92, 246, 0.15) 0%, 
        rgba(67, 132, 255, 0.08) 100%
    );
}

.prism-step-active .prism-icon {
    background: linear-gradient(135deg, #8b5cf6, #4384ff);
    color: white;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.45);
}

.prism-step-active .prism-title {
    color: white;
}

/* --- Completed Step --- */
.prism-step-completed {
    cursor: pointer;
}

.prism-step-completed:hover {
    background: rgba(16, 185, 129, 0.08);
}

.prism-step-completed .prism-icon {
    background: rgba(16, 185, 129, 0.18);
    color: var(--vc-status-supported);
}

.prism-step-completed:hover .prism-icon {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.prism-step-completed .prism-title {
    color: var(--vc-status-supported);
}

/* --- Upcoming Step (Refined - More subtle) --- */
.prism-step-upcoming {
    opacity: 0.4;
}

.prism-step-upcoming:hover {
    opacity: 0.55;
}

.prism-step-upcoming .prism-icon {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
}

.prism-step-upcoming .prism-title {
    color: rgba(255, 255, 255, 0.8);
}

/* =================================================== */
/* SLIDING ACCENT LINE                                 */
/* =================================================== */

.prism-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #4384ff);
    border-radius: 3px 3px 0 0;
    z-index: 2;
    width: 0;
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.6);
}

/* Animated transition */
.prism-accent-animating {
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glow effect on the accent */
.prism-accent::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: linear-gradient(90deg, #8b5cf6, #4384ff);
    filter: blur(8px);
    opacity: 0.7;
}

/* =================================================== */
/* CONTAINER INTEGRATION                               */
/* =================================================== */

/* The stepper container sits at the top of the config section */
.cs-stepper-wrapper {
    display: block;
    margin: 0;
    padding: 0;
}

/* Remove the old floating pill margins */
.vc-progress-pill {
    display: block;
    margin: 0;
    z-index: 1;
}

/* Config section adjustments when stepper is inside */
.cs-config-section {
    padding-top: 0 !important;
    border-radius: 24px;
    overflow: hidden;
}

/* Content padding below the stepper */
.cs-config-section > *:not(.prism-bar-fullwidth):not(.cs-stepper-wrapper) {
    /* Content elements get padding */
}

/* =================================================== */
/* LIGHT THEME                                         */
/* =================================================== */

[data-theme="light"] .prism-bar-fullwidth {
    background: rgba(15, 23, 42, 0.04);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .prism-step::after {
    background: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .prism-step-active {
    background: linear-gradient(180deg, 
        rgba(139, 92, 246, 0.1) 0%, 
        rgba(67, 132, 255, 0.06) 100%
    );
}

[data-theme="light"] .prism-step-active .prism-title {
    color: #1e293b;
}

[data-theme="light"] .prism-step-completed:hover {
    background: rgba(16, 185, 129, 0.08);
}

[data-theme="light"] .prism-step-completed .prism-icon {
    background: rgba(16, 185, 129, 0.12);
}

[data-theme="light"] .prism-step-completed .prism-title {
    color: #059669;
}

[data-theme="light"] .prism-step-upcoming .prism-icon {
    background: rgba(15, 23, 42, 0.06);
    color: rgba(15, 23, 42, 0.5);
}

[data-theme="light"] .prism-step-upcoming .prism-title {
    color: rgba(15, 23, 42, 0.6);
}

[data-theme="light"] .prism-accent {
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.35);
}

/* =================================================== */
/* RESPONSIVE                                          */
/* =================================================== */

@media (max-width: 900px) {
    .prism-step {
        padding: 14px 16px;
        gap: 10px;
    }
    
    .prism-icon {
        width: 28px;
        height: 28px;
        font-size: 13px;
        border-radius: 6px;
    }
    
    .prism-title {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .prism-step {
        padding: 12px 12px;
        gap: 8px;
    }
    
    .prism-icon {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
    
    .prism-check-icon {
        width: 12px;
        height: 12px;
    }
    
    .prism-title {
        font-size: 12px;
    }
    
    .prism-accent {
        height: 2px;
    }
}

@media (max-width: 600px) {
    .prism-bar-fullwidth {
        border-radius: 12px 12px 0 0;
    }
    
    .prism-step {
        padding: 10px 8px;
        flex-direction: column;
        gap: 4px;
    }
    
    .prism-icon {
        width: 24px;
        height: 24px;
        font-size: 11px;
        border-radius: 6px;
    }
    
    .prism-title {
        font-size: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .prism-step {
        padding: 8px 4px;
    }
    
    .prism-icon {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }
    
    .prism-title {
        font-size: 9px;
    }
}

/* =================================================== */
/* LEGACY SUPPORT                                      */
/* =================================================== */

.vc-progress-pill + .cs-progress-tracker,
.vc-progress-pill + .landing-how-it-works {
    display: none !important;
}

.cs-page-header.vc-with-pill {
    margin-bottom: 24px;
}

.cs-page-header.vc-with-pill .cs-page-subtitle {
    display: none;
}