/* 독백 영상 무료 촬영 신청 — 첫 방문 팝업 → 닫으면 오른쪽 아래 상시 버튼 */

.ap-backdrop { position: fixed; inset: 0; z-index: 900; background: rgba(8, 8, 6, .62); opacity: 0; transition: opacity .35s var(--ease); }
.ap-backdrop.on { opacity: 1; }

.ap-card {
  position: fixed; z-index: 901; left: 50%; top: 50%;
  width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto;
  transform: translate(-50%, -50%);
  background: var(--tile); color: var(--ink); border: 1px solid var(--line-2); border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  transform-origin: center; transition: opacity .3s var(--ease);
}
.ap-card[hidden], .ap-backdrop[hidden], .ap-fab[hidden] { display: none; }
.ap-inner { padding: 28px 26px 24px; display: grid; gap: 16px; }
.ap-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--sub-2); font-size: 16px; }
.ap-close:hover { color: var(--ink); border-color: var(--sub); }

.ap-tag { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--accent); }
.ap-title { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 6vw, 32px); line-height: 1.15; letter-spacing: -.01em; }
.ap-title em { font-style: normal; color: var(--accent); }
.ap-text { color: var(--sub-2); font-size: 15px; line-height: 1.65; }
.ap-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; color: var(--sub-2); }
.ap-points li::before { content: "— "; color: var(--accent); }
.ap-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ap-btn { flex: 1 1 auto; border-radius: 999px; padding: 13px 18px; font-size: 15px; font-weight: 600; border: 1px solid var(--line-2); background: transparent; color: var(--ink); }
.ap-btn.solid { background: var(--accent); border-color: var(--accent); color: #140A04; }
.ap-btn:disabled { opacity: .5; cursor: default; }

/* 신청 양식 */
.ap-form { display: grid; gap: 12px; }
.ap-field { display: block; font-size: 13px; color: var(--sub-2); }
.ap-field > input, .ap-field > textarea, .ap-field > .ap-chips { margin-top: 5px; }
.ap-field b { color: var(--accent); font-weight: 500; }
.ap-field input, .ap-field textarea { width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font: inherit; font-size: 15px; }
.ap-field textarea { min-height: 72px; resize: vertical; }
.ap-field input:focus, .ap-field textarea:focus { outline: none; border-color: var(--accent); }
.ap-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .ap-row { grid-template-columns: 1fr; } }
.ap-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-chips label { position: relative; }
.ap-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ap-chips span { display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--sub-2); cursor: pointer; }
.ap-chips input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ap-chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.ap-agree { display: grid; gap: 8px; padding: 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; color: var(--sub-2); }
.ap-agree label { display: flex; gap: 8px; align-items: flex-start; line-height: 1.5; }
.ap-agree input { margin-top: 3px; accent-color: var(--accent); }
.ap-agree small { display: block; color: var(--sub); font-size: 12px; }
.ap-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ap-err { color: #FF8A6A; font-size: 13px; }
.ap-inner.ap-done { text-align: center; padding-top: 34px; }

/* 상시 버튼 */
.ap-fab {
  position: fixed; z-index: 880; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 18px 12px 14px; border-radius: 999px;
  background: var(--ink); color: var(--bg); border: 0;
  font-size: 14px; font-weight: 600; box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  transition: transform .25s var(--ease), opacity .3s var(--ease);
}
.ap-fab:hover { transform: translateY(-2px); }
.ap-fab i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 90, 31, .25); font-style: normal; }
.ap-fab.pop { animation: ap-pop .5s var(--ease); }
@keyframes ap-pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }
@media (max-width: 600px) { .ap-fab { right: 12px; left: 12px; justify-content: center; } }

@media (prefers-reduced-motion: reduce) { .ap-backdrop, .ap-card, .ap-fab { transition: none; animation: none; } }

/* 프로필 사진 */
.ap-hint { color: var(--sub); font-size: 12px; }
.ap-photos { display: flex; gap: 8px; margin-top: 6px; }
.ap-thumb, .ap-add { position: relative; width: 76px; height: 96px; border-radius: 10px; overflow: hidden; flex: none; }
.ap-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ap-thumb.loading img { opacity: .4; }
.ap-thumb button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; }
.ap-add { display: grid; place-items: center; border: 1px dashed var(--line-2); background: var(--bg); color: var(--sub-2); font-size: 13px; cursor: pointer; }
.ap-add[hidden] { display: none; }
.ap-add input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ap-add:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
