/** logo 輪播動效 @jasonchou **/
.swiper-wrapper {
  transition-timing-function: linear !important; 
}

/** Remove NinjaForms asterisk by @clementtang **/
.nf-form-fields-required,
.ninja-forms-req-symbol {
  display: none;
}

::selection {
background-color: var(--e-global-color-primary); 
  color: #FFFFFF;
}

/** Body Style 為 3 行時 truncate @jasonchou **/ 
.truncate {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	max-height: 4.14em;
	overflow: hidden;
	text-overflow: ellipsis;
}

/** 滑順的滑動效果 @jasonchou **/

.swiper-wrapper {
	transition-timing-function:ease-in-out !important;
}

/** 避免 Mobile Menu 收合時會有閃一下的問題 @jasonchou **/
.elementor-widget-n-menu .e-n-menu[data-layout=dropdown] .e-n-menu-wrapper {
	background-color: #fff;
}

/* 官網 Ninja Forms 樣式統一（2026-12-01）
 * 原因：文字欄位吃 Ninja Forms 全站樣式（白底、Gray 100 框、5px 圓角），
 * 一般下拉選單吃外掛 light 主題（灰底、方角、粗箭頭），國家選單吃佈景預設（深灰框、瀏覽器原生箭頭），三種長相並存；
 * 字體繼承 body 的 Helvetica，送出鈕在部分表單是規範外的 #dd3333、16pt。
 * 色票與字級依 91app-website-design-guide。 */

.nf-form-cont .nf-form-content,
.nf-form-cont .nf-form-content input,
.nf-form-cont .nf-form-content select,
.nf-form-cont .nf-form-content textarea,
.nf-form-cont .nf-form-content label {
  font-family: "Noto Sans", "Noto Sans TC", sans-serif;
}

/* 文字欄位、多行文字、兩種下拉選單用同一組外框 */
.nf-form-cont
  .nf-form-content
  input.ninja-forms-field:not([type="button"]):not([type="submit"]):not(
    [type="checkbox"]
  ):not([type="radio"]):not([type="hidden"]),
.nf-form-cont .nf-form-content textarea.ninja-forms-field,
.nf-form-cont .nf-form-content select.ninja-forms-field {
  background-color: #ffffff;
  border: 1px solid #cdd2d8;
  border-radius: 8px;
  color: #061c3d;
  font-size: 1rem;
  box-shadow: none;
  transition: border-color 0.2s;
}
.nf-form-cont
  .nf-form-content
  input.ninja-forms-field:not([type="button"]):not([type="submit"]):not(
    [type="checkbox"]
  ):not([type="radio"]):not([type="hidden"]),
.nf-form-cont .nf-form-content select.ninja-forms-field {
  height: 50px;
  padding: 0 16px;
}
.nf-form-cont .nf-form-content textarea.ninja-forms-field {
  padding: 12px 16px;
}
.nf-form-cont .nf-form-content input.ninja-forms-field::placeholder,
.nf-form-cont .nf-form-content textarea.ninja-forms-field::placeholder {
  color: #838e9e;
  opacity: 1;
}
.nf-form-cont .nf-form-content input.ninja-forms-field:focus,
.nf-form-cont .nf-form-content textarea.ninja-forms-field:focus,
.nf-form-cont .nf-form-content select.ninja-forms-field:focus {
  border-color: #42526b;
  outline: none;
}

/* 下拉選單：拿掉外掛的外層灰框與粗箭頭，兩種選單都用同一個細箭頭 */
.nf-form-cont .nf-form-content .listselect-wrap .nf-field-element > div,
.nf-form-cont .nf-form-content .list-select-wrap .nf-field-element > div,
.nf-form-cont .nf-form-content .listcountry-wrap .nf-field-element > div {
  display: none;
}
.nf-form-cont .nf-form-content select.ninja-forms-field {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  font-weight: 400;
  line-height: 48px;
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23243752' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
}

/* 同意勾選說明：Footnote、一般字重。英文表單用欄位 id 設成 #777，所以加 !important */
.nf-form-cont .nf-form-content .checkbox-wrap .nf-field-label label,
.nf-form-cont .nf-form-content .checkbox-wrap .nf-field-label .nf-label-span {
  font-size: 0.83rem;
  line-height: 1.25rem;
  font-weight: 400 !important;
  color: #42526b !important;
}

/* 送出鈕：Primary 800／hover Primary 900、圓角 16px、內距 0 32px、文字 1rem。
 * 個別表單用欄位 id 設了顏色與字級，選擇器權重贏不了，所以加 !important */
.nf-form-cont
  .nf-form-content
  .submit-container
  .nf-field-element
  .ninja-forms-field,
.nf-form-cont
  .nf-form-content
  .submit-container
  .nf-field-element
  .ninja-forms-field:hover {
  width: auto !important;
  height: 48px !important;
  padding: 0 32px !important;
  border: 0 !important;
  border-radius: 16px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  cursor: pointer !important;
}
.nf-form-cont
  .nf-form-content
  .submit-container
  .nf-field-element
  .ninja-forms-field {
  background-color: #e85040 !important;
}
.nf-form-cont
  .nf-form-content
  .submit-container
  .nf-field-element
  .ninja-forms-field:hover {
  background-color: #cb200e !important;
}

