/* ============================================================
   系統開發需求表單頁 樣式
   ============================================================ */
.dev-hero {
  padding: 130px 0 40px;
  text-align: center;
  position: relative;
  background: linear-gradient(160deg, #0d1b2a 0%, #13283f 100%);
  overflow: hidden;
}
.dev-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,212,255,.1), transparent 60%);
  pointer-events: none;
}
.dev-hero .wrap { position: relative; display: block; max-width: 820px; margin: 0 auto; padding: 0 30px; }
.dev-hero .tag {
  display: inline-block;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: #00d4ff; margin-bottom: 18px;
  padding: 6px 16px; border: 1px solid rgba(0,212,255,.3); border-radius: 20px;
}
.dev-hero h1 {
  font-size: clamp(28px, 4vw, 44px); color: #fff; margin: 0 0 18px; line-height: 1.3;
}
.dev-hero h1 .hl { color: #00d4ff; }
.dev-hero p { font-size: clamp(15px, 1.8vw, 18px); color: rgba(255,255,255,.72); line-height: 1.75; margin: 0; }

/* 表單主體 */
.dev-form-section { padding: 56px 0 90px; background: var(--bg, #f7f5f2); }
.dev-form { max-width: 820px; margin: 0 auto; padding: 0 30px; }

.form-block {
  background: #fff;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 14px;
  padding: 30px 32px;
  margin-bottom: 22px;
  box-shadow: 0 4px 20px rgba(13,27,42,.04);
}
html[data-theme="dark"] .dev-form-section { background: #0d1b2a; }
html[data-theme="dark"] .form-block { background: #16273a; border-color: rgba(255,255,255,.08); }

.form-block > .q {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 16px; font-weight: 700; color: var(--text, #1a202c);
  margin-bottom: 16px;
}
html[data-theme="dark"] .form-block > .q { color: #eaf4fb; }
.form-block > .q .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; flex: none;
  font-size: 12px; font-weight: 800; color: #0d1b2a;
  background: #00d4ff; border-radius: 50%;
}
.form-block > .q .opt-hint { font-size: 12px; font-weight: 400; color: #8a96a3; }
.req { color: #e63946; font-weight: 700; }

/* 選項按鈕(單選/多選共用外觀) */
.opt-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.opt-grid label {
  position: relative; cursor: pointer;
  padding: 11px 18px; border-radius: 9px;
  font-size: 14px; color: var(--text, #2d3748);
  background: #f1f4f8; border: 1.5px solid transparent;
  transition: all .18s ease;
  user-select: none;
}
html[data-theme="dark"] .opt-grid label { background: #1e2f44; color: rgba(255,255,255,.8); }
.opt-grid input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt-grid label:hover { background: #e4ebf3; }
html[data-theme="dark"] .opt-grid label:hover { background: #263a52; }
.opt-grid input:checked + span,
.opt-grid label:has(input:checked) {
  background: rgba(0,212,255,.12);
  border-color: #00d4ff;
  color: #0088aa; font-weight: 600;
}
html[data-theme="dark"] .opt-grid label:has(input:checked) { color: #7bdfff; }

/* 文字輸入 */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text, #4a5568); margin-bottom: 7px;
}
html[data-theme="dark"] .field label { color: rgba(255,255,255,.7); }
.field input, .field textarea {
  width: 100%; box-sizing: border-box;
  padding: 12px 14px; font-size: 14px; font-family: inherit;
  border: 1.5px solid #d8dee6; border-radius: 8px;
  background: #fff; color: var(--text, #1a202c);
  transition: border-color .18s ease;
}
html[data-theme="dark"] .field input, html[data-theme="dark"] .field textarea {
  background: #0f1e30; border-color: #2a3f57; color: #eaf4fb;
}
.field input:focus, .field textarea:focus { outline: none; border-color: #00d4ff; }
.field textarea { resize: vertical; min-height: 90px; }

/* 驗證 + 送出 */
.form-submit-block { text-align: center; }
.captcha-row {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 20px;
}
.captcha-q {
  font-size: 18px; font-weight: 700; letter-spacing: 1px;
  color: var(--text, #1a202c); padding: 10px 18px;
  background: #f1f4f8; border-radius: 8px; min-width: 90px; text-align: center;
}
html[data-theme="dark"] .captcha-q { background: #1e2f44; color: #eaf4fb; }
.captcha-refresh {
  cursor: pointer; background: none; border: none;
  font-size: 18px; color: #00d4ff; padding: 6px;
}
#captchaAnswer { width: 90px; text-align: center; padding: 10px; font-size: 16px;
  border: 1.5px solid #d8dee6; border-radius: 8px; }
html[data-theme="dark"] #captchaAnswer { background: #0f1e30; border-color: #2a3f57; color: #fff; }

.btn-send {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 44px; font-size: 16px; font-weight: 700;
  color: #0d1b2a; background: #00d4ff; border: none; border-radius: 9px;
  cursor: pointer; transition: all .2s ease;
}
.btn-send:hover { background: #33ddff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,212,255,.3); }
.btn-send:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.form-status {
  margin-top: 18px; font-size: 14.5px; min-height: 22px;
  padding: 0 20px;
}
.form-status.success { color: #22a06b; font-weight: 600; }
.form-status.error { color: #e63946; font-weight: 600; }

/* 蜜罐(隱藏) */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
  .form-block { padding: 24px 20px; }
}
