/* 온라인 예약 — 기존 예약 폼 리스타일(UI만). 어르신도 쉽게: 큰 글씨·큰 버튼·넉넉한 여백.
   theme.css(브랜드 토큰·Nav·Footer) 위에 예약 폼 레이아웃만 추가. 딥네이비 + 청록 + 화이트. */

:root { --req: #E5484D; }

/* ---- 페이지 헤더(딥네이비) ---- */
.bk-hero {
  position: relative; overflow: hidden; background: var(--navy-900); color: #fff;
  padding: clamp(120px, 16vw, 168px) 0 clamp(40px, 6vw, 60px);
}
.bk-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 12% 0%, rgba(46,201,187,.18), transparent 55%);
}
.bk-hero .wrap { position: relative; z-index: 1; }
.bk-hero .eyebrow { color: var(--mint-400); }
.bk-hero .eyebrow::before { background: var(--mint-400); }
.bk-hero h1 { font-family: var(--font-brand); font-weight: 800; letter-spacing: -0.035em; font-size: clamp(34px, 5.6vw, 54px); line-height: 1.16; margin: 14px 0 0; color: #fff; }
.bk-hero .sub { margin: 16px 0 0; font-size: clamp(17px, 2.2vw, 21px); line-height: 1.65; color: rgba(255,255,255,.82); }
.bk-hero .trust-line { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 15.5px; color: rgba(255,255,255,.72); }
.bk-hero .trust-line span { display: inline-flex; align-items: center; gap: 7px; }
.bk-hero .trust-line b { color: var(--mint-400); }

/* ---- 폼 컨테이너 ---- */
.bk-wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.bk-body { padding: clamp(32px, 5vw, 52px) 0 40px; }
.bk-body { padding-bottom: 220px; } /* 하단 고정 신청영역 여백 */

/* ---- 단계 카드 ---- */
.step {
  background: #fff; border-radius: 20px; padding: clamp(24px, 4vw, 36px);
  box-shadow: inset 0 0 0 1px var(--line-normal-neutral); margin-top: 22px;
}
.step:first-child { margin-top: 0; }
.step-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.step-no {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy-800); color: #fff; display: grid; place-items: center;
  font-family: var(--font-brand); font-weight: 800; font-size: 22px;
}
.step-title { font-family: var(--font-brand); font-weight: 800; letter-spacing: -0.02em; color: var(--navy-800); font-size: clamp(21px, 3.2vw, 27px); line-height: 1.3; margin: 0; }
.step-sub { margin: 4px 0 0; font-size: 15.5px; color: var(--label-neutral); line-height: 1.5; }
.req { color: var(--req); font-weight: 800; margin-left: 2px; }
.opt { font-size: 14px; font-weight: 600; color: var(--label-assistive); margin-left: 6px; }

