/* ── user/user.css ── 응시자 공통 스타일 ── */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; min-height: 100vh;
  background: #f0e8dc;
  font-family: var(--ep-font);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
@keyframes epSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes epSpin    { to { transform: rotate(360deg); } }

/* ── 래퍼 ── */
.ep-wrap {
  width: 100%; max-width: 480px; min-height: 100vh;
  margin: 0 auto; background: var(--ep-cream);
  display: flex; flex-direction: column;
  box-shadow: 0 0 60px rgba(0,0,0,.08);
  position: relative;
}

/* ── 스텝 헤더 ── */
.ep-step-hd   { padding: 54px 20px 8px; background: var(--ep-cream); flex-shrink: 0; }
.ep-step-nav  { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.ep-back-btn  {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: var(--ep-paper); box-shadow: 0 2px 8px rgba(59,42,30,.08);
  display: grid; place-items: center; cursor: pointer; color: var(--ep-brown-700);
  text-decoration: none; flex-shrink: 0;
}
.ep-back-btn svg { display: block; }
.ep-progress  { flex: 1; height: 6px; background: var(--ep-cream-2); border-radius: 999px; overflow: hidden; }
.ep-prog-fill { height: 100%; background: linear-gradient(90deg, var(--ep-primary), var(--ep-accent)); transition: width .3s; }
.ep-step-num  { font-size: 12px; font-weight: 800; color: var(--ep-muted); white-space: nowrap; }
.ep-step-title{ margin: 0; font-size: 24px; font-weight: 900; color: var(--ep-ink); letter-spacing: -.03em; line-height: 1.2; font-family: var(--ep-font-display); }
.ep-step-sub  { margin: 6px 0 0; font-size: 13.5px; color: var(--ep-muted); line-height: 1.5; }

/* ── 콘텐츠 / 푸터 ── */
.ep-content { flex: 1; padding: 18px 20px 20px; overflow-y: auto; }
.ep-foot    { padding: 16px 20px 32px; background: var(--ep-cream); flex-shrink: 0; }
.ep-foot-row{ display: flex; gap: 10px; }

/* ── 버튼 ── */
.ep-btn-primary {
  display: block; width: 100%; padding: 15px 20px;
  background: var(--ep-primary); color: #fff; border: none;
  border-radius: var(--ep-radius-btn);
  font-size: 16px; font-weight: 800; font-family: var(--ep-font); letter-spacing: -.01em;
  cursor: pointer; box-shadow: 0 4px 14px rgba(201,123,63,.28);
  transition: transform .08s; text-align: center; text-decoration: none;
}
.ep-btn-primary:active { transform: scale(.98); }
.ep-btn-primary:disabled, .ep-btn-primary.disabled {
  background: #DCCFBD; box-shadow: none; cursor: not-allowed;
}
.ep-btn-ghost {
  display: block; padding: 13px 16px;
  background: transparent; color: var(--ep-brown-700);
  border: 1.5px solid var(--ep-line); border-radius: var(--ep-radius-btn);
  font-size: 15px; font-weight: 700; font-family: var(--ep-font);
  cursor: pointer; text-align: center; text-decoration: none;
}
.ep-btn-danger {
  padding: 13px 16px; background: var(--ep-danger); color: #fff;
  border: none; border-radius: var(--ep-radius-btn);
  font-size: 15px; font-weight: 800; font-family: var(--ep-font); cursor: pointer;
}
.ep-btn-pdf {
  display: block; padding: 13px 16px;
  background: var(--ep-primary-050); color: var(--ep-primary-600);
  border: 1.5px solid var(--ep-accent-100); border-radius: var(--ep-radius-btn);
  font-size: 15px; font-weight: 700; font-family: var(--ep-font);
  cursor: pointer; text-align: center; text-decoration: none;
  transition: background .12s;
}
.ep-btn-pdf:active { background: var(--ep-accent-100); }

/* ── 필드 ── */
.ep-field        { display: block; margin-bottom: 18px; }
.ep-field-label  { font-size: 13px; font-weight: 700; color: var(--ep-brown-700); margin-bottom: 6px; letter-spacing: -.01em; }
.ep-field-req    { color: var(--ep-primary); margin-left: 4px; }
.ep-field-hint   { font-size: 11.5px; color: var(--ep-muted); margin-top: 5px; }
.ep-input {
  width: 100%; padding: 13px 14px;
  border: 1.5px solid var(--ep-line); border-radius: var(--ep-radius-input);
  font-size: 15px; font-family: var(--ep-font); background: var(--ep-paper); color: var(--ep-ink);
  outline: none; transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.ep-input:focus  { border-color: var(--ep-primary); box-shadow: 0 0 0 4px rgba(201,123,63,.12); }

/* iOS Safari: date/time input 내부 표시 보정 */
input[type="date"].ep-input,
input[type="time"].ep-input {
  min-height: 48px;
  line-height: normal;
}
input[type="date"].ep-input::-webkit-date-and-time-value,
input[type="time"].ep-input::-webkit-date-and-time-value {
  text-align: left;
  color: var(--ep-ink);
  min-height: 1.2em;
}
/* iOS Safari: 빈 date input placeholder 색상 */
input[type="date"].ep-input:not([value]),
input[type="date"].ep-input[value=""] {
  color: var(--ep-muted);
}

.ep-row2         { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* 360px 이하 극소형 기기: ep-row2 세로 배치 */
@media (max-width: 360px) {
  .ep-row2 { grid-template-columns: 1fr; }
}
.ep-select-btn   {
  width: 100%; padding: 13px 14px; text-align: left;
  border: 1.5px solid var(--ep-line); border-radius: var(--ep-radius-input);
  background: var(--ep-paper); font-size: 15px; font-family: var(--ep-font);
  color: var(--ep-muted); cursor: pointer; display: flex; align-items: center; justify-content: space-between;
}
.ep-select-btn.has-value { color: var(--ep-ink); }

/* ── 동의 체크 ── */
.ep-check-all {
  padding: 15px 16px; background: var(--ep-primary-050);
  border-radius: var(--ep-radius-card); display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--ep-accent-100); margin-bottom: 12px;
}
.ep-consent-card {
  background: var(--ep-paper); border-radius: var(--ep-radius-card);
  border: 1.5px solid var(--ep-line); overflow: hidden; margin-bottom: 12px;
}
.ep-consent-row   { padding: 15px 16px; display: flex; align-items: center; gap: 12px; }
.ep-check-circle  {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  border: 1.8px solid var(--ep-line); background: var(--ep-paper);
  display: grid; place-items: center; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.ep-check-circle.checked { background: var(--ep-primary); border-color: var(--ep-primary); }
.ep-check-label   { flex: 1; font-size: 14.5px; font-weight: 800; color: var(--ep-ink); }
.ep-check-label span { color: var(--ep-primary); }
.ep-view-btn {
  font-size: 12px; color: var(--ep-muted); background: transparent; border: none;
  cursor: pointer; font-weight: 700; font-family: var(--ep-font); white-space: nowrap;
}

/* ── 사진 업로드 ── */
.ep-photo-wrap { display: flex; align-items: center; gap: 14px; }
.ep-photo-box  {
  width: 88px; height: 110px; border-radius: var(--ep-radius-input);
  background: var(--ep-cream-2); border: 2px dashed var(--ep-line);
  display: grid; place-items: center; color: var(--ep-muted);
  font-size: 12px; cursor: pointer; overflow: hidden; flex-shrink: 0;
  text-align: center; background-size: cover; background-position: center;
}
.ep-photo-hint { font-size: 12.5px; color: var(--ep-muted); line-height: 1.55; cursor: default; pointer-events: none; }

/* ── PIN 입력 ── */
.ep-pin-boxes  {
  display: flex; gap: 10px; justify-content: center; margin-top: 6px;
  position: relative; cursor: pointer;
}
.ep-pin-box    {
  width: 54px; height: 60px; display: grid; place-items: center;
  background: var(--ep-paper); border: 2px solid var(--ep-line);
  border-radius: var(--ep-radius-input);
  font-size: 28px; font-weight: 900; color: var(--ep-ink);
  transition: border-color .15s, box-shadow .15s;
}
.ep-pin-box.active { border-color: var(--ep-primary); box-shadow: 0 0 0 4px rgba(201,123,63,.12); }
/* 포커스 시 커서 깜빡임 */
@keyframes epPinBlink { 0%,100%{opacity:1} 50%{opacity:0} }
.ep-pin-boxes.focused .ep-pin-box.active::after {
  content: ''; display: block; width: 2px; height: 28px;
  background: var(--ep-primary); border-radius: 1px;
  animation: epPinBlink .9s ease infinite;
}
.ep-pin-input  {
  width: 100%; margin-top: 14px; padding: 13px 14px; text-align: center;
  letter-spacing: .3em; font-size: 16px; font-weight: 700;
  border: 1.5px solid var(--ep-line); border-radius: var(--ep-radius-input);
  font-family: var(--ep-font); background: var(--ep-paper); outline: none;
}

/* ── 서명 캔버스 ── */
.ep-sig-area   {
  width: 100%; height: 180px; background: var(--ep-paper);
  border: 1.5px dashed var(--ep-line); border-radius: var(--ep-radius-input);
  display: block; touch-action: none;
}
.ep-sig-hint   { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.ep-sig-label  { font-size: 12px; color: var(--ep-muted); }
.ep-sig-clear  {
  background: transparent; border: none; color: var(--ep-primary);
  font-size: 12.5px; font-weight: 800; cursor: pointer; font-family: var(--ep-font);
}
.ep-sig-preview {
  height: 120px; background: var(--ep-paper); border: 1.5px solid var(--ep-line);
  border-radius: var(--ep-radius-input); display: flex; align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden; background-size: contain; background-repeat: no-repeat; background-position: center;
}
.ep-sig-placeholder { color: var(--ep-muted); font-size: 14px; font-weight: 700; }

/* ── 리뷰 카드 ── */
.ep-review-card {
  padding: 18px; background: var(--ep-paper);
  border-radius: var(--ep-radius-card); box-shadow: var(--ep-shadow-card); margin-bottom: 14px;
}
.ep-review-exam-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--ep-line);
}
.ep-review-exam-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; font-size: 24px;
}
.ep-review-exam-lbl  { font-size: 11px; color: var(--ep-muted); font-weight: 800; letter-spacing: .06em; }
.ep-review-exam-name { font-size: 16px; font-weight: 900; color: var(--ep-ink); letter-spacing: -.02em; }
.ep-review-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--ep-line);
}
.ep-review-key { font-size: 13px; color: var(--ep-muted); font-weight: 700; flex-shrink: 0; }
.ep-review-val { font-size: 13.5px; color: var(--ep-ink); font-weight: 700; text-align: right; word-break: break-all; }
.ep-pay-box    {
  padding: 18px; background: var(--ep-primary-050);
  border-radius: var(--ep-radius-card); border: 1.5px solid var(--ep-accent-100);
}
.ep-pay-lbl    { font-size: 12.5px; font-weight: 800; color: var(--ep-brown-700); margin-bottom: 10px; letter-spacing: .04em; }
.ep-pay-row    { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.ep-pay-row span:first-child { font-size: 14px; color: var(--ep-brown-700); }
.ep-pay-row span:last-child  { font-size: 15px; font-weight: 700; color: var(--ep-ink); }
.ep-pay-divider{ height: 1px; background: var(--ep-accent-100); margin: 10px 0; }
.ep-pay-total  { display: flex; justify-content: space-between; align-items: baseline; }
.ep-pay-total-lbl { font-size: 15px; font-weight: 800; color: var(--ep-ink); }
.ep-pay-total-val { font-size: 22px; font-weight: 900; color: var(--ep-primary); letter-spacing: -.02em; }
.ep-pay-note   { margin-top: 10px; font-size: 11.5px; color: var(--ep-muted); line-height: 1.6; }

/* ── 완료 티켓 ── */
.ep-success-badge {
  width: 88px; height: 88px; border-radius: 50%; margin: 10px auto 20px;
  background: linear-gradient(135deg, var(--ep-primary), var(--ep-accent));
  display: grid; place-items: center;
  box-shadow: 0 14px 32px rgba(201,123,63,.35);
}
.ep-ticket     { background: var(--ep-paper); border-radius: var(--ep-radius-card); box-shadow: var(--ep-shadow-card); overflow: hidden; }
.ep-ticket-hd  {
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--ep-brown-900), var(--ep-brown-500));
  color: #fff; display: flex; justify-content: space-between; align-items: center;
}
.ep-ticket-kw  { font-size: 10.5px; font-weight: 800; opacity: .7; letter-spacing: .1em; }
.ep-ticket-name{ font-size: 17px; font-weight: 900; margin-top: 4px; letter-spacing: -.02em; }
.ep-ticket-deco{ position: relative; height: 0; }
.ep-ticket-deco::before, .ep-ticket-deco::after {
  content: ''; position: absolute; top: -8px;
  width: 16px; height: 16px; border-radius: 50%; background: var(--ep-cream);
}
.ep-ticket-deco::before { left: -8px; }
.ep-ticket-deco::after  { right: -8px; }
.ep-ticket-body{ padding: 18px 20px; }
.ep-ticket-info{ display: flex; gap: 14px; margin-bottom: 14px; }
.ep-ticket-photo{
  width: 68px; height: 84px; border-radius: 10px; background: var(--ep-cream-2); flex-shrink: 0;
  background-size: cover; background-position: center;
}
.ep-ticket-meta-lbl { font-size: 11.5px; color: var(--ep-muted); font-weight: 700; letter-spacing: .06em; }
.ep-ticket-meta-name{ font-size: 18px; font-weight: 900; color: var(--ep-ink); letter-spacing: -.02em; margin-top: 2px; }
.ep-ticket-meta-sub { font-size: 12px; color: var(--ep-muted); margin-top: 4px; }
.ep-ticket-grid{
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 12px; background: var(--ep-cream); border-radius: 12px;
}
.ep-ticket-cell-lbl { font-size: 10px; color: var(--ep-muted); font-weight: 700; letter-spacing: .06em; }
.ep-ticket-cell-val { font-size: 13px; font-weight: 800; color: var(--ep-ink); margin-top: 3px; font-family: "SF Mono", monospace; }
.ep-ticket-cell-val.ok { color: var(--ep-success); }
.ep-email-box  {
  margin-top: 16px; padding: 14px 16px; background: var(--ep-cream-2);
  border-radius: var(--ep-radius-card);
}
.ep-email-title{ font-size: 12.5px; font-weight: 800; color: var(--ep-brown-700); margin-bottom: 6px; }
.ep-email-body { font-size: 12px; color: var(--ep-muted); line-height: 1.6; }
.ep-email-addr { color: var(--ep-brown-700); font-weight: 700; }

