/* ── Vendor signup step button ───────────────────────────────────────── */
.btn-step-continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  height: 42px;
  background-color: #00a651;
  color: #fff !important;
  border: 1.5px solid #00a651;
  border-radius: 5.25px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer;
  text-decoration: none;
  box-shadow: none;
}
.btn-step-continue:hover:not(:disabled) {
  background-color: transparent;
  color: #00a651 !important;
  border-color: #00a651;
}
.btn-step-continue:active:not(:disabled) {
  background-color: #008c44;
  color: #fff !important;
  border-color: #008c44;
}
.btn-step-continue:disabled {
  background-color: #9e9e9e;
  border-color: #9e9e9e;
  color: #fff !important;
  opacity: 1;
  cursor: not-allowed;
  pointer-events: none;
}

.progress-container {
  position: relative;
  margin: 30px 0;
}
.progress-bar {
  height: 2px;
  background-color: #dee2e6;
  position: relative;
  margin: 0 auto;
}
.progress-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: -14px;
}
.step {
  text-align: center;
  position: relative;
  width: 33.33%;
}
.step-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #fff;
  border: 2px solid #dee2e6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.step.active .step-icon {
  background-color: #000;
  border-color: #000;
  color: white;
}
.step-label {
  font-size: 14px;
  margin-top: 8px;
  color: #6c757d;
}
.step.active .step-label {
  color: #000;
  font-weight: 500;
}
.form-container {
  background-color: #fff;
  border-radius: 5px;
  padding: 30px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}
.step-card {
  max-width: 1250px;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}
.step-1-form {
  .form-label {
    font-weight: 500;
  }
  .required:after {
    content: " *";
    color: #dc3545;
  }
  .btn-save {
    background-color: #8b909b;
    border: none;
    padding: 8px 20px;
  }
  .phone-input {
    display: flex;
  }
  .phone-input .country-code {
    width: 80px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }
  .phone-input .phone-number {
    flex: 1;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }

  a {
    color: black;
  }

  .icon {
    font-size: 1.2rem;
  }

  .form-label {
    color: #374151;
    font-size: 14px;
    font-weight: 400;
  }

  .btn:not(.btn-step-continue) {
    display: flex;
    align-items: start;
  }
}

.step-2-form {
  .otp-input {
    width: 45px;
    height: 50px;
    text-align: center;
    font-size: 1.25rem;
  }

  .otp-input-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
  }

  .resend-link {
    font-size: 0.9rem;
    margin-top: 10px;
  }

  .resend-link a {
    text-decoration: none;
    font-weight: 500;
  }

  @media (max-width: 576px) {
    .otp-input {
      width: 34px;
      height: 40px;
      font-size: 1rem;
    }
  }
}

.step-3-form {
  .form-label {
    color: #374151;
  }

  .upload-box {
    border: 2px dashed #dee2e6;
    padding: 25px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 0.95rem;
    cursor: pointer;
  }

  .form-check-label {
    font-size: 0.9rem;
  }

  .btn-green {
    background-color: #00b96b;
    color: #fff;
  }

  .btn-green:hover {
    background-color: #01975b;
  }
}

  @media (max-width: 326px) {
   .form-container{
    margin-left: 10px;
    width: 0% !important;
    margin-right: 10px;
   }
  }

/* Signup-style field validation feedback for all vendor steps */
.step-card .form-control.is-invalid,
.step-card .form-select.is-invalid,
.step-card .form-check-input.is-invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15) !important;
}

.step-card .invalid-feedback,
.step-card .vendor-field-error {
  display: block;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.35rem;
}

.step-card .form-control.is-valid,
.step-card .form-select.is-valid {
  border-color: #198754;
  box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.12);
}

.step-1-form .required:after,
.step-2-form .required:after,
.step-3-form .required:after {
  content: " *";
  color: #dc3545;
}

/* OTP step visual refresh */
.otp-step-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #e9f0f8;
}

.otp-step-header {
  max-width: 560px;
  margin: 0 auto 1.25rem;
}

.otp-icon-wrap {
  width: 54px;
  height: 54px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: #e8f7ef;
  border: 1px solid #c6ecd7;
  color: #00a651;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.otp-phone-input {
  max-width: 280px;
  margin: 0 auto;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid #d9e7f6;
  background-color: #f6fbff;
}

.otp-phone-input[readonly] {
  color: #0f2940;
  opacity: 1;
}

.otp-phone-label {
  display: inline-block;
  min-width: 220px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #d9e7f6;
  background: #f6fbff;
  color: #0f2940;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.otp-step-body {
  max-width: 620px;
  margin: 0 auto;
}

.otp-input-wrap {
  max-width: 520px;
  margin: 0 auto;
}

.otp-code-row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.otp-box-group {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.otp-digit {
  width: 48px !important;
  max-width: 48px !important;
  min-width: 48px;
  flex: 0 0 48px;
  height: 54px;
  border-radius: 10px;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  border: 1px solid #cfd8e3;
  color: #1f2d3d;
  background: #fff;
  transition: all 0.2s ease;
}

.otp-digit:focus {
  border-color: #00a651;
  box-shadow: 0 0 0 0.2rem rgba(0, 166, 81, 0.16);
}

.otp-box-group.is-invalid .otp-digit,
.otp-digit.is-invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.12rem rgba(220, 53, 69, 0.15);
}

.otp-hidden-code {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.otp-confirm-btn {
  min-width: 150px;
  width: max-content;
}

.otp-status-message {
  display: none;
  margin: 0.9rem auto 0;
  max-width: 520px;
  min-height: 20px;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
}

.otp-feedback {
  display: none;
}

.otp-feedback-success {
  display: block;
  color: #0f6a3f;
  background: #e9f8ef;
  border: 1px solid #bde7cd;
}

.otp-feedback-success:before {
  content: "\2713 ";
}

.otp-feedback-error {
  display: block;
  color: #dc3545;
  background: #fff1f3;
  border: 1px solid #f3c3ca;
  margin: 0.9rem auto 0 !important;
  max-width: 520px;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
}

.otp-feedback-error:before {
  content: "\26A0 ";
  padding-right: 5px;
}

.step-card .otp-feedback {
  display: none;
}

.step-card .otp-feedback-success,
.step-card .otp-feedback-error {
  display: block;
}

@media (max-width: 767px) {
  .otp-code-row {
    flex-direction: column;
  }

  .otp-box-group,
  .otp-confirm-btn {
    width: 100%;
    max-width: 100%;
  }

  .otp-box-group {
    justify-content: space-between;
    gap: 8px;
  }

  .otp-digit {
    width: 42px !important;
    max-width: 42px !important;
    min-width: 42px;
    flex: 0 0 42px;
    height: 48px;
    font-size: 1.2rem;
  }

  .otp-confirm-btn {
    width: 100%;
    max-width: 100%;
  }
}
