@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');
/* 공통 레이아웃 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: pretendard,pretendard Fallback,-apple-system, BlinkMacSystemFont, "Noto Sans KR", system-ui, sans-serif;
}
button,
a,
input,
textarea,
select,
option {
  border: none;
  background: none;
  outline: none;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans KR", system-ui, sans-serif;
  background-color: #ffffff;
  color: #222;
}

.survey-wrapper {
  max-width: 600px;
  margin: 0 auto;
  min-height: 80svh;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  position: relative; /* 추가 */
  width: 100%; /* 추가 */
}

.survey-header {
  padding: 30px 24px 25px;
  text-align: center;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: -20px;
}
.page_6_title,
.page_6_subtitle {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #754C24;
  letter-spacing: 0.04em;
  text-wrap: balance;
  word-break: keep-all;
}
.treatment-section{
  max-width: 600px;
  margin: 0 auto;
  position: relative; /* 추가 */
  width: 100%; /* 추가 */
  padding: 0 24px;
}
.survey-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #754C24;
  letter-spacing: 0.04em;
  text-wrap: balance;
  word-break: keep-all;
  word-wrap: break-word;
}

.survey-subtitle {
  margin: 10px 0 0;
  font-size: 1rem;
  color: #999;
}

.survey-counter {
  margin: 32px 0 0;
  font-size: 0.8rem;
  color: #c2a88a;
}

.survey-counter-number {
  display: block;
  margin-top: 6px;
  font-size: 2rem;
  font-weight: 700;
  color: #d7b996;
}

.survey-main {
  flex: 1;
  /* 하단 고정 버튼 높이만큼 여백 확보하되 패딩 축소 */
  padding: 20px 24px calc(110px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  overflow: hidden; /* 스크롤 방지 */
}

.survey-hero {
  margin-top: 16px;
  padding-bottom: 48px;
}

/* 버튼 / 공통 UI */
:root {
  --primary-color: #4b4b4b;
  --primary-dark: #333333;
  --accent-color: #ffcd6b;
  --text-on-primary: #ffffff;
  --border-radius-lg: 999px;
}

.btn-primary {
  border: none;
  border-radius: var(--border-radius-lg);
  background: var(--primary-color);
  color: var(--text-on-primary);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 18px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(242, 102, 92, 0.3);
}

.btn-full {
  width: 100%;
}

.btn-disabled,
.btn-disabled:hover,
.btn-disabled:active {
  background: #ccc;
  box-shadow: none;
  cursor: default;
  transform: none;
}

.cta-area {
  margin: 28px 0;
  text-align: center;
}

/* 인디케이터 도트 (○●○○○ 스타일) */
.indicator-dots {
  margin-top: 24px;
  text-align: center;
  font-size: 1.1rem;
  letter-spacing: 4px;
  color: #ccc;
}

.indicator-dots .dot.active {
  color: #333;
}

/* Swiper 슬라이드 영역 */
.hero-swiper {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: #f5f5f5;
  max-width: 380px;
  margin: 0 auto;
  position: relative;
}

.hero-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #666;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  background: #d8d8d8;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: #7e7163;
}

.hero-swiper .swiper-pagination {
  bottom: 10px;
}

/* 공통 질문/옵션 레이아웃 */
.question-title {
  margin: 0 0 16px;
  font-size: 1.1rem;
  font-weight: 600;
}

.question-subtitle {
  margin: 0 0 24px;
  font-size: 0.9rem;
  color: #777;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-bottom: 10px;
}

.options-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  flex-direction: column;
}

.option-card {
  position: relative;
  border-radius: 14px;
  border: 1px solid #eee;
  background: #fff;
  padding: 12px 10px;
  text-align: center;
  font-size: 0.8rem;
  color: #555;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}


.option-card.selected {
  border-color: #C7B299;
  box-shadow: 0 0 0 1px rgba(242, 102, 92, 0.2), 0 8px 18px rgba(0, 0, 0, 0.06);
}

.option-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: #f3f3f3;
  overflow: hidden;
  margin-bottom: 10px;
}
.option-card-image.size-480 {
  aspect-ratio: 360 / 480;
}

