.contact-body {
  --contact-accent: #111;
  --contact-accent-hover: #242424;
  --contact-border: #e5e5e7;
  --contact-ease: cubic-bezier(.22,.6,.2,1);
}

.contact-page {
  min-height: 100vh;
  overflow-x: clip;
  background: #fff;
}

.contact-page #site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.contact-body #site-header .header-request,
.contact-body #site-header .header-request[aria-current="page"] {
  color: #fff !important;
}

.contact-body.contact-is-complete .contact-hero {
  display: none;
}

/* 접수 완료 화면은 브라우저 높이를 정확히 채우고,
   헤더와 푸터 사이의 남은 영역 중앙에 완료 패널을 배치합니다. */
.contact-body.contact-is-complete .contact-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.contact-body.contact-is-complete #site-header {
  flex: 0 0 auto;
  padding-top: 0;
}

.contact-body.contact-is-complete .contact-main {
  display: flex;
  min-height: 0;
  flex: 1 0 auto;
}

.contact-body.contact-is-complete .contact-form-section {
  display: grid;
  width: 100%;
  flex: 1 0 auto;
  place-items: center;
  padding-top: clamp(24px, 4vh, 48px);
  padding-bottom: clamp(24px, 4vh, 48px);
}

.contact-body.contact-is-complete .contact-form-wrap {
  width: min(100%, 1040px);
}

.contact-body.contact-is-complete .contact-success {
  width: 100%;
  margin: 0;
}

.contact-body.contact-is-complete #site-footer {
  flex: 0 0 auto;
  margin-top: auto;
}

.contact-main {
  position: relative;
  z-index: 1;
}

.contact-hero {
  padding: clamp(92px, 10vw, 142px) var(--pad-x) 0;
  text-align: center;
}

.contact-hero__inner,
.contact-form-wrap {
  width: min(100%, 1040px);
  margin: 0 auto;
}

