/* ==================================================================
   CONTACT — 관심고객 등록 (에테르노 압구정)
   에테르노 청담 contact 페이지와 동일 디자인.
   토큰: back #f5f1e7 / sub #faf8f3 / body #777774 / active #5a5a5a
         muted #8e8e8e / hairline #d3cec0 / accent #a08b5e
   ================================================================== */

/* ------------------------------------------------------------------
   0. Kadence / 테마 리셋 — 이 페이지에서만
------------------------------------------------------------------ */
.page-template-contact #primary {
  display: block;
  margin: 0;
  padding: 0;
  background-color: #f5f1e7;
}

.page-template-contact .content-area {
  margin: 0;
}

/* 공통 인너 -------------------------------------------------------- */
.ct-inner {
  width: calc(100% - 80px);
  max-width: 1000px;
  margin: 0 auto;
}

/* 스크린리더 전용 ------------------------------------------------- */
.blind {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 진입 모션 — 인트로(1.5s) 종료 직후 -------------------------------- */
@keyframes ctRise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ct-rise {
  opacity: 0;
  animation: ctRise 900ms cubic-bezier(0.2, 0.8, 0.4, 1) 1600ms forwards;
}

.ct-rise-2 {
  animation-delay: 1750ms;
}

.ct-rise-3 {
  animation-delay: 1900ms;
}

/* ==================================================================
   HERO
   ================================================================== */
#contact-hero {
  background-color: #f5f1e7;
  padding: 160px 0 90px;
  text-align: center;
}

#contact-hero h1 {
  margin: 0;
  padding: 0;
  font-family: "Everett", "Pretendard Variable", Pretendard, sans-serif;
  font-weight: 400;
  font-size: 50px;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #777774;
}

#contact-hero h1 span {
  display: block;
  margin-top: 14px;
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", sans-serif;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: #8e8e8e;
}

#contact-hero .ct-rule {
  width: 1px;
  height: 56px;
  margin: 36px auto 28px;
  background-color: #c9c2b0;
}

#contact-hero .ct-slogan {
  margin: 0;
  font-family: "Darby", "Everett", sans-serif;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #a08b5e;
}

/* ==================================================================
   FORM
   ================================================================== */
#contact-form {
  background-color: #faf8f3;
  border-top: 1px solid #d3cec0;
  padding: 90px 0 120px;
}

/* 리드 문구 */
.ct-lead {
  margin-bottom: 70px;
}

.ct-lead h2 {
  margin: 0 0 18px;
  padding: 0;
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: #5a5a5a;
}

.ct-lead p {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", sans-serif;
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: 0.01em;
  color: #777774;
}

/* ---- 폼 커서 복구 -----------------------------------------------
   이 사이트는 body { cursor:none !important } 로 브랜드 커서를 쓴다.
   입력 영역 안에서만 네이티브 커서를 되살린다. (#circle-cursor 는 JS 에서 숨김)
------------------------------------------------------------------ */
.rsv,
.rsv *,
#contact-done,
#contact-done * {
  cursor: auto !important;
}

.rsv label,
.rsv button,
.rsv select,
.rsv a,
#contact-done a {
  cursor: pointer !important;
}

.rsv input[type="text"],
.rsv input[type="tel"],
.rsv input[type="email"] {
  cursor: text !important;
}

/* ---- 입력 영역 --------------------------------------------------- */
.rsv {
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", sans-serif;
}

.rsv__rows {
  border-top: 1px solid #d3cec0;
  padding-top: 10px;
  margin-bottom: 80px;
}

.rsv__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0 32px;
  align-items: start;
  padding: 16px 0;
}

.rsv__row > label {
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: #5a5a5a;
  padding-top: 12px;
}

.rsv__row > label b {
  font-weight: 400;
  color: #a08b5e;
  margin-left: 3px;
}

.rsv__in {
  min-width: 0;
}

