/* m4.Forms markup (Bootstrap class names, Bootstrap itself not loaded) mapped onto the site's .pform look. */
.pform .m4-form { display: grid; gap: 16px; }
.pform .m4-form-group { margin: 0; padding: 0; border: 0; background: none; }
.pform .card-header { padding: 0 0 12px; font-weight: 600; color: var(--navy); }
.pform .card-header h2 { margin: 0; font-size: 14px; }
.pform .row { display: grid; grid-template-columns: 1fr; gap: 16px; }
.pform .col-12 { min-width: 0; }
/* Fields stacked in one column need the same gap as the grid gives side-by-side ones. */
.pform .m4-form-column { display: grid; gap: 16px; align-content: start; }
@media (min-width: 576px) {
  .pform .m4-form-columns-2 { grid-template-columns: 1fr 1fr; }
  .pform .m4-form-columns-3, .pform .m4-form-columns-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .pform .m4-form-columns-3 { grid-template-columns: repeat(3, 1fr); }
  .pform .m4-form-columns-4 { grid-template-columns: repeat(4, 1fr); }
}

.pform .m4-form-field { margin: 0; }
.pform .form-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--navy); margin-bottom: 7px; float: none; width: auto; padding: 0; }
.pform textarea, .pform select { width: 100%; box-sizing: border-box; min-height: 44px; padding: 11px 14px; font-size: 14px; font-family: inherit; color: var(--ink); background: var(--wash); border: 1px solid var(--lavender); border-radius: 6px; outline: none; }
.pform textarea:focus, .pform select:focus { border-color: var(--periwinkle); }
.pform .is-invalid { border-color: var(--negative); }
.pform .form-text { font-size: 11.5px; line-height: 1.5; color: var(--muted); margin-top: 6px; }
.pform .invalid-feedback { display: none; font-size: 13px; line-height: 1.5; color: var(--negative); margin-top: 6px; }
.pform .invalid-feedback.d-block { display: block; }
.pform fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

/* Choice sets: plain rows, or chips when "display as buttons" is set. */
.pform .form-check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.pform .form-check-input { width: auto; min-height: 0; margin: 0; }
.pform .d-flex { display: flex; }
.pform .flex-wrap { flex-wrap: wrap; }
.pform .gap-2 { gap: 8px; }
.pform .btn-check { position: absolute; opacity: 0; pointer-events: none; width: auto; min-height: 0; }
.pform .btn-outline-primary { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 20px; cursor: pointer; font-size: 13px; font-family: inherit; background: var(--wash); color: var(--ink); border: 1px solid var(--lavender); }
.pform .btn-check:checked + .btn-outline-primary { background: var(--periwinkle); border-color: var(--periwinkle); color: #fff; }
.pform .btn-check:focus-visible + .btn-outline-primary { outline: 2px solid var(--periwinkle); outline-offset: 2px; }

.pform .m4-form-submit { margin-top: 8px; width: 100%; min-height: 44px; background: var(--periwinkle); color: #fff; border: none; padding: 14px 18px; font-size: 14px; font-weight: 500; font-family: inherit; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
/* The arrow after the label, as on the static site's button (drawn in CSS so a changed label keeps it). */
.pform .m4-form-submit::after { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10m-4-4 4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10m-4-4 4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat; }
.pform .m4-form-submit:disabled { opacity: .6; cursor: default; }

.pform .alert { font-size: 13px; line-height: 1.5; padding: 12px 14px; border-radius: 6px; }
.pform .alert-danger { color: var(--negative); background: #fdf1f1; }
.pform .alert-success { color: var(--navy); background: var(--wash); text-align: center; padding: 26px 8px; font-size: 14px; }
.pform .d-none { display: none; }

/* Honeypot / fill-time fields the plugin emits stay off-screen. */
.pform [data-m4-trap], .pform .m4-form-trap { position: absolute; left: -9999px; height: 0; overflow: hidden; }
