/* =====================================
   contact-form.css
   なしもときかく お問い合わせフォーム
   ===================================== */

.contact-form-wrapper {
  width: 100%;
  background: #0e0e0e;
  padding: 52px 48px;
}

.contact-form-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.5rem;
  color: #ffffff;
  font-weight: 400;
  margin-bottom: 8px;
}

.contact-form-subtitle {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 36px;
}

/* フォームグループ */
.cf-group {
  margin-bottom: 20px;
}

.cf-label {
  display: block;
  margin-bottom: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.cf-label .required {
  color: #c8f135;
  margin-left: 2px;
}

.cf-input,
.cf-textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #ffffff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.92rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
  box-sizing: border-box;
}

.cf-input:focus,
.cf-textarea:focus {
  border-color: #c8f135;
}

.cf-input::placeholder,
.cf-textarea::placeholder {
  color: rgba(255,255,255,0.2);
}

.cf-textarea {
  min-height: 120px;
  resize: vertical;
  font-family: 'Noto Sans JP', sans-serif;
}

/* エラーメッセージ */
.cf-error {
  display: none;
  margin-top: 5px;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: #ff6b6b;
}

.cf-group.has-error .cf-input,
.cf-group.has-error .cf-textarea {
  border-color: #ff6b6b;
}

.cf-group.has-error .cf-error {
  display: block;
}

/* 送信ボタン */
.cf-submit {
  width: 100%;
  padding: 16px;
  background: #c8f135;
  color: #0e0e0e;
  border: none;
  cursor: pointer;
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background 0.2s, transform 0.15s;
  margin-top: 8px;
  position: relative;
}

.cf-submit:hover:not(:disabled) {
  background: #a8d015;
}

.cf-submit:active:not(:disabled) {
  transform: scale(0.99);
}

.cf-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 送信中スピナー */
.cf-submit.loading::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(0,0,0,0.3);
  border-top-color: #0e0e0e;
  border-radius: 50%;
  animation: cf-spin 0.6s linear infinite;
  margin-left: 10px;
  vertical-align: middle;
}

@keyframes cf-spin {
  to { transform: rotate(360deg); }
}

/* 注記 */
.cf-note {
  margin-top: 12px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
  text-align: center;
  line-height: 1.6;
  font-family: 'Noto Sans JP', sans-serif;
}

/* 完了メッセージ */
.cf-success-msg {
  display: none;
  padding: 24px;
  background: rgba(200,241,53,0.08);
  border: 1px solid rgba(200,241,53,0.3);
  text-align: center;
  margin-top: 16px;
}

.cf-success-msg.show {
  display: block;
}

.cf-success-msg p {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.1rem;
  color: #c8f135;
  margin-bottom: 6px;
}

.cf-success-msg span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  font-family: 'Noto Sans JP', sans-serif;
}

/* サーバーエラー */
.cf-server-error {
  display: none;
  padding: 12px 16px;
  background: rgba(255,107,107,0.1);
  border: 1px solid rgba(255,107,107,0.3);
  color: #ff6b6b;
  font-size: 0.82rem;
  font-family: 'Noto Sans JP', sans-serif;
  margin-top: 12px;
}

.cf-server-error.show {
  display: block;
}

@media (max-width: 600px) {
  .contact-form-wrapper {
    padding: 36px 24px;
  }
}
