.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(48px, 7vw, 112px);
  padding: clamp(48px, 5vw, 80px) 0;
  align-items: start;
}
.contact-intro .fluted-accent {
  margin-bottom: 24px;
}
.contact-intro h1 {
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
}
.contact-intro > p {
  font-size: 20px;
  line-height: 1.5;
  margin: 0 0 36px;
}
.contact-form-area {
  min-width: 0;
}
.contact-form {
  margin: 0;
}
.contact-required-note {
  margin: 0 0 24px;
  font-size: 14px;
}
.contact-required-note > span:first-child,
.contact-field label > span[aria-hidden] {
  color: var(--heath);
}
.contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px 22px;
}
.contact-field {
  min-width: 0;
}
.contact-field-wide {
  grid-column: 1 / -1;
}
.contact-field label {
  display: block;
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.3;
}
.contact-optional {
  font-size: 14px;
}
.contact-field input,
.contact-field select,
.contact-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 51px;
  border: 1px solid var(--tapa);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  padding: 12px 13px;
  font: 17px/1.45 var(--sans);
  transition: border-color 0.2s ease;
}
.contact-field select {
  padding-right: 25px;
}
.contact-field textarea {
  min-height: 155px;
  resize: vertical;
}
.contact-field input:hover,
.contact-field select:hover,
.contact-field textarea:hover {
  border-color: var(--heath);
}
.contact-field input:focus-visible,
.contact-field select:focus-visible,
.contact-field textarea:focus-visible {
  outline: 2px solid var(--heath);
  outline-offset: 3px;
  border-color: var(--heath);
}
.contact-field [aria-invalid="true"] {
  border: 2px solid var(--heath);
  padding: 11px 12px;
}
.contact-field-error {
  margin-top: 9px;
  color: var(--heath);
  font-size: 14px;
  line-height: 1.4;
}
.contact-field-error:empty {
  display: none;
}
.contact-error-summary {
  padding: 13px 16px;
  margin-bottom: 24px;
  border-left: 3px solid var(--heath);
  background: var(--wood);
  color: var(--ink);
  font-size: 16px;
}
.contact-submit-row {
  display: flex;
  justify-content: flex-start;
  margin-top: 28px;
}
.contact-submit {
  min-width: 212px;
  justify-content: space-between;
}
.contact-submit:disabled {
  cursor: wait;
}
.contact-receipt {
  min-height: 475px;
  border: 1px solid var(--wood);
  background: var(--paper);
}
.contact-receipt-paper {
  padding: clamp(24px, 3vw, 42px);
  background: var(--paper);
}
.contact-drawing {
  width: 120px;
  height: 120px;
  display: block;
  margin: 0 0 34px;
  fill: none;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
.contact-guide {
  stroke: var(--tapa);
  stroke-width: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.contact-square {
  stroke: var(--heath);
  stroke-width: 1.8;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.contact-check {
  stroke: var(--heath);
  stroke-width: 2.4;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.contact-receipt.is-drawing .contact-guide {
  animation: contact-draw 0.5s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.contact-receipt.is-drawing .contact-square {
  animation: contact-draw 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.contact-receipt.is-drawing .contact-check {
  animation: contact-draw 0.35s 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.contact-receipt.is-complete .contact-drawing path {
  stroke-dashoffset: 0;
}
.contact-receipt-label {
  margin-bottom: 16px;
}
.contact-receipt h2 {
  font-size: clamp(29px, 3vw, 42px);
  line-height: 1.1;
  max-width: 450px;
}
.contact-receipt h2:focus {
  outline: none;
}
.contact-receipt-copy {
  font-size: 18px;
  line-height: 1.5;
  margin-top: 20px;
  max-width: 400px;
}
.contact-reset {
  margin-top: 32px;
  font-size: 16px;
}
.contact-receipt.is-complete .contact-receipt-status {
  animation: contact-rise 0.4s ease both;
}
@keyframes contact-draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes contact-rise {
  from {
    transform: translateY(6px);
  }
  to {
    transform: translateY(0);
  }
}
@media (max-width: 1000px) {
  .contact-layout {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    gap: 38px;
  }
  .contact-fields {
    gap: 24px 17px;
  }
}
@media (max-width: 800px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 40px 0 52px;
  }
  .contact-intro h1 {
    font-size: clamp(36px, 6vw, 48px);
  }
  .contact-intro > p {
    margin-bottom: 0;
  }
  .contact-required-note {
    margin-bottom: 21px;
  }
}
@media (max-width: 600px) {
  .contact-layout {
    gap: 28px;
    padding-top: 26px;
    padding-bottom: 42px;
  }
  .contact-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .contact-field label {
    font-size: 16px;
  }
  .contact-field input,
  .contact-field select,
  .contact-field textarea {
    font-size: 17px;
  }
  .contact-field textarea {
    min-height: 145px;
  }
  .contact-submit-row {
    margin-top: 24px;
  }
  .contact-submit {
    width: 100%;
    min-width: 0;
  }
  .contact-receipt {
    min-height: 440px;
  }
  .contact-receipt-paper {
    padding: 24px 20px;
  }
  .contact-drawing {
    width: 102px;
    height: 102px;
    margin-bottom: 27px;
  }
  .contact-receipt h2 {
    font-size: 32px;
  }
  .contact-receipt-copy {
    font-size: 17px;
    margin-top: 17px;
  }
  .contact-reset {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
    gap: 10px;
    font-size: 14px;
    justify-content: space-between;
  }
}
@media (prefers-reduced-motion: reduce) {
  .contact-receipt .contact-drawing path {
    animation: none !important;
    stroke-dashoffset: 0;
  }
  .contact-receipt-status {
    animation: none !important;
    transform: none;
  }
  .contact-field input,
  .contact-field select,
  .contact-field textarea {
    transition: none;
  }
}
