/* ===== K05 Contact — Say HELLO / 문의 폼 / Our Location =====
   전체 다크. 독립 ct-* 클래스(.contact는 푸터 CTA용이라 충돌 방지).
   1920 시안 기준 vw 환산 (px/1920*100). 치수는 캡처 기반. */

body.page-K05 {
  background: var(--color-black);
  color: var(--color-white);
}
/* 콘택트 페이지에선 푸터 상단 공통 CTA("Looking to create…") 숨김 */
body.page-K05 .contact {
  display: none;
}

.ct {
  width: 94.792vw;
  margin-inline: auto;
  padding-top: 12.24vw; /* 235 */
  padding-bottom: 9.375vw; /* 180 */
  border-bottom: 2px solid var(--color-grey-400);
}

/* ① Hero */
.ct-hero__title {
  font-size: 7.292vw;
  font-weight: 500;
  line-height: 1.2;
}
/* "Say"는 고정, 언어 단어만 페이드 전환 — contact-hero.js FADE_MS와 일치 */
.ct-hero__word {
  display: inline-block;
  transition: opacity 0.4s ease;
}
.ct-hero__word.is-fading {
  opacity: 0;
}
.ct-hero__desc {
  width: 61.094vw;
  margin-top: 5.208vw; /* 100 */
  font-size: 1.667vw;
  line-height: 1.5;
  color: var(--color-grey-200);
  margin-left: auto;
}
.ct-hero__desc img {
  display: inline-block;
  width: 3.317vw;
  height: 1.042vw;
  filter: brightness(0) invert(1);
}
.ct-hero__lang-button {
  margin-top: 0.417vw; /* 8 */
  margin-left: auto;
  margin-right: 5.677vw; /* 109: about 히어로 언어 토글과 동일 오프셋 */
  display: block;
}

/* ② Project Inquiries */
.ct-form-section {
  margin-top: 8.333vw; /* 160 */
}
.ct-form__label {
  font-size: 1.667vw; /* 32 */
  line-height: 1.5;
  font-weight: 500;
  padding-block: 1.042vw; /* 20 */
  border-bottom: 1px solid var(--color-grey-400);
}
.ct-form__required {
  margin-top: 1.042vw; /* 20 */
  font-size: 1.25vw; /* 24 */
  text-align: right;
  color: var(--color-grey-200);
  line-height: 1.5;
}

/* 좌측 V 비주얼 + 우측 폼 2단 레이아웃 */
.ct-form__layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 3.333vw; /* 64 */
  gap: 4.167vw; /* 80 */
}
.ct-form__visual {
  margin: 0;
  width: 28.698vw; /* 551 */
  flex: none;
}
.ct-form__visual video {
  display: block;
  width: 100%;
  height: auto;
}

.ct-form {
  display: flex;
  flex-direction: column;
  gap: 1.458vw; /* 28 */
  flex: 1;
}

.ct-field {
  min-inline-size: 0;
  border-bottom: 1px solid var(--color-grey-400);
  padding-bottom: 0.833vw;
}
.ct-field__label {
  display: block;
  margin: 0 0 0.833vw; /* 16 */
  font-size: 1.25vw; /* 24 */
  line-height: 1.5;
  font-weight: 500;
  color: var(--color-white);
}
.ct-field__hint {
  margin-top: -0.625vw; /* -12 */
  margin-bottom: 0.833vw; /* 16 */
  font-size: 1.042vw; /* 20 */
  line-height: 1.4;
  color: var(--color-grey-300);
}

/* 단일 라인 입력 — 밑줄 스타일 (label 위 / placeholder 라인 위) */
.ct-input {
  width: 100%;
  height: 1.458vw;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--color-white);
  font-size: 1.042vw; /* 20 */
}
.ct-input::placeholder {
  color: var(--color-grey-300);
}
.ct-input:focus {
  outline: none;
  border-bottom-color: var(--color-white);
}
/* 프로젝트 설명 — 박스형 유지 */
.ct-textarea {
  height: 10.313vw; /* 198 */
  padding: 1.042vw 1.563vw; /* 20 30 */
  border: 1px solid var(--color-grey-400);
  resize: vertical;
  resize: none;
}

