/* =====================================================
   スマート予約アシスト 公開側デザイン
===================================================== */

.sba-wrap {
  max-width: 920px;
  margin: 40px auto;
  padding: 0 16px;
  color: #1f2937;
}

.sba-heading {
  text-align: center;
  margin-bottom: 28px;
}

.sba-heading .sba-label {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--sba-sub-bg-color, #e0f2fe);
  color: var(--sba-main-color, #0369a1);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sba-heading h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 38px);
  color: #0f172a;
}

.sba-heading p {
  margin: 0;
  color: #475569;
  line-height: 1.8;
}

.sba-form {
  background: var(--sba-form-bg-color, #ffffff);
  border: 1px solid #dbeafe;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  padding: clamp(22px, 4vw, 36px);
}

.sba-field {
  margin-bottom: 20px;
}

.sba-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #0f172a;
}

.sba-field input,
.sba-field select,
.sba-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;
  background: #fff;
}

.sba-field input:focus,
.sba-field select:focus,
.sba-field textarea:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.sba-assist-box {
  margin: 24px 0;
  padding: 22px;
  border-radius: 16px;
  background: var(--sba-sub-bg-color, #eff6ff);
  border: 1px solid #bfdbfe;
}

.sba-assist-header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

.sba-assist-header span {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--sba-main-color, #0284c7);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.sba-assist-header strong {
  font-size: 20px;
  color: #0f172a;
}

.sba-assist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sba-assist-item {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px;
  border: 1px solid #dbeafe;
  min-height: 90px;
}

.sba-assist-item h3 {
  margin: 0 0 10px;
  font-size: 17px;
  color: var(--sba-main-color, #075985);
}

.sba-assist-item p {
  margin: 0;
  line-height: 1.8;
  white-space: pre-line;
  color: #334155;
}

.sba-assist-wide {
  grid-column: 1 / -1;
}

.sba-submit-wrap {
  text-align: center;
  margin-top: 28px;
}

.sba-submit-button {
  display: inline-block;
  border: none;
  border-radius: 999px;
  background: var(--sba-button-color, #0284c7);
  color: var(--sba-button-text-color, #ffffff);
  font-weight: 700;
  font-size: 16px;
  padding: 13px 34px;
  cursor: pointer;
  transition: 0.2s ease;
}

.sba-submit-button:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.sba-submit-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: #64748b;
}

.sba-empty {
  padding: 24px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  color: #9a3412;
}

/* スマホ対応 */
@media (max-width: 640px) {

  .sba-form {
    padding: 22px 16px;
  }

  .sba-assist-grid {
    grid-template-columns: 1fr;
  }

  .sba-assist-box {
    padding: 18px 14px;
  }

  .sba-submit-button {
    width: 100%;
  }
}

/* =====================================================
   第2段階：送信完了・必須表示
===================================================== */

.sba-required {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.sba-thanks-box {
  margin: 0 0 24px;
  padding: 22px;
  border-radius: 16px;
  background: #ecfdf5;
  border: 1px solid #86efac;
  color: #14532d;
}

.sba-thanks-box h3 {
  margin: 0 0 8px;
  font-size: 22px;
  color: #166534;
}

.sba-thanks-box p {
  margin: 0;
  line-height: 1.8;
}

/* =====================================================
   エラー表示
===================================================== */

.sba-error-box {
  margin: 0 0 24px;
  padding: 22px;
  border-radius: 16px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #7f1d1d;
}

.sba-error-box h3 {
  margin: 0 0 8px;
  font-size: 22px;
  color: #991b1b;
}

.sba-error-box p {
  margin: 0;
  line-height: 1.8;
}

/* =====================================================
   相談会概要表示
===================================================== */

.sba-schedule-info {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 28px;
  background: #ffffff;
  border: 1px solid #cdeaf7;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.sba-schedule-note {
  margin: 22px;
  padding: 14px 18px;
  color: #a66a00;
  font-weight: 700;
  background: #fff7e6;
  border: 1px solid #f3d38a;
  border-radius: 10px;
}

.sba-schedule-info-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-top: 1px solid #cdeaf7;
}

.sba-schedule-info-row:first-of-type {
  border-top: none;
}

.sba-schedule-info-label {
  padding: 22px;
  color: var(--sba-main-color, #0070b8);
  font-weight: 800;
  background: #f2fbf8;
}

.sba-schedule-info-content {
  padding: 22px;
  line-height: 1.9;
}

.sba-public-staff-list p {
  margin: 0 0 10px;
}

.sba-public-staff-list p:last-child {
  margin-bottom: 0;
}

.sba-public-staff-list span {
  display: inline-block;
  min-width: 64px;
  margin-right: 10px;
  padding: 4px 12px;
  color: var(--sba-main-color, #0070b8);
  background: #e9fbff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.sba-public-price {
  display: inline-block;
  padding: 12px 26px;
  color: #e60000;
  background: #fff0f5;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 800;
}

@media (max-width: 640px) {

  .sba-schedule-info-row {
    display: block;
  }

  .sba-schedule-info-label {
    padding: 14px 18px;
  }

  .sba-schedule-info-content {
    padding: 18px;
  }

  .sba-schedule-note {
    margin: 16px;
  }
}

/* =====================================================
   送信後のおすすめ案内
===================================================== */

.sba-sent-assist-box {
  margin-top: 0;
  margin-bottom: 28px;
}

/* =====================================================
   送信後のフォーム非表示案内
===================================================== */

.sba-after-submit-note {
  margin: 0 0 28px;
  padding: 18px 22px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  text-align: center;
}

.sba-after-submit-note p {
  margin: 0;
  line-height: 1.8;
}

/* =====================================================
   入力補足
===================================================== */

.sba-field-note {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}