/* =========================================================
 * HS Reservation Editor Steps
 * 역할: KBoard 예약 에디터 STEP UI 전용
 * 원칙:
 * 1) 공통 → 레이아웃 → 입력 → 컴포넌트 → STEP별 → 모바일 순서
 * 2) 아래에 덧붙이지 말고 같은 섹션 안에서 수정
 * 3) 보라색 강조는 클릭/선택 가능한 요소에만 사용
 * =======================================================*/

/* =========================
 * 0. Theme Variables
 * =======================*/

.hsr-step-editor {
  --hs-primary: #984ee2;
  --hs-primary-light: #f3ebff;
  --hs-primary-soft: #faf5ff;
  --hs-primary-dark: #7e37c9;
  --hs-border: #e5e7eb;
  --hs-border-strong: #d8b4fe;
  --hs-text: #111827;
  --hs-muted: #6b7280;
  --hs-subtle: #94a3b8;
  --hs-bg: #ffffff;
}

/* =========================
 * 1. Flatsome / KBoard Reset
 * =======================*/

.hsr-step-editor *,
.hsr-step-editor *::before,
.hsr-step-editor *::after {
  box-sizing: border-box;
}

.hsr-step-editor label,
.hsr-step-editor legend {
  margin-bottom: 0 !important;
}

.hsr-step-hero {
  display: none !important;
}

#kboard-input-option-programgroup {
  display: none !important;
}

@media (max-width: 849px) {
  body.page-id-14933 #main,
  body.page-id-14933 #content,
  body.page-id-14933 .content-area,
  body.page-id-14933 .page-wrapper,
  body.page-id-14933 .row-main,
  body.page-id-14933 .large-12.col,
  body.page-id-14933 .col-inner,
  body.page-id-14933 #kboard-customer-editor {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.page-id-14933 .large-12.col {
    padding-bottom: 0 !important;
  }
}

/* =========================
 * 2. Shell / Top / Progress
 * =======================*/

.hsr-step-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.hsr-step-top {
  margin: 0 0 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.hsr-step-top__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hsr-step-top__meta span {
  font-size: 12px;
  font-weight: 900;
  color: var(--hs-primary);
  letter-spacing: 0.08em;
}

.hsr-step-top__meta strong {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 900;
  color: var(--hs-text);
}

.hsr-step-top__percent {
  font-size: 13px;
  font-weight: 900;
  color: var(--hs-primary-dark);
  white-space: nowrap;
}

.hsr-step-progress {
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--hs-border);
  border-radius: 18px;
  background: #fff;
}

.hsr-step-progress__bar {
  height: 6px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
}

.hsr-step-progress__fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--hs-primary), var(--hs-primary-dark));
  transition: width 0.2s ease;
}

.hsr-step-progress__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hsr-step-progress__list li {
  min-height: 38px;
  padding: 0 8px;
  border: 1px solid var(--hs-border);
  border-radius: 999px;
  background: #fff;
  color: var(--hs-subtle);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.hsr-step-progress__list li.is-active {
  border-color: var(--hs-primary);
  background: var(--hs-primary-light);
  color: var(--hs-primary-dark);
}

.hsr-step-progress__list li.is-done {
  border-color: var(--hs-border-strong);
  background: var(--hs-primary-soft);
  color: var(--hs-primary-dark);
}

.hsr-step-progress__list li.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* =========================
 * 3. Panel / Text
 * =======================*/

.hsr-step-panel[hidden] {
  display: none !important;
}

.hsr-step-panel {
  padding: 20px;
  border: 1px solid var(--hs-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.hsr-step-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 900;
  color: var(--hs-text);
}

.hsr-step-desc {
  margin: 8px 0 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--hs-muted);
}

.hsr-step-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hsr-help,
.hsr-step-help {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--hs-muted);
}

.hsr-step-help.is-error {
  color: #dc2626;
  font-weight: 700;
  transition: color 0.9s ease;
}

.hsr-step-help--validation {
  margin-top: 6px;
}

/* =========================
 * Inline field validation
 * 일정 입력 폼 내부 검증
 * =======================*/

.hsr-field.is-inline-error .hsr-input,
.hsr-field.is-inline-error .hsr-select,
.hsr-field.is-inline-error textarea,
.hsr-inline-schedule-form.is-inline-error {
  border-color: #dc2626 !important;
  background: #fff1f2 !important;
}

.hsr-field.is-inline-error .hsr-label {
  color: #b91c1c;
}

.hsr-inline-field-error {
  margin-top: 6px;
  color: #dc2626;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.hsr-inline-schedule-form .hsr-inline-field-error {
  grid-column: 1 / -1;
}

