@charset "UTF-8";
/*
--- 01 TYPOGRAPHY SYSTEM

- Font sizes (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98

- Font weights
Default: 400
Medium: 500
Semi-bold: 600
Bold: 700

- Line heights
Default: 1
Small: 1.05
Medium: 1.2
Paragraph default: 1.6

- Letter spacing
-0.5px
0.75px

--- 02 COLORS
- Primary: #1A5AD9
- Tints (淺色調):
#D5D4FF


- Shades (深色調):
#08a679

- Accents (強調色): #0ACF97
- Greys (灰色調)

#888
#767676 (lightest grey allowed on #fff)
#6f6f6f (lightest grey allowed on #fdf2e9)
#555
#333

--- 05 SHADOWS

0 2.4rem 4.8rem rgba(0, 0, 0, 0.075);

--- 06 BORDER-RADIUS

Default: 3.2px
Medium: 15px

--- 07 WHITESPACE

- Spacing system (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128
*/
:root {
  --islogin-height: 2rem + 1.6rem;
}

.ap-use {
  background: linear-gradient(0deg, #f9fafc, rgb(221.3269230769, 217.3653846154, 241.1346153846));
}
.ap-use .flex--row {
  gap: 4rem;
  flex-wrap: wrap;
}
@media (max-width: 59em) {
  .ap-use .flex--row {
    gap: 1.6rem;
  }
}
@media (max-width: 768px) {
  .ap-use .flex--row {
    flex-direction: column;
  }
}

.form-switcher {
  display: flex;
  justify-content: center;
  gap: 4rem;
}
.form-switcher__btn {
  border: none;
  font-size: 2rem;
  padding: 1rem 2.8rem;
  transition: all 0.3s ease-out;
  border-radius: 100px;
  box-shadow: 0 4px 16px rgba(136, 136, 136, 0.15);
}
.form-switcher__btn:hover {
  color: #f9fafc;
  background-color: #313a46;
}
.form-switcher__btn.active {
  color: #f9fafc;
  background-color: #1a5ad9;
}
.form-switcher__btn.active:hover {
  background-color: rgb(17.8148148148, 61.6666666667, 148.6851851852);
}

.ap-form-wrapper {
  width: 40%;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(43, 43, 43, 0.05);
}
@media (max-width: 59em) {
  .ap-form-wrapper {
    width: 48%;
  }
}
@media (max-width: 768px) {
  .ap-form-wrapper {
    width: 100%;
  }
}

.ap-img {
  width: 42%;
}
.ap-img img {
  width: 100%;
}
@media (max-width: 59em) {
  .ap-img {
    width: 50%;
  }
}
@media (max-width: 768px) {
  .ap-img {
    width: 80%;
  }
}

.ap-form {
  background-color: #f9fafc;
  padding: 4rem 6rem;
  text-align: start;
}
@media (max-width: 480px) {
  .ap-form {
    padding: 4rem;
  }
}

.form-logo {
  width: 25rem;
  height: auto;
}

.logo {
  width: 100%;
}

.form-title {
  font-size: 3.2rem;
  font-weight: 600;
}

.form-list {
  list-style: none;
  margin-bottom: 2rem;
}
.form-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.6rem;
  color: #888;
}

.form-label__title {
  display: none;
}

.form-input {
  font-size: 1.6rem;
  font-family: "Noto Sans TC", sans-serif;
  width: 100%;
  min-height: 4rem;
  border: 1px solid #d1d1d1;
  margin: 0.8rem 0;
  border-radius: 5px;
  padding: 0.5rem 0.8rem;
  color: #777;
  text-indent: 0.5rem;
}

.form-select {
  text-indent: 0;
}

.form-select-option.hidden {
  display: none; /* 首項是作為 placeholder 用 */
}

.form-info-field {
  font-size: 1.6rem;
  display: flex;
  flex-direction: column;
  column-gap: 0.8rem;
}
.form-info-field a {
  display: inline-block;
  position: relative;
  transition: all 0.2s;
}
.form-info-field a:link, .form-info-field a:visited {
  color: #0acf97;
}
.form-info-field a::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: #0acf97;
}
.form-info-field a:hover {
  color: #0acf97;
  background-color: #ffff50;
}

.form-copyright {
  text-align: center;
  font-size: 1.4rem;
  color: #888;
}

/*
.ap-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  margin-bottom: 3.2rem;
  position: relative;
}
*/

