/* 團險留資頁（客製模組 transglobe-customize-064，內容由 customize.js 載入 api jsp/group_contact.html） */
/* 尺寸依設計稿：表單寬 910px（左右兩欄各約 403px、間距 104px），步驟圓心對齊兩欄中線 */
.transglobe-customize-064 .customizeArea {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 0 60px;
  box-sizing: border-box;
}

/* 本頁以首屏圖為主視覺，不顯示版型的頁面標題（h2.font-title-main） */
.globe-layout-inpage-b .layout-content:has(.transglobe-customize-064) > .pos-left {
  display: none;
}

/* 首屏 (A02，原圖 1920*400)：超出內容欄寬，左右各留 40px，依原圖比例顯示 */
.transglobe-customize-064 .group-contact-banner {
  position: relative;
  left: 50%;
  width: calc(100vw - 80px);
  max-width: 1920px;
  min-height: 200px;
  aspect-ratio: 1920 / 400;
  transform: translateX(-50%);
  background: #e9ecf3 url(../img/group-contact/banner.jpg) no-repeat center center;
  background-size: cover;
}

/* 填寫步驟示意：選中 / 已完成 #27327B，尚未完成 #D9D9D9 */
.transglobe-customize-064 .group-contact-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-width: 587px;
  margin: 90px auto 85px;
}
.transglobe-customize-064 .group-contact-steps .step-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 80px;
}
.transglobe-customize-064 .group-contact-steps .step-num {
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  background-color: #D9D9D9;
  color: #fff;
  font-size: 48px;
  text-align: center;
}
.transglobe-customize-064 .group-contact-steps .step-text {
  margin-top: 10px;
  font-size: 16px;
  color: #000;
  white-space: nowrap;
}
.transglobe-customize-064 .group-contact-steps .step-line {
  flex: 1 1 auto;
  height: 2px;
  margin-top: 39px;
  background-color: #D9D9D9;
}
.transglobe-customize-064 .group-contact .step-1 .step-num,
.transglobe-customize-064 .group-contact[data-step="2"] .step-2 .step-num,
.transglobe-customize-064 .group-contact[data-step="2"] .step-line {
  background-color: #27327B;
}

/* 步驟一：填寫資料（版型預設 .gas-layout-form 白底，改透明與頁面同底色） */
.transglobe-customize-064 .group-contact .group-contact-form {
  max-width: 910px;
  margin: 0 auto;
  padding: 0;
  background-color: transparent;
  text-align: left;
}
.transglobe-customize-064 .gc-row {
  display: flex;
  flex-wrap: wrap;
  column-gap: 104px;
}
.transglobe-customize-064 .gc-field {
  flex: 0 0 calc(50% - 52px);
  min-width: 0;
  margin-bottom: 40px;
}
.transglobe-customize-064 .gc-field.gc-field-full {
  flex-basis: 100%;
}
.transglobe-customize-064 .gas-layout-form .form-title-top {
  display: block;
  margin-bottom: 14px;
  padding: 0;
  color: #000;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 1px;
  line-height: 24px;
}
/* 必填項目標註 * 字號，置於標題左上角（取代全站紅點） */
.transglobe-customize-064 .gas-layout-form .form-required .form-title-top:before {
  content: '*';
  position: absolute;
  top: -6px;
  left: -3px;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: #FF0000;
  font-size: 16px;
  font-weight: normal;
  line-height: 1;
}