.hsr-label.is-error {
  color: #dc2626 !important;
  font-weight: 900;
}

.hsr-inquiry-inline-schedule-form .hsr-label.is-error + .hsr-input,
.hsr-inquiry-inline-schedule-form .hsr-label.is-error + .hsr-select {
  border-color: #dc2626 !important;
  background: #fff1f2 !important;
}

.hsr-inquiry-inline-schedule-form .hsr-label.is-error {
  color: #dc2626 !important;
  font-weight: 900;
}

/* =========================
 * 4. Common Form Table
 * STEP1 기본 표
 * =======================*/

.hsr-step-grid {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--hs-border);
  border-radius: 16px;
  overflow: hidden;
}

.hsr-step-row {
  display: contents;
}

.hsr-step-row[hidden] {
  display: none !important;
}

.hsr-step-label {
  padding: 14px 16px;
  background: #f8fafc;
  border-bottom: 1px solid var(--hs-border);
  color: #374151;
  font-size: 13px;
  font-weight: 800;
  transition:
    background-color 0.9s ease,
    color 0.9s ease;
}

.hsr-step-value {
  padding: 10px 14px;
  border-bottom: 1px solid var(--hs-border);
  background: #fff;
  transition:
    background-color 0.9s ease,
    color 0.9s ease,
    box-shadow 0.9s ease;
}

.hsr-step-row:last-child .hsr-step-label,
.hsr-step-row:last-child .hsr-step-value {
  border-bottom: 0;
}

/* =========================
 * 5. Inputs / Textarea / Select
 * =======================*/

.hsr-step-editor input[type='text'],
.hsr-step-editor input[type='password'],
.hsr-step-editor input[type='email'],
.hsr-step-editor input[type='tel'],
.hsr-step-editor input[type='number'],
.hsr-step-editor input[type='date'],
.hsr-step-editor select,
.hsr-step-editor textarea {
  width: 100%;
  min-height: 44px;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 1px solid var(--hs-border) !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: var(--hs-text);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04) !important;
  box-sizing: border-box;
}

.hsr-step-editor textarea {
  min-height: 110px;
  padding: 12px 14px !important;
  resize: vertical;
}

.hsr-step-editor input::placeholder,
.hsr-step-editor textarea::placeholder {
  color: #9ca3af;
  font-weight: 500;
}

.hsr-step-editor input:focus,
.hsr-step-editor select:focus,
.hsr-step-editor textarea:focus {
  outline: none !important;
  border-color: var(--hs-primary) !important;
  box-shadow: 0 0 0 3px rgba(152, 78, 226, 0.14) !important;
}

.hsr-step-editor input[type='checkbox'],
.hsr-step-editor input[type='radio'] {
  width: auto;
  min-height: auto;
  padding: 0 !important;
  box-shadow: none !important;
}

/* =========================
 * 6. Footer Buttons
 * =======================*/

.hsr-step-footer {
  position: static;
  margin-top: 18px;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid var(--hs-border);
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: none;
}

.hsr-step-footer__spacer {
  flex: 1;
}

.hsr-step-btn,
.hsr-step-link {
  min-height: 46px;
  margin: 0 !important;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-sizing: border-box;
}

.hsr-step-btn--primary,
.hsr-step-btn--submit {
  min-width: 132px;
  padding-left: 24px;
  padding-right: 24px;
}

.hsr-step-btn--ghost {
  min-width: 86px;
}

.hsr-step-link {
  min-width: 82px;
  color: #64748b;
}

.hsr-step-btn--ghost {
  border: 1px solid var(--hs-border);
  background: #fff;
  color: #374151;
}

.hsr-step-btn--primary,
.hsr-step-btn--submit {
  border: 1px solid var(--hs-primary);
  background: var(--hs-primary);
  color: #fff;
}

.hsr-step-btn--primary:hover,
.hsr-step-btn--submit:hover {
  background: var(--hs-primary-dark);
  border-color: var(--hs-primary-dark);
}

.hsr-step-link {
  color: #64748b;
}

/* =========================
 * 7. STEP0 Applicant Type
 * =======================*/

