.ausbia-register-steps {
  margin-top: 2rem;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 14px;
  background: rgba(26, 43, 61, 0.78);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #e5e7eb;
}

/* 隐藏始终显示的 UM 底部区域，注册/登录已移入 Step 4 */
.ausbia-register-steps > .um-row-heading,
.ausbia-register-steps > .um-row {
  display: none !important;
}

.ausbia-steps-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  position: relative;
  flex-wrap: nowrap;
}

.ausbia-steps-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: linear-gradient(
    to right,
    rgba(203, 213, 225, 0.6),
    rgba(148, 163, 184, 0.9),
    rgba(203, 213, 225, 0.6)
  );
  transform: translateY(-50%);
  z-index: 0;
}

.ausbia-step-tab {
  flex: 0 0 auto;
  text-align: center;
  padding: 0.4rem 0.5rem;
  font-size: 0.8rem;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.08);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.5);
  white-space: nowrap;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: default;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease,
              transform 0.18s ease, box-shadow 0.18s ease, flex 0.35s ease;
}

.ausbia-step-tab .step-num {
  display: inline-block;
  min-width: 1.4em;
  height: 1.4em;
  line-height: 1.4em;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  color: #e5e7eb;
  font-size: 0.75rem;
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease;
}

/* 默认：所有步骤只显示数字，文字只在当前步骤显示 */
.ausbia-step-tab .step-label {
  display: none;
}

.ausbia-step-tab.ausbia-step-tab-active .step-label {
  display: inline-block;
  animation: ausbia-label-in 0.3s ease;
}

@keyframes ausbia-label-in {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.ausbia-step-tab-active {
  flex: 1 1 auto;
  background: #fef9c3;
  color: #111827;
  border-color: #facc15;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(251, 191, 36, 0.35);
  transform: translateY(-1px) scale(1.03);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease,
              transform 0.25s ease, box-shadow 0.25s ease, flex 0.35s ease;
}

.ausbia-step-tab-active .step-num {
  background: #facc15;
  color: #111827;
}

.ausbia-step-tab:not(.ausbia-step-tab-active):hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.55);
  border-color: rgba(209, 213, 219, 0.8);
}

.ausbia-step-panel {
  margin-top: 0.75rem;
  animation: ausbia-panel-in 0.35s ease;
}

.ausbia-step-hidden {
  display: none;
}

@keyframes ausbia-panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ausbia-step-footer {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.ausbia-step-footer-single {
  justify-content: flex-end;
}

.ausbia-step-footer .ausbia-step-submit-wrap,
.ausbia-step-footer .um-field-type_submit {
  margin: 0;
  flex: 0 0 auto;
}

.ausbia-step-footer .ausbia-step-submit-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  flex: 0 0 auto;
}

.ausbia-step-footer .ausbia-step-submit-row .um-left,
.ausbia-step-footer .ausbia-step-submit-row .um-right {
  flex: 0 0 auto;
  margin: 0;
  width: auto;
}

.ausbia-step-footer input[type="submit"],
.ausbia-step-footer button[type="submit"],
.ausbia-step-footer .ausbia-step-submit-row a.um-button {
  border-radius: 999px !important;
  padding: 0.5rem 1.25rem !important;
  font-weight: 600 !important;
}

/* Step 4 仅保留注册按钮，移除登录链接 */
.ausbia-step-footer .ausbia-step-submit-row a.um-button.um-alt {
  display: none !important;
}

/* Step 4 注册按钮尺寸 */
.ausbia-step-footer .ausbia-step-submit-row input[type="submit"].um-button,
.ausbia-step-footer .ausbia-step-submit-row a.um-button {
  min-width: 100px;
  min-height: 42px;
  padding: 0.5rem 1.25rem !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-decoration: none;
}