.transglobe-customize-064 .input-block input,
.transglobe-customize-064 .textarea-block textarea,
.transglobe-customize-064 .select-block select {
  display: block;
  width: 100%;
  height: 50px;
  padding: 0 25px;
  border: none;
  border-radius: 25px;
  background-color: #D9D9D9;
  color: #333;
  font-size: 15px;
  box-sizing: border-box;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.transglobe-customize-064 .textarea-block textarea {
  height: 150px;
  padding: 15px 25px;
  border-radius: 10px;
  resize: vertical;
}
.transglobe-customize-064 .input-block input::placeholder,
.transglobe-customize-064 .textarea-block textarea::placeholder {
  color: #999999;
}
.transglobe-customize-064 .input-block input:focus,
.transglobe-customize-064 .textarea-block textarea:focus,
.transglobe-customize-064 .select-block select:focus {
  box-shadow: 0 0 0 2px rgba(39, 50, 123, 0.35);
}
.transglobe-customize-064 .gc-field.has-error input,
.transglobe-customize-064 .gc-field.has-error textarea,
.transglobe-customize-064 .gc-field.has-error .bootstrap-select {
  box-shadow: 0 0 0 1px #ff7a00;
}

/* 下拉選單（手機版為原生 select，桌機版為 bootstrap-select；箭頭沿用全站 .select-block:after，放大加深） */
.transglobe-customize-064 .select-block select {
  padding-right: 55px;
}
.transglobe-customize-064 .gas-layout-form .select-block:after {
  top: 25px;
  right: 25px;
  border-width: 8px 10px 0 10px;
  border-color: #666 transparent transparent transparent;
}
.transglobe-customize-064 .gas-layout-form .select-block .bootstrap-select {
  width: 100%;
  border-radius: 25px;
  background-color: #D9D9D9;
}
.transglobe-customize-064 .select-block .bootstrap-select .dropdown-toggle.btn {
  height: 50px;
  line-height: 50px;
  padding-left: 25px;
  padding-right: 55px;
  border-radius: 25px;
}
.transglobe-customize-064 .select-block .bootstrap-select .dropdown-toggle.btn .filter-option,
.transglobe-customize-064 .select-block .bootstrap-select .dropdown-toggle.btn .filter-option-inner-inner {
  font-size: 15px;
  line-height: 50px;
  color: #333;
}
.transglobe-customize-064 .select-block.gc-placeholder select,
.transglobe-customize-064 .select-block.gc-placeholder .dropdown-toggle.btn .filter-option-inner-inner {
  color: #999999;
}

/* 聯絡人姓名 + 性別（性別無標題，與姓名並排） */
.transglobe-customize-064 .gc-name-gender {
  display: flex;
  align-items: center;
}
.transglobe-customize-064 .gc-name-gender .input-block {
  flex: 1 1 auto;
  min-width: 0;
  margin-right: 30px;
}
.transglobe-customize-064 .gc-name-gender .gc-gender {
  flex: 0 0 auto;
  white-space: nowrap;
}
.transglobe-customize-064 .gas-layout-form .gc-gender .radio-block.option-inline {
  margin: 0 24px 0 0;
}
.transglobe-customize-064 .gas-layout-form .gc-gender .radio-block.option-inline:last-of-type {
  margin-right: 0;
}
.transglobe-customize-064 .gas-layout-form .gc-gender .choose-tag {
  margin-left: 4px;
  color: #000;
  font-size: 16px;
  font-weight: bold;
}
.transglobe-customize-064 .gc-gender label,
.transglobe-customize-064 .checkbox-block label {
  cursor: pointer;
}
/* 先生/女士、個資同意框未勾選底色同欄位（勾選後沿用全站樣式） */
.transglobe-customize-064 .gas-layout-form .radio-block .radio-style,
.transglobe-customize-064 .gas-layout-form .checkbox-block .checkbox-style {
  background-color: #D9D9D9;
}

/* 個資同意書 */
.transglobe-customize-064 .gc-field#gc-remark-block {
  margin-bottom: 26px;
}
.transglobe-customize-064 .gc-field#gc-agree-block {
  margin-bottom: 0;
}
.transglobe-customize-064 .checkbox-block {
  font-size: 15px;
  color: #333;
}
.transglobe-customize-064 .gas-layout-form .checkbox-block .checkbox-style {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}
.transglobe-customize-064 .gas-layout-form .checkbox-block .choose-tag {
  font-size: 15px;
}
.transglobe-customize-064 .checkbox-block .gc-privacy-link {
  font-size: 15px;
  text-decoration: underline;
  vertical-align: middle;
}