.rsv__in input,
.rsv__in select {
  display: block;
  width: 100%;
  max-width: 520px; /* 짧은 필드가 1000px 로 늘어나지 않게 측정치 고정 */
  height: 42px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: transparent;
  border: 0;
  border-bottom: 1px solid #cdc6b4;
  border-radius: 0;
  box-shadow: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: #4e4e4e;
  color-scheme: light;
  transition: border-color 250ms;
}

.rsv__in input::placeholder {
  color: #8d8677;
  opacity: 1;
}

.rsv__in input:hover,
.rsv__in select:hover {
  border-bottom-color: #a9a190;
}

.rsv__in input:focus,
.rsv__in select:focus {
  outline: none;
  border-bottom-color: #5a5a5a;
  box-shadow: none;
}

.rsv__in input:focus-visible,
.rsv__in select:focus-visible {
  outline: 1px solid #5a5a5a;
  outline-offset: 3px;
}

/* select — 1px 셰브론 */
.rsv__in select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 24px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235a5a5a' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
}

.rsv__in select:invalid {
  color: #8d8677;
}

/* date */
.rsv__in input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.45;
  cursor: pointer !important;
}

/* 에러 */
.err {
  display: none;
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0;
  color: #a34a2f;
}

.err.is-on {
  display: block;
}

.rsv__row.is-error .rsv__in input,
.rsv__row.is-error .rsv__in select {
  border-bottom-color: #a34a2f;
}

/* ---- 약관 블록 --------------------------------------------------- */
.rsv__agree {
  margin-bottom: 56px;
}

.rsv__agree h4 {
  margin: 0 0 12px;
  padding: 0;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: #5a5a5a;
}

.rsv__agree h4 em {
  font-style: normal;
  color: #a08b5e;
  margin-right: 6px;
}

.rsv__agree h4 em.opt {
  color: #8e8e8e;
}

.rsv__lead {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  color: #8e8e8e;
}

/* 표 */
.rsv__tbl {
  width: 100%;
  border-top: 1px solid #d3cec0;
  font-size: 14px;
  line-height: 1.75;
  text-align: left;
}

.rsv__tbl caption {
  text-align: left;
  font-size: 14px;
  line-height: 1.6;
  color: #5a5a5a;
  padding: 0 0 10px;
}

.rsv__tbl th,
.rsv__tbl td {
  border-bottom: 1px solid #e4dfd1;
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  box-sizing: border-box;
}

.rsv__tbl th {
  width: 210px;
  background-color: #f5f1e7;
  color: #5a5a5a;
  font-weight: 400;
}

.rsv__tbl td {
  color: #777774;
}

.rsv__tbl b {
  font-weight: 400;
  color: #5a5a5a;
}

.rsv__tbl .sm {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #8e8e8e;
}

/* 위탁 표 — 컬럼형 (caption 이 표 상단 라벨 역할) */
.rsv__tbl--col thead th {
  width: auto;
  white-space: nowrap;
}

.rsv__tbl--col tbody td {
  width: auto;
}

/* ---- 동의 선택 --------------------------------------------------- */
.rsv__asks {
  border-bottom: 1px solid #d3cec0;
}

.rsv__ask {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 32px;
  padding: 20px 0;
  border-top: 1px solid #d3cec0;
}

.rsv__ask p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: #5a5a5a;
}

.rsv__ask p em {
  font-style: normal;
  color: #a08b5e;
  margin-right: 6px;
}

.rsv__ask p em.opt {
  color: #8e8e8e;
}

.rsv__radio {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
}

/* 포커스 유지를 위해 display:none 대신 시각적 숨김 */
.rsv__radio input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  margin: 0;
  pointer-events: none;
}

.rsv__radio label {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 18px;
  color: #777774;
  transition: color 200ms;
}

.rsv__radio label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  box-sizing: border-box;
  border: 1px solid #b3ab99;
  border-radius: 50%;
  transition: border-color 200ms;
}

.rsv__radio label:hover {
  color: #5a5a5a;
}

.rsv__radio label:hover::before {
  border-color: #8d8677;
}

.rsv__radio input:checked + label {
  color: #4e4e4e;
}

.rsv__radio input:checked + label::before {
  border-color: #5a5a5a;
}

.rsv__radio input:checked + label::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #5a5a5a;
}