.hsr-applicant-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hsr-applicant-type-card {
  appearance: none;
  min-height: 96px;
  margin: 0 !important;
  padding: 16px;
  border: 1px solid var(--hs-border);
  border-radius: 18px;
  background: #fff;
  color: var(--hs-text);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hsr-applicant-type-card strong {
  font-size: 16px;
  font-weight: 900;
  color: var(--hs-text);
}

.hsr-applicant-type-card span {
  font-size: 14px;
  line-height: 1.5;
  color: var(--hs-muted);
}

.hsr-applicant-type-card.is-active {
  border-color: var(--hs-primary);
  background: var(--hs-primary-light);
  box-shadow: 0 0 0 2px rgba(152, 78, 226, 0.12);
}

.hsr-applicant-type-card.is-disabled {
  background: #f8fafc;
  color: #94a3b8;
  border-style: dashed;
}

.hsr-applicant-type-card.is-disabled strong,
.hsr-applicant-type-card.is-disabled span {
  color: #94a3b8;
}

.hsr-applicant-type-card.is-disabled.is-active {
  border-color: #cbd5e1;
  background: #f8fafc;
  box-shadow: none;
}

.hsr-applicant-personal-notice {
  padding: 14px;
  border: 1px solid #fee2e2;
  border-radius: 16px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.hsr-guest-password-box {
  padding: 16px;
  border: 1px solid var(--hs-border);
  border-radius: 18px;
  background: #f8fafc;
}

@media (max-width: 640px) {
  .hsr-applicant-type-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
 * 7. STEP1 Applicant
 * =======================*/
/* STEP1 누락 항목: 다음 클릭 시 배경만 잠깐 강조 */
.hsr-step-row.is-error .hsr-step-label,
.hsr-step-row.is-error .hsr-step-value {
  background: #fff1f2;
}

.hsr-step-row.is-error .hsr-step-label {
  color: #374151;
}

.hsr-step-row.is-error .hsr-step-value {
  box-shadow: none;
}

/* 입력 완료/기본 상태 */
.hsr-step-row.is-complete .hsr-step-label,
.hsr-step-row.is-complete .hsr-step-value {
  background: #fff;
  color: inherit;
}

.hsr-step-row.is-complete .hsr-step-value {
  box-shadow: none;
}

@media (max-width: 640px) {
  .hsr-step-row.is-error {
    border-color: var(--hs-border);
    background: #fff5f5;
    box-shadow: none;
  }

  .hsr-step-row.is-complete {
    border-color: var(--hs-border);
    background: #fff;
    box-shadow: none;
  }
}

.hsr-receipt-type-card {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--hs-border);
  border-radius: 20px;
  background: #fff;
  transition:
    border-color 0.9s ease,
    background-color 0.9s ease,
    box-shadow 0.9s ease,
    transform 0.18s ease;
}

.hsr-receipt-type-card.is-required {
  border-color: var(--hs-primary);
  background-color: #faf5ff;
  box-shadow: 0 0 0 3px rgba(152, 78, 226, 0.12);
}

.hsr-receipt-type-card.is-selected {
  border-color: var(--hs-border);
  background-color: #fff;
  box-shadow: none;
}

.hsr-receipt-type-card.is-error {
  border-color: #dc2626;
  background-color: #fff1f2;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.14);
  transform: translateY(-1px);
}

.hsr-receipt-type-card__head {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hsr-receipt-type-card__head h4,
.hsr-applicant-info-head h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  color: var(--hs-text);
  line-height: 1.35;
}

.hsr-receipt-type-card__head p,
.hsr-applicant-info-head p {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--hs-muted);
  line-height: 1.5;
}

.hsr-receipt-type-card__badge {
  flex: 0 0 auto;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--hs-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hsr-receipt-type-card.is-selected .hsr-receipt-type-card__badge {
  background: #dcfce7;
  color: #15803d;
}

.hsr-receipt-type-card.is-error .hsr-receipt-type-card__badge {
  background: #dc2626;
  color: #fff;
}

.hsr-receipt-type-card .hs-type-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hsr-receipt-type-card .hs-type-btn {
  min-height: 46px;
}

.hsr-applicant-info-head {
  margin: 2px 0 10px;
}

@media (max-width: 550px) {
  .hsr-receipt-type-card {
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 18px;
  }

  .hsr-receipt-type-card__head {
    align-items: flex-start;
  }

  .hsr-receipt-type-card .hs-type-btn {
    min-height: 44px;
  }

  .hsr-applicant-info-head {
    padding: 0 2px;
  }
}

.hsr-applicant-card {
  padding: 16px;
  border: 1px solid var(--hs-border);
  border-radius: 20px;
  background: #fff;
}

.hsr-applicant-card .hsr-step-grid {
  margin-top: 12px;
}

.hsr-applicant-info-head {
  margin: 0 0 10px;
}

.hsr-applicant-info-head h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  color: var(--hs-text);
  line-height: 1.35;
}

.hsr-applicant-info-head p {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--hs-muted);
  line-height: 1.5;
}

@media (max-width: 550px) {
  .hsr-applicant-card {
    padding: 14px;
    border-radius: 18px;
  }

  .hsr-applicant-card .hsr-step-grid {
    margin-top: 10px;
  }
}