.contact-hero h1 {
  margin: 0;
  font-family: Outfit, Pretendard, sans-serif;
  font-size: clamp(36px, 3.2vw, 48px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.035em;
  color: #111;
}

.contact-hero p {
  margin: 18px auto 0;
  color: #555;
  font-size: 17px;
  line-height: 1.65;
}

.contact-form-section {
  padding: 48px var(--pad-x) var(--sec-y);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-step {
  padding: 30px;
  border: 0;
  border-radius: var(--card-radius, 14px);
  background: rgba(255,255,255,.74);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  backdrop-filter: blur(18px) saturate(115%);
  box-shadow: 0 12px 34px rgba(20,20,20,.045);
}

.contact-step__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.contact-step__number {
  color: #b0b0b0;
  font-family: Outfit, sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.contact-step h2 {
  margin: 0;
  color: #111;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -.02em;
}

.contact-step h2 small {
  color: #888;
  font-size: 12.5px;
  font-weight: 500;
}

.contact-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.contact-service {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 13px;
  min-height: 82px;
  align-items: start;
  padding: 17px;
  border: 1px solid #dedee1;
  border-radius: var(--card-radius, 14px);
  background: #fff;
  cursor: pointer;
  transition: border-color .3s var(--contact-ease), background-color .3s var(--contact-ease), box-shadow .3s var(--contact-ease), transform .3s var(--contact-ease);
}

.contact-service:active {
  transform: scale(.99);
}

.contact-service.is-selected {
  border-color: var(--contact-accent);
  background: rgba(17,17,17,.04);
  box-shadow: inset 0 0 0 1px rgba(17,17,17,.08);
}

.contact-service input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-service__check {
  display: grid;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  place-items: center;
  border: 1.5px solid #c8c8cc;
  border-radius: 6px;
  color: #fff;
  background: #fff;
  transition: border-color .3s var(--contact-ease), background-color .3s var(--contact-ease), transform .3s var(--contact-ease);
}

.contact-service.is-selected .contact-service__check {
  border-color: var(--contact-accent);
  background: var(--contact-accent);
}

.contact-service__check svg {
  width: 13px;
  height: 13px;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .3s var(--contact-ease), transform .3s var(--contact-ease);
}

.contact-service.is-selected .contact-service__check svg {
  opacity: 1;
  transform: scale(1);
}

.contact-service strong {
  display: block;
  color: #111;
  font-size: 14.5px;
  font-weight: 600;
}

.contact-service em {
  display: block;
  margin-top: 4px;
  color: #777;
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
}

.contact-choice-grid,
.contact-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.contact-choice-grid fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.contact-label {
  display: block;
  margin-bottom: 8px;
  color: #444;
  font-size: 12.5px;
  font-weight: 600;
}

.contact-label-note {
  color: #888;
  font-weight: 500;
}

.contact-required {
  color: #d64048;
}

.contact-choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-choice {
  position: relative;
  cursor: pointer;
}

.contact-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.contact-choice span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid #d8d8dc;
  border-radius: 999px;
  color: #555;
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
  transition: border-color .25s ease, background-color .25s ease, color .25s ease, transform .25s ease;
}

.contact-choice input:checked + span {
  border-color: #111;
  color: #fff;
  background: #111;
}

.contact-field + .contact-field,
.contact-field--full {
  margin-top: 16px;
}

.contact-field-grid .contact-field {
  margin-top: 0;
}

.contact-input,
.contact-textarea {
  width: 100%;
  border: 1px solid #dedee1;
  border-radius: 12px;
  color: #111;
  background: #fff;
  font-family: Pretendard, sans-serif;
  font-size: 14.5px;
  transition: border-color .3s var(--contact-ease), box-shadow .3s var(--contact-ease), background-color .3s var(--contact-ease);
}

.contact-input {
  height: 50px;
  padding: 0 15px;
}

.contact-textarea {
  min-height: 140px;
  padding: 14px 15px;
  line-height: 1.65;
  resize: vertical;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: #8b8b90;
}

.contact-input:focus,
.contact-textarea:focus {
  border-color: var(--contact-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(17,17,17,.09);
}

.contact-consent {
  display: flex;
  margin-top: 18px;
  align-items: flex-start;
  gap: 10px;
}

.contact-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  accent-color: #111;
}

.contact-consent span {
  color: #666;
  font-size: 12.5px;
  line-height: 1.55;
}

.contact-policy-open {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: #333;
  background: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: color .25s ease, border-color .25s ease;
}

.contact-footer-policy {
  padding: 0;
  border: 0;
  color: #111;
  background: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: color .25s ease;
}

.contact-error {
  display: none;
  margin: 8px 0 0;
  color: #c4323b;
  font-size: 12px;
  line-height: 1.5;
}

.contact-error.is-visible {
  display: block;
}

.contact-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.contact-submit-wrap {
  display: flex;
  margin-top: 12px;
  flex-direction: column;
  align-items: center;
  gap: 11px;
}

.contact-submit {
  display: inline-flex;
  width: min(100%, 420px);
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: #111;
  box-shadow: 0 12px 28px rgba(0,0,0,.14);
  font-family: Pretendard, sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .3s var(--contact-ease), color .3s var(--contact-ease), transform .3s var(--contact-ease), box-shadow .3s var(--contact-ease);
}

.contact-submit:active {
  transform: translateY(0) scale(.99);
}

.contact-choice:active span,
.privacy-modal__confirm:active,
.contact-success a:active {
  transform: translateY(0) scale(.98);
}

.contact-submit:disabled {
  color: #aaa;
  background: #ededee;
  box-shadow: none;
  cursor: wait;
  transform: none;
}

.contact-submit-note,
.contact-status {
  margin: 0;
  color: #888;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.contact-status.is-error {
  color: #c4323b;
}

.contact-success {
  position: relative;
  display: none;
  overflow: hidden;
  padding: 82px 40px;
  border-radius: 26px;
  color: #fff;
  background: #0d0d0d;
  text-align: center;
}

.contact-success.is-visible {
  display: block;
}

.contact-success::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 50% 50%, #3a3a3a, #232323 30%, #0d0d0d 62%);
  animation: contact-success-orb 11s ease-in-out infinite;
}

.contact-success__content {
  position: relative;
}

.contact-success__icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}

.contact-success h2 {
  margin: 22px 0 0;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.03em;
}

.contact-success p {
  max-width: 520px;
  margin: 14px auto 0;
  color: #c4c4c4;
  font-size: 14.5px;
  line-height: 1.7;
}

.contact-success a {
  display: inline-flex;
  min-height: 46px;
  margin-top: 26px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  color: #111;
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  transition: background-color .3s var(--contact-ease), color .3s var(--contact-ease), transform .3s var(--contact-ease), box-shadow .3s var(--contact-ease);
}

@keyframes contact-success-orb {
  0%, 100% { transform: translate(-12%, -10%) scale(1); }
  50% { transform: translate(12%, 10%) scale(1.25); }
}

.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  padding: 24px;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility .3s ease;
}

.privacy-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.privacy-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(22,22,24,.48);
  backdrop-filter: blur(4px);
  cursor: default;
}

.privacy-modal__dialog {
  position: relative;
  width: min(100%, 760px);
  max-height: min(82dvh, 760px);
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 36px 90px rgba(0,0,0,.22);
  transform: translateY(14px) scale(.98);
  transition: transform .32s cubic-bezier(.22,.61,.36,1);
}

.privacy-modal.is-open .privacy-modal__dialog {
  transform: none;
}

.privacy-modal__header {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  border-bottom: 1px solid #ececef;
}

.privacy-modal__header h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
}

.privacy-modal__close {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 11px;
  color: #777;
  background: #f4f4f6;
  cursor: pointer;
  transition: color .25s ease, background-color .25s ease, transform .25s ease;
}

.privacy-modal__body {
  max-height: calc(min(82dvh, 760px) - 148px);
  overflow-y: auto;
  padding: 26px;
  color: #555;
  font-size: 13.5px;
  line-height: 1.75;
}

.privacy-modal__body h3 {
  margin: 24px 0 7px;
  color: #111;
  font-size: 14px;
  font-weight: 600;
}

