/* common.css — compiled from scss/common.scss */

/* ── Design Tokens */
:root {
  /* Primary */
  --primary:       #1467C1;
  --primary-hover: #2A70F3;
  --primary-light: #3D80FF;
  --primary-dark:  #0f52a0;
  --primary-rgb:   20, 103, 193;

  /* Text */
  --text:          #101010;
  --text-sub:      #444444;
  --text-muted:    #888888;
  --text-disabled: #aaaaaa;

  /* Background */
  --white:         #FFFFFF;
  --bg-section:    #F7FAFC;
  --bg-card:       #F2F7FD;
  --bg-blue-light: #E1EBF6;

  /* Border */
  --border:        #DEE5EC;
  --border-light:  #E8EDF5;
  --border-dark:   #C8D5E2;
}

.vi_hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}


/* ── 기본 리셋 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 19px; scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Segoe UI', Roboto, sans-serif;
  font-size: 18px;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  word-break: keep-all;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; outline: none; }

/* ── 성별 선택 라디오 (CSS only, JS 없음) */
.btn-gender-group { display: inline-flex; gap: 8px; }
#csGender input[type="radio"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
#csGender .btn-gender { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }

/* ── 컨테이너 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── 버튼 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.4);
  animation: ripple-anim 0.6s linear;
  pointer-events: none;
}
.btn--primary {
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
}
.btn--primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn--primary:active { background: var(--primary-dark); }
.btn--outline {
  background: var(--white);
  color: var(--text);
  border: 2px solid var(--border);
}
.btn--outline:hover { border-color: var(--primary); color: var(--primary); }
.btn--white {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--white);
  font-weight: 700;
}
.btn--white:hover { background: rgba(255,255,255,0.9); }
.btn--full { width: 100%; }

@keyframes ripple-anim {
  0%   { transform: scale(0); opacity: 0.6; }
  100% { transform: scale(4); opacity: 0; }
}

/* ── 성별 버튼 */
.btn-gender {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.18);
  color: var(--white);
  border: none;
  transition: background 0.25s ease;
  cursor: pointer;
}
.btn-gender.active,
.btn-gender:hover {
  background: var(--white);
  color: var(--primary);
}

/* ── 텍스트 유틸 */
.text-primary { color: var(--primary); }
.text-gray    { color: var(--text-sub); }
.text-light   { color: var(--text-muted); }
.text-red     { color: #FF0000; }

/* ── AOS 애니메이션 */
.aos-fade,
.aos-slide-up,
.aos-stagger > * {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.aos-fade.is-visible { opacity: 1; }
.aos-slide-up { transform: translateY(30px); }
.aos-slide-up.is-visible { opacity: 1; transform: translateY(0); }
.aos-stagger > * { transform: translateY(20px); }
.aos-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.aos-stagger.is-visible > *:nth-child(1)  { transition-delay: 0s; }
.aos-stagger.is-visible > *:nth-child(2)  { transition-delay: 0.07s; }
.aos-stagger.is-visible > *:nth-child(3)  { transition-delay: 0.14s; }
.aos-stagger.is-visible > *:nth-child(4)  { transition-delay: 0.21s; }
.aos-stagger.is-visible > *:nth-child(5)  { transition-delay: 0.28s; }
.aos-stagger.is-visible > *:nth-child(6)  { transition-delay: 0.35s; }
.aos-stagger.is-visible > *:nth-child(7)  { transition-delay: 0.42s; }
.aos-stagger.is-visible > *:nth-child(8)  { transition-delay: 0.49s; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 70px;
}
.header .gnb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
}
.header .logo-title {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
  flex-shrink: 0;
}
.header .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.header .logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.header .logo span {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}
.header .logo span strong {
  color: var(--primary-light);
  font-size: 18px;
}
.header .gnb__list {
  display: flex;
  align-items: center;
  gap: 0;
}
.header .gnb__list li a {
  display: flex;
  align-items: center;
  padding: 8px 30px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  transition: color 0.25s ease;
  white-space: nowrap;
}
.header .gnb__list li a:hover { color: var(--primary); }
.header .gnb__list li.active a { color: var(--primary); }
.header .gnb__hamburger {
  display: none;
  font-size: 41px;
  color: var(--text);
  border-radius: 6px;
  background: none;
  cursor: pointer;
  line-height: 50px;
  height: 50px;
}
.header .gnb__mobile {
  display: none;
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 100;
}
.header .gnb__mobile ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 16px;
  gap: 4px;
}
.header .gnb__mobile ul li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  border-radius: 6px;
  transition: background 0.25s ease, color 0.25s ease;
}
.header .gnb__mobile ul li a:hover {
  background: var(--bg-section);
  color: var(--primary);
}
.header .gnb__mobile ul li.active a {
  background: var(--bg-blue-light);
  color: var(--primary);
}
.header.gnb--open .gnb__mobile { display: block; }

