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

body {
  background-color: #fff3e9;
}

.formActionBar {
  background: #fff;
  padding: 15px;
}

/* PC에서만 상단 고정 */
@media (min-width: 769px) {
  .formActionBar {
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  }
}

.btn {
  color: #fff;
  font-weight: 500;
  border-radius: 90px;
  padding: 10px 25px;
  border: none;
  font-size: 1.5rem;
  background: #62000e;
  background: linear-gradient(0deg, rgba(98, 0, 14, 1) 0%, rgba(203, 0, 29, 1) 100%);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* 보더 반짝임 효과 (테두리만 훑고 지나가는 빛) */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.25) 38%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0.25) 62%, rgba(255, 255, 255, 0.25) 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: btnBorderShine 3s ease-in-out infinite;
}

@keyframes btnBorderShine {
  0% {
    background-position: 100% 0;
  }
  /* 통과 후 다음 주기까지 대기 */
  55%,
  100% {
    background-position: 0% 0;
  }
}

/* 대각선 빛 반사 효과 */
.btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 35%;
  height: 200%;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(0) rotate(25deg);
  animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnShine {
  0% {
    transform: translateX(0) rotate(25deg);
  }
  /* 통과 후 다음 주기까지 대기 */
  55%,
  100% {
    transform: translateX(600%) rotate(25deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn::after {
    animation: none;
    opacity: 0;
  }

  .btn::before {
    animation: none;
    background: rgba(255, 255, 255, 0.35);
  }
}

.formActionBar .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.formActionBar .inner img {
  margin: 0;
}

/* 폼이 화면에 보일 때 신청 버튼 숨김 */
.formActionBar .btn {
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.formActionBar .btn.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.inner {
  max-width: 1200px;
  margin: 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.benefit {
  max-width: 1200px;
  width: 90%;
  margin: 0px auto;
}

/* 메인 비주얼: 이미지 폭(최대 1920px) 기준으로 버튼 위치를 잡기 위한 래퍼 */
.section00 {
  position: relative;
  max-width: 1920px;
  margin: 0 auto;
}

.section00 .btn {
  position: absolute;
  top: 44%;
  left: 21.6%;
  transform: translateY(-50%);
  padding: 14px 36px;
  font-size: 1.8rem;
  box-shadow: 0 8px 20px rgba(98, 0, 14, 0.25);
}

.section01 {
  margin-top: -200px;
}

.section02 {
  position: relative;
}

.section02 .slideBox {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1200px;
}

.section02 .slideBox .swiper {
  width: 85%;
}

.section02 .slideBox .swiper-slide img {
  width: 100%;
}

.section03 {
  padding: 10vh 0;
}

.section03 .reviewSlide {
  width: 90%;
  max-width: 1000px;
  margin: 50px auto 0;
  position: relative;
  padding: 0 60px;
}

.reviewSwiper {
  padding-bottom: 50px;
}

.reviewSwiper .swiper-horizontal > .swiper-pagination-bullets,
.reviewSwiper .swiper-pagination-bullets.swiper-pagination-horizontal {
  bottom: 15px;
}

.section03 .reviewSlide .swiper-slide img {
  width: 100%;
}

.section03 .reviewSlide .swiper-button-prev,
.section03 .reviewSlide .swiper-button-next {
  color: #722f37;
}

.section03 .reviewSlide .swiper-pagination-bullet-active {
  background: #722f37;
}

.section04 {
  background-image: url(../img/pd_bg.jpg);
  background-size: cover;
  background-position: top center;
  padding: 7vh 0 5vh;
}

.section04 .pdSlide {
  width: 90%;
  max-width: 1000px;
  margin: 50px auto 0;
}

.pdSwiper {
  padding-bottom: 30px;
}

.pdSlide .swiper-horizontal > .swiper-pagination-bullets,
.pdSlide .swiper-pagination-bullets.swiper-pagination-horizontal {
  bottom: 10px;
}

.pdSwiper .swiper-pagination-bullet-active {
  background: #fff;
}

.section04 .pdSlide .swiper-slide img {
  width: 100%;
}

#form {
  padding: 5vh;
}

#form .inner {
  background: #fff;
  border-radius: 30px;
  border: 1px solid #cda58e;
  padding: 4vh 6vh;
  max-width: 1000px;
}

#form .inner > img {
  margin: 0 auto 30px;
}

/* 입력 영역 2열 그리드 */
.formGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  row-gap: 18px;
}

.field {
  display: flex;
  align-items: center;
  gap: 14px;
}

.field label {
  flex: 0 0 64px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
}