.hsr-step-editor .hs-type-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hsr-step-editor .hs-type-btn {
  min-height: 44px;
  margin: 0 !important;
  border: 1px solid var(--hs-border);
  border-radius: 14px;
  background: #fff;
  color: var(--hs-subtle);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.hsr-step-editor .hs-type-btn[data-type='예약'].active {
  border-color: var(--hs-primary);
  background: var(--hs-primary-light);
  color: var(--hs-primary-dark);
}

.hsr-step-editor .hs-type-btn[data-type='문의'].active {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #b45309;
}

.hsr-checkline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}

.hsr-checkline input[type='checkbox'] {
  width: 16px !important;
  height: 16px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  accent-color: var(--hs-primary);
}

.hsr-login-guide {
  margin-top: 4px;
  padding: 14px;
  border: 1px dashed var(--hs-border-strong);
  border-radius: 16px;
  background: var(--hs-primary-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hsr-login-guide__text {
  font-size: 13px;
  font-weight: 700;
  color: #6b21a8;
}

.hsr-btn-login {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--hs-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}

/* Place Card V2 bridge */
.hsr-step-editor .hs-v2-inline-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hsr-step-editor .hs-v2-inline-wrap input {
  flex: 1;
  min-width: 0;
}

.hsr-step-editor .hs-v2-inline-btn,
.hsr-step-editor .hs-v2-launch-btn,
.hsr-step-editor .hs-v2-research-btn {
  margin: 0 !important;
  border-radius: 12px !important;
  border: 1px solid var(--hs-border-strong) !important;
  background: var(--hs-primary-soft) !important;
  color: var(--hs-primary-dark) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.hsr-step-editor .hs-v2-inline-btn:hover,
.hsr-step-editor .hs-v2-launch-btn:hover,
.hsr-step-editor .hs-v2-research-btn:hover {
  background: var(--hs-primary) !important;
  border-color: var(--hs-primary) !important;
  color: #fff !important;
}

/* =========================
 * 8. Mode Guide / Mode Block
 * =======================*/

.hsr-step-mode-guide {
  display: none;
  margin-bottom: 16px;
  padding: 0;
  border: 0;
  background: transparent;
}

.hsr-step-mode-guide.is-active {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hsr-step-mode-guide strong {
  font-size: 14px;
  font-weight: 900;
  color: var(--hs-text);
  line-height: 1.45;
}

.hsr-step-mode-guide span {
  font-size: 13px;
  line-height: 1.55;
  color: var(--hs-muted);
}

.hsr-step-mode-block {
  display: none;
}

.hsr-step-mode-block.is-active {
  display: block;
}

/* =========================
 * 9. STEP2 Business
 * =======================*/

.hsr-business-select-card {
  padding: 16px;
  border: 1px solid var(--hs-border);
  border-radius: 20px;
  background: #fff;
  transition:
    border-color 0.9s ease,
    background-color 0.9s ease,
    box-shadow 0.9s ease,
    transform 0.18s ease;
}

.hsr-business-select-card.is-required {
  border-color: var(--hs-primary);
  background-color: #faf5ff;
  box-shadow: 0 0 0 3px rgba(152, 78, 226, 0.12);
}

.hsr-business-select-card.is-selected {
  border-color: var(--hs-border);
  background-color: #fff;
  box-shadow: none;
}

.hsr-business-select-card.is-error {
  border-color: #dc2626;
  background-color: #fff1f2;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.14);
  transform: translateY(-1px);
}

.hsr-business-select-card__head {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hsr-business-select-card__head h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  color: var(--hs-text);
  line-height: 1.35;
}

.hsr-business-select-card__head p {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--hs-muted);
  line-height: 1.5;
}

.hsr-business-select-card__badge {
  flex: 0 0 auto;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--hs-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hsr-business-select-card.is-selected .hsr-business-select-card__badge {
  background: #dcfce7;
  color: #15803d;
}

.hsr-business-select-card.is-error .hsr-business-select-card__badge {
  background: #dc2626;
  color: #fff;
}

@media (max-width: 550px) {
  .hsr-business-select-card {
    padding: 14px;
    border-radius: 18px;
  }

  .hsr-business-select-card__head {
    align-items: flex-start;
  }
}

.hsr-business-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hsr-business-card {
  position: relative;
  padding: 14px;
  border: 1px solid var(--hs-border);
  border-radius: 18px;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.hsr-business-card:hover {
  border-color: var(--hs-primary);
  background: var(--hs-primary-soft);
  transform: translateY(-1px);
}

.hsr-business-card.is-active,
.hsr-business-card:has(input:checked) {
  border-color: var(--hs-primary);
  background: var(--hs-primary-light);
  box-shadow: 0 0 0 1px rgba(152, 78, 226, 0.16);
}

.hsr-business-card input,
.hsr-business-card input[type='radio'] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hsr-business-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hsr-business-card__icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--hs-primary-soft);
  font-size: 15px;
}

.hsr-business-card__title {
  font-size: 15px;
  font-weight: 900;
  color: var(--hs-text);
  line-height: 1.3;
}

.hsr-business-card__desc {
  margin-top: 6px;
  padding-left: 36px;
  font-size: 12px;
  font-weight: 500;
  color: var(--hs-muted);
  line-height: 1.5;
}

.hsr-business-card.is-active .hsr-business-card__title,
.hsr-business-card:has(input:checked) .hsr-business-card__title {
  color: var(--hs-primary-dark);
}

/* =========================
 * 10. STEP3 Education Table
 * PC: custom table
 * Mobile: card
 * =======================*/

.hsr-step3-inquiry-box.is-step3-error,
.hsr-step-panel[data-step='3'] .is-step3-error {
  background-color: #fff1f2 !important;
}

.hsr-step3-error-message {
  margin-top: 8px;
  color: #dc2626;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

@media (max-width: 550px) {
  .hsr-step3-inquiry-box {
    padding: 14px;
    border-radius: 18px;
  }
}

.hsr-step-panel[data-step='3'] .kboard-happy-attr-row.hsr-items-row {
  display: grid !important;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: stretch;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--hs-border) !important;
  border-bottom: 0 !important;
  background: #fff !important;
  overflow: hidden;
}

.hsr-step-panel[data-step='3'] .kboard-happy-attr-row.hsr-items-row:first-of-type {
  border-radius: 18px 18px 0 0;
}

.hsr-step-panel[data-step='3'] .kboard-happy-attr-row.hsr-items-row:last-of-type {
  border-bottom: 1px solid var(--hs-border) !important;
  border-radius: 0 0 18px 18px;
}

.hsr-step-panel[data-step='3'] .happy-attr-name {
  display: flex !important;
  align-items: center;
  padding: 18px 14px !important;
  border-right: 1px solid var(--hs-border) !important;
  background: #f8fafc !important;
  color: #334155 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.hsr-step-panel[data-step='3'] .happy-attr-value {
  width: 100% !important;
  max-width: none !important;
  padding: 18px !important;
  border: 0 !important;
  background: #fff !important;
}

.hsr-step-panel[data-step='3'] .hsr-items {
  padding: 0;
  background: transparent;
}

.hsr-step-panel[data-step='3'] .hsr-items__header {
  margin: 0 0 12px;
  padding: 0;
}

.hsr-step-panel[data-step='3'] .hsr-items__title {
  font-size: 16px;
  font-weight: 900;
  color: var(--hs-text);
}

.hsr-step-panel[data-step='3'] .hsr-items__desc {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--hs-muted);
}

/* STEP3 add / empty cards */
.hsr-step-panel[data-step='3'] #hsr-targets-root .hsr-target-add-card,
.hsr-step-panel[data-step='3'] #hsr-targets-root .hsr-empty-box {
  position: relative;
  padding: 18px 58px 18px 18px !important;
  border: 1px dashed var(--hs-border-strong) !important;
  border-radius: 18px !important;
  background: var(--hs-primary-soft) !important;
}

.hsr-step-panel[data-step='3'] #hsr-targets-root .hsr-target-add-card::after,
.hsr-step-panel[data-step='3'] #hsr-targets-root .hsr-empty-box::after {
  content: '+';
  position: absolute;
  top: 50%;
  right: 18px;
  width: 28px;
  height: 28px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: var(--hs-primary-dark);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  line-height: 26px;
  text-align: center;
}

