/* ============================================================
   お問い合わせ・不具合報告フォーム（/contact/）
   トップページの css/style.css を土台に、フォーム部分だけを足す
   ============================================================ */

.ct-lead {
  margin-top: 14px;
  color: var(--text-sub);
  font-size: 0.95rem;
}

.ct-form,
.ct-done {
  max-width: 680px;
  margin: 28px auto 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
}

.ct-field { margin-bottom: 22px; }
.ct-field:last-of-type { margin-bottom: 8px; }

.ct-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ct-req,
.ct-opt {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  vertical-align: 2px;
}

.ct-req { background: rgba(255, 46, 136, 0.16); color: var(--magenta); }
.ct-opt { background: rgba(139, 149, 189, 0.16); color: var(--text-sub); }

.ct-input {
  display: block;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(5, 6, 15, 0.7);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;   /* iOS で自動ズームさせないため 16px 以上にする */
  line-height: 1.7;
}

.ct-input:focus {
  outline: none;
  border-color: var(--border-hi);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.12);
}

select.ct-input {
  /* ネイティブの矢印を残しつつ、暗い背景でも文字が読めるようにする */
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-sub) 50%),
                    linear-gradient(135deg, var(--text-sub) 50%, transparent 50%);
  background-position: calc(100% - 19px) calc(50% + 2px), calc(100% - 13px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* 選択肢そのものはOS側の描画。明るい背景に白文字にならないよう色を指定する */
select.ct-input option { background: #101428; color: #eaefff; }

.ct-textarea {
  min-height: 170px;
  resize: vertical;
}

.ct-hint {
  margin-top: 7px;
  color: var(--text-sub);
  font-size: 0.78rem;
  line-height: 1.7;
}

/* 迷惑投稿よけの欄。JS が無効でも見えないようにCSSだけで隠す */
.ct-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ct-error {
  margin: 4px 0 14px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 46, 136, 0.5);
  border-radius: 10px;
  background: rgba(255, 46, 136, 0.1);
  color: #ffbcd6;
  font-size: 0.85rem;
}

.ct-actions {
  margin-top: 18px;
  text-align: center;
}

/* .btn-start は <a> 用の見た目。<button> でも同じに見えるようにする */
button.btn-start {
  border: 0;
  padding: 1.5px;
  font: inherit;
  cursor: pointer;
}

button.btn-start[disabled] {
  animation: none;
  opacity: 0.55;
  cursor: progress;
}

.ct-note {
  margin-top: 18px;
  color: var(--text-sub);
  font-size: 0.78rem;
  line-height: 1.8;
  text-align: center;
}

/* ---- 送信後 ---- */
.ct-done { text-align: center; }

.ct-done-mark {
  font-size: 2.4rem;
  line-height: 1;
  color: var(--lime);
}

.ct-done-title {
  margin-top: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.ct-done-note {
  margin: 10px 0 22px;
  color: var(--text-sub);
  font-size: 0.88rem;
}

.ct-again {
  border: 0;
  background: none;
  padding: 0;
  color: var(--cyan);
  font: inherit;
  font-size: 0.78rem;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 600px) {
  .ct-form,
  .ct-done { padding: 18px 15px; }
}
