/* public/css/harassment.css
   ★ Phase M-6: 악성민원 신고 페이지 스타일 */

/* ===== 페이지 컨테이너 ===== */
.harass-wrap {
  max-width: 880px;
  margin: 0 auto;
}

.harass-intro {
  background: linear-gradient(135deg, #fff 0%, #fef9f5 100%);
  border: 2px solid var(--brand);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 30px;
}

.harass-intro h2 {
  font-family: 'Noto Serif KR', serif;
  font-size: 20px;
  color: var(--brand);
  margin: 0 0 10px;
}

.harass-intro p {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.85;
  margin: 0 0 6px;
}

.harass-intro .badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.harass-intro .badge-row .b {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: rgba(122, 31, 43, 0.08);
  color: var(--brand);
  border-radius: 14px;
  font-size: 11.5px;
  font-weight: 600;
}

/* ===== 단계 표시 ===== */
.harass-steps {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.harass-step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #f3f4f6;
  border-radius: 24px;
  color: var(--text-3);
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.2s;
}

.harass-step-indicator.active {
  background: var(--brand);
  color: #fff;
}

.harass-step-indicator.done {
  background: #10b981;
  color: #fff;
}

.harass-step-indicator .num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}

.harass-step-indicator:not(.active):not(.done) .num {
  background: var(--text-4, #d1d5db);
  color: #fff;
}

@media (max-width: 600px) {
  .harass-steps {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
  }
  .harass-step-indicator {
    flex-shrink: 0;
    font-size: 11.5px;
    padding: 8px 12px;
  }
}

/* ===== 폼 카드 ===== */
.harass-form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 36px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.harass-form-card h3 {
  font-family: 'Noto Serif KR', serif;
  font-size: 18px;
  margin: 0 0 6px;
  color: var(--ink);
}

.harass-form-card .sub {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.7;
  margin: 0 0 24px;
}

.harass-form-card .fg {
  margin-bottom: 18px;
}

.harass-form-card label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
}

.harass-form-card label .req {
  color: #dc2626;
}

.harass-form-card label .hint {
  font-weight: 400;
  color: var(--text-3);
  font-size: 11.5px;
  margin-left: 4px;
}

.harass-form-card input[type="text"],
.harass-form-card input[type="datetime-local"],
.harass-form-card input[type="date"],
.harass-form-card select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
  font-family: inherit;
  background: #fff;
}

.harass-form-card input[type="text"]:focus,
.harass-form-card input[type="datetime-local"]:focus,
.harass-form-card input[type="date"]:focus,
.harass-form-card select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(122, 31, 43, 0.08);
}

/* ===== 카테고리 라디오 그리드 ===== */
/* ★ 2026-05 패치: 5개 항목 깔끔한 배치 + 정렬 깨짐 방지 */
.harass-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

@media (min-width: 720px) {
  .harass-cat-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (max-width: 480px) {
  .harass-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.harass-cat-grid label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 14px 12px !important;
  border: 2px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  margin: 0;
  font-weight: 500;
  font-size: 13px;
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
}

.harass-cat-grid label:hover {
  border-color: var(--brand);
  background: #fefcfa;
}

.harass-cat-grid input[type="radio"] {
  margin: 0 !important;
  flex: 0 0 auto !important;
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--brand);
}

.harass-cat-grid input[type="radio"]:checked + .cat-icon + .cat-label,
.harass-cat-grid input[type="radio"]:checked ~ .cat-label {
  color: var(--brand);
  font-weight: 700;
}

.harass-cat-grid label:has(input:checked) {
  border-color: var(--brand);
  background: linear-gradient(135deg, #fff, #fef9f5);
}

.harass-cat-grid .cat-icon {
  font-size: 18px;
  flex: 0 0 auto;
}

.harass-cat-grid .cat-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== 빈도 라디오 (수평) ===== */
.harass-freq-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.harass-freq-row label {
  flex: 1;
  min-width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  margin: 0;
  font-weight: 500;
  font-size: 12.5px;
}

.harass-freq-row label:hover {
  border-color: var(--brand);
}

.harass-freq-row label:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.harass-freq-row input[type="radio"] {
  display: none;
}

/* ===== 액션 버튼 ===== */
/* ★ 2026-05 패치: a/button 정렬 통일 */
.harass-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.harass-actions .btn-cancel,
.harass-actions .btn-submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px 26px !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  font-family: inherit !important;
  transition: all 0.15s !important;
  text-decoration: none !important;
  line-height: 1.2 !important;
  height: auto !important;
  min-height: 44px;
  box-sizing: border-box;
}