.hsr-step-panel[data-step='3'] #hsr-programs-root .hsr-empty-box {
  padding: 18px !important;
  border: 1px dashed #cbd5e1 !important;
  border-radius: 18px !important;
  background: #f8fafc !important;
}

.hsr-step-panel[data-step='3'] #hsr-programs-root .hsr-empty-box::after {
  display: none !important;
  content: none !important;
}

.hsr-step-panel[data-step='3'] .hsr-empty-box__title,
.hsr-step-panel[data-step='3'] .hsr-target-add-card__title {
  color: var(--hs-text);
  font-weight: 900;
}

.hsr-step-panel[data-step='3'] .hsr-empty-box__desc,
.hsr-step-panel[data-step='3'] .hsr-target-add-card__desc {
  color: var(--hs-muted);
}

/* Program search input */
.hsr-step-panel[data-step='3'] #hsr-program-search-host input {
  min-height: 42px;
  width: 320px;
  border-radius: 12px !important;
  border: 1px solid #eadcff !important;
  box-shadow: none !important;
}

.hsr-step-panel[data-step='3'] #hsr-program-search-host input:focus {
  border-color: var(--hs-primary) !important;
  box-shadow: 0 0 0 3px rgba(152, 78, 226, 0.14) !important;
}

.hsr-program-wishlist[hidden],
.hsr-program-wishlist.is-empty {
  display: none !important;
}

