/* ════════════════════════════════
   Engawa Booking — 予約フォーム
   ════════════════════════════════ */

.lb-form-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 24px;
  font-family: var(--ew-font-sans, 'Noto Sans JP', sans-serif);
  color: var(--ew-text, #332518);
}

.lb-form__title {
  font-family: var(--ew-font-serif, serif);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 600;
  text-align: center;
  margin: 0 0 32px;
  letter-spacing: .06em;
  color: var(--ew-text, #332518);
}

/* ════════════════════════════════
   ステップインジケーター
   ════════════════════════════════ */
.lb-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
  gap: 0;
}
.lb-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.lb-step__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ew-sand, #EDE4D5);
  color: var(--ew-text-sub, #7A6550);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s, color .3s;
}
.lb-step__label {
  font-size: 10px;
  color: var(--ew-text-sub, #7A6550);
  letter-spacing: .06em;
}
.lb-step.is-active .lb-step__num {
  background: var(--ew-accent, #C07A52);
  color: #fff;
}
.lb-step.is-completed .lb-step__num {
  background: var(--ew-taupe, #C9B99A);
  color: #fff;
}
.lb-step__line {
  width: 40px;
  height: 1px;
  background: var(--ew-sand, #EDE4D5);
  margin-bottom: 16px;
}

/* ════════════════════════════════
   ステップコンテンツ
   ════════════════════════════════ */
.lb-form__step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ew-text, #332518);
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ew-sand, #EDE4D5);
  letter-spacing: .04em;
}

/* ════════════════════════════════
   サービス選択
   ════════════════════════════════ */
.lb-service-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.lb-service-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--ew-sand, #EDE4D5);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: #fff;
}
.lb-service-card:hover {
  border-color: var(--ew-taupe, #C9B99A);
  background: var(--ew-cream, #FAF7F2);
}
.lb-service-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.lb-service-card:has(input:checked) {
  border-color: var(--ew-accent, #C07A52);
  background: var(--ew-cream, #FAF7F2);
}
.lb-service-card__color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.lb-service-card__name {
  font-weight: 700;
  font-size: 14px;
  flex: 1;
}
.lb-service-card__duration {
  font-size: 12px;
  color: var(--ew-accent, #C07A52);
  font-weight: 600;
  white-space: nowrap;
}
.lb-service-card__desc {
  display: block;
  font-size: 12px;
  color: var(--ew-text-sub, #7A6550);
  width: 100%;
  margin-top: 4px;
}

/* ════════════════════════════════
   サービスバッジ
   ════════════════════════════════ */
.lb-service-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  background: var(--ew-cream, #FAF7F2);
  border: 1px solid var(--ew-sand, #EDE4D5);
  border-radius: 99px;
  margin-bottom: 16px;
}
.lb-service-badge__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.lb-service-badge__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ew-text, #332518);
}
.lb-service-badge__duration {
  font-size: 12px;
  color: var(--ew-accent, #C07A52);
  font-weight: 600;
}

/* ════════════════════════════════
   チェックカード（七五三オプション等）
   ════════════════════════════════ */
.lb-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.lb-check-group--error {
  outline: 2px solid #c00;
  outline-offset: 4px;
  border-radius: 4px;
}
.lb-check-card {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1.5px solid var(--ew-sand, #EDE4D5);
  border-radius: 99px;
  cursor: pointer;
  background: #fff;
  transition: border-color .2s, background .2s;
  user-select: none;
}
.lb-check-card:hover {
  border-color: var(--ew-taupe, #C9B99A);
  background: var(--ew-cream, #FAF7F2);
}
.lb-check-card input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--ew-accent, #C07A52);
  flex-shrink: 0;
}
.lb-check-card__text {
  font-size: 13px;
  font-weight: 600;
  color: var(--ew-text, #332518);
}
.lb-check-card:has(input:checked) {
  border-color: var(--ew-accent, #C07A52);
  background: var(--ew-cream, #FAF7F2);
}

/* ════════════════════════════════
   来店人数（大人・子供横並び）
   ════════════════════════════════ */
.lb-guests-row {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}
.lb-guests-row--error .lb-select {
  border-color: #c00 !important;
}
.lb-guests-col {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lb-guests-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ew-text-sub, #7A6550);
  white-space: nowrap;
}
.lb-select--narrow {
  width: auto;
  min-width: 80px;
}

/* ════════════════════════════════
   七五三：お子様動的追加行
   ════════════════════════════════ */
.lb-shichi-children {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.lb-shichi-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lb-shichi-row__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ew-text-sub, #7A6550);
  white-space: nowrap;
  min-width: 64px;
}
.lb-shichi-del {
  width: 28px;
  height: 28px;
  border: 1px solid var(--ew-sand, #EDE4D5);
  border-radius: 50%;
  background: #fff;
  color: var(--ew-text-sub, #7A6550);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.lb-shichi-del:hover {
  background: #fff0f0;
  border-color: #ffc0c0;
  color: #c00;
}
.lb-btn-add {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 16px;
  border: 1.5px dashed var(--ew-taupe, #C9B99A);
  border-radius: 4px;
  background: transparent;
  color: var(--ew-accent, #C07A52);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.lb-btn-add:hover {
  background: var(--ew-cream, #FAF7F2);
  border-color: var(--ew-accent, #C07A52);
}

.lb-calendar-wrap {
  background: var(--ew-warm-white, #FFFEFB);
  border: 1px solid var(--ew-sand, #EDE4D5);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}
.lb-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ew-text, #332518);
}
.lb-cal-nav {
  width: 32px;
  height: 32px;
  border: 1px solid var(--ew-sand, #EDE4D5);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  color: var(--ew-text-sub, #7A6550);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
}
.lb-cal-nav:hover {
  background: var(--ew-cream, #FAF7F2);
  border-color: var(--ew-taupe, #C9B99A);
}
.lb-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}
.lb-cal-dow {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--ew-text-sub, #7A6550);
  padding: 4px 0;
}
.lb-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.lb-cal-day {
  aspect-ratio: 1;
  border: none;
  border-radius: 50%;
  font-size: 13px;
  cursor: pointer;
  background: transparent;
  color: var(--ew-text, #332518);
  transition: background .2s, color .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-cal-day--available {
  background: var(--ew-section-bg, #F5F0E8);
  color: var(--ew-text, #332518);
  font-weight: 600;
}
.lb-cal-day--available:hover {
  background: var(--ew-taupe, #C9B99A);
  color: #fff;
}
.lb-cal-day--selected {
  background: var(--ew-accent, #C07A52) !important;
  color: #fff !important;
}
.lb-cal-day--unavailable,
.lb-cal-day--past,
.lb-cal-day--empty {
  color: #ccc;
  cursor: default;
}
.lb-cal-loading {
  text-align: center;
  font-size: 13px;
  color: var(--ew-text-sub, #7A6550);
  padding: 16px;
}

/* ════════════════════════════════
   時間枠
   ════════════════════════════════ */
.lb-slots-wrap {
  margin-bottom: 24px;
}
.lb-slots-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ew-text, #332518);
  margin: 0 0 12px;
}
.lb-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lb-slot {
  padding: 8px 16px;
  border: 2px solid var(--ew-sand, #EDE4D5);
  border-radius: 4px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ew-text, #332518);
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.lb-slot:hover {
  border-color: var(--ew-taupe, #C9B99A);
  background: var(--ew-cream, #FAF7F2);
}
.lb-slot.is-selected {
  border-color: var(--ew-accent, #C07A52);
  background: var(--ew-accent, #C07A52);
  color: #fff;
}
.lb-slots-loading,
.lb-slots-none {
  font-size: 13px;
  color: var(--ew-text-sub, #7A6550);
}

/* ════════════════════════════════
   入力フォーム
   ════════════════════════════════ */
.lb-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.lb-field {}
.lb-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ew-text, #332518);
  margin-bottom: 6px;
}
.lb-required {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  background: var(--ew-accent, #C07A52);
  color: #fff;
  padding: 1px 5px;
  border-radius: 2px;
  margin-left: 4px;
  vertical-align: middle;
}
.lb-input,
.lb-select,
.lb-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--ew-sand, #EDE4D5);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ew-text, #332518);
  background: #fff;
  box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
.lb-input:focus,
.lb-select:focus,
.lb-textarea:focus {
  outline: none;
  border-color: var(--ew-accent, #C07A52);
  box-shadow: 0 0 0 3px rgba(192,122,82,.12);
}
.lb-input--error {
  border-color: #c00 !important;
  box-shadow: 0 0 0 3px rgba(200,0,0,.1) !important;
}
.lb-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%237A6550'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.lb-textarea { resize: vertical; min-height: 80px; }

/* ════════════════════════════════
   確認画面
   ════════════════════════════════ */
.lb-confirm-table {
  background: var(--ew-section-bg, #F5F0E8);
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 16px;
}
.lb-confirm-row {
  display: flex;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--ew-sand, #EDE4D5);
  font-size: 13px;
}
.lb-confirm-row:last-child { border-bottom: none; }
.lb-confirm-row dt {
  width: 100px;
  flex-shrink: 0;
  color: var(--ew-text-sub, #7A6550);
  font-weight: 600;
}
.lb-confirm-row dd { flex: 1; margin: 0; color: var(--ew-text, #332518); }
.lb-confirm-note {
  font-size: 12px;
  color: var(--ew-text-sub, #7A6550);
  text-align: center;
  margin-bottom: 20px;
}

/* ════════════════════════════════
   ナビゲーションボタン
   ════════════════════════════════ */
.lb-form__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.lb-form__nav--end {
  justify-content: flex-end;
}
.lb-btn {
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: background .2s, opacity .2s, transform .1s;
  letter-spacing: .04em;
}
.lb-btn:active { transform: scale(.98); }
.lb-btn:disabled { opacity: .5; cursor: not-allowed; }
.lb-btn--primary {
  background: var(--ew-accent, #C07A52);
  color: #fff;
}
.lb-btn--primary:hover:not(:disabled) {
  background: var(--ew-accent-dark, #A0623E);
}
.lb-btn--secondary {
  background: transparent;
  color: var(--ew-text-sub, #7A6550);
  border: 1px solid var(--ew-sand, #EDE4D5);
}
.lb-btn--secondary:hover:not(:disabled) {
  background: var(--ew-cream, #FAF7F2);
}
.lb-btn--submit {
  min-width: 180px;
}

/* ════════════════════════════════
   完了メッセージ
   ════════════════════════════════ */
.lb-complete {
  text-align: center;
  padding: 48px 24px;
}
.lb-complete__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ew-accent, #C07A52);
  color: #fff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.lb-complete__title {
  font-family: var(--ew-font-serif, serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ew-text, #332518);
  margin: 0 0 12px;
}
.lb-complete__msg {
  font-size: 14px;
  color: var(--ew-text-sub, #7A6550);
  line-height: 1.8;
}

/* ════════════════════════════════
   エラーメッセージ
   ════════════════════════════════ */
.lb-error-msg {
  background: #fff0f0;
  border: 1px solid #ffcccc;
  border-left: 4px solid #c00;
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 13px;
  color: #c00;
  margin-top: 16px;
}

/* ════════════════════════════════
   ハニーポット（スパム対策）
   ════════════════════════════════ */
.lb-honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* ════════════════════════════════
   レスポンシブ
   ════════════════════════════════ */
@media (max-width: 480px) {
  .lb-form-wrap { padding: 24px 16px; }
  .lb-step__line { width: 20px; }
  .lb-slot { padding: 7px 12px; font-size: 12px; }
  .lb-btn { padding: 10px 18px; font-size: 13px; }
  .lb-confirm-row dt { width: 80px; }
}

/* ── 完了メッセージ アクションボタン ── */
.lb-complete__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  align-items: center;
}
.lb-complete__actions .lb-btn {
  width: 100%;
  max-width: 280px;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ── メール送信失敗警告 ── */
.lb-mail-warn {
  margin-top: 16px;
  padding: 10px 14px;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-left: 4px solid #f59e0b;
  border-radius: 4px;
  font-size: 13px;
  color: #7c5800;
  line-height: 1.6;
  text-align: left;
}
