/*** 

====================================================================
  Reset
====================================================================

 ***/
* {
  margin: 0px;
  padding: 0px;
  border: none;
  outline: none;
  box-sizing: border-box;
}

/*** 

====================================================================
  Global Settings
====================================================================

 ***/

/* For variable font Noto Sans TC */
/* .noto-sans-jp-<uniquifier> --> Use a unique and descriptive class name */
/* font-weight: <weight> --> Use a value from 100 to 900 */

.noto-sans-tc-regular {
  font-family: "Noto Sans TC", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.noto-sans-tc-medium {
  font-family: "Noto Sans TC", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

.noto-sans-tc-bold {
  font-family: "Noto Sans TC", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

.poppins-regular {
  font-family: "Poppins", serif;
  font-weight: 400;
  font-style: normal;
}

.poppins-medium {
  font-family: "Poppins", serif;
  font-weight: 500;
  font-style: normal;
}

.poppins-bold {
  font-family: "Poppins", serif;
  font-weight: 700;
  font-style: normal;
}

:root {
  --theme-solid-color: #022552;
  --theme-color: linear-gradient(to right, #02457a, #018abe);
  --light-grey: #f2f2f2;
  --dark-grey: #a8a8a8;
}

html,
body {
  height: auto;
  overflow-y: auto;
  margin: 0;
}

body {
  margin: 0;
  padding-top: 60px;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: var(--theme-color);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wrapper {
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.logo img {
  height: 30px;
  display: block;
  justify-content: center;
  align-items: center;
}

.hero-section {
  text-align: center;
  padding: 20px;
  padding-top: 60px;
  box-sizing: border-box;
  z-index: 2;
}

.body-bg {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 30%;
  max-width: 480px;
  height: auto;
  z-index: 1;
  pointer-events: none;
}

.title-tc {
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--theme-solid-color);
  margin: 10px 0;
}

.title-en {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--theme-solid-color);
  margin: 10px 0;
}

.image-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 40px;
  z-index: 2;
}

.image-stack img {
  width: 85%;
  border-radius: 20px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.intro-tc {
  width: 85%;
  max-width: 480px;
  margin: 20px auto;
  text-align: justify;
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 2;
  color: var(--theme-solid-color);
}

.intro-en {
  width: 85%;
  max-width: 480px;
  margin: 20px auto;
  text-align: justify;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 2;
  color: var(--theme-solid-color);
}

.button-container-2register {
  position: static;
  bottom: 40px;
  z-index: 1000; /* 确保按钮显示在上层 */
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 40px;
}

.button-2register-fixed {
  position: fixed; /* 动态固定 */
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
}

.register-button {
  display: inline-block;
  width: 85%;
  max-width: 480px;
  background: var(--theme-color);
  color: white;
  text-align: center;
  text-decoration: none;
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 40px;
  height: 40px;
  border-radius: 20px;
  box-shadow: 0 0 8px 0 rgba(1, 138, 190, 0.5);
  cursor: pointer;
  transition: background-color 2s ease, box-shadow 0.3s ease;
  position: fixed;
  bottom: 60px;
  z-index: 1000;
  margin-top: 20px;
}

.submit-button {
  display: inline-block;
  width: 85%;
  max-width: 480px;
  background: var(--theme-color);
  color: white;
  text-align: center;
  text-decoration: none;
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 40px;
  height: 40px;
  border-radius: 20px;
  box-shadow: 0 0 8px 0 rgba(1, 138, 190, 0.5);
  cursor: pointer;
  transition: background-color 2s ease, box-shadow 0.3s ease;
  z-index: 1000;
  margin-top: 10px;
  margin-bottom: 20px;
}

.submit-button.disabled {
  background: var(--dark-grey);
  color: white;
  cursor: not-allowed;
  box-shadow: none;
  border: none;
  margin-top: 10px;
  margin-bottom: 20px;
}

/* 禁用状态样式 */
.register-button.disabled {
  background: var(--dark-grey);
  color: white;
  cursor: not-allowed;
  box-shadow: none;
  border: none;
}

.register-button:not(.disabled) {
  opacity: 1;
}

/* 鼠标悬浮时禁用样式保持不变 */
.register-button.disabled:hover {
  background: var(--dark-grey);
  color: white;
}

.button-text-tc {
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 40px;
  color: white;
  margin-right: 5px;
}

.button-text-en {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 40px;
  color: white;
  text-align: justify;
}

.form-group {
  width: 85%;
  max-width: 480px;
  margin: 20px auto;
}

.form-label {
  display: block;
  color: var(--theme-solid-color);
  padding-left: 4px;
  margin-bottom: 10px;
  text-align: left;
}

.form-label-tc {
  margin-right: 5px;
  font-family: "Noto Sans TC", sans-serif !important;
  font-weight: 500 !important;
  font-size: 16px;
  color: var(--theme-solid-color);
}

.form-label-en {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--theme-solid-color);
}

.form-label-illegal {
  font-size: 12px;
  color: rgb(255, 0, 0);
  margin-left: 10px;
}

/* 覆盖自动填充样式 */
input:-webkit-autofill {
  appearance: none !important; /* 禁用默认外观 */
  background-color: #ffffff !important; /* 设置背景色为白色 */
  background-image: none !important; /* 移除背景图像 */
  color: #333333 !important; /* 设置文字颜色 */
  box-shadow: 0 0 0px 1000px #ffffff inset !important; /* 填充背景色 */
  border: 2px solid #737373 !important; /* 恢复边框样式 */
  border-radius: 20px; /* 保持圆角 */
  transition: background-color 0s; /* 禁止背景色变化 */
}

/* 解决自动填充 hover 问题 */
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  background-color: #ffffff !important; /* 保持背景为白色 */
  color: #333333 !important; /* 保持文字颜色 */
  box-shadow: 0 0 0px 1000px #ffffff inset !important; /* 确保填充背景色 */
}

.form-input {
  width: 100%;
  height: 40px;
  padding: 4px;
  padding-left: 16px;
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #333333;
  border: 1px solid var(--dark-grey);
  border-radius: 20px;
  box-sizing: border-box;
  outline: none; /* 去掉默认聚焦样式 */
  background-color: #ffffff;
  transition: all 0.3s ease;
}

.form-input:focus {
  background-color: #ffffff;
  border: none;
  box-shadow: 0 0 8px 0 rgba(1, 138, 190, 0.5);
}

/* 電話 */

.form-phone-group {
  display: flex; /* 使用 flexbox 布局 */
  justify-content: space-between; /* 分配下拉菜单和输入框 */
  gap: 10px; /* 下拉菜单和输入框之间的间距 */
}

.form-select {
  width: 40%; /* 下拉菜单占 40% 宽度 */
  padding: 14px;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--theme-solid-color);
  border: 2px solid #737373;
  border-radius: 20px;
  box-sizing: border-box;
  outline: none;
  background-color: #ffffff;
  transition: all 0.3s ease;
  appearance: none; /* 隐藏默认箭头样式 */
  background: url("./images/Vector_1.svg") no-repeat;
  background-position: 85% center;
  background-size: 12px 12px;
}

/* Dropdown wrapper */
.dropdown {
  flex: 1 1 40%; /* 下拉菜单占 40% 宽度*/
  position: relative;
}

/* Dropdown toggle button */
.dropdown-toggle {
  display: flex;
  width: 100%;
  height: 40px;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--theme-solid-color);
  border: 1px solid var(--dark-grey);
  border-radius: 20px;
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

/* Dropdown toggle active state */

.dropdown-toggle[aria-expanded="true"] {
  border: none;
  background-color: #ffffff;
  box-shadow: 0 0 8px 0 rgba(1, 138, 190, 0.5);
  outline: none; /* 去除默认的聚焦样式 */
}

/* Dropdown toggle with arrow */
.dropdown-toggle::after {
  content: ""; /* 伪元素内容为空 */
  display: inline-block;
  width: 12px; /* 图标宽度 */
  height: 12px; /* 图标高度 */
  background: url("./images/toggle_array_1.svg") no-repeat center center;
  background-size: contain; /* 图标大小适应容器 */
  position: absolute;
  right: 14px; /* 靠右对齐，与按钮右边内边距一致 */
  top: 52%;
  transform: translateY(-50%); /* 修正垂直位置 */
  line-height: 0; /* 确保没有额外的行高干扰 */
}

/* Dropdown menu */
.dropdown-menu {
  margin-top: 10px;
  padding-top: 4px;
  padding-bottom: 4px;
  position: absolute;
  z-index: 1000;
  visibility: hidden; /* 默认不可见 */
  opacity: 0; /* 初始透明度为 0 */
  transform: translateY(-10px); /* 初始位置稍微上移 */
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease; /* 添加过渡效果 */
  width: 100%; /* 设置宽度与父容器一致 */
  font-size: var(--bs-dropdown-font-size, 1rem);
  color: var(--bs-dropdown-color, #212529);
  background-color: #ffffff; /* 填色 */
  background-clip: padding-box;
  border: none;
  border-radius: 20px;
  box-shadow: 0 0 8px 0 rgba(1, 138, 190, 0.5); /* 投影 */
  list-style: none;
  min-width: 20px; /* 移除最小宽度限制 */
  overflow: hidden;
}

/* Dropdown menu visibility */
.dropdown-menu.show {
  visibility: visible; /* 设置为可见 */
  opacity: 1; /* 完全显示 */
  transform: translateY(0); /* 恢复到正常位置 */
}

/* Dropdown menu items */
.dropdown-item {
  display: block;
  width: 100%;
  padding: var(--bs-dropdown-item-padding-y, 0.25rem)
    var(--bs-dropdown-item-padding-x, 1rem);
  clear: both;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--bs-dropdown-link-color, #333333);
  text-align: inherit;
  text-decoration: none;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
  transition: background-color 0.3s ease, color 0.2s ease;
}

/* Dropdown item hover */
.dropdown-item:hover {
  color: var(--bs-dropdown-link-hover-color, #1e2125);
  background-color: var(--bs-dropdown-link-hover-bg, #e9ecef);
}

.button-container-static {
  position: relative;
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 40px;
}

.centre-fee-label {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 20px;
  margin-bottom: 10px;
}

.fee-label-tc {
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: var(--dark-grey);
  margin-right: 5px;
}

.fee-label-en {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: var(--dark-grey);
  position: relative;
  top: 1px;
}

.centre-fee-price {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  margin-bottom: 20px;
}

.fee-price-small {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--theme-solid-color);
  margin-right: 8px;
}

.fee-price-big {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 40px;
  color: var(--theme-solid-color);
  position: relative;
  top: 12px;
}

.select-method {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  margin-bottom: 10px;
}

.select-method-tc {
  width: 85%;
  max-width: 480px;
  margin: 0;
  text-align: justify;
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--theme-solid-color);
  line-height: 1.5;
}

.select-method-en {
  width: 85%;
  max-width: 480px;
  margin: 0;
  text-align: justify;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: var(--theme-solid-color);
  line-height: 1.5;
}

.horizontal-line {
  width: 85%;
  max-width: 480px;
  height: 1px;
  background-color: var(--theme-solid-color);
  margin: 20px auto;
  margin-top: 16px;
  margin-bottom: 24px;
}

.payment-method {
  display: flex;
  align-items: center;
  width: 85%;
  max-width: 480px;
  margin: 10px auto;
  padding: 10px;
  border: 1px solid var(--dark-grey);
  border-radius: 20px;
  box-sizing: border-box;
  height: 60px;
  background-color: transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.payment-method.selected {
  border: none;
  background-color: #ffffff;
}

#fps.selected {
  box-shadow: 0 0 10px 0 rgba(2, 138, 205, 0.5);
}

#payme.selected {
  box-shadow: 0 0 10px 0 rgba(219, 0, 17, 0.5);
}

#alipay.selected {
  box-shadow: 0 0 10px 0 rgba(22, 119, 255, 0.5);
}