.option-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.option-card-label {
  margin: 6px 0;
  font-size: 0.8rem;
  line-height: 1.3;
  word-break: keep-all;
  word-wrap: break-word;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
}

.label-number {
  white-space: nowrap;
  flex-shrink: 0;
}

.option-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(242, 102, 92, 0.18), rgba(255, 205, 107, 0.18));
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
  transform: scale(1.1);
  
}

.option-card.selected .option-card-overlay,
.option-card.hovered .option-card-overlay {
  opacity: 1;
}

/* Page 3: 색상 선택 카드 스타일 */
.color-options .color-card {
  padding: 18px 20px;
  border: 8px solid transparent;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.color-options .color-card .option-card-label {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.color-options .color-card[data-value="skin"] .option-card-label,
.color-options .color-card[data-value="red"] .option-card-label,
.color-options .color-card[data-value="brown"] .option-card-label {
  color: #ffffff;
}

.color-options .color-card[data-value="white"] .option-card-label {
  color: #555555;
}

.color-options .color-card[data-value="201"] .option-card-label,
.color-options .color-card[data-value="202"] .option-card-label,
.color-options .color-card[data-value="203"] .option-card-label {
  color: #ffffff;
}

.color-options .color-card[data-value="204"] .option-card-label {
  color: #555555;
}
.color-options .color-card.selected {
  border-color: #C7B299;
  box-shadow: 0 0 0 1px #C7B299;
}
.color-options .color-card.selected.reverse-sec {
  border-color: #979797;
}

.color-options .color-card .option-card-overlay {
  display: none;
}

/* 페이지 네비게이션 영역 */
.page-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  /* Page 2~4: 버튼을 브라우저 하단에 붙이기 + iOS safe-area 대응 */
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 600px; /* .survey-wrapper의 max-width와 일치 */
  padding: 12px 24px calc(12px + env(safe-area-inset-bottom));
  background: #ffffff;
  border-top: 1px solid #e5e5e5;
  /* box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.08); */
  z-index: 999;
}

/* Page 2~4: 옵션/텍스트가 길어도 버튼 영역을 침범하지 않도록 내부 스케일 조정 */
.survey-main > section:first-child {
  flex: 0 1 auto;
  min-height: 0;
}

/* 화면 높이가 낮은 기기(iPhone mini 등) 대응: 스크롤 없이 9개 요소를 다 담기 위한 스케일 다운 */
@media (max-height: 740px) {
  .survey-header {
    padding: 15px 24px 10px;
    margin-bottom: -10px;
  }
  .survey-title {
    font-size: 1.25rem;
  }
  .survey-subtitle {
    font-size: 0.85rem;
    margin: 5px 0 0;
  }
  .survey-main {
    padding-top: 10px;
  }
  .options-grid {
    gap: 8px;
    padding-bottom: 0;
  }
  .option-card {
    padding: 6px 5px;
    border-radius: 10px;
  }
  .option-card-image {
    margin-bottom: 4px;
  }
  .option-card-label {
    font-size: 0.7rem;
    margin: 2px 0;
  }
}

/* 초소형 화면 높이 대응 */
@media (max-height: 670px) {
  .survey-header {
    padding: 10px 24px 5px;
  }
  .options-grid {
    gap: 6px;
  }
  .option-card-label {
    font-size: 0.65rem;
  }
}

.btn-ghost {
  border-radius: var(--border-radius-lg);
  border: 1px solid #ddd;
  background: #fff;
  padding: 12px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  min-width: 120px;
}

/* Page 5: 퍼센트 게이지 */
.progress-wrapper {
  margin-top: 48px;
  text-align: center;
}

.progress-percent {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary-color);
}

.progress-bar {
  margin: 24px auto 0;
  width: 100%;
  max-width: 360px;
  height: 10px;
  border-radius: 999px;
  background: #f0f0f0;
  overflow: hidden;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #C7B299;
  transition: width 0.1s linear;
}

