/* ============================================================
   form.css — 聯絡表單區（完整複刻 dist-ref-1 舊版淺色樣式）
   來源：dist-ref-1/css/hoyo-uiss.css 表單相關規則，值逐項對齊。
   勾選/單選的選取態沿用 Webflow 的 .w--redirected-checked（由 form-ui.js 切換）。
   ============================================================ */

/* ---- 表單外層：白底 ---- */
.contact-section {
  position: relative;
  background-color: #fff;
  padding: 40px 20px 56px;
  line-height: 1.5;
}

.div-edm-contact-box {
  z-index: 10;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* CONTACT US 線條標頭（s-contact-d-1.svg） */
.contact-header-img {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 0 auto 8px;
}

.div-contact-form {
  z-index: 2;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.contact-form-block {
  margin-left: auto;
  margin-right: auto;
}

.contact-form-v1 {
  display: flex;
  flex-direction: column;
}

/* ---- 欄位標籤：黑字 18px ---- */
.contact-from-lable-style-v1 {
  color: #000;
  letter-spacing: 0.5px;
  margin-top: 30px;
  margin-bottom: 6px;
  font-family: "Noto Sans TC", "Noto Sans", sans-serif;
  font-size: 18px;
  font-weight: 400;
  display: block;
}

/* ---- 文字欄位：白底、僅下緣黑線、棕字粗體 ---- */
.contact-form-text-field-style-v1 {
  width: 100%;
  height: 60px;
  color: #603813;
  letter-spacing: 1px;
  background-color: #fff;
  border: 1px solid #000;
  border-top-style: none;
  border-left-style: none;
  border-right-style: none;
  border-bottom-style: solid;
  border-radius: 0;
  padding: 8px 2px;
  font-family: "Noto Sans TC", "Noto Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}

.contact-form-text-field-style-v1:focus {
  color: #000;
  border-color: #a3763b;
}

.contact-form-text-field-style-v1::placeholder {
  color: #8c9d4299;
  font-weight: 300;
}

/* ---- 下拉：同底線風格 + 箭頭 ---- */
.contact-form-select-field {
  width: 100%;
  height: 60px;
  color: #0a2617;
  letter-spacing: 1px;
  background-color: #fff;
  border: 1px solid #000;
  border-top-style: none;
  border-left-style: none;
  border-right-style: none;
  border-bottom-style: solid;
  border-radius: 0;
  padding: 8px 28px 8px 2px;
  font-family: "Noto Sans TC", "Noto Sans", sans-serif;
  font-size: 18px;
  font-weight: 400;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%23333' stroke-width='1.5' d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
}

.contact-form-select-field:focus {
  border-color: #a3763b;
}

/* ---- 勾選框（30px 方框、萊姆綠框；選取填色 + 白勾） ---- */
.contact-form-checkbox {
  display: flex;
  align-items: center;
  border-radius: 0;
  margin: 0;
  padding: 0;
  font-weight: 400;
  cursor: pointer;
}

.contact-form-checkbox.privacy-checkbox {
  margin-top: 10px;
}

.contact-form-checkbox-item {
  flex: none;
  width: 30px;
  height: 30px;
  margin: 6px 0;
  color: #000;
  background-color: #fffffff2;
  border: 1px solid #b3d132;
  border-radius: 2px;
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: cover;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.contact-form-checkbox-item.w--redirected-checked {
  background-color: #b3d132;
  border-color: #b3d132;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E");
}

.contact-form-checkbox-item-label-2 {
  color: #000;
  letter-spacing: 1px;
  padding-top: 5px;
  padding-left: 8px;
  font-family: "Noto Sans TC", "Noto Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
}

/* ---- 單選鈕（30px 圓框、萊姆綠框；選取填色） ---- */
.radio-button-field-v1 {
  display: flex;
  align-items: center;
  margin-top: 11px;
  margin-bottom: 0;
  cursor: pointer;
}

.contact-form-radio-btn-v1 {
  flex: none;
  width: 30px;
  height: 30px;
  background-color: #fff;
  border: 1px solid #b3d132;
  border-radius: 50%;
  transition: background-color 0.15s ease;
}

.contact-form-radio-btn-v1.w--redirected-checked {
  background-color: #b3d131;
  border: 1px solid #b3d131;
  box-shadow: inset 0 0 0 3px #fff;
}

.contact-form-radio-button-label-1 {
  color: #000;
  letter-spacing: 1px;
  margin-left: 9px;
  padding-top: 2px;
  font-family: "Noto Sans TC", "Noto Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
}

/* ---- 隱私權說明 ---- */
.contact-form-privacy-rich-text-block-style-v1 {
  margin-top: 14px;
  color: #424242;
  letter-spacing: 1px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
}

.contact-form-privacy-rich-text-block-style-v1 .heading {
  font-size: 13px;
  font-weight: 400;
  margin: 6px 0;
}

.link-to-privacy-page {
  color: #333;
  text-decoration: underline;
}

/* ---- 送出鈕（沿用 btn-submit-1.svg 圖面） ---- */
.contact-from-submit-button {
  letter-spacing: 5px;
  background-color: transparent;
  background-image: url("https://d10acm3j8e4ewy.cloudfront.net/EDM/s1.cheeringzu.vip/images-2026-06-09-v1/contact/btn-submit-1.svg");
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: contain;
  width: 100%;
  max-width: 600px;
  margin: 30px auto 0;
  padding-top: 27px;
  padding-bottom: 27px;
  border: none;
  cursor: pointer;
  font-size: 0;
  transition: transform 0.2s ease;
}

.contact-from-submit-button:hover {
  transform: scale(1.05);
}

.contact-from-submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ---- 底部裝飾（線條 + 誠邑築 CHEERING ZU logo） ---- */
.decorated-img-box-s-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 34px;
}

.decorated-img-s-contact {
  width: 100%;
  max-width: 551px;
  height: auto;
}

.decorated-img-s-contact.v2 {
  width: 100%;
  max-width: 40%;
  margin-top: 18px;
}

/* ---- jquery.validate 錯誤訊息（紅底白字，沿用舊版 inline 樣式） ---- */
form#wf-form-Contact-Form label.error {
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  font-family: "Noto Sans TC", "Noto Sans", sans-serif;
  border-radius: 0;
  background-color: red;
  padding-left: 10px;
  margin-top: 6px;
  display: block;
}

/* ---- 成功 / 失敗訊息（沿用 class，JS show/hide） ---- */
.w-form-done,
.w-form-fail {
  display: none;
  margin-top: 20px;
  padding: 24px 20px;
  text-align: center;
  border-radius: 2px;
}

.div-success-message-style-v1 {
  color: #024d97;
  background-color: #f4f7fb;
  border: 1px solid #cfe0f2;
}

.div-error-message-style-v1 {
  color: #b00020;
  background-color: #fdf3f3;
  border: 1px solid #f0cccc;
}

.form-msg-title {
  font-size: 19px;
  letter-spacing: 1px;
  margin: 0 0 6px;
}

.form-msg-sub {
  font-size: 14px;
  margin: 0;
  opacity: 0.9;
}

/* ---- loading 遮罩（沿用 #loader_widget / .is-active） ---- */
#loader_widget {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

#loader_widget.is-active {
  display: flex;
}

.loader-spinner {
  width: 52px;
  height: 52px;
  border: 4px solid rgba(179, 209, 50, 0.35);
  border-top-color: #b3d132;
  border-radius: 50%;
  animation: loader-spin 0.9s linear infinite;
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .loader-spinner {
    animation-duration: 1.8s;
  }
}
