@charset "utf-8";
/*
 * A/S 접수 — 화면 스타일
 *
 * 원칙
 *  1) 어느 사이트에 얹어도 어울리도록 특정 브랜드 색을 쓰지 않는다. 무채색 + 파랑 하나.
 *  2) 어르신이 쓰기 쉽게 — 기본 글자 17px, 누르는 것은 최소 56px, 색 대비를 충분히.
 *  3) 바깥 사이트의 CSS 에 영향을 주지도, 받지도 않도록 모든 규칙을 #asApp 안에 둔다.
 */

#asApp, #asApp *, #asApp *::before, #asApp *::after { box-sizing: border-box; }

#asApp {
  --pt:      #1157b0;   /* 포인트 (파랑) */
  --pt-dark: #0d4488;
  --ok:      #157a3c;
  --warn:    #c0392b;
  --ink:     #1c1f23;
  --ink-2:   #55606c;
  --line:    #d7dce2;
  --bg:      #f4f6f8;
  --card:    #ffffff;
  --radius:  12px;

  font-family: "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", "Noto Sans KR",
               "나눔고딕", NanumGothic, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  margin: 0;
  padding: 0 0 60px;
}

#asApp .as-wrap { max-width: 680px; margin: 0 auto; padding: 0 14px; }

/* ── 머리말 ─────────────────────────────────────────── */

#asApp .as-head {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 26px 14px 22px;
  text-align: center;
}
#asApp .as-head h1 {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
#asApp .as-head p {
  margin: 0 auto;
  max-width: 560px;
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.7;
}
#asApp .as-head p b { color: var(--ink); font-weight: 700; }

/* ── 담당 판매자 (gold.mycs.kr/<셀러아이디> 로 들어왔을 때, 2026-09-23) ── */

#asApp .as-seller {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0 14px 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  font-size: 14px;
}
#asApp .as-seller span { color: var(--ink-2); }
#asApp .as-seller b { color: var(--ink); font-weight: 800; }
#asApp .as-seller.bad { border-color: #f0dcae; background: #fff8e8; }
#asApp .as-seller.bad b { color: #8a5a00; font-weight: 700; }

/* ── 진행 표시 ──────────────────────────────────────── */

#asApp .as-progress {
  position: sticky; top: 0; z-index: 30;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-2);
  text-align: center;
}
#asApp .as-progress .n { color: var(--pt); font-size: 18px; }
#asApp .as-progress.done { color: var(--ok); }
#asApp .as-progress.done .n { color: var(--ok); }

/* ── 섹션 ───────────────────────────────────────────── */

#asApp .as-sec { margin: 18px 0 0; }
#asApp .as-sec > h2 {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 12px;
  font-size: 21px; font-weight: 800; letter-spacing: -0.02em;
}
#asApp .as-sec > h2 .num {
  flex: 0 0 auto;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--pt); color: #fff;
  font-size: 17px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ── 사진 카드 ──────────────────────────────────────── */

#asApp .as-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}
#asApp .as-card.filled { border-color: var(--ok); }

#asApp .as-card h3 {
  margin: 0 0 6px;
  font-size: 19px; font-weight: 700;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
/* 사진 카드 제목의 빨간 [필수] 뱃지.
   h3 로 좁혀 두지 않으면 같은 카드 안에 있는 입력칸 라벨의 (필수) 에도 배경이 걸려
   빨간 배경 + 빨간 글씨가 되어 글자가 안 보인다 (2026-08-09). */
#asApp .as-card h3 .req {
  font-size: 13px; font-weight: 700; color: #fff;
  background: var(--warn); border-radius: 4px; padding: 2px 7px;
}
#asApp .as-card.filled h3 .req { background: var(--ok); }
#asApp .as-card .desc { margin: 0 0 14px; font-size: 16px; color: var(--ink-2); }

#asApp .as-shot {
  width: 100%; margin: 0 0 12px;
  border-radius: 10px; overflow: hidden;
  background: #000; position: relative;
  display: none;
}
#asApp .as-shot.on { display: block; }
#asApp .as-shot img { display: block; width: 100%; height: auto; }
#asApp .as-shot .tag {
  position: absolute; left: 8px; top: 8px;
  background: rgba(21,122,60,.94); color: #fff;
  font-size: 13px; font-weight: 700;
  padding: 4px 9px; border-radius: 5px;
}

/* ── 버튼 ───────────────────────────────────────────── */

