* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Pretendard', sans-serif;
  line-height: 1.5;
}

img {
  width: 100%;
  display: block;
  /* HTML width/height 속성이 픽셀로 고정되지 않고 종횡비 힌트로만 쓰이도록 강제 */
  height: auto;
}

/* picture 는 기본이 inline 이라 아래 여백이 생김 */
picture {
  display: block;
}

/* 상단 CF 영상 — 위아래 이미지와 동일하게 화면 가로를 꽉 채움 */
.cf_video {
  width: 100%;
  /* img 와 동일하게 width/height 속성은 종횡비 힌트로만 사용 */
  height: auto;
  display: block;
  background: #000;
}

.cursor {
  cursor: pointer;
}

/* ===== 이런분들께 강력 추천 ===== */
.section03 {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 90px) 20px;
  /* 본명조 — 이 섹션에만 적용 */
  font-family: 'Noto Serif KR', serif;
  color: #451d00;
}

.section03 h4 {
  margin-bottom: clamp(28px, 3.4vw, 56px);
  text-align: center;
  font-size: clamp(24px, 3.2vw, 44px);
  font-weight: 800;
  line-height: 1.35;
  word-break: keep-all;
}

/* 포인트 컬러 */
.section03 h4 span {
  color: #ae5200;
  font-weight: 700;
}

.section03 ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 32px);
}

.section03 li video {
  width: 100%;
  /* height 속성(438)이 CSS 높이로 매핑돼 aspect-ratio 를 무력화하므로 반드시 해제 */
  height: auto;
  display: block;
  /* 메타데이터 로드 전 레이아웃 흔들림 방지 — 원본 638x438 비율 고정 */
  aspect-ratio: 638 / 438;
  object-fit: cover;
  border-radius: clamp(12px, 1.4vw, 20px);
  background: #f6ece3;
}

.section03 li p {
  margin-top: clamp(10px, 1vw, 18px);
  text-align: center;
  font-size: clamp(15px, 1.35vw, 28px);
  font-weight: 700;
  word-break: keep-all;
}

@media (max-width: 768px) {
  .section03 {
    padding: 44px 15px;
  }

  .section03 ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  /* 2열에서는 원본 비율(638:438)이 가로로 납작해 보여 정사각형으로 잘라 씀 */
  .section03 li video {
    aspect-ratio: 1 / 1;
  }
}

/* ===== section04 ===== */
.section04 {
  background: #ffedd4;
}

.section04_title {
  width: 50%;
  /* 원본(1138px) 이상으로 확대돼 흐려지지 않도록 */
  max-width: 1138px;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 80px) 0 clamp(16px, 2vw, 32px);
}

.section04_inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(20px, 2.4vw, 40px) 20px clamp(40px, 5vw, 80px);
  display: grid;
  /* 원본 크기(607px)까지만 커지는 2열 — 열이 넓어지며 사이가 벌어지지 않게 */
  grid-template-columns: repeat(2, minmax(0, 607px));
  justify-content: center;
  gap: clamp(10px, 1.2vw, 24px);
  align-items: center;
}

.section04_inner_left,
.section04_inner_right {
  width: 100%;
}

/* 미디어쿼리는 명시도를 올리지 않으므로 반드시 기본 규칙보다 아래에 둘 것 */
@media (max-width: 768px) {
  .section04_title {
    width: 80%;
    padding: 0px 0 12px;
  }

  .section04_inner {
    padding: 12px 15px 44px;
    /* 1열 */
    grid-template-columns: minmax(0, 607px);
    gap: 14px;
  }
}

/* ===== 상담 신청 폼 ===== */
.form_section {
  background: linear-gradient(180deg, #fff6e9 0%, #ffdcb0 100%);
  padding: 60px 20px;
}

/* 내용 없는 폼 섹션(플레이스홀더)은 노출하지 않음 */
.form_section:empty {
  display: none;
}

.form_section .inner {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.inputForm-wrapper {
  background: #fff;
  padding: 36px 30px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 1px solid rgba(174, 82, 0, 0.1);
  box-shadow: 0 18px 40px rgba(69, 29, 0, 0.15);
}

.inputForm-wrapper .name_box,
.inputForm-wrapper .phone_box,
.inputForm-wrapper .age_box,
.inputForm-wrapper .gender_box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.inputForm-wrapper .name-label,
.inputForm-wrapper .num-label,
.inputForm-wrapper .age-label,
.inputForm-wrapper .gender-label {
  font-size: 18px;
  font-weight: 700;
  color: #451d00;
}

.inputForm-wrapper .name_box input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1.5px solid #e5cfb3;
  border-radius: 10px;
  background: #fffaf3;
  font-size: 17px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}

.phone_input {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.phone_input span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  background: #451d00;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  border-radius: 10px 0 0 10px;
}

.phone_input input {
  flex: 1;
  min-width: 0;
  height: 54px;
  padding: 0 16px;
  border: 1.5px solid #e5cfb3;
  border-left: none;
  border-radius: 0 10px 10px 0;
  background: #fffaf3;
  font-size: 17px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}

/* ===== 연령대 select ===== */
.age_box select {
  width: 100%;
  height: 54px;
  padding: 0 44px 0 16px;
  border: 1.5px solid #e5cfb3;
  border-radius: 10px;
  background-color: #fffaf3;
  font-size: 17px;
  font-family: inherit;
  color: #451d00;
  cursor: pointer;
  /* 브라우저 기본 화살표 제거 후 동일한 화살표 직접 그림 */
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23ae5200' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background-color 0.2s;
}

/* 미선택 상태는 placeholder 처럼 흐리게 */
.age_box select:invalid,
.age_box select option[value=''] {
  color: #a1846b;
}

/* ===== 성별 선택 ===== */
.gender_options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
}