.harass-actions .btn-cancel {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--line);
}

.harass-actions .btn-cancel:hover {
  background: var(--bg-soft);
  color: var(--text-1);
}

.harass-actions .btn-submit {
  background: var(--brand);
  color: #fff;
  border: none;
}

.harass-actions .btn-submit:hover:not(:disabled) {
  background: #5a1620;
}

.harass-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== AI 분석 결과 화면 (STEP 2) ===== */
.harass-ai-result {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 36px;
}

.harass-ai-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.harass-ai-header .label {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 4px;
}

.harass-ai-header .num {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.5px;
}

.harass-ai-header h3 {
  font-family: 'Noto Serif KR', serif;
  font-size: 20px;
  margin: 12px 0 6px;
  color: var(--ink);
}

.harass-ai-header p {
  font-size: 13px;
  color: var(--text-3);
  margin: 0;
}

.harass-severity-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 18px;
}
.harass-severity-banner.critical { background: #fee2e2; border: 2px solid #ef4444; }
.harass-severity-banner.high     { background: #ffedd5; border: 2px solid #f97316; }
.harass-severity-banner.medium   { background: #fef3c7; border: 1px solid #f59e0b; }
.harass-severity-banner.low      { background: #dbeafe; border: 1px solid #3b82f6; }

.harass-severity-banner .icon { font-size: 32px; }
.harass-severity-banner .text .label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.harass-severity-banner .text .level {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.harass-ai-block {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 14px;
}

.harass-ai-block .b-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.harass-ai-block .b-content {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.75;
}

/* 법적 검토 / 심리지원 배지 */
.harass-flags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.harass-flag-card {
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.harass-flag-card.needed {
  border-color: var(--brand);
  background: linear-gradient(135deg, #fff, #fef9f5);
}

.harass-flag-card .icon {
  font-size: 28px;
  flex-shrink: 0;
}

.harass-flag-card .text {
  flex: 1;
  min-width: 0;
}

.harass-flag-card .title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--ink);
}

.harass-flag-card .status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
}

.harass-flag-card.needed .status {
  background: var(--brand);
  color: #fff;
}

.harass-flag-card:not(.needed) .status {
  background: #e5e7eb;
  color: var(--text-3);
}

.harass-flag-card .reason {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .harass-flags { grid-template-columns: 1fr; }
}

/* 결정 박스 */
.harass-decision {
  background: linear-gradient(135deg, #fef9f5, #fff);
  border: 2px solid var(--brand);
  border-radius: 10px;
  padding: 22px 24px;
  margin-top: 22px;
}

.harass-decision h4 {
  font-family: 'Noto Serif KR', serif;
  font-size: 16px;
  color: var(--brand);
  margin: 0 0 8px;
}

.harass-decision p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.75;
  margin: 0 0 16px;
}

.harass-decision .decision-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.harass-decision .decision-buttons button {
  flex: 1;
  min-width: 220px;
  padding: 13px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.15s;
}

.harass-decision .btn-siren {
  background: var(--brand);
  color: #fff;
}
.harass-decision .btn-siren:hover { background: #5a1620; }

.harass-decision .btn-ai-only {
  background: #fff;
  color: var(--text-2);
  border: 1px solid var(--line);
}
.harass-decision .btn-ai-only:hover { background: #f3f4f6; }

@media (max-width: 600px) {
  .harass-decision .decision-buttons button { min-width: auto; }
}

/* ===== 완료 화면 (STEP 3) ===== */
.harass-final {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 50px 30px;
  text-align: center;
}

.harass-final .icon {
  font-size: 64px;
  margin-bottom: 14px;
}

.harass-final h3 {
  font-family: 'Noto Serif KR', serif;
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--ink);
}

.harass-final p {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.85;
  margin: 0 0 28px;
}

.harass-final .button-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===== 반응형 ===== */
@media (max-width: 700px) {
  .harass-form-card,
  .harass-ai-result {
    padding: 22px 20px;
  }
  .harass-intro {
    padding: 22px 20px;
  }
}