/* Plugmind Forms: [plugmind_contact]. Takes the theme's fonts; the button colour is --pmf-accent (set by the theme or the
   shortcode's accent=""). The error and thank-you show when the script says so, or (without script) at #<form>-error
   and #<form>-sent; once sent, the thank-you takes the form's place. */
.pmf { --pmf-accent-default: #14213D; --pmf-line: #C9CED6; --pmf-muted: #4A5568; }
.pmf-form { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.pmf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.pmf-field { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.pmf-field > label, .pmf-field > legend { font-weight: 700; padding: 0; }
.pmf-hint { font-weight: 400; color: var(--pmf-muted); font-size: 0.9em; margin: 0; }
/* Links in the form (the privacy policy) in the form's accent, underlined: themes' own link blue can fail contrast. */
.pmf a { color: var(--pmf-accent, var(--pmf-accent-default)); text-decoration: underline; text-underline-offset: 2px; }
.pmf-input { width: 100%; box-sizing: border-box; min-height: 48px; padding: 10px 14px; border: 2px solid var(--pmf-line); border-radius: 12px;
  font: inherit; color: inherit; background: #FFFFFF; }
textarea.pmf-input { min-height: 140px; resize: vertical; }
.pmf-input:focus-visible, .pmf-button:focus-visible, .pmf-choice input:focus-visible { outline: 3px solid var(--pmf-accent, var(--pmf-accent-default)); outline-offset: 2px; }
.pmf-choice { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.pmf-choice input { width: 20px; height: 20px; accent-color: var(--pmf-accent, var(--pmf-accent-default)); }
.pmf-button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 700; color: #FFFFFF; background: var(--pmf-accent, var(--pmf-accent-default)); }
.pmf-button[disabled] { opacity: 0.6; cursor: progress; }
.pmf-foot { margin: 0; }
.pmf-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pmf-error, .pmf-sent { display: none; }
.pmf-error:target, .pmf-error.is-shown { display: block; margin: 0; padding: 14px 18px; border-radius: 12px; background: #FBE7F1; color: #7A1F4E; }
.pmf-sent:target, .pmf-sent.is-shown { display: block; padding: 24px; border-radius: 16px; border: 1px solid var(--pmf-line); background: #FFFFFF; }
.pmf-sent p { margin: 0; }
.pmf-form.is-sent, .pmf-form:has(~ .pmf-sent:target) { display: none; }
@media (prefers-reduced-motion: no-preference) { .pmf-sent.is-shown { animation: pmf-in 0.25s ease-out; } }
@keyframes pmf-in { from { opacity: 0; } to { opacity: 1; } }
