/* =========================================================
   이탈 사유 설문 모달 (partials/_exit_survey.html)
   틀은 dialog.doc-modal(app.css)을 쓰고 여기에는 차이만 둔다.
   /static 은 nginx 30d immutable — 수정 시 base.html 의 ?v= 를 올릴 것.
   ========================================================= */

dialog.exit-survey { max-width: 30rem; }

/* doc-modal__inner 는 세로 flex + max-height 다. 폼이 그 사이에 끼므로
   폼도 같은 구조여야 화면이 낮을 때 본문만 스크롤된다. */
.exit-survey__form,
.exit-survey__thanks { display: flex; flex-direction: column; min-height: 0; }
.exit-survey__thanks[hidden],
.exit-survey__form[hidden] { display: none; }

.exit-survey .doc-modal__title { font-size: 1.3rem; }
.exit-survey__lede { font-size: 0.875rem; color: var(--ink-500); margin-bottom: 1rem; }

.exit-survey__options { display: flex; flex-direction: column; gap: 0.4rem; }
.exit-survey__opt {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--ink-900);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.exit-survey__opt:hover { border-color: var(--ink-300); }
.exit-survey__opt input { accent-color: var(--gold-500); flex-shrink: 0; margin: 0; }
.exit-survey__opt:has(input:checked) { border-color: var(--gold-500); background: rgba(212, 168, 75, 0.08); }
.exit-survey__opt:has(input:focus-visible) { outline: 2px solid var(--gold-400); outline-offset: 1px; }

.exit-survey__detail-label {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  color: var(--ink-700);
}
.exit-survey__detail-label span { color: var(--ink-500); }
.exit-survey__detail {
  display: block;
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink-900);
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.5;
  resize: vertical;
}
.exit-survey__detail:focus { outline: none; border-color: var(--gold-500); }
.exit-survey__note { margin-top: 0.6rem; font-size: 0.75rem; color: var(--ink-500); }

/* '이미 가입했어요'는 왼쪽, '보내기'는 오른쪽 */
.exit-survey__foot { justify-content: space-between; }
.exit-survey .btn { padding: 0.7rem 1.4rem; font-size: 0.9rem; }
.exit-survey .btn[disabled] { opacity: 0.45; cursor: not-allowed; }
/* btn--ghost 는 어두운 배경용(글자색 ink-200)이라 밝은 모달에서는 거의 안 보인다.
   탈출 버튼은 또렷해야 하므로 테두리 있는 버튼으로 다시 그린다. */
.exit-survey__foot .btn--ghost {
  border: 1px solid var(--ink-300);
  background: #fff;
  color: var(--ink-700);
  letter-spacing: 0;
}
.exit-survey__foot .btn--ghost:hover { border-color: var(--ink-700); color: var(--ink-900); }
/* 한글 머리말은 넓은 자간이 어색하다 */
.exit-survey .eyebrow { letter-spacing: 0.08em; }

.exit-survey__thanks-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink-900);
  margin-bottom: 0.35rem;
}

@media (max-width: 520px) {
  .exit-survey .doc-modal__head { padding: 1.1rem 1rem 0.8rem 1.5rem; }
  .exit-survey .doc-modal__body { padding: 1rem 1rem 1.1rem 1.5rem; }
  .exit-survey .doc-modal__foot { padding: 0.8rem 1rem 1rem 1.5rem; }
  .exit-survey__opt { padding: 0.55rem 0.7rem; }
}
