.desktop-stepper {
  display: block;
}
.mobile-stepper {
  display: none !important;
}

.stepper-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
}
.stepper-item {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.stepper-line {
  flex: 1;
  height: 2px;
  background: #d0d0d0;
  margin: 0 12px;
}
.stepper-item.active {
  font-weight: 900;
}
/* completed line (line immediately after an active step) */
.stepper-item.active + .stepper-line {
  background: #4bb543;
}
.stepper-item.active .step-counter {
  font-weight: bold;
  background-color: #4bb543;
  color: #fff;
}
.step-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
}
.step-counter {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #ddd;
  color: #444;
  display: flex;
  justify-content: center;
  align-items: center;
}
.step-content {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
}
.step-content label {
  font-size: 14px;
  color: #333;
}
.step-content input[type='text'] {
  padding: 6px 10px;
  border: 1px solid #bbb;
  border-radius: 4px;
  font-size: 14px;
  flex: 1;
}

/* Gray info box above the first step input */
.step-info-box {
  padding: 12px 14px;
  border-radius: 5px;
  font-size: 14px;
  line-height: 1.45;
  color: #333;
  margin: 0 0 14px 0;
  text-align: center;
}

/* New wrapper for first step input + button + image */
.step-content-wrapper {
  display: flex;
  align-items: center;
  margin: 20px 0 28px;
  flex-wrap: nowrap;
  justify-content: space-evenly;
}
.step-content-left {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}
.step-content-left input[type='text'] {
  min-width: 220px;
}
.step-content-left button {
  height: 38px;
  display: inline-flex;
  align-items: center;
}
.step-content-image img {
  max-height: 250px;
  width: auto;
  display: block;
}
.step-content-image {
  flex-shrink: 0;
}

/* Payment result styles */
.payment-result-wrapper {
  margin-top: 25px;
  max-width: 680px;
}
.payment-result {
  border: 1px solid #d8d8d8;
  border-left-width: 5px;
  padding: 18px 20px 14px;
  background: #fafafa;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.payment-result h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 20px;
}
.payment-result.success {
  border-left-color: #4bb543;
}
.payment-result.failed {
  border-left-color: #e02b20;
}
.payment-result p {
  margin: 4px 0 6px;
}

@media (max-width: 800px) {
  .step-content-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .step-content-left {
    flex-direction: column;
    align-items: stretch;
  }
  .step-content-left input[type='text'] {
    width: 100%;
    min-width: 0;
  }
  .step-content-left button {
    width: 100%;
    justify-content: center;
  }
  .step-content-image {
    text-align: center;
  }
  .step-content-image img {
    margin: 0 auto;
    max-height: 250px;
  }
}
.step-next-btn {
  background: #4bb543;
  border: none;
  color: #fff;
  padding: 7px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}
.step-next-btn:hover {
  background: #3d9a37;
}

.m-step {
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  padding: 12px 14px;
  background: #fff;
}
.m-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.m-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ccc;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}
.m-step.current .m-badge,
.m-step.completed .m-badge {
  background: #4bb543;
}
.m-title {
  font-size: 15px;
  font-weight: 500;
}
.m-body {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.m-body input[type='text'] {
  padding: 8px 10px;
  border: 1px solid #bbb;
  border-radius: 4px;
  font-size: 14px;
}
.step-next-btn.full {
  width: 100%;
}

.mobile-stepper-wrapper {
  position: relative;
}

.mobile-stepper-item {
  position: relative;
}

.mobile-stepper-item::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 44px;
  bottom: 0;
  width: 3px;
  background: #4bb543;
  z-index: 1;
}

.mobile-stepper-item:last-child::before {
  display: none;
}

.mobile-step-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  padding: 20px 10px;
  position: relative;
  z-index: 2;
  transition: background-color 0.3s ease;
}

.mobile-step-header:hover {
  background: #f9f9f9;
  cursor: pointer;
}

.mobile-stepper-item:not(.active):not(.completed) .mobile-step-header {
  opacity: 0.6;
  cursor: not-allowed;
}

.mobile-stepper-item:not(.active):not(.completed) .mobile-step-header:hover {
  background: transparent;
}

.mobile-stepper-item.active .mobile-step-header {
  background: #e8f5e9;
  cursor: default;
}

.mobile-stepper-item.active .step-counter {
  background-color: #4bb543;
  color: #fff;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(75, 181, 67, 0.3);
}

.mobile-stepper-item.active .step-name {
  font-weight: 700;
  color: #2e7d32;
}

.mobile-stepper-item.completed .step-counter {
  background-color: #4bb543;
  color: #fff;
}

.mobile-step-content {
  padding-left: 30px;
  padding-right: 10px;
  display: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, padding 0.3s ease;
}

.mobile-stepper-item.active .mobile-step-content {
  display: block;
  opacity: 1;
  padding-top: 10px;
  padding-bottom: 10px;
  overflow: visible;
}

.mobile-step-content-inner {
  padding-bottom: 20px;
}

@media (max-width: 1000px) {
  .step-content-wrapper {
    flex-direction: column;
  }
}

@media (max-width: 850px) {
  .desktop-stepper {
    display: none !important;
  }
  .mobile-stepper {
    display: block !important;
  }
}