/* STEP3 교육대상 카드 내부 검증 */
.hsr-target-field-error {
  margin-top: 6px;
  color: #dc2626;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.hsr-target-editor .is-target-error {
  background-color: #fff1f2;
  border-radius: 14px;
  transition:
    background-color 0.9s ease,
    border-color 0.9s ease,
    box-shadow 0.9s ease;
}

.hsr-target-editor .is-target-complete {
  background-color: transparent;
}

.hsr-target-editor .hsr-grade-list.is-target-error,
.hsr-target-editor .hsr-class-field.is-target-error,
.hsr-target-editor .hsr-personnel-field.is-target-error {
  padding: 8px;
}

/* =========================
 * Inquiry note shared card
 * STEP3 작성 / STEP4 확인 공통
 * =======================*/

.hsr-inquiry-note-card {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--hs-border);
  border-radius: 20px;
  background: #fff;
  transition:
    background-color 0.9s ease,
    border-color 0.9s ease,
    box-shadow 0.9s ease;
}

.hsr-inquiry-note-card--source {
  border-color: #fde68a;
  background: #fffbeb;
}

.hsr-inquiry-note-card--final {
  border-color: #dbeafe;
  background: #f8fbff;
}

.hsr-inquiry-note-card__head {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hsr-inquiry-note-card__head h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  color: var(--hs-text);
  line-height: 1.35;
}

.hsr-inquiry-note-card__head p {
  margin: 5px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--hs-muted);
  line-height: 1.6;
  word-break: keep-all;
}

.hsr-inquiry-note-card__badge {
  flex: 0 0 auto;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid currentColor;
  color: #b45309;
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.hsr-inquiry-note-card--final .hsr-inquiry-note-card__badge {
  color: #2563eb;
}

.hsr-inquiry-note-card.is-step3-error,
.hsr-step-panel[data-step='3'] .is-step3-error {
  background-color: #fff1f2 !important;
}

#hsr-inquiry-note,
#hsr-step3-inquiry-note {
  min-height: 150px !important;
}

@media (max-width: 550px) {
  .hsr-inquiry-note-card {
    padding: 14px;
    border-radius: 18px;
  }

  .hsr-inquiry-note-card__head {
    flex-direction: column;
    gap: 8px;
  }

  .hsr-inquiry-note-card__badge {
    align-self: flex-start;
  }
}

/* =========================
 * 11. STEP4 Submission / Inquiry
 * =======================*/

/* STEP4 제출 시 일정 누락 강조 */
.hsr-empty-schedule-add.is-submit-error {
  border-color: #fca5a5 !important;
  background: #fff1f2 !important;
  color: #b91c1c !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
  transition:
    background-color 0.9s ease,
    border-color 0.9s ease,
    color 0.9s ease,
    box-shadow 0.9s ease;
}

.hsr-inquiry-schedule-card__title {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hsr-inquiry-schedule-card__title strong {
  font-size: 13px;
  font-weight: 800;
  color: #475569;
  line-height: 1.35;
}

.hsr-inquiry-schedule-card__title span {
  font-size: 17px;
  font-weight: 900;
  color: #020617;
  line-height: 1.35;
  word-break: keep-all;
}

.hsr-inquiry-schedule-card__head em {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  color: var(--hs-primary-dark);
}

.hsr-inquiry-schedule-wrap {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--hs-border);
  border-radius: 18px;
  background: #fff;
}

.hsr-inquiry-schedule-head {
  margin-bottom: 14px;
}

.hsr-inquiry-schedule-head h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  color: var(--hs-text);
}

.hsr-inquiry-schedule-head p {
  margin: 5px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--hs-muted);
  line-height: 1.6;
  word-break: keep-all;
}

.hsr-inquiry-schedule-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hsr-inquiry-schedule-card {
  padding: 14px;
  border: 1px solid var(--hs-border);
  border-radius: 16px;
  background: #f8fafc;
}

.hsr-inquiry-schedule-card__head {
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.hsr-inquiry-schedule-card__head strong {
  font-size: 14px;
  font-weight: 900;
  color: var(--hs-text);
}

.hsr-inquiry-schedule-card__head span {
  font-size: 11px;
  font-weight: 800;
  color: var(--hs-primary-dark);
}

/* =========================
 * 11. STEP4 Submission / Inquiry
 * =======================*/
.hsr-inquiry-schedule-wrap {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--hs-border);
  border-radius: 18px;
  background: #fff;
}

