/* 전체 페이지 스타일 */
html, body {
  font-family: 'Pretendard', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overscroll-behavior: none;
}

/* 타이틀 */
.support-title-container {
  max-width: 1240px;
  margin: 120px auto 64px;
  padding: 20px;
  box-sizing: border-box;
}

.support-title-container h1 {
  margin-top: 10%;
  margin-left: 0;
  font-size: 46px;
  font-weight: 700;
  color: black;
}

.mobile-reverse-wrap {
  display: flex;
  flex-direction: column;
}

/* 컨테이너 공통 */
.support-container,
.image-box-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* 슬라이더 섹션 */
.image-box-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  scroll-behavior: smooth;
  margin-bottom: 124px;
}

.image-item {
  flex: 1 1 calc(33.333% - 13.333px);
  border-radius: 12px;
  border: 2px solid #ddd;
  box-sizing: border-box;
  text-align: center;
  background-color: #fff;
}

.image-item img {
  width: 262px;
  height: 175px;
  border-radius: 12px 12px 0 0;
  object-fit: contain;
  margin-top: 14px;  
}

.image-box-text {  
  font-size: 36px;
  font-weight: 500;
  color: #333;
  margin-top: 0;
  margin-bottom: 35px;
}

/* 기본: PC용 제목만 보임 */
.image-box-text.desc {
  display: none;
}

/* 슬라이드 인디케이터 */
.slider-indicators {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.slider-indicators span {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #ccc;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.slider-indicators span.active {
  width: 70px;
  background-color: #000;
  border-radius: 999px;
}

/* 서포트 섹션 */
.support-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  align-items: stretch;
  flex-direction: row;
}

/* 배경 이미지 섹션 */
.support-img {
  position: relative;
  background-image: url('/assets/images/support-image.png');
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  width: 50%;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* 이미지 위 텍스트 */
.img-text-overlay {
  align-content: center;
  position: absolute;
  top: 60px;
  left: 46px;
  color: #fff;
  font-size: 46px;
  font-weight: 600;
  text-align: left;
  line-height: 1.5;
  padding: 0;
  font-size: 24px;
}

.only-pc {
  display: block;
}

.only-mobile {
  display: none;
}

.overlay-sub {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 400;
}

/* 문의 폼 */
.support-form {
  flex: 1 1 45%;
  min-width: 300px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.form-group {
  margin-bottom: 12px;
  width: 100%;
}

select,
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 12px;
  border: none;
  border-bottom: 1px solid #ccc;
  background-color: transparent;
  font-size: 20px;
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

select {
  font-size: 20px;
  font-weight: bold;
}

.custom-dropdown {
  position: relative;
  width: 100%;
  border-bottom: 1px solid #ccc;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
}

.dropdown-selected {
  padding: 12px;
  background-color: transparent;
  position: relative;
}

.dropdown-selected::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-right: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

.dropdown-options {
  list-style: none; /* 앞에 점 제거 */
  padding: 0;
  margin: 0;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  margin-top: 4px;
}

.dropdown-options li {
  padding: 12px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.dropdown-options li:last-child {
  border-bottom: none;
}

.dropdown-options li:hover {
  background-color: #f5f5f5;
}


.textarea-wrapper {
  position: relative;
}

textarea {
  border: 1px solid #ccc;
  border-radius: 8px;
  resize: none;
  height: 240px;
  margin-top: 12px;
  font-size: 20px;
}

.char-counter-inside {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-size: 12px;
  color: #999;
  pointer-events: none;
}

.checkbox {
  display: flex;
  align-items: center;
  margin-top: 12px;
  color: black;
  font-size: 20px;
}

.checkbox input {
  margin-right: 8px;
  width: 20px;
  height: 20px;
}

.form-actions {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
}

.privacy-link {
  font-size: 18px;
  color: #666;
  text-decoration: underline;
  margin-left: -10px;
}

.submit-btn {
  padding: 10px 24px;
  background-color: #ff2e63;
  color: #fff;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  font-size: 24px;
  height: 48px;
  width: 180px;
  margin-right: 10px;
}

.submit-btn:hover {
  background-color: #e61e54;
}

/* 반응형 대응 */
@media (max-width: 1024px) {
  .support-container {
    flex-direction: column;
  }

  .support-img,
  .support-form {
    width: 100%;
  }

  .img-text-overlay {
    font-size: 24px;
    top: 32px;
    left: 24px;
  }
}

@media (max-width: 768px) {

  .only-pc {
    display: none;
  }

  .only-mobile {
    display: block;
  }

  .img-text-overlay {
    font-size: 20px;
    text-align: center;
  }

  .support-title-container {
    margin-top: 70px;
    margin-bottom: -30px;
  }

  .support-title-container h1 {
    font-size: 32px;
  }

  .mobile-reverse-wrap {
    flex-direction: column-reverse;
  }

  select {
    font-size: 16px;
    font-weight: bold;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea {
    font-size: 14px;
    margin: 0;
  }

  .custom-dropdown {
    font-size: 16px;
  }

  .dropdown-selected,
  .dropdown-options li {
    font-size: 16px;
  }

  .img-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 24px;
    line-height: 1.5;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
  }
  

  .support-img {
    aspect-ratio: unset;
    height: 318px;
    width: 328px;
    background-position: center;
    margin-top: 40px;
    margin: 40px auto 28px;
  }

  .submit-btn {
    width: 100%;
  }

  .form-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 0;
  }

  .checkbox {
    font-size: 14px;
  }

  .checkbox input {
    width: 13px;
    height: 13px;
  }

  .privacy-link {
    padding-left: 0;
    margin-left: 25px;
    font-size: 12px;
    text-decoration: underline;
  }

  .submit-btn {
    padding: 10px 24px;
    background-color: #ff2e63;
    color: #fff;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    font-size: 16px;
    height: 48px;   
    margin-right: 10px;
    margin-bottom: 64px;
  }

  .support-container {
    display: flex;
    flex-direction: column;
  }

  .image-box-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    order: -1;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-bottom: 0;
  }

  .image-item img {
    height: 112px;
    border-radius: 12px 12px 0 0;
    object-fit: contain;
    margin-top: 14px;  
  }



  .image-box-container::-webkit-scrollbar {
    display: none;
  }

  .image-box-text {  
    font-size: 20px;
    font-weight: 500;
    color: #333;
    margin-top: 0;
    margin-bottom: 35px;
  }

  .image-item {
    flex: 0 0 100%;
    scroll-snap-align: center;
  }

  .image-box-text.title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
  }

  .image-box-text.desc {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 0;
  }

  .slider-indicators {
    display: flex;
    margin-bottom: 40px;
  }
}