/* 防機器人欄位 */
.transglobe-customize-064 .gc-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 按鈕 */
.transglobe-customize-064 .group-contact .btn-block {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 110px 0 0;
}
.transglobe-customize-064 .group-contact-done .btn-block {
  padding-top: 60px;
}
.transglobe-customize-064 .group-contact .gc-btn {
  display: inline-block;
  min-width: 240px;
  height: 50px;
  line-height: 50px;
  margin: 0 15px;
  padding: 0 30px;
  border: none;
  border-radius: 25px;
  color: #fff;
  font-size: 16px;
  letter-spacing: 1px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}
.transglobe-customize-064 .group-contact .gc-btn:hover,
.transglobe-customize-064 .group-contact .gc-btn:focus {
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
}
.transglobe-customize-064 .group-contact .gc-btn-back {
  background-color: #9B9B9B;
}
.transglobe-customize-064 .group-contact .gc-btn-submit,
.transglobe-customize-064 .group-contact .gc-btn-main {
  background-color: #27327B;
}
/* 未勾選個資同意書、送出處理中 */
.transglobe-customize-064 .group-contact .gc-btn-submit[disabled] {
  background-color: #D9D9D9;
  cursor: not-allowed;
  opacity: 1;
}

/* 步驟二：等待聯繫 */
.transglobe-customize-064 .group-contact-done {
  display: none;
  max-width: 910px;
  margin: 0 auto;
  text-align: center;
}
.transglobe-customize-064 .group-contact[data-step="2"] .group-contact-form {
  display: none;
}
.transglobe-customize-064 .group-contact[data-step="2"] .group-contact-done {
  display: block;
}
.transglobe-customize-064 .group-contact-done .done-title {
  margin: 20px 0 0;
  color: #27327B;
  font-size: 32px;
  font-weight: bold;
  letter-spacing: 1px;
  line-height: 1.4;
}
.transglobe-customize-064 .group-contact-done .done-desc {
  margin: 20px 0 50px;
  color: #333;
  font-size: 16px;
  letter-spacing: 1px;
}
.transglobe-customize-064 .group-contact-done .sparkle {
  margin: 0 8px;
  color: #f5b301;
}
/* 小插圖 (D01) 暫定 385*256px；原圖為白底，multiply 讓白底融入頁面底色 */
.transglobe-customize-064 .group-contact-done .done-img img {
  width: 385px;
  max-width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

@media (max-width: 991px) {
  .transglobe-customize-064 .gc-row {
    column-gap: 40px;
  }
  .transglobe-customize-064 .gc-field {
    flex-basis: calc(50% - 20px);
  }
}

@media (max-width: 767px) {
  .transglobe-customize-064 .customizeArea {
    padding: 0 15px 40px;
  }
  .transglobe-customize-064 .group-contact-banner {
    width: calc(100vw - 30px);
  }
  .transglobe-customize-064 .group-contact-steps {
    max-width: none;
    margin: 40px auto;
  }
  .transglobe-customize-064 .group-contact-steps .step-item {
    flex-basis: 56px;
  }
  .transglobe-customize-064 .group-contact-steps .step-num {
    width: 56px;
    height: 56px;
    line-height: 56px;
    font-size: 32px;
  }
  .transglobe-customize-064 .group-contact-steps .step-text {
    font-size: 14px;
  }
  .transglobe-customize-064 .group-contact-steps .step-line {
    margin-top: 27px;
  }
  .transglobe-customize-064 .gc-row {
    column-gap: 0;
  }
  .transglobe-customize-064 .gc-field {
    flex-basis: 100%;
    margin-bottom: 30px;
  }
  .transglobe-customize-064 .gc-field#gc-remark-block {
    margin-bottom: 20px;
  }
  .transglobe-customize-064 .group-contact .btn-block {
    padding-top: 50px;
  }
  .transglobe-customize-064 .group-contact .gc-btn {
    flex: 1 1 0;
    min-width: 0;
    margin: 0 8px;
    padding: 0 10px;
  }
  .transglobe-customize-064 .group-contact-done .done-title {
    font-size: 22px;
  }
}
