/**
 * BPS Forms — Base Frontend Styles
 *
 * Scoped to .bps-form to avoid global interference.
 * Overrides theme resets (e.g. Astra sets line-height:1 on input/select)
 * that break custom-styled forms.
 *
 * FROZEN (Form Skins roadmap M1, 2026-08-07, T7): this file is enqueued
 * unconditionally on every Blueprint form render
 * (class-blueprint-type-form.php ~line 288), independently of and BEFORE
 * the palette's own compiled stylesheet in the cascade. It exists to fix
 * specific, measured theme defects (Astra's line-height/padding resets) —
 * not a place for new form styling. Adding rules here means they win over
 * the compiled --bps-form-* token system by accident, not by design.
 * New form CSS belongs in assets/scss/_forms-base.scss or
 * assets/scss/_forms-skins.scss instead. The enqueue is now versioned off
 * MOA_BPS_VERSION rather than a hardcoded '1.0.0' that never changed — bump
 * the plugin version (not this comment) to cache-bust a real edit here.
 */

/* Restore sensible line-height that themes (e.g. Astra) reset to 1 */
.bps-form input[type="text"],
.bps-form input[type="email"],
.bps-form input[type="url"],
.bps-form input[type="tel"],
.bps-form input[type="number"],
.bps-form input[type="password"],
.bps-form input[type="search"],
.bps-form select,
.bps-form textarea {
  line-height: 1.5;
}

/* Chrome clips native select text when padding-top/bottom > ~10px with appearance:none.
   Keep select vertical padding at 10px regardless of shared input padding. */
.bps-form select {
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Conditional field wrappers — smooth show/hide transition */
.moaform-condition-wrap {
  overflow: hidden;
  transition: opacity 0.2s ease;
}
.moaform-condition-wrap.moaform-hidden {
  display: none;
}
