/* 阿瀚車庫 購車需求表單 —— 手機優先、一頁一題
   設計 token 與元件規格見 docs/07-web-form-spec.md 第 5 節。
   注意：CSP 為 script-src 'self'、style-src 'self'，模板內不得有 inline style，
   所有動態樣式（品牌色、進度條寬度）由 form.js 以 CSSOM 設定。 */

:root {
  --bg: #F7F5F1;
  --ink: #1B1F2A;
  --accent: #C9A227;
  --success: #2E7D32;
  --card: #FFFFFF;
  --line: #E6E2DA;
  --muted: #6B6F7A;
  --danger: #B3261E;
  /* 控制項的邊框不能用 --line（#E6E2DA 對白底只有 1.29:1）：
     WCAG 1.4.11 要求非文字元素 3:1，實機上空心圓幾乎看不見 */
  --ctl-line: rgba(27, 31, 42, .38);
  --card-line: rgba(27, 31, 42, .14);

  --radius-card: 14px;
  --radius-ctl: 12px;
  --shadow-card: 0 1px 2px rgba(27, 31, 42, .04), 0 8px 24px rgba(27, 31, 42, .06);
  --shadow-bar: 0 -1px 0 var(--line), 0 -8px 24px rgba(27, 31, 42, .05);
  --wrap: 560px;
  --pad: 20px;
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

/* hidden 屬性一律優先於元件自身的 display（screen / modal / toast 都靠它切換） */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.icon-sprite { display: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  border-radius: 0 0 var(--radius-ctl) 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* 隱藏但保留給輔助科技 */
.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── 停用連結提示 ───────────────────────────────── */

/* 業務停用後舊名片與舊 QR 仍會被掃到：一行淺灰底提示，其餘畫面照常是公司共同表單。
   顯示與否由後端填 hidden 屬性（[hidden] 的 display:none 在檔頭已宣告 !important）。 */
.ref-notice {
  background: #EFECE5;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.ref-notice .wrap { padding-top: 10px; padding-bottom: 10px; }

/* ── 頁首 ───────────────────────────────────────── */

.site-header {
  background: var(--bg);
  padding: 20px 0 14px;
}

.header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

/* 業務品牌名（阿瀚車庫、小李好車…）長度不受控：字距在長名稱上先收窄，
   仍然太長就斷行而不是撐破頁首或把「重新開始」擠出去。 */
.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 400px) {
  .brand-name { letter-spacing: .04em; }
}

.brand-rule {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.brand-sub {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: .04em;
  line-height: 1.3;
  /* 中性表單的這一行是整句標語，390px 下會折成兩行。中文預設可以斷在任何字之間，
     「貸款方案」被拆成兩行很難讀：keep-all 讓它只斷在標點，overflow-wrap 保底
     （沒有標點又超長的標語仍然折得下去，不會撐破版面）。 */
  word-break: keep-all;
  overflow-wrap: break-word;
}

.header-link {
  flex: none;
  margin-top: 2px;
  font-size: 14px;
}

/* ── 進度 ───────────────────────────────────────── */

.progress { padding-bottom: 6px; }

.progress-track {
  height: 3px;
  width: 100%;
  background: rgba(27, 31, 42, .10);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 240ms var(--ease);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 10px;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
}

.progress-index { font-weight: 500; color: var(--ink); }

/* ── 主體 ───────────────────────────────────────── */

.main {
  flex: 1 0 auto;
  padding-top: 8px;
  padding-bottom: 24px;
}

.screen { display: block; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px;
}

@media (min-width: 480px) {
  .card { padding: 24px; }
}

.card + .card { margin-top: 14px; }

.enter {
  animation: enter 150ms var(--ease) both;
}

@keyframes enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.busy { opacity: .6; transition: opacity 120ms linear; pointer-events: none; }

/* ── 業務的問候卡 ──────────────────────────────── */

/* 表單第一頁、個資說明卡之前的一段自我介紹（業務自己寫的文案，含 emoji）。
   與下方那張白底個資卡的區隔靠三件事：淡金底、左側金色實線、以及卡片之間的間距；
   正文用 pre-line 保留業務打的換行（後端不塞 <br>，內容一律是 escape 過的純文字）。

   尺寸刻意比一般卡片收斂（padding 16px、字標 32px、正文 16px/1.6）：實測 375x667
   的小手機上，五行文案用原本的 20px + 38px + 17px/1.7 會把「個資使用說明」整張卡
   推到固定列底下，客人可能沒看到那四個字就按同意。480px 以上再放回一般卡片的 24px。 */
.brand-intro { margin-bottom: 14px; }

.intro-card {
  background: rgba(201, 162, 39, .07);
  border-color: rgba(201, 162, 39, .34);
  border-left: 4px solid var(--accent);
  padding: 16px;
}

@media (min-width: 480px) {
  .intro-card { padding: 24px; }
}

.intro-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 小圓字標：招牌的第一個字。純裝飾（aria-hidden），字寬固定，長招牌也不會擠壓右側 */
.intro-mark {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 32px;
  text-align: center;
}

.intro-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.intro-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  overflow-wrap: anywhere;
}

.intro-role {
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--muted);
}

/* `text-wrap: pretty` 讓瀏覽器自己避開孤字尾行（業務手寫每行 19 到 22 字，390px 寬的
   量尺只有約 19 字，每一行都會掉 2 到 3 個字下來）；不支援的瀏覽器忽略這一行即可。 */
.intro-body {
  margin: 10px 0 0;
  white-space: pre-line;
  text-wrap: pretty;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* ── 文字階層 ───────────────────────────────────── */

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: .16em;
  font-weight: 500;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.eyebrow .tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(201, 162, 39, .14);
  color: var(--ink);
  letter-spacing: .08em;
}

.q-title {
  margin: 0;
  font-size: clamp(22px, 5.6vw, 24px);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: .01em;
}

.q-title:focus { outline: none; }
.q-title:focus-visible { outline: 3px solid rgba(201, 162, 39, .4); outline-offset: 4px; }

.q-help {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.body-text {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
}

.body-text.muted { color: var(--muted); }

/* ── 說明卡（notices） ─────────────────────────── */

.notices { margin-bottom: 14px; display: flex; flex-direction: column; gap: 10px; }

.notice {
  background: rgba(201, 162, 39, .08);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 14px 16px;
  font-size: 16px;
  line-height: 1.65;
}

.notice-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 16px;
  color: var(--ink);
  font-weight: 500;
}

/* ── 選項卡 ─────────────────────────────────────── */

.options { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 0; }

fieldset.options-set { border: 0; margin: 0; padding: 0; min-width: 0; }

.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 14px 18px;
  border: 1px solid var(--card-line);
  border-radius: var(--radius-ctl);
  background: var(--card);
  box-shadow: 0 1px 1px rgba(27, 31, 42, .04);
  cursor: pointer;
  transition: border-color 120ms linear, background-color 120ms linear, opacity 150ms linear, transform 120ms var(--ease);
}

