/* ── 래퍼 ── */
.report-wrap {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px 60px;
  color: #1a1a1a;
}

/* ── 성공 오버레이 ── */
#report-success {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.report-success-inner {
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  max-width: 340px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  background: #fff;
}
.report-success-inner h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 16px 0 8px;
}
.report-success-inner p {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  margin: 0 0 24px;
}
.report-btn-reset {
  padding: 10px 28px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* ── 행 레이아웃 ── */
.report-row {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding: 32px 0;
  border-bottom: 1px solid #000000;
}
.report-label {
  flex: 0 0 120px;
  font-size: 16px;
  font-weight: 700;
  padding-top: 10px;
}
.report-label .req {
  color: #d32f2f;
  margin-left: 2px;
}
.report-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── 인풋 ── */
.report-input {
  width: 100%;
  max-width: 440px;
  height: 44px;
  padding: 0 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  color: #1a1a1a;
  background: #fff;
  outline: none;
  box-sizing: border-box;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.report-input:focus {
  border-color: #d32f2f;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.08);
}
.report-input::placeholder {
  color: #bbb;
}
.report-input:disabled {
  background: #f5f5f5;
  color: #aaa;
  cursor: not-allowed;
}

/* ── 셀렉트 ── */
.report-select-wrap {
  position: relative;
  max-width: 200px;
}
.report-select {
  width: 100%;
  height: 44px;
  padding: 0 40px 0 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  color: #1a1a1a;
  background: #fff;
  outline: none;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s;
}
.report-select:focus {
  border-color: #000;
}
.sel-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* ── 라디오 / 체크박스 ── */
.report-radio-grid {
  display: grid;
  grid-template-columns: repeat(5, auto);
  gap: 12px 28px;
  justify-content: start;
}
.report-radio {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  user-select: none;
}
.report-radio input {
  display: none;
}
.r-dot {
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.r-dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d32f2f;
  opacity: 0;
  transition: opacity 0.15s;
}
.r-chk {
  border-radius: 4px;
}
.report-radio input:checked ~ .r-dot {
  border-color: #d32f2f;
}
.report-radio input:checked ~ .r-dot::after {
  opacity: 1;
}

/* ── 텍스트에어리어 ── */
.report-textarea {
  width: 100%;
  min-height: 260px;
  padding: 14px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  color: #1a1a1a;
  background: #fafafa;
  outline: none;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.report-textarea:focus {
  border-color: #000;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.08);
}
.report-textarea::placeholder {
  color: #bbb;
}
.report-hints p {
  font-size: 12.5px;
  color: #888;
  margin: 3px 0;
  line-height: 1.6;
}

/* ── 파일 ── */
.report-wrap .report-file-btn {
  display: inline-flex !important;
  align-items: center;
  height: 40px;
  padding: 0 22px;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  text-decoration: none;
  background: #fff;
  box-sizing: border-box;
  line-height: 1;
}
.report-wrap .report-file-btn:hover {
  border-color: #000;
  color: #d32f2f;
  background: #fff5f5;
}

#report-file-list {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  min-height: 0;
}

#report-file-list .f-item {
  display: flex !important;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #f5f5f5 !important;
  border-radius: 6px;
  font-size: 13px;
  color: #555 !important;
  line-height: 1.4;
  border: none;
  margin: 0;
  list-style: none;
}

#report-file-list .f-item span {
  display: inline !important;
  color: #555 !important;
  font-size: 13px !important;
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#report-file-list .f-remove {
  cursor: pointer;
  color: #aaa !important;
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
}
#report-file-list .f-remove:hover {
  color: #d32f2f !important;
}

/* ── 제보자 정보 ── */
.report-reporter {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 600px;
}
.reporter-field {
  display: flex;
  align-items: center;
  gap: 16px;
}
.reporter-label {
  flex: 0 0 56px;
  font-size: 14px;
  color: #444;
  font-weight: 500;
}
.reporter-field .report-input {
  flex: 1;
  max-width: 100%;
}
.report-anon {
  margin-top: 8px;
}

