/* ============================================================
   금니시세몰 — 매입신청 (실시간 신청현황 / 온라인매입신청 / 사진감정의뢰)
   (about.css 의 .about-layout / .side 재사용)
   ============================================================ */

/* ---- filter tabs ---- */
.req-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.req-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.req-tab {
  padding: 10px 18px; border-radius: 9px; border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--dim); font-size: 14.5px; font-weight: 700; transition: all .15s;
}
.req-tab:hover { border-color: var(--orange); color: var(--text); }
.req-tab.active { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-apply {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 10px;
  background: var(--orange); color: #fff; font-weight: 700; font-size: 14.5px; border: 0;
  text-decoration: none; transition: background .18s, transform .18s; white-space: nowrap;
}
.btn-apply:hover { background: var(--orange-d); transform: translateY(-1px); }
.btn-apply svg { width: 16px; height: 16px; }

.req-meta { font-size: 13.5px; color: var(--mute); margin-bottom: 12px; }
.req-meta b { color: var(--orange-d); font-weight: 800; }

/* ---- list table ---- */
.req-wrap { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-card); background: var(--bg-2); }
.req-scroll { overflow-x: auto; }
.req-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.req-table th, .req-table td { padding: 14px 16px; font-size: 14px; text-align: center; white-space: nowrap; }
.req-table thead th { background: #2a2521; color: #f3ede1; font-weight: 700; font-size: 13px; border-bottom: 1px solid var(--line); }
.req-table tbody tr { border-bottom: 1px solid var(--line); transition: background .14s; }
.req-table tbody tr:last-child { border-bottom: 0; }
.req-table tbody tr:hover { background: rgba(255,95,0,.04); cursor: pointer; }
.req-table .c-no { color: var(--mute); font-variant-numeric: tabular-nums; }
.req-table .c-title { text-align: left; color: var(--text); font-weight: 600; }
.req-table .c-title .lk { color: var(--mute); margin-left: 6px; vertical-align: -2px; }
.req-table .c-title .at { color: var(--orange); margin-left: 4px; vertical-align: -2px; }
.req-table .c-date, .req-table .c-tel { color: var(--dim); font-variant-numeric: tabular-nums; }
.req-table .c-form .pill { font-size: 12.5px; color: var(--dim); }

/* request-type badge */
.rb { display: inline-block; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 7px; white-space: nowrap; }
.rb.online { background: #fff; color: var(--orange-d); border: 1px solid var(--orange); }
.rb.photo  { background: var(--orange); color: #fff; border: 1px solid var(--orange); }

/* ---- pagination ---- */
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 28px; }
.pager button {
  min-width: 36px; height: 36px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--dim); font-weight: 700; font-size: 14px; transition: all .14s;
}
.pager button:hover:not(:disabled) { border-color: var(--orange); color: var(--orange-d); }
.pager button.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.pager button:disabled { opacity: .4; cursor: default; }

/* ============================================================
   APPLICATION FORM (신청하기 화면)
   ============================================================ */
.af-consent {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 18px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); margin-bottom: 22px;
}
.af-consent .view-policy {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 9px;
  background: var(--orange); color: #fff; font-weight: 700; font-size: 13.5px; border: 0; white-space: nowrap;
}
.af-consent .view-policy:hover { background: var(--orange-d); }
.af-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--text); cursor: pointer; user-select: none; white-space: nowrap; }
.af-check input { width: 18px; height: 18px; accent-color: var(--orange); }
.af-check .req { color: var(--orange-d); }

.af-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 14px; }
.af-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px){ .af-grid { grid-template-columns: 1fr; } }
.af-field label { display: block; font-size: 13px; font-weight: 500; color: var(--dim); margin-bottom: 7px; }
.af-field label .req { color: var(--orange-d); }
.tel-row { display: flex; align-items: center; gap: 8px; }
.tel-row span { color: var(--mute); }
.tel-row .input { text-align: center; }

