/* faq.html 전용 스타일 */

.faq-search {
  margin: 22px 0 8px;
}

.faq-search input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
}

.faq-search input:focus {
  outline: none;
  background: #fff;
  border-color: var(--point);
  box-shadow: 0 0 0 3px rgba(240, 107, 155, 0.15);
}

.faq-empty {
  margin: 20px 0;
  text-align: center;
  color: var(--subtext);
}

.faq-group {
  margin-top: 30px;
}

.faq-group-title {
  margin: 0 0 8px;
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  position: relative;
  padding: 16px 40px 16px 30px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: 'Q';
  position: absolute;
  left: 4px;
  top: 16px;
  font-weight: 800;
  color: var(--point);
}

.faq-item summary::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 22px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--subtext);
  border-bottom: 2px solid var(--subtext);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
  top: 26px;
}

.faq-item summary:hover {
  color: var(--point-dark);
}

.faq-answer {
  padding: 2px 8px 18px 30px;
  font-size: 15px;
  line-height: 1.8;
  color: #4a4250;
}

.faq-answer p {
  margin: 0 0 8px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-table {
  width: 100%;
  margin-top: 8px;
  border-collapse: collapse;
  font-size: 14px;
}

.faq-table th,
.faq-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.faq-table th {
  background: var(--soft);
}

.faq-table td:first-child {
  white-space: nowrap;
  font-weight: 700;
}

/* 검토 전 확인이 필요한 정보 (공개 전에 채우고 지우기) */
.todo {
  padding: 0 4px;
  border-radius: 4px;
  background: #ffe066;
  font-weight: 700;
}

.faq-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #fff8dc;
}

.faq-more p {
  margin: 0;
  font-weight: 700;
}

.faq-more a {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--point);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.faq-more a:hover {
  background: var(--point-dark);
}

@media (prefers-reduced-motion: reduce) {
  .faq-item summary::after {
    transition: none;
  }
}

.faq-steps {
  margin: 4px 0 10px;
  padding-left: 20px;
}

.faq-steps li {
  margin-bottom: 4px;
}

.faq-example {
  margin: 10px 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--blush);
  line-height: 1.75;
}

.faq-more-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.faq-more a.is-kakao {
  background: #fee500;
  color: #191600;
}

.faq-more a.is-kakao:hover {
  background: #f5dc00;
}
