/* =============================
   BJ Checkout Auth & Stepper
   ============================= */

/* ---- TAB SWITCHER ---- */
.bj-checkout-tabs {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
}

.bj-tab-switcher {
    background: #f0f0f0;
    border-radius: 50px;
    padding: 4px;
    display: inline-flex;
    width: fit-content;
    margin: 2rem auto;
}

.bj-tab-btn {
    padding: 10px 28px;
    border: none;
    border-radius: 50px;
    background: transparent;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    color: #802AFF;
    font-family: inherit;
}

.bj-tab-btn.active {
    background: #802AFF;
    color: #fff;
    box-shadow: 0 2px 8px rgba(128, 42, 255, 0.3);
}

.bj-tab-btn:hover:not(.active) {
    background: rgba(128, 42, 255, 0.08);
}

.bj-tab-content{
    width: 100%;
}

/* ---- NASCONDI #after-payment QUANDO TAB LOGIN ATTIVO ---- */
body.bj-tab-login-active #after-payment {
    display: none !important;
}

/* ---- CHECKOUT LOGIN FORM ---- */
.bj-checkout-login-form{
    padding-bottom: 24px;
}

.bj-checkout-login-form,
.bj-checkout-register-form {
    margin: 0 auto;
    width: 100%;
    h4{
        display: none;
    }
}

/* =============================
   STEPPER LIGHT — Thank You Page
   ============================= */

/* ---- PROGRESS BAR TOP (FIXED) ---- */
.bj-stepper-progress-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 24px;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.bj-stepper-top-container {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
}

.bj-stepper-line {
    position: absolute;
    top: 11px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: #e5e5e5;
    z-index: 1;
}

.bj-stepper-line-progress {
    height: 100%;
    background: #802AFF;
    transition: width 0.4s ease;
    border-radius: 2px;
}

.bj-stepper-item {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.bj-stepper-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #d5d5d5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #999;
    transition: all 0.3s ease;
}

.bj-stepper-item.active .bj-stepper-circle {
    background: #802AFF;
    border-color: #802AFF;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(128, 42, 255, 0.15);
}

.bj-stepper-item.completed .bj-stepper-circle {
    background: #802AFF;
    border-color: #802AFF;
    color: #fff;
}

.bj-stepper-item.completed .bj-stepper-circle::before {
    content: '✓';
    font-size: 16px;
}

.bj-stepper-item.completed .bj-stepper-circle .bj-step-num {
    display: none;
}

.bj-stepper-label {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-align: center;
    white-space: nowrap;
}

.bj-stepper-item.active .bj-stepper-label,
.bj-stepper-item.completed .bj-stepper-label {
    color: #1a1a1a;
}

/* ---- STEPPER CONTENT LIGHT ---- */
.bj-stepper-container {
    max-width: 560px;
    margin: 100px auto 60px;
    padding: 0 24px;
    width: 100%;
}

.bj-step {
    animation: bjStepFadeIn 0.3s ease;
}

.bj-step-content-light {
    background: #fff;
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid #eee;
}

.bj-step-title {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.bj-step-subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 28px;
    line-height: 1.5;
}

.bj-text-center {
    text-align: center;
}

/* ---- FORM ELEMENTS LIGHT ---- */
.bj-form-group {
    margin-bottom: 20px;
}

.bj-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.bj-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.bj-checkbox-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}

.bj-checkbox-pill input,
.bj-checkbox-pill input[type="checkbox"] {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.bj-checkbox-pill:has(input:checked) {
    background: #f0ebff;
    border-color: #802AFF;
    color: #802AFF;
}

.bj-btn-primary {
    width: 100%;
    padding: 16px 24px;
    background: #802AFF;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s;
    font-family: inherit;
}

.bj-btn-primary:hover {
    background: #6c1fe6;
    transform: translateY(-1px);
}

.bj-btn-ghost {
    background: none;
    color: #666;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 12px;
    width: 100%;
    text-align: center;
    text-decoration: underline;
    margin-top: 8px;
    font-family: inherit;
}

.bj-btn-ghost:hover {
    color: #802AFF;
}

/* ---- INPUT PLACEHOLDER LIGHT ---- */
.bj-step-content-light input::placeholder,
.bj-step-content-light .search-input::placeholder {
    color: #b5b5b5;
    opacity: 1;
}

.bj-step-content-light input::-webkit-input-placeholder,
.bj-step-content-light .search-input::-webkit-input-placeholder {
    color: #b5b5b5;
}

.bj-step-content-light input::-moz-placeholder,
.bj-step-content-light .search-input::-moz-placeholder {
    color: #b5b5b5;
    opacity: 1;
}

/* ---- OTP INPUT LIGHT ---- */
.bj-otp-input {
    width: 100%;
    padding: 20px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 12px;
    text-align: center;
    font-family: inherit;
    background: #fafafa;
    color: #802AFF;
}

.bj-otp-input:focus {
    outline: none;
    border-color: #802AFF;
    background: #fff;
}

.bj-notices {
    margin: 8px 0;
    min-height: 20px;
    text-align: center;
}

/* ---- STEP SUCCESS ICON ---- */
.bj-step-success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: #f0ebff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #802AFF;
    font-weight: bold;
}

/* ---- PROGRESS BAR BOTTOM (FIXED) ---- */
.bj-stepper-progress-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    padding: 14px 24px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.02);
}

.bj-progress-label {
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

.bj-progress-bar-wrapper {
    flex: 1;
    max-width: 400px;
    height: 8px;
    background: #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
}

.bj-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #802AFF, #b084ff);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.bj-progress-percentage {
    font-size: 14px;
    font-weight: 700;
    color: #802AFF;
    min-width: 42px;
    text-align: right;
}

@keyframes bjStepFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .bj-tab-btn {
        padding: 8px 20px;
        font-size: 13px;
    }

    .bj-stepper-progress-top {
        padding: 6px 12px;
    }

    .bj-stepper-label {
        font-size: 10px;
    }

    .bj-step-content-light {
        padding: 28px 20px;
    }

    .bj-step-title {
        font-size: 20px;
    }

    .bj-stepper-container {
        margin-top: 110px;
    }

    .bj-progress-label {
        display: none;
    }

    .bj-otp-input {
        font-size: 24px;
        letter-spacing: 8px;
    }
}
