@media (max-width: 1199.98px) {
    .authentication-wrapper {
        min-height: 100vh !important;
        align-items: center;
        display: flex;
        flex-direction: column;
        padding: 15px;
        padding-top: 150px;
        padding-bottom: 50px;
        overflow-y: auto;
        /* Prevent horizontal overflow */
        overflow-x: hidden;
    }
    .authentication-inner {
        align-items: center;
        display: flex;
        flex-direction: column;
        padding: 15px;
        overflow-y: auto;
        overflow-x: hidden;
        flex-grow: 1;
    }
}
@media (max-width: 1199.98px) {
    /* Force mobile stepper to be horizontal */
    .mobile-stepper .bs-stepper-header {
        display: flex !important;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 14px;
        flex-wrap: nowrap;
        padding: 0.5rem 1rem;
        position: relative;
    }
    /* Keep circles above the track */
    .mobile-stepper .step {
        position: relative;
        z-index: 1;
    }

    /* Circle style */
    .mobile-stepper .bs-stepper-circle {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: #fafafa;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(0, 0, 0, 0.06);
    }

    /* Active step */
    .mobile-stepper .step.active .bs-stepper-circle {
        background: #163d34;
        border-color: #163d34;
        color: #fff;
    }

    /* Hide labels for mobile */
    .mobile-stepper .bs-stepper-label,
    .mobile-stepper .bs-stepper-title,
    .mobile-stepper .bs-stepper-subtitle {
        display: none !important;
    }
}
/* Stepper adjustments for mobile & tablet */
@media (max-width: 1199.98px) {
    .mobile-stepper .bs-stepper-circle {
        width: clamp(
            32px,
            8vw,
            44px
        ); /* min 32px, ideal 8% of viewport width, max 44px */
        height: clamp(32px, 8vw, 44px);
        font-size: clamp(14px, 3vw, 18px);
    }

    .mobile-stepper .bs-stepper-header {
        gap: clamp(8px, 3vw, 14px);
        padding: 0.5rem clamp(8px, 4vw, 1rem);
    }
}
/* Small phones (iPhone SE, under ~375px wide) */
@media (max-width: 375px) {
    .mobile-stepper .bs-stepper-circle {
        width: clamp(28px, 7vw, 36px);
        height: clamp(28px, 7vw, 36px);
        font-size: clamp(12px, 2.8vw, 16px);
    }

    .mobile-stepper .bs-stepper-header {
        gap: clamp(6px, 2.5vw, 10px);
    }
}

/* Regular phones (iPhone 14 Pro Max, XR, etc.) */
@media (min-width: 376px) and (max-width: 767px) {
    .mobile-stepper .bs-stepper-circle {
        width: clamp(32px, 8vw, 44px);
        height: clamp(32px, 8vw, 44px);
        font-size: clamp(14px, 3vw, 18px);
    }

    .mobile-stepper .bs-stepper-header {
        gap: clamp(8px, 3vw, 14px);
    }
}

/* Tablets (iPads, landscape phones) - center stepper */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .mobile-stepper-wrapper .mobile-stepper .bs-stepper-header {
        justify-content: center !important; /* force horizontal center */
        margin: 10 auto; /* prevent offset by parent container */
        padding-left: 100; /* remove side padding if it's pushing left */
        padding-right: 100;
        width: 100%; /* allow full width so center works properly */
        left: 50%;
    }
}
