/* 注册页面样式  */
.main-content {
  padding: 0;
}

/* 主容器样式 */
.register-container {
  max-width: 384px;
  margin: 40px auto;
  /* padding: 40px; */
}

/* 页面标题样式 */
.register-an-account {
  box-sizing: border-box;
  /* background: var(--primary-colors-primary-grey-hover, linear-gradient(to left, rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.20)), linear-gradient(to left, #3e3a39, #3e3a39)); */
  /* background-clip: text; */
  /* -webkit-background-clip: text; */
  /* -webkit-text-fill-color: transparent; */
  text-align: center;
  font-family: var(--en-text-2xl-font-family, 'Inter-Bold', sans-serif);
  font-size: var(--en-text-2xl-font-size, 24px);
  line-height: var(--en-text-2xl-line-height, 40px);
  font-weight: var(--en-text-2xl-font-weight, 700);
  position: relative;
  align-self: stretch;
  transform-origin: 0 0;
  transform: rotate(-0.062deg) scale(1, 1);
}

.already-have-an-account-sign-in,
.already-have-an-account-sign-in * {
  box-sizing: border-box;
}

.already-have-an-account-sign-in {
  text-align: center;
  font-family: var(--font-family);
  font-size: var(--en-text-sm-font-size, 11px);
  line-height: var(--en-text-sm-line-height, 18px);
  font-weight: var(--en-text-sm-font-weight, 400);
  position: relative;
  margin: 16px auto;
}

.already-have-an-account-sign-in-span {
  color: var(--primary-colors-primary-grey-100, #3e3a39);
  font-family: var(--font-family);
  font-weight: var(--en-text-sm-font-weight, 500);
}

.already-have-an-account-sign-in-span2 {
  /* color: var(--primary-colors-primary-green-100, #549b35); */
  /* font-family: var(--font-family); */
  /* font-weight: var(--en-text-sm-font-weight, 500); */
  /* text-decoration: underline; */
  cursor: pointer;
}

/* 表单部分样式 */
.form-section {
  margin-bottom: 16px;
}

/* 部分标题样式 */
.section-title {
  box-sizing: border-box;
  color: var(--primary-colors-primary-blue-100, #004077);
  text-align: left;
  font-family: var(--en-text-base-font-family, 'Inter-Medium', sans-serif);
  font-size: var(--en-text-base-font-size, 13px);
  line-height: var(--en-text-base-line-height, 26px);
  font-weight: var(--en-text-base-font-weight, 500);
  position: relative;
  align-self: stretch;
  transform-origin: 0 0;
  transform: rotate(-0.062deg) scale(1, 1);
  margin-bottom: 8px;
}

/* 订阅选项样式 */
.subscription-option {
  margin-bottom: 32px;
}

.subscription-option .checkbox-text {
  font-size: 10px;
  line-height: 14px;
  font-weight: 500;
  color: var(--primary-colors-primary-grey-100, #3E3A39);
}

/* 复选框标签样式 */
.checkbox-label {
  /* background: var(--primary-colors-primary-grey-hover, linear-gradient(to left, rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.20)), linear-gradient(to left, #3e3a39, #3e3a39)); */
  /* background-clip: text; */
  /* -webkit-background-clip: text; */
  /* -webkit-text-fill-color: transparent; */
  text-align: left;
  font-family: var(--en-text-xs-font-family, 'Inter-Medium', sans-serif);
  font-size: var(--en-text-xs-font-size, 10px);
  line-height: var(--en-text-xs-line-height, 14px);
  font-weight: var(--en-text-xs-font-weight, 500);
  position: relative;
  height: 28px;
}

/* 复选框输入样式 */
.checkbox-input {
  margin-top: 2px;
  margin-right: 12px;
}

/* 复选框文本样式 */
.checkbox-text {
  flex: 1;
  line-height: 1.4;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 12px;
  /* width: 100%; */
  box-sizing: border-box;
}

/* state 行作为下拉面板的定位容器 */
#stateRow {
  position: relative;
}

.form-row .form-field,
.form-row .input-container,
.form-row .input-wrapper,
.form-row .input-field {
  min-width: 0;
  width: 100%;
}

#internationalTelCode {
  /* Chrome、Safari、Edge 等 WebKit 内核浏览器 */
  -webkit-appearance: none;
  /* Firefox 浏览器 */
  -moz-appearance: none;
  /* 标准属性（现代浏览器通用） */
  appearance: none;
  /* 清除 IE 浏览器的默认下拉箭头 */
  background-image: none;
}

/* 清除 Firefox 特有的默认箭头 */
#internationalTelCode::-ms-expand {
  display: none;
}