.option:hover { border-color: rgba(27, 31, 42, .3); }
.option:active { transform: scale(.995); }

.option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.option-label {
  flex: 1 1 auto;
  font-size: 17px;
  line-height: 1.45;
}

.option-mark {
  flex: none;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--ctl-line);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  background: transparent;
  transition: background-color 120ms linear, border-color 120ms linear, color 120ms linear;
}

.option-mark svg { width: 14px; height: 14px; fill: currentColor; }

.option.is-multi .option-mark { border-radius: 6px; }

.option.is-selected {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  background: rgba(201, 162, 39, .05);
}

/* 勾號用墨色不用白色：brand_color 由店家自填，偏淺的金色配白勾會整個消失 */
.option.is-selected .option-mark {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

/* 到達上限、或選了互斥選項之後，其餘卡片變淡：上限是看得到的狀態，不是事後才跳的錯誤 */
.option.is-dimmed { opacity: .45; }

/* 多選題的「已選 n / m」：放在選項上方，跟著每一次點選更新 */
.select-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 16px 0 -4px;
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--muted);
}

.select-count .is-full { color: var(--ink); font-weight: 500; }

.option:focus-within { outline: 3px solid rgba(201, 162, 39, .4); outline-offset: 2px; }

/* ── 輸入 ───────────────────────────────────────── */

.field { margin: 18px 0 0; }

.input-shell {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--ctl-line);
  border-radius: var(--radius-ctl);
  background: var(--card);
  transition: border-color 120ms linear, box-shadow 120ms linear;
}

.input-shell:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(27, 31, 42, .08);
}

.input-shell.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(179, 38, 30, .10); }

.input {
  flex: 1 1 auto;
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 0;
  border-radius: var(--radius-ctl);
  background: transparent;
  font-family: inherit;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
}

.input:focus { outline: none; }
.input::placeholder { color: #767B86; }

textarea.input {
  min-height: 120px;
  /* 不用 resize: vertical：iOS 會畫一個拖曳把手小黑點在右下角。改由 JS 依內容長高 */
  resize: none;
  overflow: hidden;
  padding-top: 14px;
}

.adornment {
  flex: none;
  padding: 0 16px 0 4px;
  font-size: 16px;
  color: var(--muted);
}

.counter {
  display: block;
  text-align: right;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
}

.counter.is-over { color: var(--danger); }

.error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--danger);
}

