/* Silverline form controls.

   The cinematic handoff had no forms — it was a static site — so it shipped
   no field styling beyond `input { accent-color }`. These rules extend the
   existing tokens rather than introduce new ones: --surface for the field,
   --line for its border, --lavender for focus and accents, and the same 5px
   radius and Manrope weights the .button rules already use. */

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 22px;
}

.form-row {
  display: grid;
  gap: 18px;
}

@media (min-width: 620px) {
  .form-row.split {
    grid-template-columns: 1fr 1fr;
  }
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 450;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.field textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.6;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 0.75;
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(223, 222, 245, 0.24);
}

/* Focus is the one place this design raises contrast rather than lowering it:
   a visible ring is an accessibility requirement, not a decoration. */
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--lavender);
  outline-offset: 2px;
  border-color: var(--lavender);
}

.field-error {
  margin-top: 7px;
  font-size: 0.8125rem;
  color: var(--peach);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--peach);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.consent input[type="checkbox"] {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.consent label {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

.consent a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.required-mark {
  color: var(--peach);
}

.form-note {
  margin-top: 26px;
  font-size: 0.875rem;
  color: var(--muted);
}

.form-status {
  padding: 15px 18px;
  margin-bottom: 22px;
  font-size: 0.9375rem;
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: 5px;
  background: var(--surface);
}

.form-status.ok {
  border-left-color: var(--lavender);
  color: var(--ink);
}

.form-status.bad {
  border-left-color: var(--peach);
  color: var(--ink);
}

/* The submit sits in prose flow, where .button's space-between would stretch
   it oddly against a long label. */
.form-stack .button {
  align-self: flex-start;
  gap: 14px;
}
