/* Step Header (Left Aligned) */
.otp-step-header {
  text-align: left !important;
  margin-bottom: 16px;
}

.otp-step-title {
  color: #406176 !important;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  text-align: left !important;
}

.otp-step-desc {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  text-align: left !important;
}

/* 6-Digit Box Layout */
.otp-boxes-container {
  display: flex;
  justify-content: flex-start !important;
  gap: 8px;
  margin: 16px 0 8px 0 !important;
  max-width: 50%;
}

.otp-digit-input {
  width: 44px;
  height: 52px;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  background-color: #f9fafb;
  color: #111827;
  transition: all 0.2s ease-in-out;
  outline: none;
  box-sizing: border-box;
}

.otp-digit-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.otp-digit-input:hover {
  border-color: #9ca3af;
}

.otp-digit-input:focus {
  border-color: #406176;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 115, 230, 0.15);
  transform: translateY(-2px);
}

.otp-digit-input:not(:placeholder-shown) {
  border-color: #406176;
  background-color: #ffffff;
}

/* Inline Resend Row */
.otp-resend-wrapper {
  display: flex !important;
  align-items: baseline !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  margin: 4px 0 20px 0 !important;
  font-size: 13px !important;
  color: #6b7280 !important;
  line-height: 1.4 !important;
}

.otp-resend-text {
  color: #6b7280 !important;
  font-size: 13px !important;
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
}

.otp-inline-resend-link {
  background: transparent !important;
  border: none !important;
  color: #406176 !important;
  /* text-decoration: underline !important; */
  cursor: pointer !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  line-height: inherit !important;
  vertical-align: baseline !important;
  box-shadow: none !important;
  display: inline !important;
  text-transform: none !important;
}

.otp-inline-resend-link:hover,
.otp-inline-resend-link:focus {
  color: #406176 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-decoration: underline !important;
}

/* ============================================================
   ACTION BUTTONS: Side-by-Side & Right Aligned
   ============================================================ */
.otp-actions-wrapper {
  display: flex !important;
  flex-direction: row !important;
  justify-content: flex-end !important; /* Aligns buttons to the right */
  align-items: center !important;
  gap: 12px !important;                 /* Space between the two buttons */
  margin-top: 15px !important;
}

.otp-submit-btn {
  width: auto !important;               /* Auto width based on text */
  height: 42px !important;
  padding: 0 20px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  /* border-radius: 8px !important; */
  margin: 0 !important;
  white-space: nowrap !important;
}

.otp-back-btn {
  width: auto !important;               /* Auto width based on text */
  height: 42px !important;
  padding: 0 16px !important;
  font-size: 14px !important;
  /* border-radius: 8px !important; */
  background: #f3f4f6 !important;
  color: #4b5563 !important;
  border: 1px solid #d1d5db !important;
  cursor: pointer !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

.otp-back-btn:hover {
  background: #e5e7eb !important;
  color: #111827 !important;
}

@media (max-width: 480px) {
  .otp-boxes-container {
    gap: 5px;
  }
  .otp-digit-input {
    width: 38px;
    height: 48px;
    font-size: 20px;
  }
}