.privacy-modal__body h3:first-child {
  margin-top: 0;
}

.privacy-modal__body p,
.privacy-modal__body ul {
  margin: 0;
}

.privacy-modal__body ul {
  padding-left: 18px;
}

.privacy-modal__footer {
  padding: 14px 26px;
  border-top: 1px solid #ececef;
  background: #fff;
}

.privacy-modal__confirm {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: #111;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .3s var(--contact-ease), transform .3s var(--contact-ease), box-shadow .3s var(--contact-ease);
}

.contact-main button:focus-visible,
.contact-main a:focus-visible,
.contact-main input:focus-visible,
.contact-main textarea:focus-visible,
.privacy-modal button:focus-visible {
  outline: 2px solid var(--contact-accent, #111);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .contact-service:hover {
    border-color: #cfcfd3;
    box-shadow: 0 12px 26px rgba(20,20,24,.08);
    transform: translateY(-2px);
  }

  .contact-service.is-selected:hover {
    border-color: var(--contact-accent);
    box-shadow: 0 12px 26px rgba(17,17,17,.1), inset 0 0 0 1px rgba(17,17,17,.08);
  }

  .contact-choice:hover span {
    border-color: #aaa;
    color: #111;
    transform: translateY(-1px);
  }

  .contact-input:hover,
  .contact-textarea:hover {
    border-color: #c5c5c9;
  }

  .contact-input:focus:hover,
  .contact-textarea:focus:hover {
    border-color: var(--contact-accent);
  }

  .contact-policy-open:hover,
  .contact-footer-policy:hover {
    color: var(--contact-accent);
  }

  .contact-submit:hover,
  .privacy-modal__confirm:hover {
    color: #fff;
    background: var(--contact-accent);
    box-shadow: 0 10px 24px rgba(17,17,17,.22);
    transform: translateY(-2px);
  }

  .contact-success a:hover {
    color: #fff;
    background: var(--contact-accent);
    box-shadow: 0 10px 24px rgba(17,17,17,.2);
    transform: translateY(-2px);
  }

  .privacy-modal__close:hover {
    color: #111;
    background: #ebebed;
    transform: rotate(4deg);
  }
}

body.has-modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .contact-hero {
    padding: 62px 20px 0;
  }

  .contact-hero h1 {
    font-size: 20px;
    line-height: 1.3;
  }

  .contact-hero p {
    margin-top: 14px;
    font-size: 13.5px;
    line-height: 1.65;
  }

  .contact-form-section {
    padding: 32px 20px 76px;
  }

  .contact-form {
    gap: 10px;
  }

  .contact-step {
    padding: 20px 16px;
    border-radius: 14px;
    box-shadow: none;
  }

  .contact-step h2 {
    font-size: 15.5px;
  }

  .contact-step h2 small {
    display: block;
    margin-top: 2px;
    font-size: 10.5px;
  }

  .contact-service-grid,
  .contact-choice-grid,
  .contact-field-grid {
    grid-template-columns: 1fr;
  }

  .contact-service-grid {
    gap: 8px;
    margin-top: 16px;
  }

  .contact-service {
    min-height: 72px;
    padding: 14px;
  }

  .contact-service strong {
    font-size: 13.5px;
  }

  .contact-service em {
    font-size: 11px;
  }

  .contact-choice-grid,
  .contact-field-grid {
    gap: 16px;
    margin-top: 16px;
  }

  .contact-field-grid .contact-field + .contact-field {
    margin-top: 0;
  }

  .contact-choice span {
    min-height: 34px;
    padding: 0 12px;
    font-size: 11.5px;
  }

  .contact-input,
  .contact-textarea {
    font-size: 13px;
  }

  .contact-input {
    height: 46px;
  }

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

  .contact-submit {
    min-height: 48px;
    border-radius: 12px;
    font-size: 13.5px;
  }

  .contact-success {
    padding: 58px 22px;
    border-radius: 18px;
  }

  .contact-success h2 {
    font-size: 21px;
  }

  .contact-success p {
    font-size: 12.5px;
  }

  .privacy-modal {
    padding: 14px;
  }

  .privacy-modal__dialog {
    max-height: 86dvh;
    border-radius: 18px;
  }

  .privacy-modal__header {
    min-height: 62px;
    padding: 0 18px;
  }

  .privacy-modal__header h2 {
    font-size: 16px;
  }

  .privacy-modal__body {
    max-height: calc(86dvh - 130px);
    padding: 20px 18px;
    font-size: 12.5px;
  }

  .privacy-modal__footer {
    padding: 10px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-success::before {
    animation: none;
  }

  .contact-service,
  .contact-service__check,
  .contact-service__check svg,
  .contact-choice span,
  .contact-input,
  .contact-textarea,
  .contact-submit,
  .contact-success a,
  .privacy-modal,
  .privacy-modal__dialog,
  .privacy-modal__close,
  .privacy-modal__confirm {
    transition-duration: .01ms !important;
  }
}
