@charset "UTF-8";
/* ========================================
   フォーム追加スタイル
   ラジオボタン / honeypot / バリデーション
   ======================================== */

/* honeypot（人間からは見えない位置に配置） */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ラジオボタングループ（縦並び：ご相談内容） */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ラジオボタングループ（横並び：希望連絡方法） */
.radio-group.radio-group-row {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px 24px;
}

/* ラジオボタンラベル */
.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s ease;
  user-select: none;
}

.radio-label:hover {
  border-color: #d32f2f;
  background: #fff8f8;
}

/* 横並びラジオはコンパクトに */
.radio-group-row .radio-label {
  flex: 1 1 auto;
  min-width: 140px;
  justify-content: center;
  padding: 12px 18px;
}

/* ネイティブラジオは隠して独自スタイルに */
.radio-label input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid #ccc;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  position: relative;
  margin: 0;
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}

.radio-label input[type="radio"]:checked {
  border-color: #d32f2f;
}

.radio-label input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d32f2f;
}

/* チェック済みラベルを強調 */
.radio-label:has(input[type="radio"]:checked) {
  border-color: #d32f2f;
  background: #fff8f8;
}

.radio-label input[type="radio"]:focus-visible {
  outline: 2px solid #d32f2f;
  outline-offset: 2px;
}

/* バリデーションエラー時 */
.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
  border-color: #d32f2f;
  background: #fff8f8;
}

.error-message {
  display: block;
  color: #d32f2f;
  font-size: 13px;
  margin-top: 6px;
  font-weight: 600;
}

/* スマホ */
@media (max-width: 768px) {
  .radio-group-row {
    flex-direction: column;
  }
  .radio-group-row .radio-label {
    width: 100%;
  }
}

/* ========================================
   サンクスページ用スタイル
   ======================================== */
.thanks-wrap {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.thanks-icon {
  font-size: 80px;
  color: #d32f2f;
  margin-bottom: 24px;
  line-height: 1;
}

.thanks-title {
  font-size: 28px;
  font-weight: 800;
  color: #222;
  margin: 0 0 24px;
  line-height: 1.5;
}

.thanks-lead {
  font-size: 17px;
  line-height: 1.9;
  color: #444;
  margin: 0 0 32px;
}

.thanks-lead strong {
  color: #d32f2f;
  font-weight: 700;
}

.thanks-note {
  font-size: 14px;
  line-height: 1.8;
  color: #666;
  background: #f8f8f8;
  padding: 20px;
  border-radius: 10px;
  margin: 0 0 40px;
}

/* 電話連絡カード */
.thanks-contact-box {
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
  color: #fff;
  padding: 32px 24px;
  border-radius: 14px;
  margin: 0 0 40px;
}

.thanks-contact-label {
  font-size: 15px;
  margin: 0 0 14px;
  opacity: 0.95;
}

.thanks-contact-tel {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.thanks-contact-tel i {
  font-size: 26px;
}

.thanks-contact-hours {
  font-size: 14px;
  margin: 8px 0 0;
  opacity: 0.95;
}

/* ボタン群 */
.thanks-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.thanks-buttons .btn {
  min-width: 240px;
}

@media (max-width: 768px) {
  .thanks-wrap {
    padding: 40px 20px;
  }
  .thanks-icon {
    font-size: 64px;
  }
  .thanks-title {
    font-size: 22px;
  }
  .thanks-lead {
    font-size: 15px;
  }
  .thanks-contact-tel {
    font-size: 26px;
  }
  .thanks-buttons {
    flex-direction: column;
  }
  .thanks-buttons .btn {
    width: 100%;
    min-width: 0;
  }
}