.hsr-inquiry-schedule-head {
  margin-bottom: 14px;
}

.hsr-inquiry-schedule-head h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  color: var(--hs-text);
}

.hsr-inquiry-schedule-head p {
  margin: 5px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--hs-muted);
  line-height: 1.6;
  word-break: keep-all;
}

.hsr-inquiry-schedule-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hsr-inquiry-schedule-card {
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #f8fafc;
}

.hsr-inquiry-schedule-card__head {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hsr-inquiry-schedule-card__title {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hsr-inquiry-schedule-card__title span {
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
  line-height: 1.35;
}

.hsr-inquiry-schedule-card__title strong {
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.28;
  word-break: keep-all;
}

.hsr-inquiry-schedule-card__head em {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  color: var(--hs-primary-dark);
}

.hsr-inquiry-schedule-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hsr-inquiry-schedule-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hsr-inquiry-schedule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
}

.hsr-inquiry-schedule-row__text {
  min-width: 0;
  font-size: 15px;
  font-weight: 800;
  color: #1f2937;
  line-height: 1.45;
  word-break: keep-all;
}

.hsr-inquiry-schedule-row__actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.hsr-inquiry-schedule-add-btn,
.hsr-empty-schedule-add {
  align-self: stretch;
}

.hsr-inquiry-inline-schedule-form {
  padding: 14px;
  border: 1px solid #fdba74;
  border-radius: 16px;
  background: #fff7ed;
}

.hsr-inquiry-inline-schedule-form__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.hsr-step-panel[data-step='4'] .hsr-inquiry-inline-schedule-form .hsr-input,
.hsr-step-panel[data-step='4'] .hsr-inquiry-inline-schedule-form .hsr-select {
  width: 100% !important;
}

.hsr-inline-field-error {
  margin-top: 8px;
  color: #dc2626;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.hsr-step-inquiry-box {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--hs-border);
  border-radius: 18px;
  background: #fff;
}

.hsr-step-inquiry-box .hsr-label {
  margin-bottom: 8px;
}

#hsr-inquiry-note {
  min-height: 180px !important;
}

@media (max-width: 550px) {
  .hsr-inquiry-schedule-wrap {
    padding: 14px;
    border-radius: 18px;
  }

  .hsr-inquiry-schedule-card {
    padding: 12px;
  }

  .hsr-inquiry-schedule-card__head {
    flex-direction: column;
    gap: 8px;
  }

  .hsr-inquiry-schedule-card__title strong {
    font-size: 20px;
  }

  .hsr-inquiry-schedule-row {
    min-height: auto;
    padding: 12px;
    align-items: flex-start;
    flex-direction: column;
  }

  .hsr-inquiry-schedule-row__actions {
    align-self: flex-end;
  }

  .hsr-inquiry-inline-schedule-form__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 550px) {
  .hsr-inquiry-schedule-wrap {
    padding: 14px;
    border-radius: 18px;
  }

  .hsr-inquiry-schedule-card {
    padding: 12px;
  }

  .hsr-inquiry-schedule-card__grid {
    grid-template-columns: 1fr;
  }
} 

.hsr-step-submission-wrap {
  margin-top: 14px;
}

#hsr-inquiry-note {
  min-height: 180px !important;
}

/* =========================
 * 12. Mobile
 * =======================*/