/* Page 6: 플립 카드 */
.card-flip-wrapper {
  margin-top: 40px;
  perspective: 1000px;
}

.card {
  position: relative;
  width: 100%;
  max-width: 360px;
  height: 200px;
  margin: 0 auto;
  transform-style: preserve-3d;
  transition: transform 0.6s;
  cursor: pointer;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-front {
  background: #f6f6f6;
  color: #444;
  border: 1px solid #e5e5e5;
  font-weight: 600;
  font-size: 1.1rem;
}

.card-back {
  background-size: cover;
  background-position: center;
  transform: rotateY(180deg);
}

.card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-description {
  margin-top: 24px;
  font-size: 0.9rem;
  color: #555;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.card-description.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Page 6: 추천 섹션 */
.recommendation-header {
  font-size: 0.85rem;
  color: #C7B299;
  margin: 0 0 8px;
}

.recommendation-section {
  margin-top: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #e5e5e5;
}

.recommendation-text {
  margin-bottom: 20px;
}

.recommendation-text p {
  margin: 6px 0;
  font-size: 0.9rem;
  color: #999;
  line-height: 1.5;
}

.recommendation-condition {
  margin-bottom: 20px;
}

.recommendation-condition p {
  margin: 6px 0;
  font-size: 0.85rem;
  color: #777;
  line-height: 1.5;
}

.recommendation-cta-section {
  margin-top: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #e5e5e5;
  text-align: center;
}

.recommendation-cta {
  margin: 0;
  text-align: center;
}

.recommendation-cta p {
  margin: 6px 0;
  font-size: 24px;
  font-weight: 500;
  color: #C7B299;
  line-height: 1.3;
}

.recommendation-cta p:last-child {
  color: #754C24;
  font-weight: 600;
}
.edit-sec img{ width: 100%; height: auto;}
.edit-sec p{ font-size: 14px; color: #999; line-height: 1.5; margin: 0 0 10px;}
/* Page 6: 슬라이더 섹션 */
.slider-section {
  margin-top: 32px;
  background: #fff;
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
}

.slider-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 25px;
  border-bottom: 1px solid #eee;
}

.slider-tabs .tab-item {
  padding: 12px 8px;
  font-size: 14px;
  font-weight: 700;
  color: #999;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.slider-tabs .tab-item.active {
  color: #754C24;
}

.slider-tabs .tab-item.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #754C24;
}

.result-swiper {
  width: 100%;
  padding-bottom: 40px;
  position: relative;
}

.result-swiper .swiper-button-next,
.result-swiper .swiper-button-prev {
  color: #fff;
  background: rgba(117, 76, 36, 0.7);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  top: 140px; /* 이미지 영역 중앙 즈음 */
  margin-top: 0;
  z-index: 10;
  transition: background 0.3s ease;
}

.result-swiper .swiper-button-next:hover,
.result-swiper .swiper-button-prev:hover {
  background: rgba(117, 76, 36, 0.8);
}

.result-swiper .swiper-button-next {
  right: 10px;
}

.result-swiper .swiper-button-prev {
  left: 10px;
}

.result-swiper .swiper-button-next::after,
.result-swiper .swiper-button-prev::after {
  font-size: 16px;
  font-weight: 800;
}

.result-swiper .slide-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.result-swiper .slide-img-box {
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.result-swiper .slide-img-box img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.result-swiper .slide-text-box {
  text-align: center;
  padding: 0 10px;
}

.result-swiper .step-label {
  display: block;
  font-size: 14px;
  color: #7e7163;
  margin-bottom: 8px;
  font-weight: 500;
}

.result-swiper .step-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  word-break: keep-all;
}

.result-swiper .step-title span {
  color: #754C24;
}

.result-swiper .step-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 20px;
  word-break: keep-all;
  text-overflow: balance;
}

.result-swiper .step-list {
  list-style: none;
  padding: 0;
  text-align: left;
  display: inline-block;
}

.result-swiper .step-list li {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 6px;
  position: relative;
  word-break: keep-all;
}

.result-swiper .swiper-pagination-bullet-active {
  background: #754C24;
}