/* frontend-design 審查後補強（2026-12-01） */

/* 欄位間距照規範內容間距 1rem（外掛預設 25px，表單拉得太長） */
.nf-form-cont .nf-form-content .nf-field-container {
  margin-bottom: 16px;
}
.nf-form-cont .nf-form-content textarea.ninja-forms-field {
  height: 160px;
}

/* 下拉選單還停在第一個提示選項時，字色跟其他欄位的 placeholder 一致。
 * 提示選項的值各表單不同（""、"0"、"null"），只認這三種；有些表單的第一項是真實選項（例如「品牌行銷」），不能變灰 */
.nf-form-cont .nf-form-content .listselect-wrap select.ninja-forms-field:has(option:first-child:checked[value=""]),
.nf-form-cont .nf-form-content .listselect-wrap select.ninja-forms-field:has(option:first-child:checked[value="0"]),
.nf-form-cont .nf-form-content .listselect-wrap select.ninja-forms-field:has(option:first-child:checked[value="null"]) {
  color: #838e9e;
}
.nf-form-cont .nf-form-content select.ninja-forms-field option {
  color: #061c3d;
}

/* 鍵盤操作要看得出目前在哪一格：框線加粗成 2px 的視覺 */
.nf-form-cont .nf-form-content input.ninja-forms-field:focus,
.nf-form-cont .nf-form-content textarea.ninja-forms-field:focus,
.nf-form-cont .nf-form-content select.ninja-forms-field:focus {
  border-color: #061c3d;
  box-shadow: 0 0 0 1px #061c3d;
}

/* 同意勾選框：外掛預設是 24px 黑色字型圖示壓在灰框上，改成和欄位同一套框線，勾選後深藍底白勾
 * （紅色留給送出鈕） */
.nf-form-cont .nf-form-content .checkbox-wrap .nf-field-label label::after {
  width: 20px !important;
  height: 20px !important;
  left: -30px !important;
  top: 0 !important;
  border: 1px solid #b4bbc5 !important;
  border-radius: 4px !important;
  background-color: #ffffff !important;
}
.nf-form-cont .nf-form-content .checkbox-wrap .nf-field-label label.nf-checked-label::after {
  border-color: #061c3d !important;
  background-color: #061c3d !important;
}
.nf-form-cont .nf-form-content .checkbox-wrap .nf-field-label label.nf-checked-label::before {
  width: 20px !important;
  height: 20px !important;
  left: -30px !important;
  top: 0 !important;
  font-size: 12px !important;
  line-height: 20px !important;
  text-align: center;
  color: #ffffff !important;
  z-index: 1;
}
.nf-form-cont .nf-form-content .checkbox-wrap .nf-field-label label:focus-within::after,
.nf-form-cont .nf-form-content .checkbox-wrap .nf-field-element input:focus + label::after {
  box-shadow: 0 0 0 2px #cdd2d8;
}

/* 欄位錯誤訊息不佔版面高度（2026-12-01 Clement 回報）。
 * 錯誤訊息原本在正常排版裡，每出現一行表單就高約 35px；表單所在區塊的背景圖是 cover，
 * 區塊變高圖就被放大，連續離開幾個空欄位就放大幾次，下方欄位也會跟著往下跳。
 * 改成浮在欄位下方的間距裡，間距由 16px 加到 28px 容得下一行 Footnote（20px）和上下留白。 */
.nf-form-cont .nf-form-content .nf-field-container {
  margin-bottom: 28px;
}
.nf-form-cont .nf-form-content .nf-field-container .nf-after-field {
  position: relative;
}
.nf-form-cont .nf-form-content .nf-field-container .nf-after-field .nf-error-wrap {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 2px 0 0;
}
.nf-form-cont .nf-form-content .nf-field-container .nf-after-field .nf-error-msg {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.25rem;
  /* 錯誤字疊在照片背景上，Primary 800 對比不夠，改 Primary 900；外掛全站樣式帶 !important */
  color: #cb200e !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 表單底部的總提示（請修正錯誤）在任一欄位出錯時就出現，同樣會撐高區塊；
 * 改成浮在送出鈕下方，下面有隱藏的防機器人欄位佔位，不會蓋到表單外的內容 */
.nf-form-cont .nf-after-form-content {
  position: relative;
}
.nf-form-cont .nf-after-form-content .nf-form-errors {
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
}
.nf-form-cont .nf-after-form-content .nf-form-errors .nf-error-msg {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.25rem;
}

/* 出錯欄位右側外掛預設的方形亮紅驚嘆號（#e80000，非官網色、沒有圓角）拿掉，
 * 紅框加下方錯誤文字已足夠辨識 */
.nf-form-cont .nf-form-content .nf-error.field-wrap .nf-field-element::after {
  display: none;
}