.rsv__radio input:focus-visible + label::before {
  outline: 1px solid #5a5a5a;
  outline-offset: 3px;
}

.rsv__ask.is-error label::before {
  border-color: #a34a2f;
}

#e-agree {
  margin: 0 0 14px;
}

/* ---- 제출 ------------------------------------------------------- */
.rsv__btns {
  margin-top: 56px;
  text-align: center;
}

.rsv__submit {
  min-width: 300px;
  height: 58px;
  padding: 0 40px;
  box-sizing: border-box;
  background-color: #5a5a5a;
  border: 1px solid #5a5a5a;
  border-radius: 0;
  box-shadow: none !important;
  color: #f5f1e7;
  font-family: inherit;
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.04em;
  transition: background-color 300ms, color 300ms, border-color 300ms;
}

.rsv__submit:hover {
  background-color: #dbceb1;
  border-color: #dbceb1;
  color: #4a4a45;
}

.rsv__submit:focus-visible {
  outline: 1px solid #5a5a5a;
  outline-offset: 3px;
}

.rsv__submit[disabled] {
  background-color: #b3ab99;
  border-color: #b3ab99;
  color: #f5f1e7;
  cursor: default !important;
}

.fmsg {
  display: none;
  margin: 22px 0 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
}

.fmsg.is-ok {
  display: block;
  color: #4e4e4e;
}

.fmsg.is-err {
  display: block;
  color: #a34a2f;
}

.rsv__foot {
  margin: 28px 0 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.01em;
  color: #8e8e8e;
  text-align: center;
}

/* ---- 완료 패널 --------------------------------------------------- */
#contact-done {
  display: none;
  padding: 60px 0 20px;
  text-align: center;
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", sans-serif;
}

#contact-done.is-on {
  display: block;
}

#contact-done .ct-done-mark {
  width: 1px;
  height: 48px;
  margin: 0 auto 28px;
  background-color: #c9c2b0;
}

#contact-done h3 {
  margin: 0 0 16px;
  padding: 0;
  font-family: "Everett", "Pretendard Variable", sans-serif;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #5a5a5a;
}

#contact-done p {
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
  color: #777774;
}

#contact-done .ct-done-tel {
  display: inline-block;
  margin-top: 30px;
  font-family: "Everett", "Pretendard Variable", sans-serif;
  font-size: 28px;
  letter-spacing: 0.06em;
  color: #5a5a5a !important;
  border-bottom: 1px solid #c9c2b0;
  padding-bottom: 4px;
}

#contact-done .ct-done-tel:hover {
  color: #a08b5e !important;
  border-bottom-color: #a08b5e;
}

#contact-done .ct-done-back {
  display: inline-block;
  margin-top: 40px;
  padding: 14px 34px;
  border: 1px solid #b3ab99;
  color: #5a5a5a !important;
  font-family: "Everett", "Pretendard Variable", sans-serif;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background-color 300ms, color 300ms, border-color 300ms;
}

#contact-done .ct-done-back:hover {
  background-color: #5a5a5a;
  border-color: #5a5a5a;
  color: #f5f1e7 !important;
}

/* ==================================================================
   INFO
   ================================================================== */
#contact-info {
  background-color: #f5f1e7;
  border-top: 1px solid #d3cec0;
  padding: 90px 0;
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", sans-serif;
}

#contact-info h2 {
  margin: 0 0 56px;
  padding: 0;
  font-family: "Everett", "Pretendard Variable", sans-serif;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5a5a5a;
  text-align: center;
}

#contact-info .ct-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #d3cec0;
  margin: 0;
}

#contact-info .ct-info-item {
  padding: 32px 24px;
  border-bottom: 1px solid #d3cec0;
  border-right: 1px solid #d3cec0;
}

#contact-info .ct-info-item:first-child {
  border-left: 1px solid #d3cec0;
}

#contact-info .ct-info-item dt {
  margin: 0 0 12px;
  font-family: "Everett", "Pretendard Variable", sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a08b5e;
}

#contact-info .ct-info-item dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: #777774;
}

