/* ==========================================
 * StepraEngine Core Frontend Styles - v1.1.0 
 * ========================================== */


/* Stepra early visual shield is generated dynamically in PHP based on enabled builder targeting.
 * Do not hard-code supported builder selectors here, because disabled builders must render immediately.
 */
html.stepra-ready-global form.stepra-visual-ready {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Core Hiding Class */
.stepra-hidden { 
    display: none !important; 
}

/* Hide final submit buttons on early steps, BUT explicitly ignore Coupon buttons */
form.stepra-ready[data-last-step="false"] button[type="submit"]:not([name="apply_coupon"]):not(.checkout_coupon button):not(.e-checkout__coupon button), 
form.stepra-ready[data-last-step="false"] input[type="submit"]:not([name="apply_coupon"]), 
form.stepra-ready[data-last-step="false"] .forminator-button-submit,
body.stepra-woo-enabled form.stepra-ready[data-last-step="false"] #place_order { 
    display: none !important; 
}

/* Force WooCommerce/Elementor coupon buttons to stay visible */
body.stepra-woo-enabled .woocommerce-checkout form.checkout_coupon button[type="submit"],
body.stepra-woo-enabled .woocommerce-checkout .e-checkout__coupon button[type="submit"],
body.stepra-woo-enabled .woocommerce-checkout button[name="apply_coupon"] {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure the coupon container itself isn't collapsed */
body.stepra-woo-enabled .woocommerce-checkout .e-checkout__coupon,
body.stepra-woo-enabled .woocommerce-checkout form.checkout_coupon {
    display: block !important;
}

/* Hide empty WooCommerce containers */
body.stepra-woo-enabled .woocommerce-billing-fields:empty, 
body.stepra-woo-enabled .woocommerce-shipping-fields:empty, 
body.stepra-woo-enabled .woocommerce-additional-fields:empty { 
    display: none !important; 
    margin: 0 !important; 
    padding: 0 !important; 
    border: none !important;
}

/* Hide Payment Gateway until the last step */
form.woocommerce-checkout:not([data-last-step="true"]) #payment, 
form.woocommerce-checkout:not([data-last-step="true"]) .woocommerce-checkout-payment {
    display: none !important;
}

/* Bulletproof Progress Bar */
.stepra-progress {
    background: #e2e8f0 !important;
    border-radius: 6px !important;
    margin-bottom: 25px !important;
    position: relative !important;
    height: 30px !important;
    overflow: hidden !important;
    width: 100% !important;
    display: block !important;
    z-index: 99 !important;
}
.stepra-progress-bar { 
    height: 100% !important; 
    transition: width 0.4s ease !important; 
}
.stepra-progress-text {
    position: absolute !important; 
    top: 0 !important; 
    left: 0 !important; 
    width: 100% !important;
    text-align: center !important; 
    color: #fff !important; 
    font-size: 13px !important; 
    line-height: 30px !important; 
    font-weight: 600 !important;
}

/* Step display is intentionally instant to avoid flashing between steps. */
.stepra-step-el:not(.stepra-hidden) {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

/* Bulletproof Navigation Buttons */
.stepra-nav {
    display: flex !important; 
    justify-content: space-between !important; 
    margin-top: 25px !important; 
    padding-top: 15px !important; 
    border-top: 1px solid #e2e8f0 !important; 
    width: 100% !important; 
    clear: both !important;
}
.stepra-nav button {
    padding: 10px 24px !important; 
    color: #fff !important; 
    border: none !important; 
    border-radius: 4px !important; 
    cursor: pointer !important; 
    font-weight: 600 !important; 
    font-size: 15px !important; 
    line-height: 1 !important; 
    display: inline-block !important;
}
.stepra-prev { 
    background: #cbd5e1 !important; 
    color: #334155 !important; 
}

/* ==========================================
 * WOOCOMMERCE COLUMN FIX
 * Forces Billing (Step 1) and Shipping (Step 2) to be full-width in Storefront/Astra
 * ========================================== */
body.stepra-woo-enabled .woocommerce-checkout .col2-set .col-1, 
body.stepra-woo-enabled .woocommerce-checkout .col2-set .col-2 {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

/* ==========================================
 * ELEMENTOR + STOREFRONT CONFLICT FIX
 * Neutralizes Storefront's aggressive floats and 41% widths 
 * ONLY when inside Elementor's native columns.
 * ========================================== */
.e-checkout__column-start .col2-set,
.e-checkout__column-start #customer_details,
.e-checkout__column-end #order_review_heading,
.e-checkout__column-end #order_review {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

/* ==========================================
   STEPRA ENGINE - NATIVE SUBMIT ALIGNMENT
   ========================================== */
.stepra-nav.stepra-nav-flex-aligned {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

.stepra-submit-parent-aligned {
    margin: 0 !important;
    margin-left: auto !important;
    width: auto !important;
    flex-shrink: 0 !important;
}

.stepra-submit-btn-aligned {
    width: auto !important;
    min-width: 140px !important;
    margin: 0 !important;
}

/* ==========================================
 * WOOCOMMERCE AJAX REFRESH FLASH SHIELD
 * Keeps the checkout height stable while WooCommerce refreshes fragments.
 * ========================================== */
body.stepra-woo-enabled form.woocommerce-checkout.stepra-woo-refreshing {
    position: relative !important;
    min-height: 240px;
}

body.stepra-woo-enabled form.woocommerce-checkout.stepra-woo-refreshing .stepra-progress,
body.stepra-woo-enabled form.woocommerce-checkout.stepra-woo-refreshing .stepra-nav,
body.stepra-woo-enabled form.woocommerce-checkout.stepra-woo-refreshing .stepra-step-el {
    transition: opacity 0.15s ease !important;
}

body.stepra-woo-enabled form.woocommerce-checkout.stepra-woo-refreshing .blockUI.blockOverlay {
    opacity: 0.08 !important;
}


/* ==========================================
   STEPRA PRO APPEARANCE + NUMBERED PROGRESS
   ========================================== */
form.stepra-ready {
    --stepra-primary: #0061e0;
    --stepra-progress-end: #10b981;
    --stepra-progress-text: #ffffff;
    --stepra-button-text: #ffffff;
    --stepra-next-bg: #0061e0;
    --stepra-next-hover: #004bb5;
    --stepra-prev-bg: #cbd5e1;
    --stepra-prev-text: #334155;
    --stepra-prev-hover: #94a3b8;
    --stepra-button-gradient-end: #10b981;
    --stepra-button-radius: 4px;
}

/* Clean instant step switching, same compatibility rule as Lite. */
.stepra-step-el:not(.stepra-hidden) {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

.stepra-progress {
    background: #e2e8f0 !important;
    border-radius: 6px !important;
    margin-bottom: 25px !important;
    position: relative !important;
    height: 30px !important;
    overflow: hidden !important;
    width: 100% !important;
    display: block !important;
    z-index: 99 !important;
}

.stepra-progress-bar {
    height: 100% !important;
    transition: width 0.35s ease !important;
    background: var(--stepra-primary) !important;
}

.stepra-progress.is-gradient .stepra-progress-bar {
    background: linear-gradient(90deg, var(--stepra-primary), var(--stepra-progress-end)) !important;
}

.stepra-progress-text {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    text-align: center !important;
    color: var(--stepra-progress-text) !important;
    font-size: 13px !important;
    line-height: 30px !important;
    font-weight: 700 !important;
    pointer-events: none !important;
}

/* Numbered progress: line segments live between circles, not behind them. */
.stepra-progress.stepra-progress-numbered {
    height: auto !important;
    overflow: visible !important;
    background: transparent !important;
    border-radius: 0 !important;
    margin-bottom: 26px !important;
    z-index: 99 !important;
}

.stepra-numbered-inner {
    display: flex !important;
    align-items: flex-start !important;
    width: 100% !important;
    gap: 0 !important;
}

.stepra-numbered-step {
    appearance: none !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 42px !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 7px !important;
    color: #64748b !important;
    cursor: default !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

.stepra-numbered-circle {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #cbd5e1 !important;
    background: #ffffff !important;
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease !important;
}

.stepra-numbered-label {
    display: block !important;
    max-width: 110px !important;
    color: #475569 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-align: center !important;
    white-space: normal !important;
}

.stepra-numbered-step.is-active .stepra-numbered-circle,
.stepra-numbered-step.is-completed .stepra-numbered-circle {
    border-color: var(--stepra-primary) !important;
    background: var(--stepra-primary) !important;
    color: #ffffff !important;
}

.stepra-progress.is-gradient .stepra-numbered-step.is-active .stepra-numbered-circle,
.stepra-progress.is-gradient .stepra-numbered-step.is-completed .stepra-numbered-circle {
    background: linear-gradient(135deg, var(--stepra-primary), var(--stepra-progress-end)) !important;
}

.stepra-numbered-step.is-clickable {
    cursor: pointer !important;
}

.stepra-numbered-step.is-clickable:hover .stepra-numbered-circle {
    transform: translateY(-1px) !important;
}

.stepra-numbered-step.is-locked {
    opacity: .72 !important;
}

.stepra-numbered-segment {
    position: relative !important;
    display: block !important;
    flex: 1 1 auto !important;
    height: 3px !important;
    margin: 16px 8px 0 !important;
    border-radius: 999px !important;
    background: #cbd5e1 !important;
    overflow: hidden !important;
    min-width: 24px !important;
}

.stepra-numbered-segment span {
    display: block !important;
    width: 0;
    height: 100% !important;
    border-radius: inherit !important;
    background: var(--stepra-primary) !important;
    transition: width .28s ease !important;
}

.stepra-progress.is-gradient .stepra-numbered-segment span {
    background: linear-gradient(90deg, var(--stepra-primary), var(--stepra-progress-end)) !important;
}

.stepra-numbered-segment.is-complete span {
    width: 100% !important;
}

/* Button flexibility. */
.stepra-nav button {
    border-radius: var(--stepra-button-radius) !important;
    transition: background .18s ease, color .18s ease, transform .18s ease !important;
}

.stepra-nav button:hover {
    transform: translateY(-1px);
}

.stepra-next {
    background: var(--stepra-next-bg) !important;
    color: var(--stepra-button-text) !important;
}

.stepra-next:hover {
    background: var(--stepra-next-hover) !important;
}

.stepra-prev {
    background: var(--stepra-prev-bg) !important;
    color: var(--stepra-prev-text) !important;
}

.stepra-prev:hover {
    background: var(--stepra-prev-hover) !important;
}

form.stepra-ready[data-stepra-button-gradient="1"] .stepra-next {
    background: linear-gradient(135deg, var(--stepra-next-bg), var(--stepra-button-gradient-end)) !important;
}

form.stepra-ready[data-stepra-button-gradient="1"] .stepra-next:hover {
    background: linear-gradient(135deg, var(--stepra-next-hover), var(--stepra-button-gradient-end)) !important;
}

form.stepra-ready[data-stepra-button-gradient="1"] .stepra-prev {
    background: linear-gradient(135deg, var(--stepra-prev-bg), var(--stepra-button-gradient-end)) !important;
}

form.stepra-ready[data-stepra-button-gradient="1"] .stepra-prev:hover {
    background: linear-gradient(135deg, var(--stepra-prev-hover), var(--stepra-button-gradient-end)) !important;
}

/* Disable old pre-ready failsafe animation from older Pro builds. */
.elementor-form:not(.stepra-ready),
.wpforms-form:not(.stepra-ready) {
    animation: none;
}

@media (max-width: 640px) {
    .stepra-numbered-circle {
        width: 30px !important;
        height: 30px !important;
        font-size: 12px !important;
    }

    .stepra-numbered-label {
        max-width: 76px !important;
        font-size: 10px !important;
    }

    .stepra-numbered-segment {
        margin-top: 14px !important;
        margin-left: 5px !important;
        margin-right: 5px !important;
        min-width: 14px !important;
    }
}


/* ==========================================
 * StepraEngine Pro 1.1.0 progress/button polish
 * ========================================== */
.stepra-progress {
    background: var(--stepra-progress-track, #e2e8f0) !important;
}

.stepra-progress.stepra-progress-bar-style {
    background: var(--stepra-progress-track, #e2e8f0) !important;
}

.stepra-progress-bar {
    background: var(--stepra-primary, #0061e0) !important;
}

.stepra-progress.is-gradient .stepra-progress-bar {
    background: linear-gradient(90deg, var(--stepra-primary, #0061e0), var(--stepra-progress-end, #10b981)) !important;
}

.stepra-numbered-segment {
    background: var(--stepra-progress-track, #e2e8f0) !important;
}

.stepra-next {
    background: var(--stepra-next-bg, #0061e0) !important;
    color: var(--stepra-next-text, #ffffff) !important;
}

.stepra-next:hover {
    background: var(--stepra-next-hover, #004bb5) !important;
    color: var(--stepra-next-text, #ffffff) !important;
}

.stepra-prev {
    background: var(--stepra-prev-bg, #cbd5e1) !important;
    color: var(--stepra-prev-text, #334155) !important;
}

.stepra-prev:hover {
    background: var(--stepra-prev-hover, #94a3b8) !important;
    color: var(--stepra-prev-text, #334155) !important;
}

form.stepra-ready[data-stepra-next-gradient="1"] .stepra-next {
    background: linear-gradient(135deg, var(--stepra-next-bg, #0061e0), var(--stepra-next-gradient-end, #10b981)) !important;
}

form.stepra-ready[data-stepra-next-gradient="1"] .stepra-next:hover {
    background: linear-gradient(135deg, var(--stepra-next-hover, #004bb5), var(--stepra-next-gradient-end, #10b981)) !important;
}

form.stepra-ready[data-stepra-prev-gradient="1"] .stepra-prev {
    background: linear-gradient(135deg, var(--stepra-prev-bg, #cbd5e1), var(--stepra-prev-gradient-end, #94a3b8)) !important;
}

form.stepra-ready[data-stepra-prev-gradient="1"] .stepra-prev:hover {
    background: linear-gradient(135deg, var(--stepra-prev-hover, #94a3b8), var(--stepra-prev-gradient-end, #94a3b8)) !important;
}


/* Pro 1.1.0 button layout controls */
.stepra-nav button {
    padding: var(--stepra-button-padding-y, 10px) var(--stepra-button-padding-x, 24px) !important;
}


/* Pro 1.1.0 navigation visibility fix */
.stepra-nav .stepra-prev,
.stepra-nav .stepra-next {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.stepra-nav .stepra-next {
    margin-left: auto !important;
}

.stepra-nav .stepra-button-hidden,
.stepra-nav button[hidden] {
    display: none !important;
}


/* Pro 1.1.0 Woo/Elementor checkout structural hide class.
 * Inactive checkout groups are hidden, active groups keep their original
 * WooCommerce/Elementor display rules instead of being forced to block. */
body.stepra-woo-enabled form.woocommerce-checkout .stepra-woo-group-hidden {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}



/* Keep inactive checkout children hidden even when the parent checkout column
 * remains visible for Elementor/Woo layout preservation. */
body.stepra-woo-enabled form.woocommerce-checkout .stepra-step-el.stepra-hidden {
    display: none !important;
}

body.stepra-woo-enabled form.woocommerce-checkout .stepra-woo-group-hidden {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

@media (max-width: 640px) {
    .stepra-progress-numbered .stepra-numbered-circle {
        width: 30px !important;
        height: 30px !important;
        font-size: 12px !important;
    }

    .stepra-progress-numbered .stepra-numbered-label {
        display: none !important;
    }

    .stepra-progress-numbered .stepra-numbered-segment {
        margin-top: 14px !important;
        margin-left: 8px !important;
        margin-right: 8px !important;
        min-width: 16px !important;
    }
}


/* Pro 1.1.0 numbered progress — Lite-matched segmented style.
 * Connectors sit between circle borders. No line runs under the circles. */
.stepra-progress.stepra-progress-numbered {
    height: auto !important;
    padding: 0 !important;
    margin-bottom: 25px !important;
    overflow: visible !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.stepra-progress-numbered .stepra-numbered-inner {
    display: flex !important;
    align-items: flex-start !important;
    width: 100% !important;
    gap: 0 !important;
}

.stepra-progress-numbered .stepra-numbered-step {
    appearance: none !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 42px !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    color: inherit !important;
    box-shadow: none !important;
}

.stepra-progress-numbered .stepra-numbered-circle {
    width: 34px !important;
    height: 34px !important;
    border-radius: 999px !important;
    border: 2px solid var(--stepra-primary, #0061e0) !important;
    background: #ffffff !important;
    color: var(--stepra-primary, #0061e0) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    line-height: 1 !important;
    box-shadow: none !important;
    transition: background .24s ease, border-color .24s ease, color .24s ease !important;
}

.stepra-progress-numbered .stepra-numbered-step.is-active .stepra-numbered-circle,
.stepra-progress-numbered .stepra-numbered-step.is-completed .stepra-numbered-circle {
    background: var(--stepra-primary, #0061e0) !important;
    border-color: var(--stepra-primary, #0061e0) !important;
    color: #ffffff !important;
}

.stepra-progress-numbered.is-gradient .stepra-numbered-step.is-active .stepra-numbered-circle,
.stepra-progress-numbered.is-gradient .stepra-numbered-step.is-completed .stepra-numbered-circle {
    background: linear-gradient(135deg, var(--stepra-primary, #0061e0), var(--stepra-progress-end, #10b981)) !important;
    border-color: var(--stepra-primary, #0061e0) !important;
}

.stepra-progress-numbered .stepra-numbered-label {
    display: block !important;
    max-width: 120px !important;
    color: #475569 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-align: center !important;
    white-space: normal !important;
}

.stepra-progress-numbered .stepra-numbered-segment {
    position: relative !important;
    display: block !important;
    flex: 1 1 auto !important;
    height: 3px !important;
    margin: 16px 10px 0 !important;
    border-radius: 999px !important;
    background: var(--stepra-progress-track, #cbd5e1) !important;
    overflow: hidden !important;
    min-width: 24px !important;
}

.stepra-progress-numbered .stepra-numbered-segment span {
    display: block !important;
    width: 0 !important;
    height: 100% !important;
    border-radius: inherit !important;
    background: var(--stepra-primary, #0061e0) !important;
    transition: width .28s ease !important;
}

.stepra-progress-numbered.is-gradient .stepra-numbered-segment span {
    background: linear-gradient(90deg, var(--stepra-primary, #0061e0), var(--stepra-progress-end, #10b981)) !important;
}

.stepra-progress-numbered .stepra-numbered-segment.is-complete span {
    width: 100% !important;
}

/* Keep inactive checkout children hidden even when the parent checkout column
 * remains visible for Elementor/Woo layout preservation. */
body.stepra-woo-enabled form.woocommerce-checkout .stepra-step-el.stepra-hidden {
    display: none !important;
}

body.stepra-woo-enabled form.woocommerce-checkout .stepra-woo-group-hidden {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

@media (max-width: 640px) {
    .stepra-progress-numbered .stepra-numbered-circle {
        width: 30px !important;
        height: 30px !important;
        font-size: 12px !important;
    }

    .stepra-progress-numbered .stepra-numbered-label {
        display: none !important;
    }

    .stepra-progress-numbered .stepra-numbered-segment {
        margin-top: 14px !important;
        margin-left: 8px !important;
        margin-right: 8px !important;
        min-width: 16px !important;
    }
}


/* Pro 1.1.0 final numbered progress circle style.
 * Active step is filled. Completed previous steps are outlined.
 * Connector segments start/end at the circle border and labels do not stretch the line. */
.stepra-progress.stepra-progress-numbered {
    height: auto !important;
    padding: 0 !important;
    margin-bottom: 25px !important;
    overflow: visible !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.stepra-progress.stepra-progress-numbered.has-labels {
    padding-bottom: 28px !important;
    margin-bottom: 25px !important;
}

.stepra-progress-numbered .stepra-numbered-inner {
    display: flex !important;
    align-items: flex-start !important;
    width: 100% !important;
    gap: 0 !important;
}

.stepra-progress-numbered .stepra-numbered-step {
    position: relative !important;
    appearance: none !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: inherit !important;
    box-shadow: none !important;
    overflow: visible !important;
    flex: 0 0 34px !important;
}

.stepra-progress-numbered .stepra-numbered-circle {
    width: 34px !important;
    height: 34px !important;
    border-radius: 999px !important;
    border: 2px solid var(--stepra-progress-track, #cbd5e1) !important;
    background: #ffffff !important;
    color: #94a3b8 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    line-height: 1 !important;
    box-shadow: none !important;
    transition: background .2s ease, border-color .2s ease, color .2s ease !important;
}

.stepra-progress-numbered .stepra-numbered-step.is-completed .stepra-numbered-circle {
    background: #ffffff !important;
    border-color: var(--stepra-primary, #0061e0) !important;
    color: var(--stepra-primary, #0061e0) !important;
}

.stepra-progress-numbered .stepra-numbered-step.is-active .stepra-numbered-circle {
    background: var(--stepra-primary, #0061e0) !important;
    border-color: var(--stepra-primary, #0061e0) !important;
    color: #ffffff !important;
}

.stepra-progress-numbered.is-gradient .stepra-numbered-step.is-active .stepra-numbered-circle {
    background: linear-gradient(135deg, var(--stepra-primary, #0061e0), var(--stepra-progress-end, #10b981)) !important;
    border-color: var(--stepra-primary, #0061e0) !important;
}

.stepra-progress-numbered .stepra-numbered-step.is-locked .stepra-numbered-circle {
    background: #ffffff !important;
    border-color: var(--stepra-progress-track, #cbd5e1) !important;
    color: #94a3b8 !important;
}

.stepra-progress-numbered .stepra-numbered-label {
    position: absolute !important;
    top: 42px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 132px !important;
    max-width: 132px !important;
    color: #475569 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-align: center !important;
    white-space: normal !important;
    pointer-events: none !important;
}

.stepra-progress-numbered .stepra-numbered-segment {
    position: relative !important;
    display: block !important;
    flex: 1 1 auto !important;
    height: 3px !important;
    margin: 16px 0 0 !important;
    border-radius: 999px !important;
    background: var(--stepra-progress-track, #cbd5e1) !important;
    overflow: hidden !important;
    min-width: 18px !important;
}

.stepra-progress-numbered .stepra-numbered-segment span {
    display: block !important;
    width: 0 !important;
    height: 100% !important;
    border-radius: inherit !important;
    background: var(--stepra-primary, #0061e0) !important;
    transition: width .28s ease !important;
}

.stepra-progress-numbered.is-gradient .stepra-numbered-segment span {
    background: linear-gradient(90deg, var(--stepra-primary, #0061e0), var(--stepra-progress-end, #10b981)) !important;
}

.stepra-progress-numbered .stepra-numbered-segment.is-complete span {
    width: 100% !important;
}

.stepra-progress-numbered .stepra-numbered-step.is-clickable {
    cursor: pointer !important;
}

.stepra-progress-numbered .stepra-numbered-step.is-clickable:hover .stepra-numbered-circle {
    transform: none !important;
}

@media (max-width: 640px) {
    .stepra-progress-numbered .stepra-numbered-step {
        width: 30px !important;
        min-width: 30px !important;
        max-width: 30px !important;
        height: 30px !important;
        flex-basis: 30px !important;
    }

    .stepra-progress-numbered .stepra-numbered-circle {
        width: 30px !important;
        height: 30px !important;
        font-size: 12px !important;
    }

    .stepra-progress-numbered .stepra-numbered-label {
        display: none !important;
    }

    .stepra-progress.stepra-progress-numbered.has-labels {
        padding-bottom: 0 !important;
    }

    .stepra-progress-numbered .stepra-numbered-segment {
        margin-top: 14px !important;
        min-width: 12px !important;
    }
}


/* Pro 1.1.0 numbered heading containment.
 * Keeps first/last progress headings inside the form frame while preserving
 * the circle and connector alignment. */
.stepra-progress-numbered .stepra-numbered-label {
    width: clamp(72px, 11vw, 120px) !important;
    max-width: clamp(72px, 11vw, 120px) !important;
    overflow-wrap: anywhere !important;
}

.stepra-progress-numbered .stepra-numbered-step:first-child .stepra-numbered-label {
    left: 0 !important;
    transform: none !important;
    text-align: left !important;
}

.stepra-progress-numbered .stepra-numbered-step:last-child .stepra-numbered-label {
    left: auto !important;
    right: 0 !important;
    transform: none !important;
    text-align: right !important;
}

@media (max-width: 900px) {
    .stepra-progress-numbered .stepra-numbered-label {
        width: 82px !important;
        max-width: 82px !important;
        font-size: 10.5px !important;
    }
}

@media (max-width: 640px) {
    .stepra-progress-numbered .stepra-numbered-label {
        display: none !important;
    }
}


/* StepraEngine 1.1.0 Phase 1A lifecycle states.
 * State markers only. No layout or visual behavior changes. */
.stepra-aborted,
.stepra-failed {
    visibility: visible !important;
}

/* StepraEngine Pro 1.1.0 numbered progress color sync.
 * Match Lite behavior: active step is filled, completed steps are outlined,
 * connector color follows the configured primary/progress color. */
.stepra-progress.stepra-progress-numbered {
    --stepra-progress-color: var(--stepra-primary, #0061e0);
}

.stepra-progress.stepra-progress-numbered .stepra-numbered-circle {
    border-color: var(--stepra-progress-track, #cbd5e1) !important;
    background: #ffffff !important;
    color: #64748b !important;
}

.stepra-progress.stepra-progress-numbered .stepra-numbered-step.is-completed .stepra-numbered-circle {
    background: #ffffff !important;
    border-color: var(--stepra-progress-color, var(--stepra-primary, #0061e0)) !important;
    color: var(--stepra-progress-color, var(--stepra-primary, #0061e0)) !important;
}

.stepra-progress.stepra-progress-numbered .stepra-numbered-step.is-active .stepra-numbered-circle {
    background: var(--stepra-progress-color, var(--stepra-primary, #0061e0)) !important;
    border-color: var(--stepra-progress-color, var(--stepra-primary, #0061e0)) !important;
    color: #ffffff !important;
}

.stepra-progress.stepra-progress-numbered.is-gradient .stepra-numbered-step.is-active .stepra-numbered-circle {
    background: linear-gradient(135deg, var(--stepra-progress-color, var(--stepra-primary, #0061e0)), var(--stepra-progress-end, #10b981)) !important;
    border-color: var(--stepra-progress-color, var(--stepra-primary, #0061e0)) !important;
}

.stepra-progress.stepra-progress-numbered .stepra-numbered-step.is-locked .stepra-numbered-circle {
    background: #ffffff !important;
    border-color: var(--stepra-progress-track, #cbd5e1) !important;
    color: #94a3b8 !important;
}

.stepra-progress.stepra-progress-numbered .stepra-numbered-segment {
    background: var(--stepra-progress-track, #e2e8f0) !important;
}

.stepra-progress.stepra-progress-numbered .stepra-numbered-segment span {
    background: var(--stepra-progress-color, var(--stepra-primary, #0061e0)) !important;
}

.stepra-progress.stepra-progress-numbered.is-gradient .stepra-numbered-segment span {
    background: linear-gradient(90deg, var(--stepra-progress-color, var(--stepra-primary, #0061e0)), var(--stepra-progress-end, #10b981)) !important;
}

.stepra-progress.stepra-progress-numbered .stepra-numbered-step.is-active .stepra-numbered-label,
.stepra-progress.stepra-progress-numbered .stepra-numbered-step.is-completed .stepra-numbered-label {
    color: #334155 !important;
}

.stepra-progress.stepra-progress-numbered .stepra-numbered-step.is-locked .stepra-numbered-label {
    color: #64748b !important;
}



/* Pro 1.1.0 button text color lock.
 * Text colors must follow the Text controls, not the hover/background controls.
 */
form.stepra-ready .stepra-nav .stepra-next,
form.stepra-ready .stepra-nav .stepra-next:hover,
form.stepra-ready .stepra-nav .stepra-next:focus,
form.stepra-ready .stepra-nav .stepra-next:active {
    color: var(--stepra-next-text, var(--stepra-button-text, #ffffff)) !important;
}

form.stepra-ready .stepra-nav .stepra-prev,
form.stepra-ready .stepra-nav .stepra-prev:hover,
form.stepra-ready .stepra-nav .stepra-prev:focus,
form.stepra-ready .stepra-nav .stepra-prev:active {
    color: var(--stepra-prev-text, #334155) !important;
}