#asApp .as-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 58px;
  padding: 12px 18px;
  border: 1px solid transparent; border-radius: 10px;
  font-family: inherit; font-size: 18px; font-weight: 700;
  line-height: 1.3; text-align: center; text-decoration: none;
  cursor: pointer;
  background: var(--pt); color: #fff;
  -webkit-appearance: none; appearance: none;
  -webkit-tap-highlight-color: transparent;
}
#asApp .as-btn:hover  { background: var(--pt-dark); }
#asApp .as-btn:active { transform: translateY(1px); }
#asApp .as-btn:focus-visible { outline: 3px solid #7fb2ee; outline-offset: 2px; }
#asApp .as-btn[disabled] { background: #aab3bd; cursor: default; transform: none; }

#asApp .as-btn.ghost {
  background: #fff; color: var(--pt); border-color: var(--pt);
}
#asApp .as-btn.ghost:hover { background: #eef4fc; }
#asApp .as-btn.gray {
  background: #fff; color: var(--ink-2); border-color: var(--line);
}
#asApp .as-btn.gray:hover { background: #f0f2f5; }
#asApp .as-btn.big { min-height: 66px; font-size: 20px; }
#asApp .as-btn-row { display: flex; gap: 10px; }
#asApp .as-btn-row .as-btn { flex: 1; }

/* ── 입력 ───────────────────────────────────────────── */

#asApp .as-field { margin-bottom: 16px; }
#asApp .as-field label {
  display: block; margin-bottom: 7px;
  font-size: 17px; font-weight: 700;
}
#asApp .as-field label .req { color: var(--warn); font-size: 15px; font-weight: 700; margin-left: 3px; }
#asApp .as-field .hint { font-size: 15px; color: var(--ink-2); font-weight: 400; }

#asApp .as-inp {
  display: block; width: 100%;
  min-height: 56px; padding: 12px 14px;
  border: 1px solid #b9c1cb; border-radius: 10px;
  font-family: inherit;
  font-size: 18px;              /* 16px 미만이면 iOS 가 초점 시 화면을 확대한다 */
  line-height: 1.5; color: var(--ink);
  background: #fff;
  -webkit-appearance: none; appearance: none;
}
#asApp textarea.as-inp { min-height: 120px; resize: vertical; }
#asApp .as-inp:focus {
  outline: none; border-color: var(--pt);
  box-shadow: 0 0 0 3px rgba(17,87,176,.18);
}
#asApp .as-inp.err { border-color: var(--warn); box-shadow: 0 0 0 3px rgba(192,57,43,.15); }

#asApp .as-check {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fafbfc; cursor: pointer;
}
#asApp .as-check input {
  flex: 0 0 auto; width: 26px; height: 26px; margin: 0; cursor: pointer;
  accent-color: var(--pt);
}
#asApp .as-check span { font-size: 16px; line-height: 1.55; }
#asApp .as-check a { color: var(--pt); }

/* ── 접수 전 확인 사항 ──────────────────────────────── */

#asApp .as-notices {
  margin-top: 18px;
  background: var(--card);
  border: 2px solid #e0a800;
  border-radius: var(--radius);
  padding: 16px;
}
#asApp .as-notices.done { border-color: var(--ok); }
#asApp .as-notices > h2 {
  margin: 0 0 12px;
  font-size: 19px; font-weight: 800; letter-spacing: -0.02em;
  color: #8a5b00;
}
#asApp .as-notices.done > h2 { color: var(--ok); }
#asApp .as-notices.done > h2::after { content: " ✓"; }
#asApp .as-notices .as-check { margin-bottom: 10px; }
#asApp .as-notices .as-check:last-of-type { margin-bottom: 0; }
#asApp .as-notices .as-check .ck { color: #8a5b00; white-space: nowrap; }
#asApp .as-notices .as-check input:checked ~ span .ck { color: var(--ok); }

/* ── 접수 유형 고르기 ───────────────────────────────── */

#asApp .as-types { display: grid; gap: 10px; }
#asApp .as-type {
  display: flex; align-items: center; gap: 12px;
  min-height: 72px; padding: 14px 16px;
  background: var(--card);
  border: 2px solid var(--line); border-radius: var(--radius);
  cursor: pointer;
}
#asApp .as-type input {
  flex: 0 0 auto; width: 26px; height: 26px; margin: 0; cursor: pointer;
  accent-color: var(--pt);
}
#asApp .as-type .body { display: block; min-width: 0; }
#asApp .as-type .body b { display: block; font-size: 19px; font-weight: 700; }
#asApp .as-type .body em {
  display: block; margin-top: 2px;
  font-style: normal; font-size: 15px; color: var(--ink-2); line-height: 1.5;
}
#asApp .as-type:has(input:checked) {
  border-color: var(--pt); background: #f2f7fd;
}
#asApp .as-type:has(input:checked) .body b { color: var(--pt-dark); }