/* ── 조회 ── */
.ep-err-msg  { font-size: 12.5px; color: var(--ep-danger); margin-top: -10px; margin-bottom: 10px; }
.ep-result-card {
  padding: 18px; background: var(--ep-paper); border-radius: var(--ep-radius-card);
  box-shadow: var(--ep-shadow-card); margin-bottom: 14px;
}
.ep-result-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.ep-result-num-lbl { font-size: 11px; color: var(--ep-muted); font-weight: 800; letter-spacing: .06em; }
.ep-result-num-val { font-size: 16px; font-weight: 900; color: var(--ep-ink); font-family: "SF Mono", monospace; }
.ep-status-badge   { padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.ep-status-ok      { background: #D2F4E6; color: #0F7E54; }
.ep-status-cancel  { background: #FADBD8; color: #A52319; }
.ep-status-wait    { background: #FEF3CD; color: #8A6000; }
.ep-result-rows    { display: flex; flex-direction: column; gap: 8px; }
.ep-result-row     { display: flex; justify-content: space-between; font-size: 13px; }
.ep-result-key     { color: var(--ep-muted); font-weight: 700; }
.ep-result-val     { color: var(--ep-ink); font-weight: 700; }

/* ── 바텀 시트 ── */
.ep-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(31,20,10,.45);
  display: flex; align-items: flex-end; justify-content: center;
}
.ep-overlay.hidden { display: none; }
.ep-sheet {
  width: 100%; max-width: 480px; max-height: 82%;
  background: var(--ep-paper);
  border-radius: var(--ep-radius-card) var(--ep-radius-card) 0 0;
  display: flex; flex-direction: column;
  box-shadow: 0 -8px 40px rgba(0,0,0,.2);
  animation: epSlideUp .28s cubic-bezier(.2,.8,.2,1);
}
.ep-sheet-handle { padding: 12px 0 6px; display: flex; justify-content: center; }
.ep-sheet-handle-bar { width: 40px; height: 4px; border-radius: 2px; background: var(--ep-line); }
.ep-sheet-head {
  padding: 8px 20px 14px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--ep-line);
}
.ep-sheet-title { font-size: 17px; font-weight: 900; color: var(--ep-ink); letter-spacing: -.02em; }
.ep-sheet-close {
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: var(--ep-cream-2); color: var(--ep-brown-700);
  font-size: 18px; cursor: pointer; display: grid; place-items: center;
}
.ep-sheet-body  { flex: 1; overflow-y: auto; padding: 18px 20px 20px; }
.ep-sheet--dragging { animation: none !important; transition: none !important; }
.ep-sheet-foot  { padding: 14px 20px 28px; border-top: 1px solid var(--ep-line); }
.ep-sheet-detail-h { font-size: 12.5px; font-weight: 800; color: var(--ep-primary); margin-bottom: 4px; letter-spacing: .02em; }
.ep-sheet-detail-p { font-size: 14px; color: var(--ep-brown-700); line-height: 1.6; margin-bottom: 16px; }
.ep-branch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ep-branch-btn  {
  padding: 14px 10px; background: var(--ep-cream); color: var(--ep-brown-700);
  border: 1.5px solid var(--ep-line); border-radius: var(--ep-radius-input);
  font-size: 14px; font-weight: 700; font-family: var(--ep-font); cursor: pointer;
}
.ep-branch-btn.active { background: var(--ep-primary); color: #fff; border-color: var(--ep-primary); }

/* ── 업로드 진행바 ── */
.ep-upload-bar-wrap { margin-bottom: 16px; }
.ep-upload-bar {
  width: 100%; height: 8px; background: var(--ep-cream-2);
  border-radius: 999px; overflow: hidden;
}
.ep-upload-bar-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--ep-primary), var(--ep-accent));
  border-radius: 999px; transition: width .3s ease;
}

