/* 부동산맥 custom styles */

html {
  scroll-behavior: smooth;
}

.hero-bg {
  background: radial-gradient(ellipse at top right, #e9fbfc 0%, #ffffff 55%);
}

.hero-card {
  border: 1px solid #eef2f6;
}

.float-badge {
  animation: float 4s ease-in-out infinite;
}
.float-badge-2 {
  animation: float 4s ease-in-out infinite 1.2s;
}
.float-badge-3 {
  animation: float 4s ease-in-out infinite 2.4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.animate-bounce-slow {
  display: inline-block;
  animation: bounce-slow 2s infinite;
}
@keyframes bounce-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.step-card {
  border: 1px solid #eef2f6;
  transition: transform .2s ease, box-shadow .2s ease;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -10px rgba(20,184,196,0.25);
}

.step-num {
  position: absolute;
  top: 14px;
  right: 18px;
  font-weight: 900;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.pulse-line {
  width: 220px;
  height: 30px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='30' viewBox='0 0 220 30'><polyline points='0,15 60,15 75,3 90,27 105,15 220,15' fill='none' stroke='%2314b8c4' stroke-width='2'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.6;
}

/* 관리자 에디터 */
.editor-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #475569;
  font-size: 12px;
  transition: background .15s ease, color .15s ease;
  border: none;
  background: transparent;
  cursor: pointer;
}
.editor-btn:hover {
  background: #e6fbfc;
  color: #0e8f9a;
}
.editor-btn.active {
  background: #14b8c4;
  color: #fff;
}

/* 제목 버튼 (H1/H2/H3) — 너비 살짝 넓게 */
.editor-heading-btn {
  width: 30px;
  letter-spacing: -.02em;
}

/* 글자 크기 셀렉트 */
.editor-select {
  height: 28px;
  padding: 0 4px 0 6px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 11px;
  font-family: 'Noto Sans KR', sans-serif;
  color: #475569;
  background: #fff;
  cursor: pointer;
  outline: none;
  transition: border-color .15s;
}
.editor-select:hover, .editor-select:focus {
  border-color: #14b8c4;
  color: #0e8f9a;
}

/* 색상 버튼 그룹 */
.editor-color-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.editor-color-btn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s, border-color .15s;
  padding: 0;
  outline: none;
}
.editor-color-btn:hover {
  transform: scale(1.25);
  border-color: rgba(0,0,0,.15);
}

#report-editor[contenteditable="true"]:empty:before {
  content: attr(data-placeholder);
  color: #9ca3af;
  pointer-events: none;
}

.prose-report h1 {
  font-weight: 900;
  font-size: 1.35rem;
  color: #16264a;
  margin: 1.3em 0 0.5em;
  padding-bottom: 0.3em;
  border-bottom: 2px solid #14b8c4;
  line-height: 1.3;
}
.prose-report h2 {
  font-weight: 800;
  font-size: 1.15rem;
  color: #16264a;
  margin: 1.2em 0 0.5em;
  padding-left: 0.7em;
  border-left: 3px solid #14b8c4;
  line-height: 1.35;
}
.prose-report h3 {
  font-weight: 700;
  font-size: 1.05rem;
  color: #16264a;
  margin: 1.1em 0 0.5em;
}
.prose-report p {
  margin: 0.6em 0;
}
.prose-report hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 1.4em 0;
}
.prose-report ul, .prose-report ol {
  margin: 0.6em 0;
  padding-left: 1.4em;
}
.prose-report ul { list-style: disc; }
.prose-report ol { list-style: decimal; }
.prose-report strong { color: #16264a; }
.prose-report em { color: #0e8f9a; font-style: normal; font-weight: 600; }
.prose-report blockquote {
  margin: 1.2em 0;
  padding: 1em 1.2em;
  border-left: 4px solid #14b8c4;
  background: #f0fbfc;
  border-radius: 0 12px 12px 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #16264a;
}
.prose-report blockquote::before {
  content: '📨 고객 발송용 답변 문구';
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #14b8c4;
  margin-bottom: 0.5em;
  letter-spacing: 0.03em;
}

.inquiry-row {
  cursor: pointer;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color .15s ease, background .15s ease;
}
.inquiry-row:hover {
  border-color: #14b8c4;
  background: #f0fbfc;
}
.inquiry-row.active {
  border-color: #14b8c4;
  background: #e6fbfc;
}

/* 상담 방식 선택 토글 */
.inquiry-mode-btn {
  border-color: #e5e7eb;
  color: #94a3b8;
  background: #fff;
}
.inquiry-mode-btn i {
  color: #cbd5e1;
}
.inquiry-mode-btn.active {
  border-color: #14b8c4;
  background: #e6fbfc;
  color: #16264a;
}
.inquiry-mode-btn.active i {
  color: #14b8c4;
}
.inquiry-mode-btn.active .text-slate-400 {
  color: #0e8f9a !important;
}

/* 관리자 탭 */
.admin-tab {
  color: #94a3b8;
  background: transparent;
}
.admin-tab.active {
  background: #fff;
  color: #16264a;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

/* 후기 테이블 행 */
#reviews-tbody tr {
  border-top: 1px solid #f1f5f9;
  transition: background .12s;
}
#reviews-tbody tr:hover { background: #f8fafc; }

/* FAQ accordion */
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding-top: 0;
  padding-bottom: 0;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding-bottom: 1rem;
}
.faq-item.open .faq-q i {
  transform: rotate(180deg);
}