/* ── 에러 ── */
.report-error {
  text-align: center;
  color: #d32f2f;
  font-size: 13.5px;
  padding: 10px 16px;
  background: #fff5f5;
  border: 1px solid #ffcdd2;
  border-radius: 8px;
  margin-top: 12px;
}

/* ── 제출 버튼 ── */
.report-submit-wrap {
  display: flex;
  justify-content: center;
  padding: 48px 0 0;
}
.report-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 64px;
  height: 52px;
  background: #d32f2f;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.1s;
  letter-spacing: 0.02em;
}
.report-submit:hover {
  background: #b71c1c;
}
.report-submit:active {
  transform: scale(0.98);
}
.report-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.spin-icon {
  animation: spin 0.8s linear infinite;
}

/* ── 반응형 ── */
@media (max-width: 680px) {
  .report-row {
    flex-direction: column;
    gap: 12px;
    padding: 24px 0;
  }
  .report-label {
    flex: none;
    padding-top: 0;
  }
  .report-radio-grid {
    grid-template-columns: repeat(2, auto);
  }
  .report-input {
    max-width: 100%;
  }
}

/* ============================
   모달
   ============================ */
body.report-modal-open {
  overflow: hidden;
}

.report-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.report-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.report-modal-box {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
  padding: 36px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  animation: modalIn 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* 아이콘 */
.report-modal-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.report-modal-icon--warn {
  background: #fffbeb;
}
.report-modal-icon--info {
  background: #eff6ff;
}

/* 제목 */
.report-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin: 0 0 16px;
  line-height: 1.4;
}

/* 본문 */
.report-modal-body {
  margin-bottom: 24px;
}

.report-modal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 0;
  margin: 0;
}

.report-modal-list li {
  font-size: 13.5px;
  color: #444;
  line-height: 1.7;
  padding-left: 18px;
  position: relative;
}

.report-modal-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: #aaa;
}

.report-modal-list li strong {
  color: #111;
  font-weight: 600;
}

/* 개인정보 테이블 */
.report-privacy-table {
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 4px;
  font-size: 13px;
}

.report-privacy-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  text-align: center;
}

.report-privacy-head {
  background: #f5f5f5;
  font-weight: 700;
  color: #555;
}

.report-privacy-row span {
  padding: 10px 8px;
  border-right: 1px solid #e8e8e8;
  color: #333;
  line-height: 1.6;
}

.report-privacy-row span:last-child {
  border-right: none;
}
.report-privacy-head span {
  border-bottom: 1px solid #e8e8e8;
}

/* 동의 안내 문구 */
.report-modal-agree-text {
  font-size: 12.5px;
  color: #888;
  margin: 14px 0 0;
  line-height: 1.6;
  padding: 10px 14px;
  background: #f9f9f9;
  border-radius: 8px;
  border-left: 3px solid #ddd;
}

/* 버튼 영역 */
.report-modal-actions {
  display: flex;
  gap: 10px;
}

.report-modal-btn {
  flex: 1;
  height: 48px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: "Noto Sans KR", sans-serif;
  cursor: pointer;
  transition: all 0.16s;
}

.report-modal-btn--cancel {
  background: #f3f3f3;
  color: #666;
}
.report-modal-btn--cancel:hover {
  background: #e8e8e8;
  color: #333;
}

.report-modal-btn--confirm {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.25);
}
.report-modal-btn--confirm:hover {
  background: var(--red-dark);
  box-shadow: 0 6px 16px rgba(211, 47, 47, 0.35);
}

@media (max-width: 480px) {
  .report-modal-box {
    padding: 28px 20px 22px;
  }
  .report-modal-title {
    font-size: 16px;
  }
  .report-modal-btn {
    font-size: 14px;
    height: 44px;
  }
}