/* ── 결제 로딩 ── */
.ep-pay-modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(31,20,10,.6); display: grid; place-items: center; padding: 20px;
}
.ep-pay-modal.hidden { display: none; }
.ep-pay-modal-card {
  width: 100%; max-width: 440px; background: var(--ep-paper);
  border-radius: var(--ep-radius-card); padding: 28px 22px; text-align: center;
}
.ep-pay-spinner {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px;
  border: 4px solid var(--ep-cream-2); border-top-color: var(--ep-primary);
  animation: epSpin .8s linear infinite;
}

/* ── 응시구분 라디오 도트 ── */
.ep-type-dot {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--ep-line); background: #fff;
  transition: border-color .15s, background .15s;
}
.ep-type-dot.active {
  border-color: var(--ep-primary); background: var(--ep-primary);
  box-shadow: inset 0 0 0 4px #fff;
}

/* ── 경력증명서 첨부 박스 ── */
.ep-career-wrap {
  border: 2px dashed var(--ep-line); border-radius: 12px;
  padding: 24px 16px; text-align: center; cursor: pointer;
  background: var(--ep-cream); transition: border-color .15s;
  min-height: 80px; display: flex; align-items: center; justify-content: center;
}
.ep-career-wrap:hover { border-color: var(--ep-primary); }
.ep-career-wrap.has-file {
  border-color: var(--ep-primary); border-style: solid; background: var(--ep-primary-050);
}