/* ---- STEP 1 품목 ---- */
.cat-group + .cat-group { margin-top: 26px; }
.cat-label { font-size: 15px; font-weight: 700; color: var(--mint-600); letter-spacing: -0.01em; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.cat-label::before { content: ""; width: 6px; height: 18px; border-radius: 3px; background: var(--mint-500); }
.item-row {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 14px;
  border: 2px solid var(--line-normal-neutral); background: #fff; transition: border-color .15s ease, background .15s ease; flex-wrap: wrap;
}
.item-row + .item-row { margin-top: 12px; }
.item-row.on { border-color: var(--mint-500); background: var(--mint-tint); }
.item-main { flex: 1; min-width: 160px; }
.item-name { font-size: 19px; font-weight: 700; color: var(--navy-800); letter-spacing: -0.01em; }
.item-meta { margin-top: 5px; font-size: 15px; color: var(--label-neutral); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.item-meta .price { color: var(--navy-700); font-weight: 700; }
.item-meta .time { display: inline-flex; align-items: center; gap: 5px; }

/* +/- 스텝퍼 */
.stepper { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.stepper button {
  width: 52px; height: 52px; border-radius: 12px; border: 2px solid var(--line-normal-strong);
  background: #fff; color: var(--navy-800); font-size: 26px; font-weight: 700; cursor: pointer; line-height: 1;
  display: grid; place-items: center; transition: all .12s ease; -webkit-tap-highlight-color: transparent;
}
.stepper button:hover:not(:disabled) { border-color: var(--mint-500); color: var(--mint-600); }
.stepper button.plus { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.stepper button.plus:hover { background: var(--navy-700); }
.stepper button:disabled { opacity: .4; cursor: not-allowed; }
.stepper .qty { min-width: 40px; text-align: center; font-family: var(--font-brand); font-weight: 800; font-size: 22px; color: var(--navy-800); }

.picked-list { margin-bottom: 14px; }
.picked-list .item-row + .item-row { margin-top: 12px; }

/* "+ 품목 추가하기" 버튼 */
.add-item {
  width: 100%; height: 64px; border-radius: 14px; cursor: pointer;
  border: 2px dashed var(--mint-500); background: var(--mint-tint); color: var(--mint-600);
  font-family: var(--font-brand); font-weight: 800; letter-spacing: -0.01em; font-size: 19px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s ease, border-color .15s ease; -webkit-tap-highlight-color: transparent;
}
.add-item:hover { background: var(--mint-soft); border-color: var(--mint-600); }
.add-item .ai-plus { font-size: 26px; line-height: 1; font-weight: 700; }
.add-item-hint { margin: 12px 2px 0; font-size: 15px; color: var(--label-alternative); display: flex; align-items: center; gap: 7px; }

/* 품목 선택 모달 */
.pick-card { max-width: 520px; display: flex; flex-direction: column; max-height: 88vh; }
.pick-body { padding: 18px 20px 8px; overflow-y: auto; }
.pick-body .cat-group + .cat-group { margin-top: 22px; }
.pick-foot { padding: 14px 20px 18px; border-top: 1px solid var(--line-normal-neutral); }

/* 선택 요약 */
.bk-summary { margin-top: 24px; border-radius: 14px; background: var(--navy-800); color: #fff; padding: 20px 24px; }
.bk-summary .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 16px; }
.bk-summary .row + .row { margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.14); }
.bk-summary .lab { color: rgba(255,255,255,.72); display: inline-flex; align-items: center; gap: 8px; }
.bk-summary .val { font-family: var(--font-brand); font-weight: 800; font-size: 20px; }
.bk-summary .val .mk { color: var(--mint-400); }
.bk-summary-empty { margin-top: 24px; border-radius: 14px; background: var(--fill-normal, rgba(112,115,124,.06)); padding: 18px 22px; font-size: 16px; color: var(--label-alternative); text-align: center; }
.bk-summary .note { margin-top: 12px; font-size: 13px; color: rgba(255,255,255,.5); }

/* ---- 공통 필드 ---- */
.field + .field { margin-top: 18px; }
.field-label { display: block; font-size: 17px; font-weight: 700; color: var(--navy-800); margin-bottom: 9px; letter-spacing: -0.01em; }
.input, .textarea {
  width: 100%; border: 2px solid var(--line-normal-strong); border-radius: 12px; background: #fff;
  font-family: var(--font-sans); font-size: 18px; color: var(--ink); padding: 0 18px; height: 60px;
  transition: border-color .15s ease; -webkit-appearance: none;
}
.textarea { height: auto; min-height: 108px; padding: 16px 18px; line-height: 1.6; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--label-assistive); }
.input:focus, .textarea:focus { outline: none; border-color: var(--mint-500); }
.input:disabled { background: rgba(112,115,124,.06); color: var(--label-assistive); cursor: not-allowed; border-color: var(--line-normal-neutral); }
.input.locked-note { }
.help { margin-top: 8px; font-size: 14.5px; color: var(--label-alternative); display: flex; align-items: center; gap: 6px; }
.help.warn { color: var(--req); font-weight: 600; }

/* ---- STEP 2 주소 ---- */
.addr-row { display: flex; gap: 10px; }
.addr-row .input { flex: 1; }
.addr-btn {
  flex: 0 0 auto; height: 60px; padding: 0 24px; border-radius: 12px; border: none; cursor: pointer;
  background: var(--navy-800); color: #fff; font-family: var(--font-sans); font-size: 17px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transition: background .15s ease;
}
.addr-btn:hover { background: var(--navy-700); }
.addr-btn .ic { width: 20px; height: 20px; }
@media (max-width: 480px) { .addr-row { flex-direction: column; } .addr-btn { width: 100%; justify-content: center; } }

/* 주소검색 오버레이(데모) */
.addr-pop { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(11,37,64,.5); }
.addr-pop-card { width: 100%; max-width: 440px; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(7,27,46,.3); }
.addr-pop-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line-normal-neutral); }
.addr-pop-head strong { font-family: var(--font-brand); font-size: 18px; color: var(--navy-800); }
.addr-pop-head button { border: none; background: none; cursor: pointer; color: var(--label-neutral); padding: 4px; line-height: 0; }
.addr-pop .search { padding: 16px 20px; }
.addr-pop .search .input { height: 52px; }
.addr-pop .results { max-height: 300px; overflow-y: auto; padding: 0 12px 12px; }
.addr-pop .results button { display: block; width: 100%; text-align: left; padding: 15px 12px; border: none; background: none; border-radius: 10px; cursor: pointer; font-size: 16px; color: var(--ink); }
.addr-pop .results button:hover { background: var(--mint-soft); }
.addr-pop .results .road { font-weight: 700; color: var(--navy-800); }
.addr-pop .results .zip { font-size: 13px; color: var(--label-assistive); margin-right: 8px; }