.error svg { flex: none; width: 18px; height: 18px; margin-top: 3px; fill: currentColor; }

/* ── 按鈕 ───────────────────────────────────────── */

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: var(--radius-ctl);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .02em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 120ms var(--ease), background-color 120ms linear, border-color 120ms linear, opacity 120ms linear;
}

.btn svg { width: 18px; height: 18px; fill: currentColor; }

.btn:active { transform: scale(.98); }

.btn:focus-visible { outline: 3px solid rgba(201, 162, 39, .4); outline-offset: 2px; }

.btn[disabled] { opacity: .5; cursor: default; transform: none; }

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover:not([disabled]) { background: #2A3040; }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ctl-line);
}
.btn-secondary:hover:not([disabled]) { border-color: rgba(27, 31, 42, .35); }

.btn-block { width: 100%; }

/* 加入 LINE 好友是這個表單的商業目的：用 LINE 的品牌綠，別跟主按鈕同一個色階 */
.btn-line { background: #06C755; color: #fff; }
.btn-line:hover:not([disabled]) { background: #05B34D; }

.link-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: none;
  border: 0;
  padding: 6px 4px;
  font-family: inherit;
  font-size: 16px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link-btn:hover { color: var(--ink); }
.link-btn:focus-visible { outline: 3px solid rgba(201, 162, 39, .4); outline-offset: 2px; border-radius: 6px; }

/* ── 底部固定列 ─────────────────────────────────── */

.actionbar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  background: rgba(247, 245, 241, .94);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-bar);
  padding-bottom: env(safe-area-inset-bottom);
}

.actionbar-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.actionbar-row { display: flex; gap: 10px; align-items: stretch; }
.actionbar-row .btn-primary { flex: 1 1 auto; }
.actionbar-row .btn-secondary { flex: 0 0 auto; min-width: 108px; }
.actionbar-row .btn-secondary.grow { flex: 1 1 auto; }

.actionbar .skip-line { text-align: center; }

/* ── 摘要 ───────────────────────────────────────── */

.summary-note { margin: 0 0 14px; font-size: 14px; color: var(--muted); }

.summary-list { list-style: none; margin: 4px 0 0; padding: 0; }

.summary-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.summary-item:first-child { border-top: 0; padding-top: 4px; }

.summary-main { flex: 1 1 auto; min-width: 0; }

.summary-label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: .04em;
}

.summary-value {
  display: block;
  margin-top: 3px;
  font-size: 17px;
  line-height: 1.5;
  word-break: break-word;
}

.summary-value.is-empty { color: var(--muted); }

