.contact-page {
  width: min(calc(100% - 2rem), 52rem);
}

.contact-intro {
  margin-bottom: 2rem;
}

.contact-intro p,
.contact-secondary {
  color: var(--text-secondary);
}

.contact-intro p:last-child,
.contact-secondary p:last-child {
  margin-bottom: 0;
}

.contact-card {
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--border);
  border-radius: .8rem;
  background: var(--surface-light);
  box-shadow: 0 .7rem 2rem rgba(0, 0, 0, .25);
}

.contact-form {
  display: grid;
  gap: 1.5rem;
}

.form-field {
  display: grid;
  min-width: 0;
  gap: .45rem;
}

.form-label {
  color: var(--text-primary);
  font-weight: 700;
}

.form-optional,
.form-text {
  color: var(--text-secondary);
  font-size: .875rem;
  font-weight: 400;
}

.required-marker {
  color: var(--gold);
}

.form-control {
  width: 100%;
  max-width: 100%;
  padding: .8rem .9rem;
  border: 1px solid var(--border);
  border-radius: .65rem;
  background: var(--surface);
  color: var(--text-primary);
  font: inherit;
  line-height: 1.5;
}

.form-control:hover {
  border-color: var(--text-secondary);
}

.form-control:focus-visible {
  border-color: var(--purple-light);
  outline: 3px solid rgba(167, 139, 250, .3);
  outline-offset: 2px;
}

textarea.form-control {
  min-height: 14rem;
  resize: none;
}

.field-validation-error {
  display: block;
  margin-top: .1rem;
  color: #ff9b9b;
  font-size: .9rem;
}

.validation-summary-valid {
  display: none;
}

.notice-error {
  border-left-color: #ff6b6b;
}

.contact-actions {
  display: flex;
  justify-content: flex-end;
}

.contact-actions .button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.contact-actions .button:disabled {
  background: var(--border);
  color: var(--text-secondary);
  cursor: not-allowed;
}

.contact-divider {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.contact-secondary {
  font-size: .925rem;
}

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

@media (max-width: 48rem) {
  .contact-card {
    padding: 1.1rem;
  }

  textarea.form-control {
    min-height: 12rem;
  }

  .contact-actions .button {
    width: 100%;
  }
}