/* 상세 시술 설명 리스트 (이미지 내용 기반) */
.treatment-details-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 50px;
}

.detail-item {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 1px solid #f2f2f2;
  transition: transform 0.3s ease;
}

.detail-img img {
  width: 100%;
  height: auto;
  display: block;
}

.detail-txt {
  padding: 24px 20px;
  text-align: center;
}

.detail-txt h4 {
  font-size: 19px;
  font-weight: 800;
  color: #754C24;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.detail-txt p {
  font-size: 14px;
  line-height: 1.7;
  color: #666;
  word-break: keep-all;
  margin: 0;
}

.detail-txt .highlight-txt {
  font-size: 16px;
  color: #333;
  font-weight: 500;
}

.detail-txt .highlight-txt span {
  color: #2c7be5; /* 진피층부터 피부를 재생시켜 부분 강조 */
  font-weight: 700;
}

.detail-txt .sub-desc {
  margin-bottom: 20px;
  color: #888;
}
.page-6-img img{ width: 100%; height: auto; display: block;}
.detail-sub-list {
  list-style: none;
  padding: 0;
  text-align: left;
}

.detail-sub-list li {
  margin-bottom: 15px;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.detail-sub-list li:last-child {
  margin-bottom: 0;
}

.detail-sub-list li .arrow {
  flex-shrink: 0;
  color: #777;
  font-size: 13px;
  margin-top: 1px;
}

.detail-sub-list li .text-content {
  flex: 1;
}

.detail-sub-list .step-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #444;
  margin-bottom: 4px;
}

.detail-sub-list li p {
  font-size: 13px;
  color: #777;
  line-height: 1.5;
  margin: 0;
  word-break: keep-all;
  word-wrap: break-word;
}

/* 장비 카드 그리드 (2열) */
.secret-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.equip-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.equip-card .card-image-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #f5f6f8;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.equip-card .card-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.equip-card .card-info-box {
  text-align: left;
}

.equip-card .card-title-en {
  font-size: 15px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 2px;
  line-height: 1.2;
}

.equip-card .card-title-ko {
  font-size: 12px;
  color: #666;
  font-weight: 400;
}


/* 하단 액션 버튼 섹션 */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 50px;
  padding: 0 20px 60px;
}

.sns-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 58px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 0 15%; /* PC 기준 좌측 패딩 */
}

.action-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px; /* PC 기준 아이콘 마진 */
}