@media (max-width: 767px) {
  .header .gnb__list { display: none; }
  .header .gnb__hamburger { display: block; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #f5f5f5; /* --bg-footer */
  border-top: 1px solid var(--border);
  padding: 32px 0 24px;
  font-size: 14px;
  color: var(--text-sub);
}
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer__tel {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.footer__notice { margin-bottom: 20px; }
.footer__notice p {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 4px;
}
.footer__notice ul {
  margin: 8px 0;
  padding-left: 12px;
}
.footer__notice ul li {
  list-style: disc;
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
}
.footer__info {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.footer__info img {
  height: 28px;
  width: auto;
  flex-shrink: 0;
  margin-top: 2px;
}
.footer__info p {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.8;
}
.footer__baby-notice {
  background: var(--bg-section);
  border-left: 3px solid var(--primary);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 16px;
  border-radius: 0 6px 6px 0;
}

.footer__brand {
  display: none;
}

@media (max-width: 767px) {
  .footer__brand  { display: none; }
  .footer__tel {
    font-size: 16px;
    color: var(--text-sub);
    margin-bottom: 8px;
  }
  .footer__info   { flex-direction: column; gap: 8px; }
  .footer__info img {
    display: block;
    height: 24px;
    margin-bottom: 4px;
  }
}

/* ============================================================
   개인정보 모달
   ============================================================ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
}
.modal.is-open { display: flex; }
.modal__box {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 29px;
  color: var(--text-sub);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}
.modal__close:hover { color: var(--text); }
.modal h2 { font-size: 24px; margin-bottom: 20px; }
.modal h3 { font-size: 18px; font-weight: 700; margin: 16px 0 8px; }
.modal p, .modal ul {
  font-size: 16px;
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 8px;
}
.modal ul { padding-left: 16px; }
.modal ul li { list-style: disc; }

/* ============================================================
   브레드크럼브
   ============================================================ */
.breadcrumb {
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 16px;
  color: var(--text-sub);
}
.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.breadcrumb ol li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb ol li a { color: var(--text-sub); }
.breadcrumb ol li a:hover { color: var(--primary); }
.breadcrumb ol li:not(:last-child)::after {
  content: '>';
  color: var(--text-muted);
  font-size: 13px;
}
.breadcrumb ol li:last-child {
  color: var(--text);
  font-weight: 700;
}

/* ============================================================
   FAQ 공통
   ============================================================ */
.faq { padding: 60px 0; }
.faq__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.faq__content {
  flex: 1;
  min-width: 0;
}
.faq__content > h3,
.faq__content > h2 {
  font-size: 29px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.faq__content > h2 strong { color: var(--primary); }
.faq__content > p {
  font-size: 18px;
  color: var(--text-sub);
  margin-bottom: 32px;
}
.faq__q {
  padding: 20px 24px 0;
  background: var(--white);
  border: 1.5px solid var(--border-dark);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  cursor: default;
  display: block;
  margin-bottom: 0;
}
.faq__q h4,
.faq__q h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  padding-bottom: 20px;
}
.faq__a {
  display: block;
  padding: 0 24px 20px;
  background: var(--white);
  border: 1.5px solid var(--border-dark);
  border-top: none;
  border-radius: 0 0 12px 12px;
  margin-bottom: 24px;
}
.faq__a p {
  font-size: 16px;
  color: var(--text-sub);
  line-height: 1.9;
}
.faq__nav { flex-shrink: 0; width: 140px; }
.faq__nav ul li a {
  display: block;
  padding: 10px 16px;
  font-size: 16px;
  color: var(--text-sub);
  border-radius: 6px;
  transition: background 0.25s ease, color 0.25s ease;
}
.faq__nav ul li a:hover { background: var(--bg-section); color: var(--primary); }
.faq__nav ul li.active a {
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
}

@media (max-width: 767px) {
  .faq { padding: 40px 0; }
  .faq__inner { flex-direction: column; gap: 24px; }
  .faq__nav {
    width: 100%;
  }
  .faq__nav ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
  .faq__content > h3,
  .faq__content > h2 { font-size: 24px; }
}

/* 모바일 화면(767px 이하)일 때 pc-only 클래스를 숨김 처리 */
@media screen and (max-width: 767px) {
    .pc-only {
      display: none !important;
    }
  }
  
/* ============================================================
   상담폼 공통 agree
   ============================================================ */
.form-agree {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  margin: 12px 0;
}
.form-agree input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--white);
  cursor: pointer;
}
.form-agree a {
  color: rgba(255,255,255,0.9);
  text-decoration: underline;
}
.form-agree a:hover { color: var(--white); }

/* 서브페이지 폼에서 override */
.sub-hero__form .form-agree { color: var(--text-sub); }
.sub-hero__form .form-agree a { color: var(--primary); }