.gender_option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  border: 1.5px solid #e5cfb3;
  border-radius: 10px;
  background: #fffaf3;
  font-size: 17px;
  font-weight: 600;
  color: #8a6c52;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s,
    box-shadow 0.2s;
}

/* 라디오는 숨기되 키보드 포커스는 살려둠 */
.gender_option input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.gender_option:has(input:checked) {
  border-color: #ae5200;
  background: #fff3e3;
  color: #ae5200;
  box-shadow: 0 0 0 3px rgba(174, 82, 0, 0.18);
}

.gender_option:has(input:focus-visible) {
  border-color: #ae5200;
}

.inputForm-wrapper input:focus,
.age_box select:focus {
  outline: none;
  border-color: #ae5200;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(174, 82, 0, 0.18);
}

.privacy_box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.privacy_box label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.privacy_agree {
  width: 22px;
  height: 22px;
  accent-color: #ae5200;
}

.agreeText {
  font-size: 15px;
  color: #6b5645;
}

.agreeView {
  color: #ae5200;
  font-weight: 600;
  text-decoration: underline;
}

.dbInput-submit,
#fixedLinkBtn {
  position: relative;
  /* 지나가는 빛이 버튼 밖으로 새지 않도록 */
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #ae5200 0%, #e07b1f 100%);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  padding: 18px 0;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(174, 82, 0, 0.35);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

/* 빛이 왼쪽에서 오른쪽으로 훑고 지나가는 글로우 */
.dbInput-submit::after,
#fixedLinkBtn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-20deg);
  pointer-events: none;
  animation: btnShine 2.8s ease-in-out infinite;
}

@keyframes btnShine {
  0% {
    left: -75%;
  }
  /* 한 번 지나간 뒤 잠시 쉬었다가 반복 */
  55%,
  100% {
    left: 125%;
  }
}

/* 모션 최소화 설정을 켠 사용자에게는 반짝임을 노출하지 않음 */
@media (prefers-reduced-motion: reduce) {
  .dbInput-submit::after,
  #fixedLinkBtn::after {
    animation: none;
    opacity: 0;
  }
}

.dbInput-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(174, 82, 0, 0.45);
}

#fixedLinkBtn {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 40px);
  max-width: 400px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  text-decoration: none;
  /* 주황 톤의 페이지에서 눈에 띄도록 고정 버튼만 블루 계열 */
  background: linear-gradient(135deg, #0166da 0%, #0a86ff 100%);
  box-shadow: 0 10px 22px rgba(1, 102, 218, 0.35);
  transition:
    opacity 0.3s,
    visibility 0.3s,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

#fixedLinkBtn:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 14px 26px rgba(1, 102, 218, 0.45);
}

#fixedLinkBtn.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* 버튼 안의 로고 — 모바일 바에서는 텍스트 왼쪽에 나란히 */
#fixedLinkBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.fab_logo {
  width: auto;
  height: 26px;
  /* 흰 로고가 파란 배경에 묻히지 않게 살짝 띄움 */
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.fab_text {
  position: relative;
  z-index: 1;
}

/* 강조 문구 — 블루 배경 위에서 눈에 띄는 연한 옐로우 */
.fab_text-primary {
  color: #ffe27a;
}

/* PC 에서는 하단 바 대신 우측 하단에 뜨는 원형 버튼으로 */
@media (min-width: 769px) {
  #fixedLinkBtn {
    top: auto;
    right: 5%;
    bottom: 10%;
    left: auto;
    width: 135px;
    height: 135px;
    max-width: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1.2;
    word-break: keep-all;
    /* 원형 안에서는 로고를 텍스트 위로 */
    flex-direction: column;
    gap: 6px;
    /* 모바일 바에서 쓰던 가로 중앙 정렬(translateX) 해제 */
    transform: none;
    animation: fabFloat 2.8s ease-in-out infinite;
  }

  .fab_logo {
    height: 22px;
  }

  /* 원형에 맞춰 지나가는 빛의 폭을 좁힘 */
  #fixedLinkBtn::after {
    width: 42%;
  }

  #fixedLinkBtn:hover {
    /* 애니메이션이 transform 을 점유하므로 호버 중에는 해제 */
    animation: none;
    transform: scale(1.06);
  }
}

