/* 聯絡我們（contact-us.html）。共用的在 site.css
   段落：淺 聯絡（說明＋深色表單，背景一個紅點的訊號）→ 深 問答 → 頁尾 */

/* 這頁一打開就是淺底，頁首直接用實色深條 */
.hdr { background: rgba(11, 11, 13, .94); }

/* ---------- 01 聯絡 ---------- */
.cu-main { min-height: 0; align-items: flex-start; padding: clamp(124px, 16vh, 168px) 0 clamp(80px, 11vh, 128px); }
.cu-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.cu-l { position: relative; }
.cu-h1 { font-size: clamp(48px, 5.6vw, 92px); line-height: 1.1; font-weight: 300; letter-spacing: 0; color: var(--ink); }
.cu-h1 b { font-weight: 900; }
.cu-h1 span { color: var(--red-text); font-weight: 900; }
.cu-lead { margin-top: 24px; max-width: 30em; }
.cu-info { margin-top: 34px; }

.cu-next { margin-top: 34px; }
.cu-next ol { list-style: none; margin: 14px 0 0; padding: 0; }
.cu-next li { position: relative; padding: 12px 0 12px 22px; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.cu-next li::before { content: ""; position: absolute; left: 0; top: calc(12px + .62em); width: 7px; height: 7px; background: var(--red); }
.cu-next li b { display: block; color: var(--ink); font-weight: 700; }
.cu-more { display: inline-block; margin-top: 16px; font-size: 15px; text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid var(--line-2); transition: border-color .3s var(--ease); }
.cu-more:hover { border-color: var(--red-text); }
.cu-more span { font-family: var(--mono); margin-left: 4px; }

/* 表單：三組欄位，一組一個小標 */
.cu-form { scroll-margin-top: 110px; }
.cu-req { margin-left: auto; font: 400 12px/1 var(--zh); letter-spacing: .04em; color: rgba(242, 241, 238, .55); }
.cu-set { margin: 0; padding: 0; border: 0; min-width: 0; }
.cu-set + .cu-set { margin-top: 26px; }
.cu-set > legend { margin-bottom: 4px; padding: 0; }
.cu-set .two { margin-top: 10px; }
.cu-time { max-width: 50%; }
/* 下拉選單長得跟輸入框一樣 */
.cu-form select {
  width: 100%; appearance: none; -webkit-appearance: none; font: 400 16px/1.5 var(--zh); color: var(--ink); cursor: pointer;
  background: var(--field) 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 1l5 5 5-5' fill='none' stroke='%23F2F1EE' stroke-opacity='.6' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 16px center;
  border: 1px solid rgba(255, 255, 255, .13); border-radius: 10px; padding: 14px 40px 14px 16px; transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.cu-form select:focus { outline: none; border-color: rgba(255, 90, 94, .75); box-shadow: 0 0 0 4px rgba(237, 28, 36, .16); }
.cu-form select option { color: #0B0B0D; background: #F2F1EE; }
.cu-fine { margin-top: 16px; font-size: 13px; color: rgba(242, 241, 238, .55); }
.cu-fine a { color: rgba(242, 241, 238, .85); text-underline-offset: 3px; }

/* 表單的三種狀態：送出中一條紅線來回跑；送到了整張單亮一圈紅邊、打勾；失敗時訊息帶驚嘆號 */
.cu-form::after { content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left center; pointer-events: none; }
.cu-form[data-state="sending"]::after { animation: cu-send 1.3s cubic-bezier(.7, 0, .3, 1) infinite; }
@keyframes cu-send { 0% { transform: scaleX(0); transform-origin: left center; } 50% { transform: scaleX(1); transform-origin: left center; } 50.1% { transform-origin: right center; } 100% { transform: scaleX(0); transform-origin: right center; } }
.cu-form[data-state="sending"] .msg:empty::before { content: "送出中…"; color: rgba(242, 241, 238, .7); }
.cu-form[data-state="sending"] button[type="submit"] { opacity: .6; pointer-events: none; }
.cu-form[data-state="sent"] { border-color: rgba(255, 90, 94, .55); }
.cu-form[data-state="sent"]::after { transform: scaleX(1); }
.cu-form[data-state="sent"] .msg { font-size: 16px; font-weight: 700; color: #fff; }
.cu-form[data-state="sent"] .msg::before { content: "✓"; display: inline-block; margin-right: 10px; color: #FF6A6E; }
.cu-form[data-state="error"] .msg::before { content: "!"; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 10px; border-radius: 50%; background: #D3141B; color: #fff; font: 700 12px/1 var(--mono); vertical-align: 1px; }
.cu-form:not([data-state="sending"]) .msg:empty::before { display: none; }

/* ---------- 02 問答：點開一題，答案展開 ---------- */
.cu-qa { min-height: 0; flex-direction: column; align-items: stretch; padding: clamp(96px, 14vh, 150px) 0; }
.cu-qa .h2 { font-size: clamp(30px, 3.2vw, 50px); line-height: 1.3; }
.cu-qs { margin-top: clamp(32px, 5vh, 56px); border-top: 1px solid var(--line-2); max-width: 980px; }
.cu-qs details { border-bottom: 1px solid var(--line); }
.cu-qs summary { display: flex; align-items: center; gap: 20px; padding: 26px 0; cursor: pointer; list-style: none; }
.cu-qs summary::-webkit-details-marker { display: none; }
.cu-qs summary h3 { flex: 1; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.45; font-weight: 700; color: var(--ink); }
.cu-qs summary i { position: relative; flex: none; width: 16px; height: 16px; }
.cu-qs summary i::before, .cu-qs summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: #FF4A4F; transition: transform .35s var(--ease); }
.cu-qs summary i::after { transform: rotate(90deg); }
.cu-qs details[open] summary i::after { transform: rotate(0deg); }
.cu-qs summary:focus-visible { outline: 2px solid var(--red-text); outline-offset: 4px; }
.cu-qs details p { padding: 0 0 28px; max-width: 46em; font-size: 16.5px; line-height: 1.85; color: var(--ink-2); word-break: break-word; }

@media (prefers-reduced-motion: reduce) {
  .cu-form[data-state="sending"]::after { animation: none; transform: scaleX(1); }
}

/* ---------- 平板 ---------- */
@media (max-width: 1080px) {
  .cu-grid { grid-template-columns: minmax(0, 1fr); }
  .cu-l { position: static; }
}

/* ---------- 手機 ---------- */
@media (max-width: 760px) {
  .cu-main { padding: 104px 0 72px; }
  .cu-h1 { font-size: clamp(44px, 12vw, 56px); }
  .cu-time { max-width: none; }
  .cu-form .form-end .btn { width: 100%; }
  .gf-top { flex-wrap: wrap; row-gap: 8px; }
  .cu-req { margin-left: 20px; flex-basis: 100%; }
}
