/* ============================================================
   お問い合わせフォーム専用スタイル
   日英カーボン製作所 共通CSS（common.css）を前提とする
   ============================================================ */

/* ===== ステップバー ===== */
.step-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 36px;
  max-width: 480px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  flex-shrink: 0;
}

.step.active .step-num {
  background: #003A27;
  color: #fff;
}

.step.done .step-num {
  background: #006540;
  color: #fff;
  font-size: 16px;
}

.step.inactive .step-num {
  background: #ccc;
  color: #fff;
}

.step-label-ja {
  font-size: 13px;
  font-weight: bold;
}

.step-label-en {
  font-size: 10px;
  letter-spacing: 0.05em;
  color: #888;
}

.step.active .step-label-ja  { color: #003A27; }
.step.done .step-label-ja    { color: #006540; }
.step.inactive .step-label-ja{ color: #aaa; }

.step-line {
  flex: 1;
  height: 2px;
  background: #ddd;
  margin: 0 10px;
  margin-bottom: 22px;
}

/* ===== フォームテーブルレイアウト ===== */
.contact-form {
  background: #fff;
  border-radius: 6px;
  padding: 30px 32px;
  border: 1px solid #e0e0e0;
}

.form-table {
  width: 100%;
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid #e8e8e8;
  align-items: start;
}

.form-row:first-child {
  border-top: 1px solid #e8e8e8;
}

.form-label {
  background: #f5f5f2;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 64px;
}

.form-label label {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.req {
  font-size: 11px;
  font-weight: bold;
  color: #fff;
  background: #c0392b;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
}

.form-field {
  padding: 14px 20px;
  display: flex;
  align-items: center;
}

/* ===== 入力要素 ===== */
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #333;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: #006540;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #003A27;
  box-shadow: 0 0 0 3px rgba(0, 58, 39, 0.1);
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.7;
}

.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

/* ===== Turnstile ===== */
.turnstile-wrap {
  margin: 0 0 20px;
  display: flex;
  justify-content: center;
}

/* ===== プライバシー ===== */
.privacy-note {
  font-size: 13px;
  color: #666;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.7;
}

.privacy-note a {
  color: #006540;
  text-decoration: underline;
}

/* ===== 送信ボタン ===== */
.form-submit {
  text-align: center;
}

.btn-submit {
  display: inline-block;
  padding: 14px 60px;
  font-size: 16px;
  font-weight: bold;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  background: #003A27;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.05em;
}

.btn-submit:hover { background: #006540; }
.btn-submit:active { transform: scale(0.99); }

/* ===== 確認画面テーブル ===== */
.confirm-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.confirm-table tr {
  border-bottom: 1px solid #e8e8e8;
}

.confirm-table tr:last-child {
  border-bottom: none;
}

.confirm-table th {
  background: #f5f5f2;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: bold;
  color: #333;
  text-align: left;
  width: 200px;
  vertical-align: top;
}

.confirm-table td {
  padding: 16px 20px;
  font-size: 15px;
  color: #333;
  vertical-align: top;
  line-height: 1.7;
}

/* ===== 確認画面ボタン行 ===== */
.confirm-btn-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-back {
  display: inline-block;
  padding: 13px 40px;
  font-size: 15px;
  font-weight: bold;
  color: #333;
  background: #fff;
  border: 2px solid #ccc;
  border-radius: 4px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.btn-back:hover {
  border-color: #999;
  background: #f5f5f2;
}

/* ===== 完了画面 ===== */
.done-box {
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  padding: 50px 30px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.done-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #003A27;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.done-title {
  font-size: 22px;
  font-weight: bold;
  color: #222;
  margin-bottom: 16px;
  border: none;
  padding: 0;
}

.done-desc {
  font-size: 15px;
  color: #555;
  line-height: 1.9;
  margin-bottom: 32px;
}

.btn-top {
  display: inline-block;
  padding: 13px 48px;
  font-size: 15px;
  font-weight: bold;
  background: #003A27;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-top:hover { background: #006540; }

/* ===== エラーボックス ===== */
.error-box {
  background: #fdf2f2;
  border: 1px solid #f5c6cb;
  border-left: 4px solid #c0392b;
  border-radius: 4px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #c0392b;
}

.error-box p { margin: 3px 0; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .contact-form {
    padding: 20px 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-label {
    min-height: auto;
    padding: 12px 16px;
    background: #f0f0ee;
  }

  .form-field {
    padding: 12px 16px;
  }

  .confirm-table th,
  .confirm-table td {
    display: block;
    width: 100%;
    padding: 10px 16px;
  }

  .confirm-table th {
    background: #f0f0ee;
    padding-bottom: 6px;
  }

  .confirm-btn-row {
    flex-direction: column-reverse;
  }

  .btn-back,
  .btn-submit {
    width: 100%;
    text-align: center;
    padding: 13px 20px;
  }

  .step-bar {
    max-width: 100%;
  }
}
