.contact-page {
  gap: 2rem;
}

.contact-card {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid rgba(120, 120, 120, 0.22);
  border-radius: 18px;
  background: rgba(120, 120, 120, 0.06);
}

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

.contact-form__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-form__field {
  display: grid;
  gap: 0.55rem;
  font-size: 0.95rem;
}

.contact-form__field span {
  font-weight: 600;
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(120, 120, 120, 0.3);
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
  color: rgba(127, 127, 127, 0.9);
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: rgba(86, 110, 255, 0.7);
  background: rgba(86, 110, 255, 0.05);
}

.contact-form__field textarea {
  resize: vertical;
  min-height: 12rem;
}

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

.contact-form__footer {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.contact-form__hint {
  margin: 0;
  color: #6f6f79;
  font-size: 0.92rem;
}

.contact-form__submit {
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  background: #1f2328;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-form__submit:hover {
  transform: translateY(-1px);
}

.contact-form__submit:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.contact-form__status {
  min-height: 1.4rem;
  margin: 0;
  font-size: 0.95rem;
}

.contact-form__status.is-success {
  color: #1b7f4a;
}

.contact-form__status.is-error {
  color: #b42318;
}

.contact-form__status.is-pending {
  color: #6f6f79;
}

@media (prefers-color-scheme: dark) {
  .contact-card {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
  }

  .contact-form__field input,
  .contact-form__field textarea {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.02);
  }

  .contact-form__field input::placeholder,
  .contact-form__field textarea::placeholder,
  .contact-form__hint,
  .contact-form__status.is-pending {
    color: #b3b3bd;
  }

  .contact-form__submit {
    background: #f3f4f6;
    color: #111827;
  }

  .contact-form__status.is-success {
    color: #65d29b;
  }

  .contact-form__status.is-error {
    color: #ff8b7d;
  }
}

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

  .contact-form__grid {
    grid-template-columns: 1fr;
  }

  .contact-form__submit {
    width: 100%;
    justify-content: center;
  }
}