/******** Gigen修改  ********/
.ap-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.2rem; /* 縮小與上方明細的距離 */
  margin-bottom: 3.2rem;
  position: relative;
}

.ap-total::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  transform: translateY(-50%);
  width: 100%;
  height: 1px;
  background-color: #f9fafc;
}
.ap-total__amount {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-amount {
  font-size: 2.4rem;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  position: relative;
}
.form-checkbox__input {
  display: none;
}
.form-checkbox__label {
  position: relative;
  padding-left: 2rem;
  cursor: pointer;
  user-select: none;
}
.form-checkbox__label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0.25rem;
  background-color: #f9fafc;
  border: 1px solid #d1d1d1;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.form-checkbox__label::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.8rem;
  width: 0.5rem;
  height: 0.9rem;
  border: solid #f9fafc;
  border-width: 0 0.2rem 0.2rem 0;
  transform: scale(0) rotate(45deg);
  opacity: 0;
  transition: transform 0.18s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.18s;
  transform-origin: center;
}
.form-checkbox__input:checked + .form-checkbox__label::before {
  background-color: #1a5ad9;
}
.form-checkbox__input:checked + .form-checkbox__label::after {
  transform: scale(1) rotate(45deg);
  opacity: 1;
}
.form-checkbox__tooltip {
  position: absolute;
  font-size: 1.4rem;
  color: #f9fafc;
  right: 0;
  padding: 0.1rem 1rem;
  border-radius: 3.5px;
  opacity: 0;
  background-color: rgba(49, 58, 70, 0.85);
  transition: opacity 0.3s ease;
  pointer-events: none; /* 避免擋住點擊 */
}
.form-checkbox__tooltip.show {
  opacity: 1;
}
.form-checkbox__tooltip:after {
  content: "";
  position: absolute;
  left: -0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 0.5rem solid transparent;
  border-bottom: 0.5rem solid transparent;
  border-right: 0.5rem solid rgba(49, 58, 70, 0.85);
}

#FormConsult .form-checkbox__input:checked + .form-checkbox__label::before,
#FormPurchase .form-checkbox__input:checked + .form-checkbox__label::before,
#FormPayment .form-checkbox__input:checked + .form-checkbox__label::before {
  background-color: #0acf97;
}

@keyframes checkmark {
  0% {
    transform: rotate(45deg) scale(0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: rotate(45deg) scale(1);
  }
}
.form-link:link, .form-link:visited {
  color: #1a5ad9;
  font-weight: 600;
  transition: all 0.2s;
}
.form-link:hover, .form-link:active {
  color: rgb(23.2716049383, 80.5555555556, 194.2283950617);
}

.btn-form {
  position: relative;
  font-family: inherit;
  border: none;
  width: 100%;
  padding: 1.2rem 0;
  background-color: #0acf97;
  border-radius: 100px;
  font-size: 1.8rem;
  font-weight: 400;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(136, 136, 136, 0.15);
  transition: all 0.3s ease-out;
}
.btn-form::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12%;
  width: 1rem;
  height: 1rem;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  transition: all 0.3s ease;
}
.btn-form:hover {
  background-color: rgb(7.6497695853, 158.3502304147, 115.5115207373);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(136, 136, 136, 0.25);
}
.btn-form:hover::after {
  right: 10%;
}
.btn-form:active {
  transform: translateY(1px);
  box-shadow: 0 4px 12px rgba(136, 136, 136, 0.35);
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 43, 43, 0.6);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1001;
}

.popup-title {
  font-size: 2.4rem;
  font-weight: 600;
}