/* Attach File */
/* 업로드 버튼(고정) + 파일명 칩(가변·말줄임) 한 행 */
.ct-attach__upload {
  display: flex;
  align-items: center;
  gap: 1.042vw; /* 20 */
  margin-block: 1.667vw; /* 32 */
  min-width: 0; /* 자식 ellipsis 허용 */
}
.ct-file {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 7.76vw; /* 149 */
  height: 2.135vw; /* 41 */
  border: 1px solid var(--color-grey-400);
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.ct-file input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}
.ct-file__text {
  font-size: 1.042vw;
  color: var(--color-grey-200);
}
/* 첨부된 파일명 칩 — 가변폭, 길면 말줄임 */
.ct-file__name {
  display: inline-flex;
  align-items: center;
  gap: 0.521vw; /* 10 */
  flex: 1;
  min-width: 0;
  font-size: 1.042vw; /* 20 */
  color: var(--color-white);
}
.ct-file__name-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ct-file__remove {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25vw; /* 24 */
  height: 1.25vw;
  padding: 0;
  background: none;
  border: 0;
  color: var(--color-grey-300);
  font-size: 1.25vw; /* 24 */
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}
.ct-file__remove:hover {
  color: var(--color-white);
}
.ct-attach__note {
  margin-top: 0.625vw; /* 12 */
  font-size: 1.042vw; /* 20 */
  line-height: 1.4;
  color: var(--color-grey-300);
}

/* Budget — 세로 단일 리스트 */
.ct-budget__grid {
  display: flex;
  flex-direction: column;
  gap: 1.25vw; /* 24 */
  margin-top: 1.667vw; /* 32 */
}

/* 커스텀 라디오 / 체크 */
.ct-radio {
  display: flex;
  align-items: center;
  gap: 0.833vw; /* 16 */
  cursor: pointer;
}
.ct-radio input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}
.ct-radio__mark {
  position: relative;
  flex: none;
  width: 1.25vw; /* 24 */
  height: 1.25vw; /* 24 */
  border: 1px solid var(--color-white);
  border-radius: 50%;
}
.ct-radio input:checked + .ct-radio__mark {
  border-color: var(--color-key);
  background: var(--color-key);
}
.ct-radio input:focus-visible + .ct-radio__mark {
  outline: 2px solid var(--color-grey-300);
  outline-offset: 2px;
}
.ct-radio__text {
  font-size: 1.25vw; /* 24 */
  color: var(--color-grey-100);
}
/* 예산 선택 시 텍스트 키컬러 */
.ct-budget .ct-radio input:checked ~ .ct-radio__text {
  color: var(--color-key);
}

/* Agreement */
.ct-agree {
  border: none;
}
.ct-agree__box {
  height: 10.417vw; /* 200 */
  overflow-y: auto;
  margin-top: 1.667vw; /* 32 */
  padding: 1.667vw 1.563vw;
  border: 1px solid var(--color-grey-400);
  font-size: 1.04vw; /* 20 */
  line-height: 1.5;
  color: var(--color-grey-200);
}
.ct-agree__box p {
  margin: 0 0 0.833vw;
}
.ct-agree__box p:last-child {
  margin-bottom: 0;
}
.ct-agree__check {
  margin-top: 1.25vw; /* 24 */
}

