.contact-dialog {
  width: min(calc(100% - 28px), 680px);
  max-width: 680px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text, #24221f);
}

.contact-dialog::backdrop {
  background: rgba(20, 19, 17, .78);
  backdrop-filter: blur(3px);
}

.contact-panel {
  position: relative;
  border: 1px solid rgba(70, 62, 52, .16);
  padding: clamp(28px, 5vw, 52px);
  background: var(--surface, #faf8f3);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .28);
}

.contact-close {
  position: absolute;
  top: 14px;
  right: 17px;
  border: 0;
  padding: .2rem .35rem;
  background: transparent;
  color: var(--muted, #777168);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}

.contact-header {
  margin-bottom: 28px;
  padding-right: 34px;
}

.contact-kicker {
  display: block;
  margin-bottom: .55rem;
  color: var(--accent, #2f4539);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.contact-header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 400;
}

.contact-header p {
  margin: .7rem 0 0;
  color: var(--muted, #777168);
  line-height: 1.55;
}

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

.contact-field {
  display: grid;
  gap: 8px;
  color: var(--text, #24221f);
  font-size: .82rem;
}

.contact-field > span {
  letter-spacing: .04em;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid var(--line, #cfc7ba);
  border-radius: 0;
  padding: 12px 13px;
  outline: none;
  background: rgba(255,255,255,.38);
  color: var(--text, #24221f);
  font: inherit;
  line-height: 1.5;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.contact-field textarea {
  min-height: 170px;
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--accent, #2f4539);
  background: rgba(255,255,255,.65);
  box-shadow: 0 0 0 3px rgba(47, 69, 57, .09);
}

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

.contact-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
}

.contact-status {
  margin: 0;
  color: var(--muted, #777168);
  font-size: .78rem;
  line-height: 1.45;
}

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

.contact-status.is-success {
  color: var(--accent, #2f4539);
}

.contact-submit {
  flex: 0 0 auto;
  border: 1px solid var(--accent, #2f4539);
  border-radius: 999px;
  padding: .72rem 1.05rem;
  background: var(--accent, #2f4539);
  color: #fff;
  cursor: pointer;
  transition: opacity .18s ease, transform .18s ease;
}

.contact-submit:hover {
  opacity: .9;
}

.contact-submit:active {
  transform: translateY(1px);
}

.contact-submit:disabled {
  cursor: wait;
  opacity: .55;
}

.footer-contact-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: .25em;
}

@media (max-width: 620px) {
  .contact-dialog {
    width: min(calc(100% - 18px), 680px);
  }

  .contact-panel {
    padding: 32px 22px 26px;
  }

  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-submit {
    width: 100%;
  }
}