.btn-close {
  font-size: 2.4rem;
  font-weight: 600;
  text-align: end;
  display: inline-block;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-close:hover {
  color: #1a5ad9;
}

.popup-overlay.active {
  display: flex;
}

.popup-header {
  display: flex;
  justify-content: space-between;
}

.popup-content {
  position: absolute;
  background: #fff;
  max-height: 80vh;
  width: 80%;
  max-width: 50vw;
  overflow: hidden;
  border-radius: 12px;
  padding: 2rem;
}
.popup-content .heading-secondary {
  padding: 0 1rem;
  background-color: rgb(234.5, 234.5, 234.5);
}
.popup-content .text-subtitle {
  font-size: 1.8rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.popup-content p {
  padding: 0 1rem;
}
@media (max-width: 540px) {
  .popup-content {
    max-width: 80vw;
  }
}

.popup-scroll {
  max-height: 50vh;
  overflow-y: auto;
  border: 1px solid #ddd;
  padding: 1rem;
}

.popup-actions {
  margin-top: 1rem;
  text-align: right;
}
@media (max-width: 480px) {
  .popup-actions {
    text-align: center;
  }
}

.popup-label {
  font-size: 1.6rem;
  display: flex;
  justify-content: center;
  gap: 6px;
}
@media (max-width: 480px) {
  .popup-label {
    margin-bottom: 1rem;
  }
}

.popup-btn {
  font-size: 1.6rem;
  font-family: inherit;
  padding: 0.7rem 2rem;
  border: 1.2px solid #d1d1d1;
  border-radius: 3.2px;
  cursor: pointer;
  transition: all 0.2s;
}
.popup-btn:not(:disabled):hover {
  background-color: rgb(229.4, 229.4, 229.4);
}
.popup-btn:disabled {
  cursor: not-allowed;
}

.password-field {
  position: relative;
}

.icon-eye {
  display: none;
}
.icon-eye.on {
  display: inline-block;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 1rem;
  display: flex;
  align-items: center;
  transform: translateY(-50%);
  cursor: pointer;
  border: none;
  background-color: transparent;
}

/* 抖動動畫 */
@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-5px);
  }
  100% {
    transform: translateX(0);
  }
}
.icon-submssion--status {
  width: 8rem;
  height: 8rem;
}

@keyframes popIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.submission__status {
  animation: popIn 0.5s ease-out;
}
.submission__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
@media (max-width: 480px) {
  .submission__cta {
    flex-direction: column;
  }
}
.submission__cta-btn {
  display: inline-block;
  font-size: 1.6rem;
  padding: 0.7rem 2rem;
  border-radius: 100px;
  background-color: #fff;
  color: #313a46;
  transition: all 0.2s ease;
}
.submission__cta-btn:hover {
  background-color: #667281;
  color: #fff;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-inline-size: auto;
}

.fieldset-section {
  border-top: 1px solid rgba(209, 209, 209, 0.5); /* 非常淡的灰 */
  padding-top: 2.4rem;
  margin-bottom: 2.4rem;
}
.fieldset-section--noPadding {
  padding: 0;
}

.plan-title {
  color: #1a5ad9;
}

.form-section__title {
  padding-right: 1.2rem;
  font-weight: 600;
  color: #2b2b2b;
}

.form-radio:not(:last-child) {
  margin-right: 1rem;
}

.invoice-b2c {
  margin-top: 1rem;
}

.remind-text {
  color: #c5c5c5;
  font-size: 1.25rem;
}

.form-group {
  position: relative;
}

.form-error {
  display: none;
  position: absolute;
  bottom: 0;
  transform: translateY(70%);
  left: 10px;
  font-size: 1.3rem;
  color: #dc2626; /* 紅色 */
}

input.input-error {
  outline: 1px solid #ff1a2d;
}


/******** Gigen 新增  ***************/
/* 新增明細區塊樣式 */
.ap-details {
  display: flex;
  justify-content: flex-start; /* 讓標題與清單靠左 */
  gap: 2rem;                  /* 控制「費用說明」與「原方案餘額」之間的距離 */
  align-items: flex-start;
  margin-top: 1rem;
  font-size: 1.4rem;
  color: #666;

}

.form-section__subtitle {
  padding-right: 1.2rem;
  font-weight: 600;
  color: #2b2b2b;
  white-space: nowrap; /* 避免文字換行 */
}

.ap-details__list {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.8;

  /* 關鍵調整：這裡控制標籤向右移的距離 */
  /* 使用 rem 確保間距穩定，你可以調整這個數值 (例如 8rem 或 10rem) 直到符合你想要的綠色框位置 */
  padding-left: 4rem;
}

/* 針對行動裝置的自適應：當螢幕太小時縮小間距，避免文字擠壓 */
@media (max-width: 1024px) {
  .ap-details__list {
    padding-left: 0rem;
  }
}

.ap-details__list p {
  display: flex;
  justify-content: space-between; /* 文字推向左，金額推向右 */
  margin: 0;
}

.detail-amount {
  /* 金額數字不動，維持靠右 */
  font-family: sans-serif;
}

/* 確保標題寬度一致，若需要完美對齊，可給 title 固定的 min-width */
.form-section__title, .form-section__subtitle {
  min-width: 60px;
}