@charset "utf-8";

/* ======================
   문의 페이지 (contact.css)
   ====================== */

/* ======================
   폼 섹션 (세계지도 배경)
   ====================== */

.ct-form-wrap {
  position: relative;
  padding: 30rem 0 20rem;
  overflow: hidden;
}

.ct-form-wrap__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  padding: 7.2rem 18rem;
}

.ct-form-wrap__bg img {
  width: 100%;
  object-fit: cover;
  object-position: center;
}

/* ======================
   폼 컨테이너
   ====================== */

.ct-form {
  width: 95%;
  margin: auto;
  min-width: var(--idx-min);
  max-width: var(--idx-max);
  position: relative;
  z-index: 1;
  margin: 0 auto;
  padding: 0 9rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* ======================
   폼 섹션 블록 (01 / 02)
   ====================== */

.ct-form__block {
  display: flex;
  gap: 0;
  align-items: flex-start;
  width: 100%;
  justify-content: space-between;
}

.ct-form__step {
  flex-shrink: 0;
  /* width: 63rem; */
  min-width: 30rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.ct-form__step-num {
  font-size: 1.6rem;
  font-weight: 500;
  color: #a1795e;
  line-height: 1em;
}

.ct-form__step-title {
  font-size: 3.2rem;
  font-weight: 700;
  color: #000000;
  letter-spacing: -0.04em;
  line-height: 1.2em;
}

.ct-form__fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  max-width: 99rem;
}

/* ======================
   필드 행
   ====================== */

.ct-field {
  display: flex;
  align-items: center;
  width: 100%;
}

.ct-field--textarea {
  align-items: flex-start;
}

.ct-field__label {
  flex-shrink: 0;
  width: 15rem;
  font-size: 2rem;
  font-weight: 500;
  color: #000000;
  letter-spacing: -0.04em;
  line-height: 1em;
}

.ct-field__label .required {
  color: #361e0e;
  background: none !important;
}

.ct-field__input,
.ct-field--textarea textarea {
  flex: 1;
  background-color: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 3rem;
  font-size: 1.6rem;
  font-weight: 400;
  color: #000000;
  letter-spacing: -0.04em;
  transition: border-color 0.2s;
  outline: none;
}

.ct-field__input {
  height: 6rem;
  padding: 1.8rem 2rem;
}

.ct-field--textarea textarea {
  height: 15rem;
  padding: 2rem;
  resize: vertical;
  border-radius: 3rem;
  line-height: 1.5em;
}

.ct-field__input::placeholder,
.ct-field--textarea textarea::placeholder {
  color: #bdbdbd;
}

.ct-field__input:focus,
.ct-field--textarea textarea:focus {
  border-color: #381010;
}

/* ======================
   개인정보 동의 체크박스
   ====================== */

.ct-agree {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  cursor: pointer;
}

.ct-agree__checkbox {
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid #dddddd;
  background-color: #ffffff;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s, background-color 0.2s;
}

.ct-agree__checkbox:checked {
  background-color: #381010;
  border-color: #381010;
}

.ct-agree__checkbox:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%) rotate(45deg);
  width: 0.5rem;
  height: 1rem;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
}

.ct-agree__text {
  font-size: 1.8rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.8);
  letter-spacing: -0.04em;
  line-height: 1.4em;
}

.ct-agree__text .required {
  color: #361e0e;
}

/* ======================
   제출 버튼
   ====================== */

.ct-submit-wrap {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
}

.ct-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem 5.2rem;
  background-color: #381010;
  border: 1px solid #ffffff;
  border-radius: 9.9rem;
  font-size: 2.4rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.04em;
  line-height: 1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
}

.ct-submit:hover {
  opacity: 0.85;
}

/* ======================
   반응형 (모바일 768px 이하)
   ====================== */

@media (max-width: 1024px) {

  .ct-form-wrap__bg {
    padding: 3.3rem 5%;
  }

  /* 폼 영역 */
  .ct-form-wrap {
    padding: 11rem 0 6.6rem;
  }

  .ct-form {
    padding: 0 5%;
    gap: 4rem;
    max-width: 60rem;
    min-width: auto;
  }

  /* 블록: 세로 방향으로 변경 */
  .ct-form__block {
    flex-direction: column;
    gap: 2.4rem;
  }

  .ct-form__step {
    width: 100%;
    gap: 0.8rem;
  }

  .ct-form__step-num {
    font-size: 1.4rem;
  }

  .ct-form__step-title {
    font-size: 2.4rem;
  }

  .ct-form__fields {
    max-width: none;
    width: 100%;
  }

  /* 필드 행 */

  .ct-field {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .ct-field--textarea {
    align-items: flex-start;
  }

  .ct-field__label {
    width: 100%;
    font-size: 1.8rem;
  }

  .ct-field__input {
    height: 4.8rem;
    padding: 1.4rem 2rem;
    box-sizing: border-box;
  }

  .ct-field__input,
  .ct-field--textarea textarea {
    width: 100%;
    flex: auto;
  }

  .ct-field--textarea textarea {
    height: 20rem;
  }

  .ct-agree__text {
    font-size: 1.6rem;
  }

  /* 제출 버튼 */
  .ct-submit-wrap {
    margin-top: 0.8rem;
  }

  .ct-submit {
    font-size: 1.6rem;
    padding: 1.2rem 3.2rem;
  }
}