.ct-submit {
  margin-top: 4.844vw; /* 93 */
  width: 11.25vw; /* 216 */
  height: 3.854vw; /* 74 */
  background: var(--color-key);
  color: var(--color-white);
  border: 0;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 1.458vw; /* 28 */
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.ct-submit:hover {
  background: var(--color-accent);
}

/* ③ Office */
.ct-office {
  margin-top: 9.375vw; /* 180 */
}
.ct-office__label {
  font-size: 1.667vw; /* 32 */
  line-height: 1.5;
  font-weight: 500;
  padding-block: 1.042vw; /* 20 */
  border-bottom: 1px solid var(--color-grey-400);
}
.ct-office__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-end;
  margin-top: 4.167vw; /* 80 */
  margin-bottom: 4.167vw; /* 80 */
  width: 61.927vw; /* 1189 */
  margin-left: auto;
  gap: 4.167vw 8.333vw; /* 80 160 */
}
.ct-office__city {
  font-size: 1.875vw; /* 36 */
  font-weight: 500;
  line-height: 1.5;
}
.ct-office__addr {
  margin-top: 0.625vw; /* 12 */
  font-size: 1.875vw; /* 36 */
  line-height: 1.5;
}
.ct-office__phone {
  font-size: 1.875vw; /* 36 */
  line-height: 1.5;
}
.ct-office__email {
  font-size: 1.875vw; /* 36 */
  line-height: 1.5;
}
.ct-office__email a {
  color: inherit;
  text-decoration: none;
}
.ct-office__visual {
  margin: 0 0 0 auto;
  width: 61.927vw;
  height: 35.938vw;
  overflow: hidden;
}
.ct-office__visual video,
.ct-office__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ct-office__connect-title {
  font-size: 1.875vw; /* 36 */
  font-weight: 500;
  line-height: 1.3; /* 130% */
}
.ct-office__connect-desc {
  margin-top: 0;
  font-size: 1.875vw; /* 36 */
  line-height: 1.3; /* 130% */
}
.ct-office__social {
  display: flex;
  flex-direction: column;
}
.ct-office__social a {
  font-size: 1.875vw; /* 36 */
  line-height: 1.5;
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.hidden {
  display: none;
}

@media all and (max-width: 640px) {
  .ct {
    margin-inline: 4.071vw;
    padding-block: 16.285vw 21.374vw;
    width: calc(100% - 8.142vw);
  }
  .ct-hero__title {
    font-size: 7.125vw;
  }
  .ct-hero__desc {
    margin-left: 0;
    margin-top: 6.107vw;
    font-size: 4.071vw;
    width: 100%;
  }
  .ct-hero__desc br:not(:first-child) {
    display: none;
  }
  .ct-hero__lang-button {
    margin-inline: 0;
    margin-top: 2.545vw;
  }
  .ct-form {
    gap: 4.071vw;
  }
  .ct-form-section {
    margin-top: 5.089vw;
  }
  .ct-form__label {
    font-size: 3.562vw;
    padding-block: 2.036vw;
  }
  .ct-form__required {
    font-size: 2.545vw;
    margin-top: 2.036vw;
  }
  .ct-form__visual {
    display: none;
  }
  .ct-form__layout {
    margin-top: 4.071vw;
  }
  .ct-field__label {
    font-size: 3.562vw;
  }
  .ct-input {
    font-size: 3.053vw;
    height: 4.326vw;
  }
  .ct-field {
    padding-block: 1.018vw 1.527vw;
  }
  .ct-field__hint {
    font-size: 3.053vw;
    height: 4.326vw;
  }
  .ct-textarea {
    height: 26.972vw;
    margin-bottom: 1.527vw;
  }
  .ct-attach__upload {
    margin-block: 2.036vw;
  }
  .ct-file {
    width: 23.664vw;
    height: 6.361vw;
  }
  .ct-file__text {
    font-size: 3.053vw;
  }
  .ct-attach__note {
    font-size: 2.163vw;
    line-height: 1.6;
    margin-bottom: 1.527vw;
  }
  .ct-budget__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 1.527vw;
  }
  .ct-radio {
    gap: 1.145vw;
  }
  .ct-radio__text {
    font-size: 3.053vw;
  }
  .ct-radio__mark {
    width: 2.545vw;
    height: 2.545vw;
  }
  .ct-agree__box {
    height: 33.079vw;
    padding: 3.562vw 3.053vw;
    font-size: 2.163vw;
  }
  .ct-agree__box p {
    margin-bottom: 0;
  }
  .ct-agree__check {
    margin-top: 2.036vw;
  }
  .ct-submit {
    width: 100%;
    height: 11.45vw;
    font-size: 5.089vw;
    margin-top: 1.527vw;
  }
  .ct-office {
    margin-top: 21.374vw;
  }
  .ct-office__label {
    font-size: 3.562vw;
    padding-block: 0 2.036vw;
  }
  .ct-office__head {
    margin-left: 0;
    width: 100%;
  }
  .ct-office__visual {
    margin-left: 0;
    width: 100%;
  }
  .ct-office__head {
    display: flex;
    flex-direction: column;
    margin-block: 5.089vw;
    align-items: flex-start;
    gap: 0;
  }
  .ct-office__social a,
  .ct-office__connect-title,
  .ct-office__connect-desc,
  .ct-office__phone,
  .ct-office__email,
  .ct-office__addr,
  .ct-office__city {
    font-size: 4.071vw;
    line-height: 1.5;
    margin: 0;
  }
  .ct-office__contact {
    margin-top: 3.053vw;
  }
  .ct-office__connect-title {
    margin-top: 8.142vw;
  }
  .ct-office__social {
    margin-top: 3.053vw;
  }
  .ct-office__visual {
    height: 53.435vw;
  }
  .ct-office__head {
    margin-bottom: 8.142vw;
  }
}
