/* Default (LTR) */
.step-containerr {
  padding-right: 3rem !important;
}

/* RTL Direction */
[dir="rtl"] .step-containerr {
  padding-left: 3rem !important;
  padding-right: 0 !important; /* prevent double padding */
}

/* When screen width is less than 990px */
@media (max-width: 991px) {
  .step-containerr,
  [dir="rtl"] .step-containerr {
    padding: 0 !important;
  }


  .alert::after {
    content: "";
    display: block;
    width: 100% !important;
    height: 8px !important;
    left: 0;
    top: 0;
     position: absolute;
  }


  .alert__header {
    flex-flow: column !important;
    
  }

  .w-lg-auto {
    width: 100% !important; /* default for small screens */
  }
  
}

.w-auto {
  width: auto !important; /* default for small screens */
}



/* fixed top alert base */
.top-alert {
  position: fixed;
  top: 20px;
  z-index: 1080;
  width: min(380px, calc(100% - 40px));
  pointer-events: auto;
  /* start hidden state for animation */
  opacity: 0;
  transform: translateY(-12px) translateX(0) scale(.98);
  transition: opacity .28s ease, transform .28s cubic-bezier(.22,.9,.26,1);
  box-shadow: 0 8px 30px rgba(20,30,40,.12);
  border-radius: .6rem;
}




/* visible state */
.top-alert.show {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* placement for RTL: right side */
[dir="rtl"] .top-alert {
  right: 20px;
  left: auto;
}

/* placement for LTR: left side */
[dir="ltr"] .top-alert {
  left: 20px;
  right: auto;
}

/* small-screen tweak: center-ish if too narrow */
@media (max-width: 420px) {
  .top-alert { left: 10px; right: 10px; top: 12px; width: calc(100% - 20px); }
  [dir="rtl"] .top-alert, [dir="ltr"] .top-alert { left: 10px; right: 10px; }
}

/* optional: visually reduce default 'alert--success' to match your style */
.alert--success { background: #f3fff6; border: 1px solid rgba(27,131,84,.12); }


.alert--danger {background: #f3fff6; border: 1px solid rgba(27,131,84,.12);}

.alert__header {
  display: flex
;
  padding: 0px;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}


.alert {
  display: flex;
  width: 100%;
  padding: 16px 24px;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #d2d6db;
  position: relative;
  overflow: hidden;
}

:is(html[lang=ar],html[dir=rtl]) .alert::after {
  right: 0;
  left: auto;
}



:is(html[lang=lg],html[dir=ltr]) .alert::after {
  left: 0;
  right: auto;
}

.alert::after {
  content: "";
  display: block;
  height: 100%;
  width: 8px;
  left: 0;
  top: 0;
   position: absolute;
}


.alert--warning {
    background: #fffaeb;
    border: 1px solid rgba(247, 144, 9, 0.2);
}

.alert--warning::after {
    background-color: #F79009;
}

.featured-icon--light-warning {
    color: #B54708;
    background-color: #FFFAEB;
    text-align: center;
    align-content: center;
}



.alert--danger {
    background: #FEF3F2;
    border: 1px solid rgba(240, 68, 56, 0.2);
}

.alert--danger::after {
    background-color: #F04438;
}

.featured-icon--light-danger {
    color: #B42318;
    background-color: #FEF3F2;
    text-align: center;
    align-content: center;
}



.alert--success::after {
  background-color: #069454;
}

.alert--danger::after {
  background-color: #E56C63;
}

.alert-heading{
  font-size: 16px;
}


.featured-icon--light-success {
  color:#067647  ;
  background-color: #ecfdf3  ;
  text-align: center;
  align-content: center;
}

.featured-icon--light-danger {
  color:#B42318  ;
  background-color: #FEF3F2  ;
  text-align: center;
  align-content: center;
}


.featured-icon--circle {
  border-radius: 9999px;
}

.featured-icon--md {
  width: 40px;
  min-width: 40px;
  height: 40px;
}

.progress-container {
  /* make it positioning context */
  background-color: #fff;
  border-radius: 20px;
  border: solid #d2d6db 1px;

  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  /* match your image height */
}


.progress-indicator.horizontal {
  display: flex;
  align-items: flex-start;
}

.progress-indicator.vertical {
  display: flex;
  flex-direction: column;
}

.step-container.horizontal {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 16px;
}

.step-container.vertical {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.circle-wrapper.horizontal {
  display: flex;
  align-items: center;
}

.circle-wrapper.vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #d2d6db;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #d2d6db;
  background: transparent;
}

.circle.completed {
  background-color: #1b8354;
  border-color: #1b8354;
  color: #fff;
}

.circle.current {
  border-color: #1b8354;
  color: #1b8354;
}

.line.horizontal {
  width: 96px;
  height: 2px;
  background-color: #d2d6db;
}

.line.vertical {
  height: 96px;
  width: 2px;
  background-color: #d2d6db;
}

.line.completed {
  background-color: #1b8354;
}

.text-container {
  margin-top: 8px;
  text-align: center;
}

.step-container.vertical .text-container {
  margin-top: 0;
  margin-right: 12px;
  text-align: right;
}

.title {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.description {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}



/* === Direction Modifiers === */
/* Vertical — RTL (current behavior, explicit) */
.progress-indicator.vertical.rtl .step-container {
  flex-direction: row; /* circle-wrapper then text on the right */
}
.progress-indicator.vertical.rtl .step-container .text-container {
  margin-right: 12px;
  margin-left: 0;
  text-align: right;
}

/* Vertical — LTR (NEW: text on the left, circles on the right) */
.progress-indicator.vertical.ltr .step-container {
  flex-direction: row-reverse; /* put text before circles */
}
.progress-indicator.vertical.ltr .step-container .text-container {
  margin-left: 12px;
  margin-right: 0;
  text-align: left;
}

/* Optional: logical fallbacks using [dir] attribute on a wrapper */
[dir="rtl"] .progress-indicator.vertical .step-container {
  flex-direction: row;
}
[dir="rtl"] .progress-indicator.vertical .text-container {
  margin-right: 12px; margin-left: 0; text-align: right;
}
[dir="ltr"] .progress-indicator.vertical .step-container {
  flex-direction: row-reverse;
}
[dir="ltr"] .progress-indicator.vertical .text-container {
  margin-left: 12px; margin-right: 0; text-align: left;
}


/* === Direction-aware layout for vertical stepper === */

/* Default: RTL (your current layout) */
.progress-indicator.vertical .step-container.vertical {
  flex-direction: row;
}
.progress-indicator.vertical .step-container.vertical .text-container {
  margin-right: 12px;
  margin-left: 0;
  text-align: right;
}

/* When parent has LTR direction → reverse layout */
[dir="ltr"] .progress-indicator.vertical .step-container.vertical {
  flex-direction: row;
}

[dir="ltr"] .progress-indicator.vertical .step-container.vertical .text-container {
  margin-left: 12px;
  margin-right: 0;
  text-align: left;
}
