/* ============================================================================
   WPForms brand skin — The Pursuit Neurofeedback

   Nate's approved build styles `form.book.on-cream`. WordPress does not render
   that form: `[nf_form]` swaps it for the real WPForms form, whose markup is
   `.book-form-col > .wpforms-container`, so not one of those rules matched and
   the booking form rendered as browser-default inputs on all twelve pages that
   carry it. This file re-points the approved treatment at the markup WordPress
   actually emits.

   It is deliberately a SEPARATE stylesheet rather than an addition to
   styles-b.css: that file is regenerated from Nate's package on every sync and
   any edit to it would be silently overwritten.

   Every form on the site sits in a `.band-cream` section and carries the
   `on-cream` variant, so only that variant is mirrored here.

   Honeypot warning: WPForms' antispam decoy renders as a plain
   `.wpforms-field .wpforms-field-text` with a scrambled label ("Name here?
   What") and is hidden at runtime, NOT by the `.wpforms-field-hp` base rule.
   Nothing here may set `display` on `.wpforms-field` or the trap becomes a
   visible field.
   ========================================================================= */

:root{
  /* Fleet-wide WPForms contract (tpa-validate check 25), resolved to this
     site's approved palette. Values mirror form.book.on-cream + .btn-solid. */
  --form-btn-bg:        var(--accent);
  --form-btn-bg-hover:  var(--accent-soft);
  --form-btn-text:      var(--ink-900);
  --form-field-bg:      var(--cream);
  --form-field-border:  var(--line-cream);
  --form-field-text:    var(--text-dark);
  --form-label:         var(--primary);
  --form-required:      var(--accent-on-cream);
  --form-focus:         var(--accent);
  --form-radius:        2px;
}

/* ---- The card. Mirrors form.book + form.book.on-cream ---- */
.book-form-col .wpforms-container{
  background:#fff;
  border:1px solid var(--form-field-border);
  border-radius:3px;
  padding:1.9rem;
  max-width:560px;
  margin:0;
}
.foot-book .book-form-col .wpforms-container{max-width:none;padding:1.6rem}

/* WPForms' modern base indents the field container; the card already pads. */
.book-form-col .wpforms-field-container,
.book-form-col .wpforms-field{padding-left:0;padding-right:0}
.book-form-col .wpforms-field{padding-top:0;padding-bottom:0}

/* ---- Labels. Mirrors form.book label + .on-cream label ----
   !important throughout: WPForms' modern stylesheet carries ~600 rules and
   out-specifies a plain class selector on every one of these properties. */
.book-form-col .wpforms-field-label{
  display:block;
  font-family:var(--f-mono)!important;
  font-weight:600!important;
  font-size:.64rem!important;
  text-transform:uppercase!important;
  letter-spacing:.1em!important;
  color:var(--form-label)!important;
  line-height:1.4!important;
  margin:0 0 .4rem!important;
}
.book-form-col .wpforms-required-label{color:var(--form-required)!important}
.book-form-col .wpforms-field-sublabel{
  font-family:var(--f-mono)!important;
  font-size:.62rem!important;
  letter-spacing:.06em!important;
  color:var(--primary)!important;
}

/* ---- Fields. Mirrors form.book input/textarea + the .on-cream override ---- */
.book-form-col .wpforms-field input[type=text],
.book-form-col .wpforms-field input[type=email],
.book-form-col .wpforms-field input[type=tel],
.book-form-col .wpforms-field textarea{
  width:100%!important;
  max-width:100%!important;
  font-family:var(--f-body)!important;
  font-size:.98rem!important;
  line-height:1.45!important;
  color:var(--form-field-text)!important;
  background:var(--form-field-bg)!important;
  border:1px solid var(--form-field-border)!important;
  border-radius:var(--form-radius)!important;
  padding:.78rem .9rem!important;
  margin:0 0 1rem!important;
  box-shadow:none!important;
  transition:border-color .2s ease;
}
.book-form-col .wpforms-field textarea{resize:vertical!important;min-height:100px!important}
.book-form-col .wpforms-field input:focus,
.book-form-col .wpforms-field textarea:focus{border-color:var(--form-focus)!important}
.book-form-col .wpforms-field input:focus-visible,
.book-form-col .wpforms-field textarea:focus-visible{
  outline:2px solid var(--accent-on-cream)!important;
  outline-offset:2px!important;
}
.book-form-col .wpforms-field input::placeholder,
.book-form-col .wpforms-field textarea::placeholder{color:var(--primary);opacity:.6}

/* ---- Submit. Mirrors .btn + .btn-solid ---- */
.book-form-col .wpforms-submit-container{padding:0!important;margin-top:.4rem}
.book-form-col button.wpforms-submit{
  display:inline-flex!important;
  align-items:center;
  gap:.6rem;
  font-family:var(--f-mono)!important;
  font-weight:600!important;
  font-size:.78rem!important;
  text-transform:uppercase!important;
  letter-spacing:.1em!important;
  cursor:pointer;
  padding:1rem 1.8rem!important;
  border-radius:var(--form-radius)!important;
  border:1px solid transparent!important;
  background:var(--form-btn-bg)!important;
  color:var(--form-btn-text)!important;
  box-shadow:none!important;
  transition:background .2s ease,color .2s ease,transform .2s ease;
}
.book-form-col button.wpforms-submit:hover{
  background:var(--form-btn-bg-hover)!important;
  transform:translateY(-1px);
}
.book-form-col button.wpforms-submit:focus-visible{
  outline:2px solid var(--accent-on-cream)!important;
  outline-offset:2px!important;
}

/* ---- Validation + confirmation ---- */
.book-form-col .wpforms-field input.wpforms-error,
.book-form-col .wpforms-field textarea.wpforms-error{border-color:#A3402F!important}
.book-form-col label.wpforms-error,
.book-form-col em.wpforms-error{
  display:block;
  font-family:var(--f-mono)!important;
  font-size:.68rem!important;
  font-style:normal!important;
  letter-spacing:.04em!important;
  text-transform:none!important;
  color:#A3402F!important;
  margin:-.7rem 0 1rem!important;
}
.book-form-col .wpforms-confirmation-container,
.book-form-col .wpforms-confirmation-container-full{
  background:var(--cream)!important;
  border:1px solid var(--form-field-border)!important;
  border-left:3px solid var(--accent-on-cream)!important;
  border-radius:var(--form-radius)!important;
  color:var(--text-dark)!important;
  padding:1.2rem 1.4rem!important;
}
.book-form-col .wpforms-confirmation-container p{margin:0}

/* ---- Touch devices ----
   Design rule: no type below 14px (.88rem) on touch. The .64rem label is
   desktop fine print and stays there; on touch it steps up. Fields go to 1rem
   because iOS Safari zooms the viewport on focus for anything under 16px, and
   .98rem lands just under the threshold. */
@media (hover:none) and (pointer:coarse){
  .book-form-col .wpforms-field-label{font-size:.88rem!important;letter-spacing:.08em!important}
  .book-form-col .wpforms-field-sublabel{font-size:.88rem!important}
  .book-form-col .wpforms-field input[type=text],
  .book-form-col .wpforms-field input[type=email],
  .book-form-col .wpforms-field input[type=tel],
  .book-form-col .wpforms-field textarea{font-size:1rem!important}
  .book-form-col label.wpforms-error,
  .book-form-col em.wpforms-error{font-size:.88rem!important}
  .book-form-col button.wpforms-submit{font-size:.88rem!important}
}

@media(max-width:820px){
  .book-form-col .wpforms-container{padding:1.4rem}
}
