/* 華邑星峠案｜我們加的樣式。舊廠商的版面與樣式在 css/style.css，沒有改。
   這裡只放接上我們架構才需要的：預覽標示、誘餌欄位、提示訊息、表單送出後的訊息，
   以及舊站原本寫在頁尾 <style> 裡的欄位提示樣式（安全標頭不允許頁面裡的 <style>，原樣搬來）。
   舊站有載 Bootstrap：我們加的 class 一律 site- 開頭（.modal、.toast 會被 Bootstrap 藏起來）。 */

/* 舊站頁尾 <style> 的欄位提示（jquery.validate 的 label.error），原樣搬來。#hiddenRecaptcha-error 那一條跟著 reCAPTCHA 拿掉了 */
label.error {
	display: block;
	color: #f00;
}

/* 預覽標示：共用程式在預覽版的頁尾插入 <div class="preview-flag">，樣式照其他預覽站 */
.preview-flag { position: fixed; top: 0; left: 50%; z-index: 4000; padding: 4px 14px; font-size: 12px; letter-spacing: 1px; color: #fff; background: #961c1c; border-radius: 0 0 4px 4px; transform: translateX(-50%); pointer-events: none; }
@media (max-width: 768px) {
  .preview-flag { left: auto; right: 0; padding: 3px 8px; font-size: 11px; letter-spacing: 0; border-radius: 0 0 0 4px; transform: none; }
}

/* 誘餌欄位：真人看不到，機器人會填 */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 提示訊息（送出失敗、網路不穩） */
.site-toast { position: fixed; left: 50%; bottom: 70px; z-index: 5000; max-width: calc(100vw - 30px); padding: 10px 18px; font-size: 15px; color: #fff; background: rgba(0, 0, 0, .85); border-radius: 4px; opacity: 0; transform: translateX(-50%); transition: opacity .25s; pointer-events: none; }
.site-toast.is-on { opacity: 1; }

/* 表單送出後的訊息（預覽版：說明沒有送出；正式版：感謝訊息）。顏色用舊站回到頂部按鈕的深綠 #0e6140 */
.form-done { position: relative; z-index: 2; width: 100%; max-width: 640px; margin: 0 auto; padding: 30px 10px; text-align: center; color: #0e6140; background: #fff; }
.form-done strong { display: block; margin: 0 0 12px; font-size: 1.35em; letter-spacing: 1px; }
.form-done p { margin: 0; font-size: 1em; line-height: 1.7; color: #333; }
#lead-submit.is-sending { pointer-events: none; opacity: .7; }
[hidden] { display: none !important; }

/* 同意勾選框（2026-12-02 加；舊站沒有）：放在留言框與人機驗證之間，字色用表單的深綠 */
.form-agree { justify-content: center; width: 100%; margin: 20px 0 0; font-size: 15px; line-height: 1.6; color: #0e6140; text-align: center; }
.form-agree label { cursor: pointer; }
.form-agree input { width: 16px; height: 16px; margin: 0 6px 0 0; vertical-align: -2px; accent-color: #0e6140; cursor: pointer; }
.form-agree a { color: #0e6140; text-decoration: underline; text-underline-offset: 3px; }
.form-agree label.error { display: block; width: 100%; }

/* 個資視窗：瀏覽器內建的 <dialog>，和宜富居3同一套（class 不叫 modal：會和 Bootstrap 撞名被藏起來） */
.site-dialog { --modal-fade: .33s; width: 548px; max-width: calc(100vw - 30px); max-height: calc(100vh - 88px); margin: auto; padding: 24px; overflow: auto; color: #333; background: #fff; border: 0; border-radius: 5px; box-shadow: 0 2px 15px #222; }
.site-dialog::backdrop { background: rgba(15, 15, 17, .87); }
.site-dialog[open] { animation: modal-in var(--modal-fade) ease both; }
.site-dialog.is-closing { animation: modal-out var(--modal-fade) ease both; }
.site-dialog h3 { margin: 0 0 12px; font-size: 20px; color: #0e6140; }
.site-dialog p { margin: 0; font-size: 15px; line-height: 1.8; }
.modal__close { position: absolute; top: 0; right: 0; width: 44px; height: 44px; padding: 0; font-size: 24px; line-height: 44px; color: #555; background: none; border: 0; cursor: pointer; }
.modal__close::after { content: "×"; }
.modal__close:hover { color: #000; }
@keyframes modal-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-out { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .site-dialog[open], .site-dialog.is-closing { animation: none; } }
