/* ─────────────────────────────────────────────────────────────────────────────
   contact.css — page-specific styling for /contact.

   A plain, accessible form replaces the homepage's jQuery conversation flow.
   No new chromatic color: the submit button is the one green element on the
   page (the "send it" action), everything else stays bone/ink/hairline like
   the rest of the site. Error and success states reuse the same tokens —
   no red, no second hue — distinguished by position and a left rule instead.
   ───────────────────────────────────────────────────────────────────────────── */

.contact-form__wrap {
  max-width: 34em;
  margin: 3.6em auto 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.7em;
}

.contact-form__row {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}

.contact-form__label {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ptech-bone-dim);
}

.contact-form__optional {
  text-transform: none;
  letter-spacing: 0;
  font-family: inherit;
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ptech-hair);
  color: var(--ptech-bone);
  font-size: 1rem;
  line-height: 1.5;
  padding: 0.65em 0;
  border-radius: 0;
  transition: border-color 0.4s var(--ptech-ease);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 8em;
}

/* Focus is a VALUE step to bone, not a second green. The submit button is
   permanently in view, so a green focus ring would put two green elements on
   screen the moment anyone types — and green is meant to mark one thing:
   the path forward. */
.contact-form__input:focus,
.contact-form__textarea:focus,
.contact-form__select:focus {
  outline: none;
  border-color: var(--ptech-bone);
  background-color: var(--ptech-ink-3);
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: var(--ptech-bone-dim);
}

/* Honeypot — off-screen, not display:none, so it still reads as a real field
   to anything filling every input on the page. Real visitors never see it. */
.contact-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__actions {
  display: flex;
  align-items: center;
  gap: 1.6em;
  flex-wrap: wrap;
  margin-top: 0.4em;
}

.contact-form__submit {
  background: var(--ptech-green-glow);
  color: var(--ptech-ink);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  padding: 0.95em 2.2em;
  cursor: pointer;
  transition: transform 0.3s var(--ptech-ease), opacity 0.3s var(--ptech-ease);
}

.contact-form__submit:hover:not(:disabled),
.contact-form__submit:focus-visible:not(:disabled) {
  transform: scale(0.97);
}

.contact-form__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.contact-form__alt {
  margin: 0;
  color: var(--ptech-bone-dim);
}

.contact-form__status--error {
  margin-top: 0.4em;
  padding: 0.9em 1.1em;
  border: 1px solid var(--ptech-hair);
  border-left: 2px solid var(--ptech-bone-dim);
  color: var(--ptech-bone);
  font-size: 0.9rem;
}

.contact-form__status--success {
  max-width: 34em;
  margin: 0 auto;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .contact-form__submit { transition: none; }
}

@media (max-width: 767px) {
  .contact-form__wrap { margin-top: 2.6em; }
  .contact-form { gap: 1.4em; }
  .contact-form__actions { flex-direction: column; align-items: flex-start; gap: 1em; }
}


/* ── Topic select ─────────────────────────────────────────────────────────────
   Restored from the retired /contact page (7de5a60^). The native arrow renders
   as a light-mode widget on ink, so it is drawn by hand. background-COLOR on
   focus, never the `background` shorthand, or the arrow disappears on focus.
   ───────────────────────────────────────────────────────────────────────────── */

.contact-form__select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 2.6rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ptech-bone-dim) 50%),
    linear-gradient(135deg, var(--ptech-bone-dim) 50%, transparent 50%);
  background-position: calc(100% - 1.35rem) calc(50% + 1px), calc(100% - 1.05rem) calc(50% + 1px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.contact-form__select option {
  background: var(--ptech-ink-2);
  color: var(--ptech-bone);
}