#contact-info .ct-info-item dd a {
  color: #5a5a5a !important;
}

#contact-info .ct-info-item dd a:hover {
  color: #a08b5e !important;
}

/* ==================================================================
   Tablet
   ================================================================== */
@media all and (max-width: 1024px) {
  .rsv__row {
    grid-template-columns: 160px 1fr;
    gap: 0 24px;
  }

  .rsv__tbl th {
    width: 160px;
  }

  #contact-info .ct-info-grid {
    grid-template-columns: 1fr;
  }

  #contact-info .ct-info-item {
    border-left: 1px solid #d3cec0;
  }
}

/* ==================================================================
   Mobile
   ================================================================== */
@media all and (max-width: 768px) {
  .ct-inner {
    width: calc(100% - 32px);
  }

  #contact-hero {
    padding: 90px 0 56px;
  }

  #contact-hero h1 {
    font-size: 24px;
  }

  #contact-hero h1 span {
    margin-top: 10px;
    font-size: 14px;
  }

  #contact-hero .ct-rule {
    height: 40px;
    margin: 26px auto 20px;
  }

  #contact-hero .ct-slogan {
    font-size: 14px;
  }

  #contact-form {
    padding: 56px 0 80px;
  }

  .ct-lead {
    margin-bottom: 44px;
  }

  .ct-lead h2 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .ct-lead p {
    font-size: 14px;
    line-height: 1.8;
  }

  .rsv__rows {
    margin-bottom: 48px;
  }

  .rsv__row {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 14px 0;
  }

  .rsv__row > label {
    padding-top: 0;
    margin-bottom: 4px;
    font-size: 14px;
  }

  .rsv__in input,
  .rsv__in select {
    max-width: none;
  }

  .rsv__agree {
    margin-bottom: 40px;
  }

  .rsv__agree h4 {
    font-size: 16px;
  }

  .rsv__lead {
    font-size: 13px;
    margin-bottom: 16px;
  }

  /* 표 — 행헤더형 스택 */
  .rsv__tbl {
    font-size: 13px;
  }

  .rsv__tbl th,
  .rsv__tbl td {
    display: block;
    width: auto;
    padding: 10px 12px;
  }

  .rsv__tbl th {
    border-bottom: 0;
  }

  .rsv__tbl th br {
    display: none;
  }

  .rsv__tbl .sm {
    font-size: 12px;
    font-weight: 400;
  }

  /* 표 — 컬럼형 스택 */
  .rsv__tbl--col thead {
    display: none;
  }

  .rsv__tbl--col caption {
    font-size: 13px;
  }

  .rsv__tbl--col tbody td {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 10px;
    border-bottom: 1px solid #e4dfd1;
  }

  .rsv__tbl--col tbody td::before {
    content: attr(data-th);
    color: #5a5a5a;
  }

  .rsv__ask {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 0;
  }

  .rsv__ask p {
    font-size: 14px;
  }

  .rsv__btns {
    margin-top: 40px;
  }

  .rsv__submit {
    width: 100%;
    min-width: 0;
    height: 54px;
    padding: 0 20px;
  }

  .rsv__foot {
    text-align: left;
  }

  #contact-done {
    padding: 40px 0 10px;
  }

  #contact-done h3 {
    font-size: 20px;
  }

  #contact-done p {
    font-size: 14px;
  }

  #contact-done .ct-done-tel {
    font-size: 22px;
  }

  #contact-info {
    padding: 56px 0;
  }

  #contact-info h2 {
    font-size: 20px;
    margin-bottom: 32px;
  }

  #contact-info .ct-info-item {
    padding: 20px 16px;
  }

  #contact-info .ct-info-item dd {
    font-size: 14px;
  }
}

/* ==================================================================
   Reduced motion
   ================================================================== */
@media (prefers-reduced-motion: reduce) {
  .ct-rise {
    animation: none;
    opacity: 1;
  }

  .rsv__in input,
  .rsv__in select,
  .rsv__submit,
  .rsv__radio label,
  .rsv__radio label::before {
    transition: none;
  }
}
