.site-contact,
.site-contact * { box-sizing: border-box; }

.site-contact {
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 120px;
  color: #111;
  font: 15px/1.65 Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.contact-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 2px solid #111;
}

.contact-head p {
  margin: 0;
  color: #777;
  font: 700 11px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .14em;
}

.contact-head h1 {
  margin: 3px 0 0;
  font-size: 42px;
  line-height: 1;
}

.contact-head > span { color: #666; font-size: 13px; }

.contact-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  border-bottom: 1px solid #111;
}

.contact-guide {
  padding: 38px 32px 38px 0;
  border-right: 1px solid #111;
}

.contact-guide strong { display: block; margin-bottom: 13px; font-size: 18px; }
.contact-guide p { margin: 0 0 18px; }
.contact-guide small { color: #777; }

.contact-form { padding: 38px 0 38px 40px; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-row + .contact-row { margin-top: 22px; }
.contact-form label > span { display: block; margin-bottom: 7px; font-weight: 700; }
.contact-form label b { color: #111; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #aaa;
  border-radius: 0;
  background: #fff;
  color: #111;
  font: inherit;
}

.contact-form input,
.contact-form select { height: 46px; padding: 0 13px; }
.contact-form textarea { display: block; min-height: 230px; padding: 13px; resize: vertical; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: #111; outline: 2px solid #111; outline-offset: 2px; }

.contact-message { display: block; margin-top: 22px; }
.contact-message small { display: block; margin-top: 5px; color: #777; text-align: right; }

.contact-captcha { margin-top: 24px; padding: 18px; border: 1px solid #ccc; background: #f6f6f6; }
.contact-captcha #captcha { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; border: 0; }
.contact-captcha #captcha legend { position: static; width: 100%; margin-bottom: 7px; font-weight: 700; }
.contact-captcha #captcha_img { height: 42px; border: 1px solid #aaa; }
.contact-captcha #captcha input { width: 110px; height: 42px; }
.contact-captcha #captcha button { height: 42px; padding: 0 10px; border: 1px solid #111; background: #fff; color: #111; }
.contact-captcha #captcha_info { width: 100%; color: #777; font-size: 12px; }

.contact-privacy { display: flex; align-items: flex-start; gap: 9px; margin-top: 20px; }
.contact-privacy input { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 4px; accent-color: #111; }
.contact-privacy span { margin: 0 !important; font-weight: 400 !important; }

.contact-submit {
  display: block;
  min-width: 150px;
  min-height: 48px;
  margin: 28px 0 0 auto;
  padding: 0 24px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.contact-submit:hover { background: #333; }
.contact-submit:disabled { background: #555; cursor: wait; }
.contact-submit:focus-visible { outline: 2px solid #111; outline-offset: 3px; }

.contact-result { margin: 24px 0 0; padding: 16px 18px; border: 1px solid #111; }
.contact-result.success { color: #fff; background: #111; }
.contact-result.error { border-left-width: 6px; }
.contact-result.error strong { display: block; margin-bottom: 4px; }
.contact-result ul { margin: 0; padding-left: 20px; }
.contact-complete {
  margin-top: 28px;
  padding: 72px 24px;
  border: 1px solid #111;
  text-align: center;
}
.contact-complete small {
  font: 700 11px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .14em;
}
.contact-complete h2 { margin: 12px 0 8px; font-size: 28px; }
.contact-complete p { margin: 0; color: #666; }
.contact-complete div { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.contact-complete a {
  min-width: 126px;
  padding: 11px 18px;
  border: 1px solid #111;
  color: #111;
  text-decoration: none;
  font-weight: 800;
}
.contact-complete a:first-child { color: #fff; background: #111; }
.contact-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

@media (max-width: 720px) {
  .site-contact { width: min(100% - 28px, 1040px); padding: 38px 0 96px; }
  .contact-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .contact-head h1 { font-size: 34px; }
  .contact-layout { display: block; }
  .contact-guide { padding: 24px 0; border-right: 0; border-bottom: 1px solid #111; }
  .contact-form { padding: 26px 0 34px; }
  .contact-row { grid-template-columns: 1fr; gap: 18px; }
  .contact-captcha #captcha_info { line-height: 1.45; }
  .contact-submit { width: 100%; }
  .contact-complete { padding: 52px 18px; }
  .contact-complete div { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .site-contact * { scroll-behavior: auto !important; transition: none !important; }
}
