/*
 * ファイルのURLパス: /Users/Shared/Docker/tokushi/www/html/tokushiikusya/wp-content/themes/tokushiikusya/assets/css/school/enquire-style.css
 * ファイル名: enquire-style.css
 * コードの内容の説明: 資料請求フォームページ用のカスタムスタイル。ステップ表示インジケーター、エラーメッセージ、確認画面用の装飾等を定義。
 */

@charset "utf-8";

/* ステップインジケーター */
.step-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 3rem auto;
  width: 100%;
  max-width: 600px;
  padding: 0 1rem;
  position: relative;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1 1 33.33%;
  max-width: 33.33%;
  z-index: 2;
  padding-bottom: 1.8rem; /* ラベル用の余白 */
}

.step-item::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  width: 100%;
  height: 2px;
  background-color: #e2e2d9;
  z-index: 1;
}

.step-item:last-child::after {
  display: none;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e2e2d9;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #8c8a7b;
  font-weight: 700;
  font-size: 1.1rem;
  z-index: 3;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.step-label {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  color: #8c8a7b;
  font-weight: 600;
  transition: color 0.4s ease;
  white-space: nowrap;
}

/* アクティブ状態 */
.step-item.active .step-circle {
  background-color: #8bb33e; /* 徳志育舎グリーン調 */
  color: #fff;
  box-shadow: 0 0 0 4px rgba(139, 179, 62, 0.25);
  transform: scale(1.1);
}

.step-item.active .step-label {
  color: #8bb33e;
  font-weight: 700;
}

/* 完了状態 */
.step-item.completed .step-circle {
  background-color: #615f51;
  color: #fff;
}

.step-item.completed::after {
  background-color: #615f51;
}

.step-item.completed .step-label {
  color: #615f51;
}

/* フォーム説明文 */
.enquire-description {
  background-color: #fff;
  border-left: 4px solid #8bb33e;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  border-radius: 0.4rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 確認画面での入力値表示 */
.confirm-value-box {
  background-color: #fff;
  border: 1px solid #e2e2d9;
  border-radius: 0.4rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  font-size: 1.05rem;
  color: #333;
  min-height: 3rem;
  display: flex;
  align-items: center;
}

.confirm-label {
  font-weight: bold;
  color: #615f51;
  margin-bottom: 0.5rem;
}

/* コース選択用カスタムカード */
.course-choice-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.course-card {
  background-color: #fff;
  border: 1px solid #e2e2d9;
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.course-card:hover {
  border-color: #8bb33e;
  background-color: #fafdf7;
}

.course-card input[type="checkbox"] {
  margin: 0 0.8rem 0 0 !important;
  width: 1.2rem;
  height: 1.2rem;
  cursor: pointer;
  accent-color: #8bb33e;
  flex-shrink: 0;
}

.course-card span {
  font-weight: 600;
  color: #615f51;
  white-space: nowrap;
  line-height: 1;
  margin: 0;
  display: flex;
  align-items: center;
}

.required-badge {
  font-size: 0.8em;
}

/* エラーメッセージのアラート表示 */
.enquire-error-alert {
  background-color: #fdf2f2;
  border: 1px solid #f8b4b4;
  color: #9b1c1c;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

.enquire-error-alert ul {
  margin: 0.5rem 0 0 1.2rem;
  padding: 0;
}

.enquire-error-alert li {
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.form-buttons-wrap {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 4rem;
  width: 100%;
}

.form-buttons-wrap button,
.form-buttons-wrap a.btn-back {
  flex: 1;
  min-height: 3.5rem;
  height: auto;
  padding: 0.8rem 1rem;
  line-height: 1.4;
  display: block;
  border-radius: 0.5rem;
  font-weight: bold;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
}

.btn-submit {
  background-color: #8bb33e;
  color: #fff !important;
  border: none;
  box-shadow: 0 4px 6px rgba(139, 179, 62, 0.2);
}

.btn-submit:hover {
  background-color: #799e33;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(139, 179, 62, 0.3);
}

.btn-back {
  background-color: #fff;
  color: #615f51 !important;
  border: 1px solid #b5b3a3;
}

.btn-back:hover {
  background-color: #f5f5f0;
  border-color: #8c8a7b;
}

@media (max-width: 576px) {
  .course-choice-container {
    grid-template-columns: 1fr;
  }
  .form-buttons-wrap {
    flex-direction: column;
    gap: 1rem;
  }
  .form-buttons-wrap button,
  .form-buttons-wrap a.btn-back {
    font-size: 0.9rem;
    width: 100%;
    min-width: max-content;
    white-space: nowrap;
    box-sizing: border-box;
  }
}