/* ---- STEP 3 날짜·시간 ---- */
.cal-shell { border: 2px solid var(--line-normal-neutral); border-radius: 16px; padding: 12px; display: flex; justify-content: center; }
/* DS Calendar 확대(어르신 가독) */
.cal-shell .ds-calendar, .cal-shell [class*="calendar"] { font-size: 17px; }
.slots-label { margin: 24px 0 12px; font-size: 17px; font-weight: 700; color: var(--navy-800); }
.slots-label .day { color: var(--mint-600); }
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 480px) { .slot-grid { grid-template-columns: repeat(2, 1fr); } }
.slot {
  height: 62px; border-radius: 12px; border: 2px solid var(--line-normal-strong); background: #fff;
  font-family: var(--font-brand); font-weight: 700; font-size: 20px; color: var(--navy-800); cursor: pointer;
  transition: all .12s ease; -webkit-tap-highlight-color: transparent;
}
.slot:hover:not(:disabled) { border-color: var(--mint-500); color: var(--mint-600); }
.slot.on { background: var(--mint-500); border-color: var(--mint-500); color: #fff; }
.slot:disabled { background: rgba(112,115,124,.08); border-color: transparent; color: var(--label-assistive); cursor: not-allowed; text-decoration: line-through; }
.slots-empty { padding: 22px; text-align: center; color: var(--label-alternative); font-size: 16px; border: 2px dashed var(--line-normal-neutral); border-radius: 14px; }

/* 대기 체크 카드 */
.wait-card {
  margin-top: 24px; display: flex; gap: 14px; align-items: flex-start; cursor: pointer;
  background: rgba(112,115,124,.06); border: 2px solid transparent; border-radius: 14px; padding: 18px 20px; transition: all .15s ease;
}
.wait-card.on { background: var(--mint-tint); border-color: var(--mint-500); }
.wait-box {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; border: 2px solid var(--line-normal-strong);
  background: #fff; display: grid; place-items: center; margin-top: 1px; transition: all .12s ease;
}
.wait-card.on .wait-box { background: var(--mint-500); border-color: var(--mint-500); }
.wait-box .ic { width: 18px; height: 18px; color: #fff; opacity: 0; }
.wait-card.on .wait-box .ic { opacity: 1; }
.wait-txt strong { display: block; font-size: 17px; font-weight: 700; color: var(--navy-800); }
.wait-txt span { display: block; margin-top: 4px; font-size: 15px; color: var(--label-neutral); line-height: 1.5; }

/* ---- STEP 4 사진 업로드 ---- */
.upload {
  display: flex; align-items: center; gap: 14px; border: 2px dashed var(--line-normal-strong); border-radius: 14px;
  padding: 20px; cursor: pointer; transition: all .15s ease; background: #fff;
}
.upload:hover { border-color: var(--mint-500); background: var(--mint-tint); }
.upload .up-ic { width: 48px; height: 48px; border-radius: 12px; background: var(--mint-soft); color: var(--mint-600); display: grid; place-items: center; flex: 0 0 auto; }
.upload .up-txt strong { display: block; font-size: 16.5px; font-weight: 700; color: var(--navy-800); }
.upload .up-txt span { display: block; margin-top: 3px; font-size: 14px; color: var(--label-alternative); }
.upload input { display: none; }
.up-files { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.up-file { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--navy-700); background: var(--mint-soft); border-radius: 10px; padding: 10px 14px; }
.up-file .ic { width: 16px; height: 16px; color: var(--mint-600); }

/* ---- 하단 고정 신청 영역 ---- */
.bk-submit {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: rgba(255,255,255,.97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-normal-neutral); box-shadow: 0 -8px 30px rgba(7,27,46,.08);
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
}
.bk-submit-inner { max-width: 760px; margin: 0 auto; }
.bk-hint {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 12px; text-align: center; line-height: 1.4;
}
.bk-hint.todo { color: var(--navy-700); }
.bk-hint.done { color: var(--mint-600); }
.bk-btn {
  width: 100%; height: 66px; border-radius: 16px; border: none; cursor: pointer;
  background: var(--navy-800); color: #fff; font-family: var(--font-brand); font-weight: 800; letter-spacing: -0.02em;
  font-size: 22px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap;
  transition: background .15s ease, transform .1s ease; box-shadow: 0 10px 24px rgba(11,37,64,.24);
}
.bk-btn:hover { background: var(--navy-700); }
.bk-btn:active { transform: translateY(1px); }
.bk-btn .ic { width: 22px; height: 22px; }

/* 데스크톱에서는 폼 하단에 자연스럽게, 모바일에서만 화면 고정 강조 */
@media (min-width: 721px) {
  .bk-body { padding-bottom: 200px; }
}

/* ====== 모바일: 시니어 친화 + 컴팩트(한눈에) ====== */
@media (max-width: 720px) {
  /* 헤더 */
  .bk-hero { padding: 96px 0 32px; }
  .bk-hero h1 { font-size: 28px; }
  .bk-hero .sub { font-size: 15px; margin-top: 12px; }
  .bk-hero .trust-line { margin-top: 16px; gap: 6px 16px; font-size: 13.5px; }

  /* 폼 여백 */
  .bk-body { padding: 24px 0 180px; }
  .bk-wrap { padding: 0 16px; }
  .step { padding: 22px 20px; margin-top: 16px; border-radius: 16px; }

  /* 단계 헤더 — 번호·제목 축소 */
  .step-head { gap: 12px; margin-bottom: 18px; }
  .step-no { width: 34px; height: 34px; font-size: 17px; }
  .step-title { font-size: 19px; }
  .step-sub { font-size: 14px; margin-top: 2px; }

  /* 선택된 품목 행 */
  .item-name { font-size: 17px; }
  .item-meta { font-size: 14px; }

  /* + 상품 추가 버튼 */
  .add-item { height: 56px; font-size: 17px; }
  .add-item .ai-plus { font-size: 23px; }
  .add-item-hint { font-size: 14px; }

  /* 선택 요약 */
  .bk-summary { padding: 16px 18px; }
  .bk-summary .row { font-size: 15px; }
  .bk-summary .val { font-size: 18px; }

  /* 필드 */
  .field-label { font-size: 16px; margin-bottom: 7px; }
  .input, .textarea { font-size: 16px; height: 54px; padding: 0 16px; }
  .textarea { padding: 14px 16px; }
  .help { font-size: 14px; }
  .addr-btn { height: 54px; font-size: 16px; padding: 0 20px; }

  /* 달력·시간 슬롯 */
  .slots-label { font-size: 16px; margin: 20px 0 10px; }
  .slot { height: 54px; font-size: 18px; }

  /* 대기 체크 카드 */
  .wait-box { width: 26px; height: 26px; }
  .wait-txt strong { font-size: 16px; }
  .wait-txt span { font-size: 14px; }

  /* 사진 업로드 */
  .upload { padding: 16px; }
  .upload .up-ic { width: 42px; height: 42px; }
  .upload .up-txt strong { font-size: 15.5px; }
  .upload .up-txt span { font-size: 13px; }

  /* 하단 신청 영역 */
  .bk-submit { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .bk-hint { font-size: 15px; margin-bottom: 10px; }
  .bk-btn { height: 58px; font-size: 19px; border-radius: 14px; }

  /* ===== 상품 선택 모달: 7개가 한 화면에 ===== */
  .pick-card { max-width: 100%; max-height: 92vh; }
  .pick-body { padding: 14px 16px 4px; }
  .pick-body .cat-group + .cat-group { margin-top: 14px; }
  .cat-label { font-size: 13.5px; margin-bottom: 8px; }
  .cat-label::before { height: 15px; }
  /* 컴팩트 행: 이름+메타 왼쪽, 작은 스텝퍼 오른쪽 */
  .pick-body .item-row { padding: 12px 14px; gap: 12px; border-width: 1.5px; }
  .pick-body .item-row + .item-row { margin-top: 8px; }
  .pick-body .item-name { font-size: 15.5px; }
  .pick-body .item-meta { margin-top: 3px; font-size: 12.5px; gap: 2px 10px; }
  .pick-body .stepper { gap: 4px; }
  .pick-body .stepper button { width: 38px; height: 38px; font-size: 21px; border-radius: 10px; }
  .pick-body .stepper .qty { min-width: 26px; font-size: 18px; }
  .pick-foot { padding: 12px 16px 16px; }
  .pick-foot .bk-btn { height: 52px; font-size: 17px; }
}

/* 아주 작은 화면(품목 7개 확실히 수용) */
@media (max-width: 720px) and (max-height: 720px) {
  .pick-body .item-row { padding: 10px 12px; }
  .pick-body .item-row + .item-row { margin-top: 6px; }
  .pick-body .stepper button { width: 34px; height: 34px; }
}
