/* ======================================
   お問い合わせフォーム専用スタイル
   ====================================== */

/* カード全体 */
.contact-form-wrap {
  max-width: 900px;
  margin: 30px auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.1);
  padding: 32px 40px;
  box-sizing: border-box;
}

/* 行レイアウト */
.form-row {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
}

.form-col {
  flex: 1;
}

.form-col.full {
  flex: 0 0 100%;
}

/* ラベル */
.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 15px;
  color: #333;
}

/* 必須マーク */
.form-label .req {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 999px;
  background: #e60012;
  color: #fff;
}

/* 入力系共通 */
.form-control,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
textarea {
  width: 100%;
  background: #fff6e5;
  border: 1px solid #f3cf8d;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  box-sizing: border-box;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.form-control:focus {
  border-color: #f9a825;
  box-shadow: 0 0 0 2px rgba(249,168,37,.3);
}

/* テキストエリア */
textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

/* プレースホルダー */
::placeholder {
  color: #9b8b6b;
}

/* エラー表示 */
.contact-alert.errors {
  background: #fff1f0;
  border: 1px solid #ffccc7;
  color: #b10000;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
}
.contact-alert.errors ul {
  margin: 0;
  padding-left: 20px;
}

/* ボタン */
.form-actions {
  text-align: center;
  margin-top: 28px;
}

.btn.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  background: #e60012;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(230,0,18,.25);
  transition: background .2s, transform .1s;
}

.btn.btn-primary:hover {
  background: #c90010;
}

.btn.btn-primary:active {
  transform: translateY(1px);
}

.btn.btn-primary:focus {
  outline: 2px solid #ffd1d6;
  outline-offset: 2px;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 12px;
  }
  .form-label {
    font-size: 14px;
  }
}

/* 必須バッジ */
.badge.required {
  display: inline-block;
  font-size: 11px;
  line-height: 1;
  padding: 2px 6px;
  margin-left: 6px;
  border-radius: 999px;
  background: #e60012;
  color: #fff;
  font-weight: 700;
  vertical-align: middle;
}