.action-btn span {
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.btn-kakao-link { 
  background-color: #FEE500; 
  color: #3C1E1E; 
}

.btn-talk-link { 
  background-color: #03C75A; 
  color: #fff; 
}

.btn-consult { 
  background: linear-gradient(135deg, #754C24 0%, #5D3A1B 100%);
  color: #fff;
  height: 68px;
  font-size: 19px;
  box-shadow: 0 8px 25px rgba(117, 76, 36, 0.35);
  margin-bottom: 8px;
  justify-content: center;
  padding: 0;
  border-radius: 20px;
}

.btn-retry, .btn-more { 
  background-color: #fbfbfb; 
  color: #6B7280; 
  font-weight: 600;
  border: 1.5px solid #F3F4F6;
  box-shadow: none;
  height: 52px;
  font-size: 14px;
  border-radius: 14px;
}

/* 모바일 반응형 조절 */
@media screen and (max-width: 480px) {
  .action-buttons {
    margin-top: 40px;
    padding: 0 16px 50px;
    gap: 10px;
  }

  .action-btn {
    padding: 0 8%; /* 모바일에서 좌측 패딩 축소 */
    height: 54px;
  }

  .action-btn svg {
    width: 18px;
    height: 18px;
    margin-right: 8px; /* 모바일에서 아이콘 마진 축소 */
  }

  .btn-consult {
    height: 62px;
    font-size: 17px;
    padding: 0; /* 중앙 정렬 유지 */
  }

  .btn-kakao-link, .btn-talk-link {
    height: 50px;
    font-size: 14px;
  }

  .btn-retry, .btn-more {
    height: 48px;
    font-size: 13px;
  }
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.action-btn:active {
  transform: scale(0.96);
  opacity: 0.9;
}

.btn-consult:hover {
  box-shadow: 0 10px 25px rgba(117, 76, 36, 0.4);
}

.btn-kakao-link, .btn-talk-link {
  height: 56px; /* SNS 버튼 중간 높이 */
  font-size: 15px;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.action-btn:active {
  transform: scale(0.96);
  opacity: 0.9;
}

.btn-consult:hover {
  box-shadow: 0 10px 25px rgba(117, 76, 36, 0.4);
}

/* Page 7: 폼 */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 0.9rem;
  background: #fff;
  color: #333;
}

.form-group input::placeholder {
  color: #999;
  opacity: 1;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px rgba(242, 102, 92, 0.15);
}

.checkbox-group {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #555;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

.checkbox-row a {
  color: var(--primary-color);
  font-size: 0.85rem;
}

/* Page 7: 동의 항목 스타일 */
.consent-item {
  margin-bottom: 28px;
}

.consent-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.consent-title {
  flex: 1;
}

.consent-title-text {
  font-size: 0.9rem;
  color: #555;
}

.consent-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: #999;
  text-decoration: none;
  cursor: pointer;
}

.consent-link:hover {
  text-decoration: underline;
}

.consent-options {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.consent-option {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  color: #999;
}

.consent-radio {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  accent-color: #C7B299;
}

.consent-option span {
  user-select: none;
}

/* Page 7: 팝업 모달 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  max-height: 80svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e5e5e5;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #333;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.modal-body p {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

.error-text {
  margin-top: 6px;
  font-size: 0.8rem;
  color: #e53935;
}

.input-error {
  border-color: #e53935 !important;
}

.form-footer {
  margin-top: 32px;
}

/* Page 6: 장비 팝업 스타일 */
.equip-modal-content {
  max-width: 90%;
  width: 100%;
  max-width: 600px;
  height: 80vh; /* 팝업 높이 제한 */
}

.equip-modal-body {
  padding: 0;
  overflow: hidden;
  height: 100%;
  flex: 1;
}

.equip-detail-scroll-area {
  width: 100%;
  height: 100%;
  overflow-y: auto; /* 세로 스크롤 활성화 */
  -webkit-overflow-scrolling: touch;
}

.equip-slide-content {
  text-align: center;
  padding: 20px 20px 40px;
}

.equip-main-img img {
  width: 100%;
  max-width: 400px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}

.equip-slide-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.equip-description-content img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  margin-bottom: 10px;
}

.equip-description-content p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
  text-align: left;
  word-break: keep-all;
  /* margin-bottom: 15px; */
}

.equip-description-content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 480px) {
  .equip-modal-content {
    max-width: 95%;
  }
  
  .equip-slide-content {
    padding: 0 10px 10px;
  }
  
  .equip-slide-content img {
    max-width: 100%;
  }

  .option-card-label {
    font-size:0.6rem;
  }
}

/* iPhone mini 등 소형 화면: page2~4 옵션 영역이 하단 버튼을 넘지 않도록 스케일 조정 */
@media (max-width: 375px) {
  .survey-header {
    padding: 20px 16px 10px;
  }
  .survey-title {
    font-size: 1.2rem;
  }
  .options-grid {
    grid-template-columns: repeat(3, 1fr); /* 3열 유지해야 세로가 짧아짐 */
    gap: 8px;
  }
  .option-card {
    padding: 8px 4px;
  }
  .option-card-label {
    font-size: 0.65rem;
    letter-spacing: -0.05em; /* 글자 간격 좁힘 */
  }
}

@media (max-width: 360px) {
  .survey-header {
    padding-inline: 16px;
  }

  .survey-main {
    padding-inline: 16px;
  }
}


@media (max-width: 768px) {
  .treatment-section,
  .survey-main{
    /* 모바일에서는 상하 여백 + 하단 고정 버튼(safe-area 포함)만큼 공간 확보 */
    padding: 20px 12px 0;
  }

  .page-nav {
    padding: 12px 12px 0;
  }
}