/* :has() 를 모르는 브라우저에서는 라디오 자체에 테두리를 둘러 고른 것을 알린다 */
@supports not selector(:has(*)) {
  #asApp .as-type input:checked { outline: 3px solid var(--pt); outline-offset: 2px; border-radius: 50%; }
}

/* 유형을 고르기 전 자리 */
#asApp .as-pick { color: var(--ink-2); font-size: 16px; text-align: center; padding: 22px 16px; }
#asApp .as-pick b { color: var(--ink); }

/* ── 접수현황 보기 ──────────────────────────────────── */

/* 접수 화면의 «이미 접수하셨나요?» 줄 */
#asApp .as-lookup {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin-top: 12px; padding: 12px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  font-size: 16px; color: var(--ink-2);
}
#asApp .as-lookup .as-btn { width: auto; min-height: 48px; padding: 8px 18px; font-size: 16px; }

/* 조회 결과 카드 */
#asApp .as-result .head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
#asApp .as-result .no { font-size: 19px; font-weight: 800; letter-spacing: .02em; }
#asApp .as-result .st { font-size: 14px; font-weight: 700; border-radius: 20px; padding: 4px 13px; }
#asApp .as-result .st.s0 { background: #fdeeec; color: #b3271b; }
#asApp .as-result .st.s1 { background: #fff5e0; color: #8a5a00; }
#asApp .as-result .st.s2 { background: #e9f6ee; color: #10603a; }
#asApp .as-result .meta { margin-top: 4px; font-size: 15px; color: var(--ink-2); }
#asApp .as-result .said {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 16px; color: var(--ink-2);
}
#asApp .as-result .said b { color: var(--ink); }

/* 접수 완료 → 확인 중 → 처리 완료 */
#asApp .as-steps { display: flex; margin-top: 16px; }
#asApp .as-step { flex: 1; position: relative; text-align: center; font-size: 14px; color: #9aa4b0; }
#asApp .as-step .dot {
  position: relative; z-index: 1;
  display: block; width: 34px; height: 34px; margin: 0 auto 6px;
  border-radius: 50%; background: #e8ecf1; color: #8a95a1;
  font-weight: 700; line-height: 34px;
}
#asApp .as-step .nm { position: relative; z-index: 1; }
#asApp .as-step.on .dot, #asApp .as-step.done .dot { background: var(--pt); color: #fff; }
#asApp .as-step.on   { color: var(--pt-dark); font-weight: 800; }
#asApp .as-step.done { color: var(--ink-2); }
/* 단계 사이를 잇는 선 — 지나온 구간만 색이 찬다 */
#asApp .as-step + .as-step::before {
  content: ""; position: absolute; left: -50%; top: 16px; width: 100%; height: 3px; background: #e8ecf1;
}
#asApp .as-step.on::before, #asApp .as-step.done::before { background: var(--pt); }

#asApp .as-note .tel {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 19px; font-weight: 800; color: var(--pt); text-decoration: none;
}

/* ── 알림 상자 ──────────────────────────────────────── */

#asApp .as-note {
  border-radius: 10px; padding: 13px 15px; margin-bottom: 14px;
  font-size: 16px; line-height: 1.6;
}
#asApp .as-note.info { background: #eaf2fc; border: 1px solid #b9d3f2; color: #14406f; }
#asApp .as-note.warn { background: #fdeeec; border: 1px solid #f2c2bb; color: #8e2019; }
#asApp .as-note.ok   { background: #e9f6ee; border: 1px solid #b6e0c6; color: #10603a; }
#asApp .as-note b { font-weight: 700; }
#asApp .as-note .as-btn { margin-top: 10px; }

/* ── 도움말 (접기) ──────────────────────────────────── */

#asApp .as-help { margin-top: 26px; }
#asApp .as-help > summary {
  list-style: none; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px; font-size: 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
#asApp .as-help > summary::-webkit-details-marker { display: none; }
#asApp .as-help > summary::after { content: "▼"; font-size: 13px; color: var(--ink-2); }
#asApp .as-help[open] > summary { border-radius: 10px 10px 0 0; border-bottom: 0; }
#asApp .as-help[open] > summary::after { content: "▲"; }
#asApp .as-help .body {
  background: var(--card); border: 1px solid var(--line); border-top: 0;
  border-radius: 0 0 10px 10px; padding: 4px 16px 16px;
}
#asApp .as-help dt {
  margin-top: 16px; font-size: 17px; font-weight: 700; color: var(--ink);
}
#asApp .as-help dd { margin: 5px 0 0; font-size: 16px; color: var(--ink-2); }
#asApp .as-help .tel {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 6px; font-size: 21px; font-weight: 800;
  color: var(--pt); text-decoration: none;
}