.form-actions {
  position: relative;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .register-container {
    margin: 20px;
    padding: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
    row-gap: unset;
  }

  /* .input-container {
    margin-bottom: 0;
  } */
}

/* Country dropdown (search by meaning) */
.country-dropdown {
  position: absolute;
  z-index: 1000;
  left: 0;
  right: 0;
  margin-top: 0;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  box-shadow: 0px 2px 10px 5px rgba(124, 133, 155, 0.1);
  padding: 8px;
  max-height: 190px;
  overflow: hidden;
}

.country-dropdown-search {
  margin-bottom: 8px;
}

.country-search-input {
  width: 100%;
  height: 34px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 0 10px;
  font-family: var(--font-family);
  font-weight: var(--en-text-sm-font-weight, 500);
  font-size: var(--en-text-sm-font-size, 11px);
  outline: none;
  box-sizing: border-box;
}

.country-search-input:focus {
  border-color: #004077;
}

.country-dropdown-list {
  max-height: 120px;
  overflow-y: auto;
}

.country-dropdown-item {
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 4px;
  font-family: var(--font-family);
  font-weight: var(--en-text-sm-font-weight, 500);
  font-size: var(--en-text-sm-font-size, 11px);
  line-height: 18px;
  color: var(--primary-colors-primary-grey-100, #3e3a39);
  user-select: none;
}

.country-dropdown-item:not(:first-child) {
  margin-top: 6px;
}

.country-dropdown-item:hover {
  background: #004077;
  color: #ffffff;
}

.country-dropdown-item.is-selected {
  background: #004077;
  color: #ffffff;
}

/* country select：用户不可见，但不要用 display:none，确保 required 校验可触发 */
.country-select-hidden {
  opacity: 0;
  position: absolute;
  width: 1px;
  height: 1px;
  z-index: -1;
  pointer-events: none;
  left: 0;
  top: 0;
}

/* Register - phone prefix (+86) */
.phone-prefix-text {
  margin-left: 12px;
  margin-right: 8px;
  font-family: var(--font-family);
  font-weight: var(--en-text-sm-font-weight, 500);
  font-size: var(--en-text-sm-font-size, 11px);
  line-height: var(--en-text-sm-line-height, 18px);
  color: var(--primary-colors-primary-grey-80, #656161);
  user-select: none;
  white-space: nowrap;
}

.phone-prefix-select {
  margin-left: 8px;
  margin-right: 8px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--primary-colors-primary-grey-80, #656161);
  font-family: var(--font-family);
  font-weight: var(--en-text-sm-font-weight, 500);
  font-size: var(--en-text-sm-font-size, 11px);
  line-height: var(--en-text-sm-line-height, 18px);
  max-width: 88px;
  cursor: pointer;
}

.input-wrapper.has-phone-prefix .label-wrapper {
  left: 40px;
}

.input-wrapper.has-phone-prefix .input-field {
  padding-left: 0;
}

.input-wrapper.has-phone-prefix.focused .label-wrapper {
  left: 12px;
}

.company-dropdown {
  position: absolute;
  z-index: 1000;
  left: 0;
  right: 0;
  margin-top: 0;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  box-shadow: 0px 2px 10px 5px rgba(124, 133, 155, 0.1);
  padding: 8px;
  max-height: 260px;
  overflow: hidden;
}

.company-dropdown-list {
  max-height: 170px;
  overflow-y: auto;
}

.company-dropdown-item {
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 4px;
  font-family: var(--font-family);
  font-weight: var(--en-text-sm-font-weight, 500);
  font-size: var(--en-text-sm-font-size, 11px);
  line-height: 18px;
  color: var(--primary-colors-primary-grey-100, #3e3a39);
  user-select: none;
}

.company-dropdown-item:hover {
  background: #004077;
  color: #ffffff;
}

.company-dropdown-item.is-selected {
  background: #004077;
  color: #ffffff;
}

.company-dropdown-no-match {
  padding: 8px 12px;
  text-align: center;
  color: rgba(0,0,0,0.45);
  font-size: 13px;
  cursor: default;
}

input[type=checkbox].checkbox-input {
  margin-top: 0;
  margin-right: 0;
}