.ausbia-step-next,
.ausbia-step-prev {
  min-width: 120px;
  padding: 0.5rem 1.25rem !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  border-radius: 999px !important;
  border: none !important;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.ausbia-step-next {
  background: #facc15 !important;
  color: #111827 !important;
}

.ausbia-step-next:hover {
  background: #fde047 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(250, 204, 21, 0.45);
}

.ausbia-step-prev {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #e5e7eb !important;
  border: 1px solid rgba(148, 163, 184, 0.5) !important;
}

.ausbia-step-prev:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ausbia-step-error {
  border-radius: 8px;
  padding: 0.15rem 0;
  border: 1px solid rgba(248, 113, 113, 0.6);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
  background: rgba(248, 113, 113, 0.06);
  animation: ausbia-error-in 0.3s ease;
}

.ausbia-field-error-msg {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: #dc2626;
}

@keyframes ausbia-error-in {
  from {
    box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.4);
  }
  to {
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
  }
}

/* WhatsApp 号码框与获取验证码按钮并排，错误信息下一行整行 */
.ausbia-whatsapp-with-btn {
  display: grid !important;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.5rem;
  align-items: center;
}
.ausbia-whatsapp-with-btn > input[data-key="whatsapp"] {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.ausbia-whatsapp-with-btn > .whatsapp-verification-box {
  display: contents;
}
.ausbia-whatsapp-with-btn .send-whatsapp-code {
  grid-column: 2;
  grid-row: 1;
}
.ausbia-whatsapp-with-btn .whatsapp-code-msg {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-left: 0 !important;
  font-size: 0.85rem;
}
.ausbia-whatsapp-with-btn .send-whatsapp-code {
  white-space: nowrap;
  padding: 0.45rem 0.9rem !important;
  font-size: 0.9rem !important;
  border-radius: 999px !important;
}

/* Gmail 邮箱框与获取验证码按钮并排 */
.ausbia-gmail-with-btn {
  display: grid !important;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  gap: 0.5rem;
  align-items: center;
}
.ausbia-gmail-with-btn > input[data-key="user_email"] {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.ausbia-gmail-with-btn > .gmail-verification-box {
  display: contents;
}
.ausbia-gmail-with-btn .send-gmail-code {
  grid-column: 2;
  grid-row: 1;
  white-space: nowrap;
  padding: 0.45rem 0.9rem !important;
  font-size: 0.9rem !important;
  border-radius: 999px !important;
}
.ausbia-gmail-with-btn .gmail-code-msg {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: 0.85rem;
}
.ausbia-gmail-with-btn .gmail-code-input-wrap {
  grid-column: 1 / -1;
  grid-row: 3;
}
.ausbia-gmail-with-btn .gmail-code-input-wrap input {
  width: 100%;
  max-width: 200px;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}
.gmail-verification-box .send-gmail-code.is-disabled,
.gmail-verification-box .send-gmail-code:disabled {
  background: #c8c8c8 !important;
  border-color: #c8c8c8 !important;
  color: #666 !important;
  cursor: not-allowed;
  opacity: 1;
}

/* 让表单字段标签在多步表单中更深色，增强可读性 */
.ausbia-register-steps .um-field-label,
.ausbia-register-steps .um-field-label label {
  color: #1f2933 !important;
}

.ausbia-step-error .um-field-label,
.ausbia-step-error .um-field-area {
  animation: ausbia-field-shake 0.16s ease-in-out 0s 2;
}

@keyframes ausbia-field-shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  50% {
    transform: translateX(3px);
  }
  75% {
    transform: translateX(-2px);
  }
  100% {
    transform: translateX(0);
  }
}

@media (max-width: 640px) {
  .ausbia-register-steps {
    padding: 1.4rem 1.1rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.22);
  }

  .ausbia-steps-header {
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    position: relative;
  }

  .ausbia-step-tab {
    flex: 0 0 auto;
    font-size: 0.76rem;
    padding: 0.3rem 0.35rem;
  }

  .ausbia-step-tab:not(.ausbia-step-tab-active) {
    padding: 0.25rem 0.28rem;
  }

  .ausbia-step-tab:not(.ausbia-step-tab-active) .step-num {
    min-width: 1.2em;
    height: 1.2em;
    line-height: 1.2em;
    font-size: 0.7rem;
  }

  .ausbia-step-tab.ausbia-step-tab-active {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 85%;
    padding: 0.35rem 0.5rem;
    font-size: 0.8rem;
  }

  .ausbia-step-footer {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .ausbia-step-next,
  .ausbia-step-prev {
    min-width: 100px;
  }
}

