@charset "UTF-8";

/* 문의 공통 레이아웃 */
.inquiry-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 36px 20px 60px;
}

.inquiry-wrap {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.inquiry-head {
  padding: 32px 32px 20px;
  border-bottom: 1px solid #f1f3f5;
  background: linear-gradient(180deg, #fcfcfc 0%, #ffffff 100%);
}

.inquiry-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.inquiry-title {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  color: #111827;
}

.inquiry-desc {
  margin: 12px 0 0;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.7;
}

.inquiry-body {
  padding: 28px 32px 34px;
}

/* 폼 레이아웃 */
.inquiry-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.inquiry-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inquiry-form-group.full {
  grid-column: 1 / -1;
}

.inquiry-label-text {
  font-size: 14px;
  font-weight: 700;
  color: #374151;
}

.inquiry-input,
.inquiry-select,
.inquiry-textarea,
.inquiry-password-input {
  width: 100%;
  border: 1px solid #dcdfe4;
  border-radius: 14px;
  background: #fff;
  padding: 14px 16px;
  font-size: 15px;
  color: #111827;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.inquiry-input:focus,
.inquiry-select:focus,
.inquiry-textarea:focus,
.inquiry-password-input:focus {
  outline: none;
  border-color: #c4c9d4;
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.05);
}

.inquiry-textarea {
  min-height: 220px;
  resize: vertical;
  line-height: 1.7;
}

.inquiry-help {
  margin-top: 4px;
  font-size: 13px;
  color: #6b7280;
}

.inquiry-error {
  margin-top: 2px;
  font-size: 13px;
  color: #dc2626;
}

/* 체크박스 */
.inquiry-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.inquiry-check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #111827;
}

.inquiry-check-row label {
  font-size: 14px;
  color: #374151;
  cursor: pointer;
}

/* 버튼 */
.inquiry-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.inquiry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.inquiry-btn:hover {
  transform: translateY(-1px);
}

.inquiry-btn-primary {
  background: #111827;
  color: #fff;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.14);
}

.inquiry-btn-primary:hover {
  background: #0f172a;
  color: #fff;
}

.inquiry-btn-secondary {
  background: #fff;
  color: #374151;
  border-color: #d7dbe2;
}

.inquiry-btn-secondary:hover {
  background: #f9fafb;
  color: #111827;
}

/* 비밀번호 확인 / 안내 카드 */
.inquiry-info-box {
  margin-bottom: 22px;
  padding: 18px 20px;
  border: 1px solid #eceff3;
  border-radius: 16px;
  background: #f9fafb;
}

.inquiry-info-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inquiry-info-item {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
}

.inquiry-info-item strong {
  color: #111827;
  margin-right: 6px;
}

/* 상세 페이지 */
.inquiry-detail-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.inquiry-meta {
  margin-bottom: 24px;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.7;
}

.inquiry-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef2f7;
  color: #374151;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.inquiry-content-box,
.inquiry-reply-box {
  border: 1px solid #ececec;
  border-radius: 18px;
  background: #fff;
  padding: 22px 22px;
  line-height: 1.8;
  color: #222;
  white-space: pre-wrap;
}

.inquiry-section {
  margin-top: 24px;
}

.inquiry-section-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  color: #111827;
}

.inquiry-empty-reply {
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px dashed #d8dde6;
  border-radius: 16px;
  background: #fafafa;
  color: #6b7280;
  font-size: 14px;
}

/* 안내 페이지 */
.inquiry-notice {
  text-align: center;
  padding: 8px 0 4px;
}

.inquiry-notice .inquiry-desc {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* 메시지 */
.inquiry-alert {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.6;
}

.inquiry-alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.inquiry-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.inquiry-alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

/* 반응형 */
@media (max-width: 768px) {
  .inquiry-page {
    padding: 24px 16px 44px;
  }

  .inquiry-head {
    padding: 24px 20px 18px;
  }

  .inquiry-body {
    padding: 22px 20px 24px;
  }

  .inquiry-title {
    font-size: 24px;
  }

  .inquiry-form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .inquiry-detail-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .inquiry-btn-row {
    flex-direction: column;
  }

  .inquiry-btn {
    width: 100%;
  }
}