.btn-edit {
  flex: none;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-edit svg { width: 15px; height: 15px; fill: currentColor; }
.btn-edit:hover { border-color: rgba(27, 31, 42, .35); }
.btn-edit:focus-visible { outline: 3px solid rgba(201, 162, 39, .4); outline-offset: 2px; }

/* ── 同意頁 ─────────────────────────────────────── */

.consent-version { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

.disclosure { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }

.disclosure > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 16px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary svg { width: 16px; height: 16px; fill: currentColor; transition: transform 150ms var(--ease); }
.disclosure[open] > summary svg { transform: rotate(180deg); }
.disclosure > summary:focus-visible { outline: 3px solid rgba(201, 162, 39, .4); outline-offset: 2px; border-radius: 6px; }

/* 不做巢狀捲動區：手機上滑到底會卡住外層捲動，展開的部分還會被底部固定列蓋掉一半。
   details 本身已經有摺疊語意，展開就讓它在頁面流裡長出來。 */
.disclosure-body {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  padding: 14px 16px;
  background: #FBFAF7;
  border: 1px solid var(--line);
  border-radius: 10px;
  animation: enter 150ms var(--ease) both;
}

/* ── 感謝 / 婉拒 ────────────────────────────────── */

.hero-mark {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--success);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.hero-mark svg { width: 28px; height: 28px; fill: currentColor; }

.meta-list { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); }

.meta-item { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: baseline; }

.meta-key { flex: 0 0 92px; font-size: 14px; color: var(--muted); }

.meta-val { flex: 1 1 auto; font-size: 16px; }

.submission-id { font-size: 14px; color: var(--muted); margin: 16px 0 0; letter-spacing: .04em; }

.stack { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
/* 感謝頁「加入 LINE 好友」按鈕下方的一行小字（09/11 規格 4.4）。
   .stack 的 gap 是 10px，這裡再補 6px 上緣就會離按鈕太遠，所以用負的 margin 收回來。 */
.line-id { font-size: 13px; color: var(--muted); text-align: center; margin: -4px 0 0; }

.center-link { text-align: center; margin-top: 16px; }

/* 時段這種「18:00 - 20:00」不可以在中間斷行 */
.nowrap { white-space: nowrap; }

/* ── 骨架 ───────────────────────────────────────── */

.sk {
  border-radius: 8px;
  background: linear-gradient(90deg, #EFEDE8 25%, #F6F4F0 37%, #EFEDE8 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.sk-eyebrow { height: 12px; width: 30%; margin-bottom: 16px; }
.sk-title { height: 22px; width: 88%; margin-bottom: 10px; }
.sk-title-short { width: 58%; margin-bottom: 20px; }
.sk-line { height: 14px; width: 70%; margin-bottom: 22px; }
.sk-option { height: 56px; width: 100%; border-radius: 12px; margin-bottom: 10px; }

@keyframes shimmer {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

.loading-note { text-align: center; font-size: 14px; color: var(--muted); margin-top: 16px; }

/* ── Toast ──────────────────────────────────────── */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(8px);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100vw - 32px);
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  line-height: 1.4;
  box-shadow: 0 8px 28px rgba(27, 31, 42, .28);
  opacity: 0;
  transition: opacity 150ms linear, transform 150ms var(--ease);
}

.toast.is-open { opacity: 1; transform: translateX(-50%) translateY(0); }

.toast-action {
  appearance: none;
  background: none;
  border: 0;
  padding: 4px 2px;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  flex: none;
}

/* ── Modal ──────────────────────────────────────── */

.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; }

.modal-backdrop { position: absolute; inset: 0; background: rgba(27, 31, 42, .45); }

.modal-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: 0 20px 48px rgba(27, 31, 42, .28);
  animation: enter 150ms var(--ease) both;
}

.modal-title { margin: 0; font-size: 20px; font-weight: 700; }
.modal-desc { margin: 10px 0 0; font-size: 16px; color: var(--muted); line-height: 1.6; }
.modal-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

/* ── 頁尾 ───────────────────────────────────────── */

.site-footer {
  flex: none;
  padding: 16px 0 calc(20px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* 頁尾只剩業務的品牌列：電話、營業時間、公司名與統編都不在網頁表單上出現。
   一行招牌置中、間距收窄，讀起來像簽名；靠左又貼在按鈕下方時像忘了刪的標籤。 */
.foot-line { margin: 0; line-height: 1.6; }
.foot-brand { letter-spacing: .12em; color: var(--muted); overflow-wrap: anywhere; }

/* ── 桌機版 ─────────────────────────────────────── */

.brandpanel { display: none; }

@media (min-width: 900px) {
  body { padding-left: 40%; }

  .brandpanel {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 40%;
    align-items: center;
    padding: 48px 44px;
    background: linear-gradient(160deg, #14171F 0%, #232833 100%);
    color: #fff;
  }

  .brandpanel-inner { max-width: 360px; margin-left: auto; }

  .brandpanel-name {
    margin: 0;
    /* 桌機品牌欄是固定 40% 寬，長招牌要能斷行；字級跟著欄寬縮，不撐破版面 */
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .brandpanel-rule { display: block; width: 56px; height: 2px; margin: 22px 0; background: var(--accent); }

  .brandpanel-tagline {
    margin: 0;
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, .82);
  }

  .site-header { padding-top: 40px; }

  /* 進度條與底部列都收進內容欄，不再橫跨整個視埠。
     body 是 flex column：這裡不能用 margin:0 auto（cross axis 的 auto margin 會取消
     stretch，元素會縮成內容寬度），要用 align-self 置中。 */
  .progress {
    align-self: center;
    width: 100%;
    max-width: var(--wrap);
    padding-left: var(--pad);
    padding-right: var(--pad);
  }
  .progress .wrap { padding-left: 0; padding-right: 0; }

  /* 按鈕貼在卡片下方，不要被推到視埠底部 */
  .main { flex: 0 0 auto; padding-bottom: 8px; }

  .actionbar {
    position: static;
    background: none;
    backdrop-filter: none;
    box-shadow: none;
  }

  .actionbar-inner { padding-top: 4px; }
  .actionbar-row { justify-content: flex-end; }
  .actionbar-row .btn-primary { flex: 0 0 auto; min-width: 180px; }
  .actionbar-row .btn-secondary { min-width: 140px; }
  .actionbar-row .btn-secondary.grow { flex: 0 0 auto; }
  .actionbar .skip-line { text-align: right; }

  .stack { max-width: 340px; }
  .center-link { text-align: left; }

  /* 桌機的招牌已經印在左側品牌欄與頁首各一次，頁尾第三次沒有新資訊，
     只會在按鈕群下方留一行錯位的灰字加一大塊空白。 */
  .site-footer { display: none; }
}

/* ── 動效偏好 ───────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