#wechatpay.selected {
  box-shadow: 0 0 10px 0 rgba(26, 173, 25, 0.5);
}

.payment-icon {
  width: auto;
  height: 40px;
  margin-right: 10px;
}

.payment-text {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--theme-solid-color);
  flex-grow: 1;
}

.payment-radio {
  width: 16px;
  height: 16px;
  cursor: pointer;
  margin-right: 10px;
}

.pay-status-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 20px;
}

.pay-status-icon img {
  width: 30%;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.pay-status {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}

.pay-status-tc {
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 400;
  font-size: 14px;
  text-align: center;
  color: var(--theme-solid-color);
}

.pay-status-en {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 12px;
  text-align: center;
  color: var(--theme-solid-color);
  position: relative;
}

.pay-status-detail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  margin-bottom: 0px;
}

.pay-status-detail-tc {
  width: 85%;
  max-width: 480px;
  margin: 0;
  text-align: justify;
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--theme-solid-color);
  line-height: 1.5;
}

.pay-status-detail-en {
  width: 85%;
  max-width: 480px;
  margin: 0;
  text-align: justify;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: var(--theme-solid-color);
  line-height: 1.5;
}

.transaction-record {
  width: 85%;
  max-width: 480px;
  margin: 0px auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.transaction-item {
  display: flex;
  gap: 10px;
}

.tx-field-name {
  flex: 0 0 30%; /* 左列占30%的宽度 */
  font-family: "Noto Sans TC", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #333333;
  text-align: left;
  word-break: break-word;
  align-self: flex-start;
}

.tx-field-value {
  flex: 0 0 70%; /* 右列占70%的宽度 */
  font-family: "Noto Sans TC", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--theme-solid-color);
  text-align: left;
  word-break: break-word;
}

.contact-us {
  width: 85%;
  max-width: 480px;
  margin: 0px auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 40px;
}

.contact-us-item {
  display: flex;
  gap: 10px;
}

.contactus-field-name {
  flex: 0 0 30%; /* 左列占30%的宽度 */
  font-family: "Noto Sans TC", sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #333333;
  text-align: left;
  word-break: break-word;
  align-self: flex-start;
}

.contactus-field-value {
  flex: 0 0 70%; /* 右列占70%的宽度 */
  font-family: "Noto Sans TC", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--theme-solid-color);
  text-align: left;
  word-break: break-word;
}
