/* ===========================
   OTP Digit Inputs
   =========================== */

.otp-inputs-wrapper {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0 8px;
  direction: ltr;
}

/* مخفی کردن label و description هر باکس */
.otp-inputs-wrapper .form-item {
  margin: 0;
}
.otp-inputs-wrapper .form-item label,
.otp-inputs-wrapper .form-item .description {
  display: none;
}

.otp-digit-input {
  width: 48px !important;
  height: 56px !important;
  text-align: center !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 56px !important;
  border: 2px solid #d0d5dd !important;
  border-radius: 10px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #fff;
  color: #101828;
  cursor: text;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  caret-color: transparent;
  -moz-appearance: textfield;
}

.otp-digit-input::-webkit-outer-spin-button,
.otp-digit-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.otp-digit-input:focus {
  border-color: #0073aa !important;
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.2) !important;
  outline: none !important;
  background: #f0f7fb;
}

.otp-digit-input:not(:placeholder-shown):not(:focus) {
  border-color: #0073aa !important;
  background: #fff;
}

/* ===========================
   Resend / Timer
   =========================== */

.otp-resend-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 20px;
  min-height: 36px;
}

.otp-resend-timer {
  font-size: 14px;
  color: #667085;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}

.otp-resend-btn {
  background: none !important;
  border: none !important;
  color: #0073aa !important;
  font-size: 14px !important;
  cursor: pointer !important;
  padding: 4px 8px !important;
  text-decoration: underline;
  box-shadow: none !important;
}

.otp-resend-btn:hover {
  color: #005177 !important;
}

/* ===========================
   Submit button
   =========================== */

.otp-submit-btn {
  display: block;
  width: 100%;
  margin-top: 4px;
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 400px) {
  .otp-digit-input {
    width: 40px !important;
    height: 48px !important;
    font-size: 20px !important;
  }
  .otp-inputs-wrapper {
    gap: 6px;
  }
}
