/* ============================================
   contact.html 전용 스타일 (PC)
   ============================================ */

/* Contact 히어로 섹션 */
.section-contact-hero {
  padding: 124px 0 0;
  background: #fff;
}

.section-contact-hero__title {
  font-size: 42px;
  font-weight: 700;
  color: #222;
  text-align: center;
  height: 130px;
  margin: 0 0 20px;
  line-height: 1.4;
}

.section-contact-hero__highlight {
  color: #fff;
  transition: color 1s ease;
  transition-delay: 0.12s;
}

.section-contact-hero.hero-highlight-visible .section-contact-hero__highlight {
  color: var(--color-point-light);
  transition-delay: 0s;
}

.section-contact-hero__image-wrap {
  width: 100%;
  max-width: 1760px;
  margin: 0 auto;
  aspect-ratio: 1760 / 720;
  border-radius: 12px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.section-contact-hero.hero-visible .section-contact-hero__image-wrap {
  opacity: 1;
  transform: translateY(0);
}

.section-contact-hero__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* 문의 폼 섹션 */
.section-contact-form {
  padding: 20px 0 120px;
  background: #fff;
}

/* 스크롤 인터랙션: 진입 시 폼 부드럽게 노출 */
.section-contact-form .contact-form {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-contact-form.is-inview .contact-form {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

.contact-form {
  max-width: 900px;
  margin: 0 auto;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 40px;
  margin-bottom: 32px;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form__field--full { grid-column: 1 / -1; }

.contact-form__field--full + .contact-form__field--full {
  margin-top: 32px;
}

.contact-form__label {
  font-size: 15px;
  font-weight: 600;
  color: #222;
}

.contact-form__required {
  color: var(--color-point-light);
  margin-left: 2px;
}

.contact-form__input,
.contact-form__select,
.contact-form__textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  color: #333;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder { color: #999; }

.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__textarea:focus {
  outline: none;
  border-color: var(--color-point-light);
  box-shadow: 0 0 0 3px rgba(21, 121, 235, 0.1);
}

.contact-form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.contact-form__select option[value=""][disabled] { color: #999; }

.contact-form__textarea {
  resize: vertical;
  min-height: 150px;
}

/* 개인정보 수집 동의 */
.contact-form__agree { margin-top: 24px; }

.contact-form__agree-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #555;
}

.contact-form__agree-check {
  width: 18px;
  height: 18px;
  accent-color: var(--color-point-light);
  cursor: pointer;
  flex-shrink: 0;
}

.contact-form__agree-text { user-select: none; }

.contact-form__agree-tag {
  display: inline;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 500;
  color: var(--color-point-light);
  background: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.contact-form__agree-tag:hover {
  color: #0469DD;
  opacity: 0.85;
}

.contact-form__agree-tag:focus {
  outline: none;
  text-decoration: underline;
}

.contact-form__input.is-error,
.contact-form__select.is-error,
.contact-form__textarea.is-error {
  border-color: #e53935;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.contact-form__submit {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.contact-form__submit .btn--large {
  min-width: 200px;
  padding: 16px 48px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 4px;
}

.btn--primary {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(97deg, #0469DD 70.29%, #34BAF4 101.63%);
  border-radius: 4px;
  color: #fff;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn--primary:hover {
  opacity: 0.9;
}

.btn--primary:active { transform: scale(0.98); }

/* 개인정보 이용동의 팝업 */
.privacy-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.privacy-popup.is-open {
  opacity: 1;
  visibility: visible;
}
.privacy-popup.is-open .privacy-popup__box { transform: scale(1); }

.privacy-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.privacy-popup__box {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transform: scale(0.96);
  transition: transform 0.25s ease;
}

.privacy-popup__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.privacy-popup__title {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  margin: 0;
}

.privacy-popup__close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  color: #666;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.privacy-popup__close:hover {
  background: #eee;
  color: #222;
}

.privacy-popup__body {
  padding: 24px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.7;
  color: #444;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}

.privacy-popup__body::-webkit-scrollbar {
  width: 8px;
}

.privacy-popup__body::-webkit-scrollbar-track {
  background: transparent;
}

.privacy-popup__body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}

.privacy-popup__body::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.4);
}

.privacy-popup__section {
  margin-bottom: 24px;
}

.privacy-popup__section:last-child { margin-bottom: 0; }

.privacy-popup__heading {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  margin: 0 0 10px;
}

.privacy-popup__section p {
  margin: 0 0 10px;
}

.privacy-popup__section p:last-child { margin-bottom: 0; }

.privacy-popup__section ul {
  margin: 8px 0 10px;
  padding-left: 20px;
}

.privacy-popup__section li { margin-bottom: 4px; }

/* ============================================
   태블릿 (1024px 이하)
   ============================================ */
@media screen and (max-width: 1024px) {

  .section-contact-hero {
    padding: 104px 0 0;
  }

  .section-contact-hero__title {
    font-size: 36px;
    height: 100px;
    margin: 0 0 20px;
  }

  .section-contact-hero__image-wrap {
    width: 95%;
    margin: 0 auto;
    border-radius: 8px;
  }

  .section-contact-form {
    padding: 20px 0 80px;
  }

  .contact-form__grid {
    gap: 24px 32px;
  }
}

/* ============================================
   모바일 (768px 이하)
   ============================================ */
@media screen and (max-width: 768px) {

  .section-contact-hero {
    padding: 94px 0 0;
  }

  .section-contact-hero__title {
    font-size: 26px;
    margin: 0;
    line-height: 1.4;
  }

  .section-contact-hero__image-wrap {
    width: 100%;
    margin: 0;
    border-radius: 0;
    aspect-ratio: auto;
    height: 80vh;
    max-height: 500px;
  }

  .section-contact-hero__image {
    object-fit: cover;
  }

  .section-contact-form {
    padding: 20px 0 60px;
  }

  .contact-form__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }

  .contact-form__label {
    font-size: 14px;
  }

  .contact-form__input,
  .contact-form__select,
  .contact-form__textarea {
    padding: 12px 14px;
    font-size: 14px;
  }

  .contact-form__textarea {
    min-height: 120px;
  }

  .contact-form__agree {
    margin-top: 20px;
  }

  .contact-form__agree-label {
    font-size: 13px;
  }

  .contact-form__agree-check {
    width: 16px;
    height: 16px;
  }

  .contact-form__submit {
    margin-top: 32px;
  }

  .contact-form__submit .btn--large {
    width: 100%;
    padding: 14px 24px;
  }

  .privacy-popup {
    padding: 16px;
  }

  .privacy-popup__box {
    max-height: 90vh;
  }

  .privacy-popup__head {
    padding: 16px 20px;
  }

  .privacy-popup__title {
    font-size: 16px;
  }

  .privacy-popup__body {
    padding: 20px;
    font-size: 13px;
  }

  .privacy-popup__heading {
    font-size: 14px;
  }
}
