/* plinth/form — loaded in <head> only on pages that contain a form. */
.plinth-form { min-width: 0; scroll-margin-top: 96px; }
.plinth-form__heading {
  font-size: var(--wp--preset--font-size--h2);
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 var(--wp--preset--spacing--24);
}
.plinth-form__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: var(--wp--preset--spacing--20) var(--wp--preset--spacing--24);
  min-width: 0;
}
.plinth-form__cell { min-width: 0; }
.plinth-form__cell--wide { grid-column: 1 / -1; }
.plinth-form__actions { margin-top: var(--wp--preset--spacing--24); }
.plinth-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--wp--preset--spacing--24);
  font: inherit;
  font-weight: 600;
  color: var(--wp--preset--color--paper);
  background: var(--wp--preset--color--rust-600);
  border: 0;
  border-radius: var(--wp--custom--radius--base);
  cursor: pointer;
}
.plinth-form__submit:hover { background: var(--wp--preset--color--rust-700); }

/* Honeypot: removed from view and from assistive technology, never display:none
   (some bots skip fields they can tell are hidden). */
.plinth-form__hp {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.plinth-form__summary {
  border: 2px solid var(--wp--preset--color--error-600);
  border-radius: var(--wp--custom--radius--card);
  padding: var(--wp--preset--spacing--16) var(--wp--preset--spacing--20);
  margin-bottom: var(--wp--preset--spacing--24);
  background: var(--wp--preset--color--paper);
}
.plinth-form__summary-title { font-weight: 700; margin: 0 0 8px; color: var(--wp--preset--color--text); }
.plinth-form__summary ul { margin: 0; padding-left: 1.2em; }
.plinth-form__summary a { color: var(--wp--preset--color--error-600); font-weight: 600; text-decoration: underline; }

.plinth-form__success {
  border: 1px solid var(--wp--preset--color--success-600);
  border-left-width: 4px;
  border-radius: var(--wp--custom--radius--card);
  padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--24);
  background: var(--wp--preset--color--success-100);
}
.plinth-form__success-title { font-weight: 700; margin: 0; color: var(--wp--preset--color--text); }
.plinth-form__success-body { margin: 6px 0 0; color: var(--wp--preset--color--text-secondary); }
.plinth-form__privacy { margin: 6px 0 0; font-size: var(--wp--preset--font-size--caption); line-height: 20px; }