.field input,
.field select {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 0 18px;
  font-size: 1rem;
  color: #1a1a1a;
  background: #fff;
  border: 1px solid #e2cdbd;
  border-radius: 12px;
  outline: none;
}

.field input::placeholder {
  color: #b9b9b9;
}

.field select {
  color: #b9b9b9;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
  cursor: pointer;
}

.field select:valid,
.field select option {
  color: #1a1a1a;
}

.hp-field .hp-box {
  display: flex;
  width: 100%;
}

/* 연락처 010 영역 */
.hp-field .hp-prefix {
  flex: 0 0 auto;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: #6e0f1c;
  border-radius: 12px 0 0 12px;
}

.hp-field #counsel_hp {
  border-radius: 0 12px 12px 0;
}

/* 개인정보 동의 */
.privacy_box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 26px 0;
}

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

.privacy_box input[type='checkbox'] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.privacy_box label > span:first-of-type {
  width: 24px;
  height: 24px;
  border: 1px solid #cda58e;
  border-radius: 6px;
  flex: 0 0 auto;
  position: relative;
}

.privacy_box input[type='checkbox']:checked + span {
  background: #6e0f1c;
  border-color: #6e0f1c;
}

.privacy_box input[type='checkbox']:checked + span::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 7px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.privacy_box .agreeText {
  font-size: 0.9rem;
  color: #555;
}

.privacy_box #agreeView {
  color: #999;
  text-decoration: underline;
}

.cursor {
  cursor: pointer;
}

/* 신청 버튼 */
.dbInput-submit {
  display: block;
  width: 100%;
  padding: 22px 0;
  border: none;
  border-radius: 14px;
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, #a30c1d 0%, #7a0716 100%);
}

.form-help {
  text-align: center;
  margin-top: 16px;
  font-size: 0.95rem;
  color: #8a8a8a;
}

@media (max-width: 768px) {
  .section02 .slideBox::after {
    content: '';
    display: block;
    position: absolute;
    width: 13%;
    height: 69%;
    background: linear-gradient(90deg, #7a0716 0%, #7a071600 100%);
    top: 4%;
    left: -1px;
    z-index: 999;
  }
  .section02 .slideBox::before {
    content: '';
    display: block;
    position: absolute;
    width: 13%;
    height: 69%;
    background: linear-gradient(-90deg, #7a0716 0%, #7a071600 100%);
    top: 4%;
    right: -1px;
    z-index: 999;
  }
  #form .inner {
    padding: 4vh 5vw;
  }

  .formGrid {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }

  .dbInput-submit {
    font-size: 2.2rem;
    padding: 18px 0;
  }

  .formActionBar .btn {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    z-index: 900;
  }

  .section00 .btn {
    top: 50%;
    left: 5.5%;
    padding: 12px 26px;
    font-size: 0.9rem;
  }

  .formActionBar .logo {
    width: 150px;
  }

  .formActionBar .inner {
    justify-content: center;
  }

  .section02 .slideBox .swiper {
    width: 100%;
  }

  .section02 .slideBox {
    top: 38%;
    width: 91.5%;
    left: 50.5%;
  }

  .bottomText {
    width: 70%;
  }

  .benefit {
    width: 100%;
  }

  .section03 {
    padding: 5vh 0 3vh;
  }

  .section03 .baTitle {
    width: 60%;
  }

  .section04 {
    background-image: url(../img/pd_bg_m.jpg);
    background-repeat: no-repeat;
    padding: 30px 0;
  }

  .section04 .pdTitle {
    padding: 0 20px 20px;
  }

  .section04 .pdSlide {
    margin: 0;
    width: 100%;
  }
  #form {
    padding: 5vh 15px;
  }
  #form .inner > img {
    width: 70%;
  }

  .section03 .reviewSlide {
    padding: 0;
    margin-top: 20px;
  }

  .section03 .reviewSlide .swiper-button-prev,
  .section03 .reviewSlide .swiper-button-next {
    display: none;
  }
}

/* 개인정보 팝업 */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.55);
  padding: 20px;
}

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

.modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  padding: 40px 36px 32px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  font-size: 2rem;
  line-height: 1;
  color: #888;
  cursor: pointer;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #6e0f1c;
  margin-bottom: 20px;
}

.modal-body p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
}

.modal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.92rem;
}

.modal-table th,
.modal-table td {
  border: 1px solid #e2cdbd;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}

.modal-table th {
  width: 38%;
  background: #fdf6f1;
  font-weight: 700;
  color: #1a1a1a;
}

.modal-table td {
  color: #444;
}

.modal-note {
  margin-top: 4px;
  color: #888 !important;
  font-size: 0.88rem !important;
}

footer {
  text-align: center;
  color: #fff;
  padding: 20px;
  background: #4b0009;
}
