/* ==========================================================
   seminar.css
   セミナー申込フォーム・完了ページ用のページ固有スタイル
   fiib-common.css の CSS変数（--or, --or-d, --or-pale 等）に
   フォールバック値をつけて利用しています。
   ========================================================== */

/* ---- 開催概要ボックス ---- */
.seminar-info {
  background: var(--or-pale, #fff3ea);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
  font-size: .95rem;
  line-height: 1.9;
  overflow: hidden;
}
.seminar-info dt {
  font-weight: bold;
  color: var(--or-d, #c14f00);
  float: left;
  width: 7em;
  clear: left;
}
.seminar-info dd {
  margin-left: 7em;
  margin-bottom: 4px;
}

/* ---- 残席バッジ ---- */
.seminar-seats {
  display: inline-block;
  margin-bottom: 20px;
  padding: 5px 16px;
  border-radius: 999px;
  background: var(--or, #e8630a);
  color: #fff;
  font-weight: bold;
  font-size: .9rem;
}
.seminar-seats.low {
  background: #c0392b;
}

/* ---- 満席メッセージ ---- */
.seminar-full {
  text-align: center;
  padding: 40px 20px;
  background: #f5f5f5;
  border-radius: 12px;
  font-size: 1.05rem;
  line-height: 1.9;
}

/* ---- フォーム ---- */
.seminar-form .seminar-section-title {
  margin: 32px 0 4px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--or, #e8630a);
  color: var(--or-d, #c14f00);
  font-size: 1.1rem;
}
.seminar-form .seminar-section:first-of-type .seminar-section-title {
  margin-top: 0;
}
.seminar-form .seminar-section-note {
  font-size: .85rem;
  color: #555;
  margin: 8px 0 16px;
}
.seminar-form .seminar-group-title {
  margin: 20px 0 4px;
  padding: 4px 12px;
  background: #f2f2f2;
  border-left: 4px solid var(--or, #e8630a);
  font-size: .95rem;
}
.seminar-form .form-group {
  margin-bottom: 20px;
}
.seminar-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
}
.seminar-form .req {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 4px;
  background: #c0392b;
  color: #fff;
  font-size: .7rem;
  font-weight: normal;
  vertical-align: middle;
}
.seminar-form .opt {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 4px;
  background: #ddd;
  color: #555;
  font-size: .7rem;
  font-weight: normal;
  vertical-align: middle;
}
.seminar-form .form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
  font-family: inherit;
}
textarea.form-input {
  resize: vertical;
}
.seminar-form .form-input:focus {
  outline: none;
  border-color: var(--or, #e8630a);
  box-shadow: 0 0 0 3px var(--or-pale, #fff3ea);
}
.seminar-form .form-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 8px 0;
}
.seminar-form .form-radio-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: normal;
  margin-bottom: 0;
  cursor: pointer;
}
.seminar-form .form-privacy {
  padding: 16px 20px;
  background: #fafafa;
  border-radius: 10px;
  transition: box-shadow .2s;
}
.seminar-form .form-privacy.has-error {
  box-shadow: 0 0 0 2px #c0392b;
}
.seminar-form .form-checkbox-option {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-weight: normal;
  cursor: pointer;
}
.seminar-form .form-checkbox-option input[type=checkbox] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.seminar-form .form-privacy .privacy-note {
  font-size: .8rem;
  color: #777;
  margin: 8px 0 0;
}
.seminar-form .form-actions {
  margin-top: 28px;
}
.seminar-form .btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--or, #e8630a);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: bold;
  cursor: pointer;
}
.seminar-form .btn-submit:hover {
  background: var(--or-d, #c14f00);
}

.required-note {
  font-size: .85rem;
  color: #555;
  margin-bottom: 16px;
}
.required-note .req {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  background: #c0392b;
  color: #fff;
  font-size: .7rem;
}

.form-error-summary {
  background: #fdecea;
  color: #c0392b;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: .9rem;
}

/* ハニーポット（人間には見えないボット対策欄） */
.seminar-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

/* ---- 完了ページ ---- */
.seminar-thanks {
  line-height: 1.9;
  margin-bottom: 24px;
}
.seminar-receipt-no {
  display: inline-block;
  margin: 16px 0;
  padding: 8px 22px;
  background: var(--or-pale, #fff3ea);
  color: var(--or-d, #c14f00);
  border-radius: 8px;
  font-weight: bold;
  letter-spacing: .05em;
}

/* ---- 電話・メール案内（お問い合わせページと共通の見た目） ---- */
.contact-alt {
  margin-top: 32px;
  padding: 20px 24px;
  background: #fafafa;
  border-radius: 12px;
  line-height: 1.9;
}
.contact-alt .tel-large {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--or-d, #c14f00);
  text-decoration: none;
}


/* ---- 確認画面 ---- */
.seminar-confirm-lead {
  background: var(--or-pale, #fff3ea);
  border-left: 4px solid var(--or, #e8630a);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin-bottom: 22px;
  line-height: 1.8;
}
.seminar-confirm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  margin-bottom: 24px;
}
.seminar-confirm-table th,
.seminar-confirm-table td {
  border: 1px solid #e5e5e5;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}
.seminar-confirm-table th {
  width: 28%;
  background: var(--or-pale, #fff3ea);
  color: var(--or-d, #c14f00);
  white-space: nowrap;
}
.seminar-confirm-table .confirm-section-row th {
  width: auto;
  background: var(--or, #e8630a);
  color: #fff;
  font-weight: bold;
}
.seminar-confirm-table .confirm-group-row th {
  width: auto;
  background: #f2f2f2;
  color: #333;
  font-weight: bold;
}
.seminar-confirm-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.seminar-form .btn-secondary,
.seminar-confirm-actions .btn-secondary {
  display: inline-block;
  padding: 13px 24px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  color: #555;
  font-size: .95rem;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
}
.seminar-confirm-actions .btn-submit {
  flex: 1;
  padding: 14px;
  background: var(--or, #e8630a);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: bold;
  cursor: pointer;
}
.seminar-confirm-actions .btn-secondary {
  flex: 0 0 auto;
}
.field-error-msg {
  margin: 6px 0 0;
  color: #c0392b;
  font-size: .85rem;
  font-weight: bold;
}
.seminar-form .form-input.has-error,
.seminar-form .form-radio-group.has-error {
  border-color: #c0392b;
  background: #fff8f8;
}
.seminar-form .form-radio-group.has-error {
  padding: 8px;
  border: 1px solid #c0392b;
  border-radius: 8px;
}
.seminar-form .form-input.has-ok {
  border-color: #27ae60;
}
@media (max-width: 600px) {
  .seminar-confirm-table th,
  .seminar-confirm-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .seminar-confirm-table th {
    border-bottom: none;
  }
  .seminar-confirm-actions .btn-submit,
  .seminar-confirm-actions .btn-secondary {
    width: 100%;
    flex: auto;
    text-align: center;
  }
}

/* ---- 郵便番号から住所自動入力 ---- */
.zip-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.zip-row .zip-input {
  flex: 1;
}
.btn-zip {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid var(--or, #e8630a);
  border-radius: 8px;
  background: #fff;
  color: var(--or-d, #c14f00);
  font-family: inherit;
  font-size: .9rem;
  font-weight: bold;
  cursor: pointer;
}
.btn-zip:hover {
  background: var(--or-pale, #fff3ea);
}
.btn-zip:disabled {
  opacity: .6;
  cursor: wait;
}
.btn-zip-icon {
  margin-right: 4px;
}
.field-hint {
  margin: 6px 0 0;
  font-size: .82rem;
  color: #666;
}
.field-hint.status-ok {
  color: #1e8449;
  font-weight: bold;
}
.field-hint.status-err {
  color: #c0392b;
  font-weight: bold;
}
.field-hint.status-load {
  color: var(--or-d, #c14f00);
}
@media (max-width: 600px) {
  .zip-row {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-zip {
    width: 100%;
  }
}


/* ---- 募集ステータス ---- */
.seminar-round-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 10px 20px 0;
  padding: 6px 16px;
  border-radius: 999px;
  background: #f1ebe5;
  color: #6d5540;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.seminar-round-badge.is-second {
  background: #fff1e6;
  color: var(--or-d, #c14f00);
  box-shadow: inset 0 0 0 1px rgba(232,99,10,.25);
}
.seminar-round-badge.is-pending {
  background: #f5f5f5;
  color: #666;
}
.seminar-not-yet {
  background: #fffaf5;
  border: 1px solid #efd6bf;
}
