.contact-page {
  padding: 72px 24px 96px;
}

.contact-panel {
  width: 100%;
  max-width: 704px;
  margin-inline: auto;
}

.contact-heading {
  margin-bottom: 36px;
}

.contact-eyebrow {
  margin: 0 0 16px;
  color: #b5b5bf;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 18px;
  text-transform: uppercase;
}

.contact-heading h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.contact-heading p:not(.contact-eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 20px;
  margin-bottom: 28px;
}

.contact-field {
  min-width: 0;
}

.contact-field-full {
  grid-column: 1 / -1;
}

.contact-field label {
  display: block;
  margin-bottom: 9px;
  color: #ededf2;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
}

.contact-field input,
.contact-field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #393941;
  border-radius: 7px;
  background: #141419;
  color: #fff;
  font: inherit;
  font-size: 15px;
  line-height: 22px;
  transition: border-color 160ms;
}

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

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #83838f;
  opacity: 1;
}

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

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

.contact-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  pointer-events: none;
}

.contact-captcha {
  width: 100%;
  min-width: 0;
  margin-bottom: 28px;
}

.contact-captcha-challenge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.contact-captcha-challenge img {
  display: block;
  width: 260px;
  max-width: 100%;
  height: auto;
  border: 1px solid #393941;
  border-radius: 7px;
  background: #141419;
}

.contact-refresh {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #41414b;
  border-radius: 7px;
  background: #202026;
  color: #ededf2;
  font-size: 13px;
  line-height: 20px;
  white-space: nowrap;
}

.contact-refresh:hover {
  background: #303038;
}

.contact-refresh:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.contact-captcha input {
  max-width: 220px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.contact-help {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.contact-status {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.contact-status:empty {
  display: none;
}

.contact-status[data-state="error"],
.contact-status[data-state="verification"] {
  color: #ffc3b0;
}

.contact-status[data-state="success"] {
  color: #c8e5cc;
}

.contact-submit {
  min-width: 154px;
  min-height: 48px;
  padding-inline: 24px;
  font-size: 14px;
}

.contact-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.contact-submit:disabled:hover {
  background: var(--accent);
}

.contact-direct,
.contact-panel noscript {
  display: block;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.contact-direct a,
.contact-panel noscript a {
  color: #e8e8ee;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-direct a:hover,
.contact-panel noscript a:hover {
  color: #fff;
}

@media (width < 640px) {
  .contact-page {
    padding-block: 48px 64px;
  }

  .contact-heading {
    margin-bottom: 30px;
  }

  .contact-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

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

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

@media (width < 360px) {
  .contact-page {
    padding-inline: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-field input,
  .contact-field textarea {
    transition: none;
  }
}
