/* ==========================================================================
   Contact > 자주 묻는 질문 (Figma 1:3037) — page body only
   Hero head comes from sp-common.css (.sp-hero); the design has no image stage,
   so the pill tabs sit on white below the head (light variant, .faq-tabs).
   ========================================================================== */

/* ---------- Hero tabs (1:3091) ---------- */
.faq-tabs {
  display: flex;
  justify-content: center;
  padding: clamp(40px, 5.573vw, 107px) 16px 40px;
}
.faq-page .faq-tabs .sp-pill-tabs {
  position: static;
  transform: none;
  background: rgba(255, 255, 255, 0.94);
}
.faq-page .faq-tabs .sp-pill-tab { color: #444; }
.faq-page .faq-tabs .sp-pill-tab:hover { background: #f2f4f8; color: #111; }
.faq-page .faq-tabs .sp-pill-tab.is-active { background: var(--sp-navy); color: #fff; }

/* ---------- Main content (1:3096) ---------- */
.faq-main {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: clamp(64px, 6.25vw, 120px) 0;
  background: #f8f8f8;
}

/* Neutralise legacy style.css `section {padding:100px 0}` and
   `section:not(.hero)... > * {max-width:1440px; padding-inline:40px}` */
.faq-page .faq-main section.sp-container { padding: 0; }
.faq-page .faq-main section.sp-container > * {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
.faq-page .faq-main section.sp-container > .faq-head,
.faq-page .faq-main section.sp-container > .faq-list {
  padding-left: 0;
  padding-right: 0;
}
.faq-page .faq-main section.sp-container > .faq-def {
  padding-left: clamp(20px, 2.083vw, 40px);
  padding-right: clamp(20px, 2.083vw, 40px);
}

/* 01 / Intro (1:3097) */
.faq-intro {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.faq-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-head-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.faq-title {
  font-weight: 600;
  font-size: clamp(32px, 2.917vw, 56px);
  line-height: 1.3;
  letter-spacing: -0.04em;
  color: #111;
}
.faq-desc {
  font-weight: 500;
  font-size: clamp(16px, 1.042vw, 20px);
  line-height: 1.6;
  letter-spacing: -0.03em;
  color: #333;
  word-break: keep-all;
}

.faq-def {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 30px clamp(20px, 2.083vw, 40px);
  background: #fff;
  border-left: 4px solid var(--sp-navy);
}
.faq-def-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-def-item h3 {
  font-weight: 600;
  font-size: clamp(17px, 1.042vw, 20px);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #111;
}
.faq-def-item p {
  font-size: clamp(15px, 0.9375vw, 18px);
  line-height: 1.7;
  letter-spacing: -0.015em;
  color: #666;
  word-break: keep-all;
}

/* 02 / Accordion list (1:3113) */
.faq-list {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ebedf1;
  border-radius: 20px;
  overflow: hidden;
}
.faq-acc + .faq-acc { border-top: 1px solid #ebedf1; }
.faq-acc-btn {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 28px clamp(16px, 1.667vw, 32px);
  border: 0;
  background: #fff;
  font: inherit;
  text-align: left;
  color: #111;
  cursor: pointer;
}
.faq-acc-btn:hover { background: #fbfbfc; }
.faq-acc-btn:focus-visible { outline: 2px solid var(--sp-navy); outline-offset: -2px; }
.faq-num {
  flex-shrink: 0;
  width: 48px;
  font-family: var(--sp-font-en);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: #888;
}
.faq-acc-q {
  flex: 1 1 0;
  min-width: 0;
  font-weight: 500;
  font-size: clamp(16px, 0.9375vw, 18px);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #111;
  word-break: keep-all;
}
.faq-chevron {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}
/* .sp-page img {display:block} (0,1,1) would otherwise show both arrows */
.faq-acc .faq-chevron--up { display: none; }
.faq-acc.is-open .faq-chevron--down { display: none; }
.faq-acc.is-open .faq-chevron--up { display: block; }
.faq-acc.is-open .faq-num,
.faq-acc.is-open .faq-acc-q { color: var(--sp-navy); }

.faq-acc-panel {
  padding: 28px clamp(16px, 1.667vw, 32px) 28px 104px;
  background: #f8f8f8;
  border-top: 1px solid #ebedf1;
}
.faq-acc-panel[hidden] { display: none; }
.faq-acc-panel p {
  font-size: clamp(15px, 0.833vw, 16px);
  line-height: 1.6;
  letter-spacing: -0.03em;
  color: #333;
  word-break: keep-all;
}

.faq-loading,
.faq-empty {
  padding: 40px 32px;
  font-size: 15px;
  color: #888;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .faq-desc br { display: none; }
}
@media (max-width: 768px) {
  .faq-intro { gap: 28px; }
  .faq-main { gap: 28px; }
  .faq-def { padding: 24px 20px; gap: 20px; }
  .faq-acc-btn { gap: 12px; padding: 20px 16px; }
  .faq-num { width: 28px; }
  .faq-acc-panel { padding: 20px 16px 20px 56px; }
  .faq-list { border-radius: 14px; }
}
@media (max-width: 600px) {
  .faq-tabs { padding-top: 32px; padding-bottom: 32px; }
  .faq-acc-panel { padding-left: 16px; }
}
@media (max-width: 430px) {
  /* keep all four tabs visible without internal scroll at 390 */
  .faq-page .faq-tabs .sp-pill-tab { padding-left: 12px; padding-right: 12px; }
}