.af-section-label { font-size: 13px; font-weight: 700; color: var(--dim); margin: 8px 0; }
.af-section-label .req { color: var(--orange-d); }
.uploader { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 4px; }
.uprow {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 11px;
  background: var(--bg-3); border: 1px solid var(--line-2);
}
.uprow .pick {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 8px;
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); font-weight: 700; font-size: 13.5px; white-space: nowrap;
}
.uprow .pick:hover { border-color: var(--orange); color: var(--orange-d); }
.uprow .fname { flex: 1; font-size: 13.5px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uprow .fname.has { color: var(--text); font-weight: 600; }
.uprow .uprow-rm {
  flex: none; width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--mute); cursor: pointer;
}
.uprow .uprow-rm:hover { border-color: var(--down); color: var(--down); }
.uprow .uprow-rm svg { width: 16px; height: 16px; }
.up-add {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; padding: 9px 16px; border-radius: 9px;
  background: var(--bg-2); border: 1px dashed var(--line-2); color: var(--dim); font-weight: 700; font-size: 13.5px; cursor: pointer;
}
.up-add:hover { border-color: var(--orange); color: var(--orange-d); }

/* 의뢰 내용 / KYC 체크박스 그룹 */
.opt-row { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.opt-col { display: flex; flex-direction: column; gap: 10px; }
label.af-opt { display: flex; align-items: center; gap: 9px; margin-bottom: 0; font-size: 14.5px; font-weight: 500; color: var(--text); line-height: 1.5; cursor: pointer; }
label.af-opt input[type=checkbox] { width: 17px; height: 17px; flex: none; margin: 0; vertical-align: middle; accent-color: var(--orange); cursor: pointer; }
.req-box { border: 1px solid var(--line-2); border-radius: 12px; padding: 20px 22px; background: var(--bg-2); }
.req-box .af-field:last-child { margin-bottom: 0 !important; }

/* captcha */
.captcha { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 2px; }
.captcha .cap-img {
  font-family: ui-monospace, monospace; font-size: 22px; font-weight: 800; letter-spacing: .26em;
  padding: 9px 16px; border-radius: 9px; color: #4a423a; user-select: none;
  background: repeating-linear-gradient(115deg, #efe7d6 0 5px, #e3d8c0 5px 9px);
  border: 1px solid var(--line-2); text-decoration: line-through; text-decoration-color: rgba(120,90,40,.4);
}
.captcha .cap-input { width: 130px; }
.captcha .cap-btn { width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg-3); color: var(--dim); display: grid; place-items: center; }
.captcha .cap-btn:hover { border-color: var(--orange); color: var(--orange-d); }
.captcha-hint { font-size: 12.5px; color: var(--mute); margin-top: 8px; }

.af-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.af-actions .btn-cancel { padding: 13px 26px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--dim); font-weight: 700; font-size: 15px; text-decoration: none; }
.af-actions .btn-cancel:hover { background: var(--bg-3); color: var(--text); }
.af-actions .btn-submit { padding: 13px 30px; border-radius: 10px; border: 0; background: var(--orange); color: #fff; font-weight: 800; font-size: 15px; }
.af-actions .btn-submit:hover { background: var(--orange-d); }

/* ---- 개인정보처리방침 모달 ---- */
.policy-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.policy-modal[hidden] { display: none; }
.policy-scrim { position: absolute; inset: 0; background: rgba(20, 14, 6, .55); backdrop-filter: blur(2px); }
.policy-box { position: relative; z-index: 1; width: 100%; max-width: 720px; max-height: 86vh; display: flex; flex-direction: column;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.policy-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.policy-head h3 { font-size: 19px; font-weight: 800; color: var(--text); }
.policy-x { appearance: none; border: 0; background: transparent; font-size: 26px; line-height: 1; color: var(--mute); cursor: pointer; padding: 0 4px; }
.policy-x:hover { color: var(--text); }
.policy-body { overflow-y: auto; padding: 22px; font-size: 14px; line-height: 1.7; color: var(--dim); }
.policy-body h4 { margin: 22px 0 8px; font-size: 15.5px; font-weight: 800; color: var(--text); }
.policy-body h4:first-of-type { margin-top: 14px; }
.policy-body p { margin-bottom: 12px; }
.policy-body ol { margin: 0 0 12px; padding-left: 20px; }
.policy-body ol li { margin-bottom: 5px; }
.policy-body .policy-note { color: var(--mute); font-size: 12.5px; }
.policy-table-wrap { overflow-x: auto; margin: 4px 0 12px; }
.policy-table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 13px; }
.policy-table th, .policy-table td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; vertical-align: top; }
.policy-table th { background: #f4f0e8; color: var(--dim); font-weight: 700; white-space: nowrap; }

.member-note {
  margin-top: 18px; padding: 16px 18px; border-radius: 12px; font-size: 13px; line-height: 1.7;
  background: #fff6ef; border: 1px solid rgba(255,95,0,.22); color: var(--dim);
}
.member-note b { color: var(--orange-d); }