/* 위아래로 살짝 떠다니며 은은한 후광이 퍼짐 (box-shadow 는 overflow 에 잘리지 않음) */
@keyframes fabFloat {
  0%,
  100% {
    transform: translateY(-5px);
    box-shadow:
      0 10px 22px rgba(1, 102, 218, 0.35),
      0 0 0 0 rgba(10, 134, 255, 0.45);
  }
  50% {
    transform: translateY(5px);
    box-shadow:
      0 14px 26px rgba(1, 102, 218, 0.45),
      0 0 0 14px rgba(10, 134, 255, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  #fixedLinkBtn {
    animation: none;
  }
}

/* ===== 푸터 ===== */
.footer {
  background: #451d00;
  /* 하단 고정 버튼(모바일 바 / PC 원형)에 내용이 가려지지 않게 아래 여백을 넉넉히 */
  padding: 40px 20px calc(120px + env(safe-area-inset-bottom));
}

.footer_inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer_logo {
  width: auto;
  height: 42px;
  flex-shrink: 0;
  opacity: 0.9;
}

.footer_info p {
  font-size: 14px;
  line-height: 1.8;
  color: #d8bda3;
  word-break: keep-all;
}

@media (max-width: 768px) {
  .footer {
    padding: 32px 15px calc(110px + env(safe-area-inset-bottom));
  }

  .footer_inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer_logo {
    height: 34px;
  }

  .footer_info p {
    font-size: 13px;
    line-height: 1.7;
  }
}

/* ===== 하단 슬라이드업 상담 폼 (fixedLinkBtn 클릭 시) ===== */
.form_sheet {
  width: 100%;
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: rgba(69, 29, 0, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.form_sheet.is-open {
  opacity: 1;
  visibility: visible;
}

.form_sheet-panel {
  max-width: 600px;
  /* left/right:0 + margin auto 로 가운데 정렬 (position:absolute 요소도 동일하게 동작) */
  margin: 0 auto;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 92vh;
  overflow-y: auto;
  padding: 18px 20px calc(24px + env(safe-area-inset-bottom));
  background: #fff;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -14px 40px rgba(69, 29, 0, 0.35);
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.form_sheet.is-open .form_sheet-panel {
  transform: translateY(0);
}

.form_sheet-handle {
  width: 44px;
  height: 5px;
  margin: 2px auto 14px;
  border-radius: 999px;
  background: #ecd3b4;
}

.form_sheet-title {
  margin-bottom: 14px;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  color: #451d00;
}

.form_sheet-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fbeedd;
  color: #451d00;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}

.form_sheet-close:hover {
  background: #ae5200;
  color: #fff;
}

/* 시트 안에서는 폼이 곧 시트 본문이므로 카드 그림자는 제거 */
.form_sheet .inputForm-wrapper {
  padding: 0;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

/* ===== 개인정보취급방침 모달 ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 13000;
  padding: 20px;
  background: rgba(69, 29, 0, 0.55);
  backdrop-filter: blur(4px);
}

.modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  width: min(560px, 100%);
  max-height: min(80vh, 720px);
  overflow-y: auto;
  padding: 32px 28px;
  background: #fff;
  border-radius: 18px;
  border-top: 5px solid #ae5200;
  box-shadow: 0 24px 60px rgba(69, 29, 0, 0.4);
}

.modal-content h3 {
  font-size: 22px;
  font-weight: 800;
  color: #451d00;
  text-align: center;
}

.modal-content p {
  font-size: 15px;
  line-height: 1.7;
  color: #5a4636;
}

/* 번호로 시작하는 소제목 문단 강조 */
.modal-content p:nth-of-type(odd) {
  margin-top: 6px;
  color: #ae5200;
  font-weight: 700;
}

.modal-content .close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fbeedd;
  color: #451d00;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}

.modal-content .close:hover {
  background: #ae5200;
  color: #fff;
}

@media (max-width: 768px) {
  .form_section {
    padding: 44px 15px;
  }

  .inputForm-wrapper {
    padding: 26px 20px;
    gap: 16px;
    border-radius: 16px;
  }

  .form_sheet .inputForm-wrapper {
    padding: 0;
  }

  .inputForm-wrapper .name-label,
  .inputForm-wrapper .num-label {
    font-size: 16px;
  }

  .agreeText {
    font-size: 14px;
    word-break: keep-all;
  }

  .modal-content {
    padding: 28px 20px;
  }

  .modal-content h3 {
    font-size: 20px;
  }
}