/* ── 촬영 화면 (전체 덮기) ──────────────────────────── */

#asCam {
  position: fixed; inset: 0; z-index: 99999;
  background: #000; display: none;
  flex-direction: column;
}
#asCam.on { display: flex; }
#asCam .cam-top {
  flex: 0 0 auto; padding: 12px 14px;
  color: #fff; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; gap: 12px;
  background: rgba(0,0,0,.85);
}
#asCam .cam-top .t { flex: 1; min-width: 0; }
#asCam .cam-top .t small { display: block; font-weight: 400; font-size: 14px; color: #cbd2da; }
#asCam .cam-x {
  flex: 0 0 auto; width: 46px; height: 46px;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.16); color: #fff;
  font-size: 24px; line-height: 1; cursor: pointer;
}
#asCam .cam-view {
  flex: 1 1 auto; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
#asCam video, #asCam .cam-prev {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto; display: block;
}
#asCam .cam-msg {
  position: absolute; left: 16px; right: 16px; top: 50%;
  transform: translateY(-50%);
  color: #fff; text-align: center; font-size: 17px; line-height: 1.7;
}
#asCam .cam-bar {
  flex: 0 0 auto; padding: 16px 14px calc(16px + env(safe-area-inset-bottom, 0px));
  background: rgba(0,0,0,.85);
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
#asCam .cam-shot {
  width: 78px; height: 78px; border-radius: 50%;
  border: 5px solid rgba(255,255,255,.5);
  background: #fff; cursor: pointer; padding: 0;
}
#asCam .cam-shot:active { transform: scale(.94); }
#asCam .cam-shot[disabled] { opacity: .4; cursor: default; }
#asCam .cam-act { display: none; gap: 12px; width: 100%; max-width: 460px; }
#asCam .cam-act.on { display: flex; }
#asCam .cam-act button {
  flex: 1; min-height: 60px; border-radius: 10px; border: 0;
  font-family: inherit; font-size: 18px; font-weight: 700; cursor: pointer;
}
#asCam .cam-retry { background: #3a4149; color: #fff; }
#asCam .cam-use   { background: #157a3c; color: #fff; }

/* ── 전송 중 ────────────────────────────────────────── */

#asBusy {
  position: fixed; inset: 0; z-index: 100000;
  background: rgba(0,0,0,.6);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
#asBusy.on { display: flex; }
#asBusy .box {
  background: #fff; border-radius: 14px; padding: 28px 30px;
  text-align: center; max-width: 340px; width: 100%;
}
#asBusy .spin {
  width: 44px; height: 44px; margin: 0 auto 16px;
  border: 5px solid #dde3ea; border-top-color: var(--pt, #1157b0);
  border-radius: 50%; animation: asSpin .9s linear infinite;
}
@keyframes asSpin { to { transform: rotate(360deg); } }
#asBusy .txt { font-size: 18px; font-weight: 700; color: #1c1f23; }
#asBusy .sub { font-size: 15px; color: #55606c; margin-top: 6px; }
@media (prefers-reduced-motion: reduce) {
  #asBusy .spin { animation-duration: 3s; }
}

/* ── 완료 화면 ──────────────────────────────────────── */

#asApp .as-done { text-align: center; padding: 40px 0 20px; }
#asApp .as-done .mark {
  width: 84px; height: 84px; margin: 0 auto 20px;
  border-radius: 50%; background: var(--ok); color: #fff;
  font-size: 46px; line-height: 84px; font-weight: 700;
}
#asApp .as-done h2 { margin: 0 0 12px; font-size: 26px; font-weight: 800; }
#asApp .as-done .no {
  display: inline-block; margin: 8px 0 16px;
  background: var(--card); border: 2px dashed var(--pt); border-radius: 10px;
  padding: 12px 20px; font-size: 22px; font-weight: 800;
  letter-spacing: .02em; color: var(--pt);
}
#asApp .as-done p { font-size: 17px; color: var(--ink-2); margin: 0 0 8px; }

/* ── 작은 화면 ──────────────────────────────────────── */

@media (max-width: 400px) {
  #asApp { font-size: 16px; }
  #asApp .as-head h1 { font-size: 26px; }
  #asApp .as-sec > h2 { font-size: 19px; }
  #asApp .as-btn { font-size: 17px; min-height: 56px; }
}

/* 인쇄 — 완료 화면만 깔끔하게 */
@media print {
  #asCam, #asBusy, #asApp .as-help, #asApp .as-progress { display: none !important; }
}