@media (max-width: 640px) {
  /* 모바일에서 KBoard 기본 input width/height/border-radius 덮어쓰기 */
  #kboard-customer-editor.hsr-step-editor input[type='text'],
  #kboard-customer-editor.hsr-step-editor input[type='password'],
  #kboard-customer-editor.hsr-step-editor input[type='email'],
  #kboard-customer-editor.hsr-step-editor input[type='tel'],
  #kboard-customer-editor.hsr-step-editor input[type='number'],
  #kboard-customer-editor.hsr-step-editor input[type='date'],
  #kboard-customer-editor.hsr-step-editor select,
  #kboard-customer-editor.hsr-step-editor textarea {
    width: 100% !important;
    min-height: 44px !important;
    height: auto !important;
    line-height: 1.4 !important;
    padding: 0 14px !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
  }

  #kboard-customer-editor.hsr-step-editor textarea {
    min-height: 110px !important;
    padding: 12px 14px !important;
  }

  #kboard-customer-editor.hsr-step-editor input.hs-v2-input-hidden,
  #kboard-customer-editor.hsr-step-editor .hs-v2-input-hidden {
    display: none !important;
  }

  .hsr-step-top {
    padding: 0 14px;
  }
  .hsr-step-shell {
    padding: 0 0 28px;
  }

  .hsr-step-progress,
  .hsr-step-panel {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .hsr-step-grid {
    display: flex;
    flex-direction: column;
    border: 0;
    gap: 12px;
  }

  .hsr-step-row {
    display: block;
    padding: 12px;
    border: 1px solid var(--hs-border);
    border-radius: 16px;
    transition:
      background-color 0.9s ease,
      border-color 0.9s ease,
      box-shadow 0.9s ease;
  }

  .hsr-step-label {
    padding: 0;
    margin-bottom: 8px;
    border: 0;
    background: transparent;
  }

  .hsr-step-value {
    padding: 0;
    border: 0;
  }

  .hsr-business-grid {
    grid-template-columns: 1fr;
  }

  .hsr-login-guide {
    align-items: stretch;
    flex-direction: column;
  }

  .hsr-btn-login {
    width: 100%;
    justify-content: center;
  }

  .hsr-step-footer {
    left: auto;
    right: auto;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .hsr-step-link {
    display: none;
  }

  .hsr-step-btn {
    flex: 0 0 auto;
  }

  .hsr-step-btn--primary,
  .hsr-step-btn--submit {
    flex: 1 1 auto;
  }

  .hsr-step-btn--ghost {
    flex: 0 0 82px;
  }

  /* 첫 스텝에서는 이전 대신 목록으로를 왼쪽 버튼처럼 보여줌 */
  .hsr-step-footer:has([data-hsr-step-prev][hidden]) {
    display: flex;
  }

  .hsr-step-footer:has([data-hsr-step-prev][hidden]) .hsr-step-link {
    display: inline-flex;
    flex: 1;
    min-height: 44px;
    border: 1px solid var(--hs-border);
    border-radius: 14px;
    background: #fff;
    color: #374151;
    font-size: 14px;
    font-weight: 900;
  }

  .hsr-step-footer:has([data-hsr-step-prev][hidden]) .hsr-step-footer__spacer {
    display: none !important;
  }

  .hsr-step-footer:has([data-hsr-step-prev][hidden]) [data-hsr-step-next] {
    flex: 1;
  }

  .hsr-step-panel[data-step='3'] .kboard-happy-attr-row.hsr-items-row {
    display: block !important;
    border: 1px solid var(--hs-border) !important;
    border-radius: 18px !important;
    margin-bottom: 14px !important;
  }

  .hsr-step-panel[data-step='3'] .happy-attr-name {
    width: 100% !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--hs-border) !important;
  }

  .hsr-step-panel[data-step='3'] .happy-attr-value {
    padding: 14px !important;
  }
}

/* 프로그램 검색 드롭다운은 카드 밖으로 펼쳐질 수 있게 */
.hsr-step-panel[data-step='3'] .kboard-happy-attr-row.hsr-items-row:has(#hsr-program-search-host),
.hsr-step-panel[data-step='3'] .happy-attr-value:has(#hsr-program-search-host),
.hsr-step-panel[data-step='3'] #hsr-program-search-host,
.hsr-step-panel[data-step='3'] #hsr-program-search-host .hsr-program-search-shell,
.hsr-step-panel[data-step='3'] #hsr-program-search-host .hsr-program-search-box {
  overflow: visible !important;
}

/* 프로그램 검색 드롭다운 레이어 정리 */
.hsr-step-panel[data-step='3'] #hsr-program-search-host {
  position: relative;
  z-index: auto;
}

.hsr-step-panel[data-step='3'] #hsr-program-search-host.is-dropdown-open {
  z-index: 30;
}

.hsr-step-panel[data-step='3'] #hsr-program-search-dropdown {
  z-index: 60 !important;
}

.hsr-step-panel[data-step='3'] .hsr-program-wishlist {
  position: relative;
  z-index: 0;
}

/* 스텝4(제출정보) 일정 입력 폼: PC에서만 90% */
.hsr-step-panel[data-step="4"] .hsr-inline-schedule-form .hsr-input,
.hsr-step-panel[data-step="4"] .hsr-inline-schedule-form .hsr-select {
  width: 140px !important;
}

.hsr-step-panel[data-step='3'] .hsr-target-editor .hsr-class-field .hsr-select,
.hsr-step-panel[data-step='3'] .hsr-target-editor .hsr-personnel-field .hsr-input {
  width: 90% !important;
}

.hsr-step-btn.is-disabled,
.hsr-step-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  pointer-events: none;
}

/* .hsr-step-panel[data-step='1'] #kboard-input-option-name,
.hsr-step-panel[data-step='1'] #kboard-input-option-tel-ui, */
.hsr-step-panel[data-step='1'] #kboard-input-option-email {
  width: 260px !important;
}