/* 昭林翡儷案｜我們加的樣式。舊廠商的版面與樣式在 css/style.css，沒有改。照宜富居3案的 site-extra.css 改。
   這裡只放接上我們架構才需要的：預覽標示、誘餌欄位、個資視窗（取代 fancybox）、提示訊息、表單送出後的訊息，
   以及舊頁面尾端那段 <style>（沒填的提示）原樣搬過來。 */

/* 舊頁面尾端的 <style> 原樣搬過來（安全標頭不允許頁面裡直接寫樣式）。#hiddenRecaptcha-error 那一條跟著 reCAPTCHA 拿掉了 */
label.error {
	display: block;
	color: #f88;
}

/* 預覽標示：共用程式在預覽版的頁尾插入 <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; }

/* 個資視窗：原本用 fancybox 開，改成瀏覽器內建的 <dialog>。class 不能叫 modal、toast：會和舊站的 Bootstrap 撞名被藏起來。外框的白底、陰影、圓角照舊站 #privacy-windows 的設定 */
.site-dialog { --modal-fade: .33s; width: fit-content; max-width: calc(100vw - 30px); max-height: calc(100vh - 88px); margin: auto; padding: 24px; overflow: auto; color: inherit; 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; }
.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; } }

/* 提示訊息（送出失敗、網路不穩） */
.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; }

/* 表單送出後的訊息（預覽版：說明沒有送出；正式版：感謝訊息）。顏色照舊站頁尾：白字、標題用表單的金色 */
.form-done { width: 100%; padding: 30px 10px; text-align: center; color: #fff; }
.form-done strong { display: block; margin: 0 0 12px; font-size: 1.35em; letter-spacing: 1px; color: #dcb991; }
.form-done p { margin: 0; font-size: 1em; line-height: 1.7; color: #fff; }
.form-button.is-sending { pointer-events: none; opacity: .7; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .site-dialog[open], .site-dialog.is-closing { animation: none; }
}

/* 浮動聯絡按鈕（舊官網沒有，2026-11-27 補上）。排法照同一家舊廠商做的宜富居3（css/style.css 的 #shortcut-button）：
   電腦在右下角直排三顆圓形、768 以下變成底部一排。顏色照這一站自己的表單按鈕：金色底 #dcb991、深灰字 #333，滑過變咖啡色 #784a2b、白字。 */
#shortcut-button { display: none; position: fixed; width: 50px; right: 12px; bottom: 50px; z-index: 2000; }
#shortcut-button.is-shown { display: block; animation: site-dock-in .2s ease both; }
#shortcut-button .site-dock-row { width: 100%; }
#shortcut-button a { justify-content: center; align-items: center; width: 45px; height: 45px; margin: 0 0 8px; padding: 8px 0; box-sizing: border-box; text-decoration: none; font-size: 1.15em; font-weight: bolder; color: #333; background-color: #dcb991; border-radius: 50%; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); transition: .25s ease-in-out; }
#shortcut-button a:hover, #shortcut-button a:focus-visible { color: #fff; background-color: #784a2b; opacity: 1; }
#shortcut-button a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
#shortcut-button i { font-size: 1.25em; }
#shortcut-button h6 { display: none; width: 100%; margin: 5px 0 0; text-align: center; font-size: 1em; font-weight: bolder; }
@keyframes site-dock-in { from { opacity: 0; } to { opacity: 1; } }

@media only screen and (max-width: 768px) {
  #shortcut-button { width: 100%; right: 0; bottom: 0; border-top: 1px solid #784a2b; }
  #shortcut-button a { flex: 1 1 0; width: auto; height: 60px; margin: 0; padding: 8px 0; font-size: 1em; border-radius: 0; box-shadow: none; }
  #shortcut-button a:not(:last-child) { border-right: 1px solid #784a2b; }
  #shortcut-button h6 { display: inline-block; }
  /* 底部那一排會蓋住頁尾最下面，頁尾多留一排的高度 */
  footer { padding-bottom: 60px; }
}
@media only screen and (max-width: 480px) {
  #shortcut-button a { height: 50px; padding: 6px 0; font-size: 14px; }
  #shortcut-button h6 { margin: 3px 0 0; }
  footer { padding-bottom: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  #shortcut-button.is-shown { animation: none; }
}
