/* Compact quote forms. Original fields, labels, submission and consent remain live. */
@layer redicoBento {
  html[data-rx-bento] #rxh .rxhm-hero-inner,
  html[data-rx-bento] body:not(.home) #rxh.rxh-uni .rxh-uni-grid,
  html[data-rx-bento] body:not(.home) :is(.rc-hero-grid,.rd-hero-grid,.rx-enc-hub-hero-grid,.rx-enc-compact-grid) {
    align-items:stretch !important;
  }
  html[data-rx-bento] #rxh :is(.rb-home-search-card,.rxhm-hero-inner > div:first-child),
  html[data-rx-bento] #rxh-form,
  html[data-rx-bento] body:not(.home) #rxh.rxh-uni .rxh-uni-main,
  html[data-rx-bento] body:not(.home) :is(.rx-enc-compact-copy,.rc-hero-grid>div:first-child,.rd-hero-grid>div:first-child,.rx-enc-hub-hero-grid>div:first-child,.rx-lead-card) {
    align-self:stretch !important; min-height:0 !important; height:auto !important;
  }
  html[data-rx-bento] #rxh-form { padding:24px !important; }
  html[data-rx-bento] body:not(.home) .rx-lead-card { padding:24px !important; }
  html[data-rx-bento] #rxh-form .hm-form-heading { margin-bottom:10px !important; }
  html[data-rx-bento] #rxh-form .rxhm-form-title,
  html[data-rx-bento] body:not(.home) .rx-lead-card > h2 {
    font-size:26px !important; line-height:1.25 !important; margin:0 0 10px !important;
  }
  html[data-rx-bento] #rxh-form > p,
  html[data-rx-bento] body:not(.home) .rx-lead-card > p {
    font-size:16px !important; line-height:1.5 !important; margin:0 0 16px !important;
  }
  html[data-rx-bento] #rxh-form form,
  html[data-rx-bento] body:not(.home) .rx-lead-card form[data-redico-lead] {
    display:grid !important; grid-template-columns:minmax(0,1fr) !important;
    align-content:start !important; gap:12px !important; margin:0 !important;
  }
  /* Original submit handler sets form.hidden on success. */
  html[data-rx-bento] #rxh-form form[hidden],
  html[data-rx-bento] body:not(.home) .rx-lead-card form[data-redico-lead][hidden] { display:none !important; }
  html[data-rx-bento] #rxh-form form > *,
  html[data-rx-bento] body:not(.home) .rx-lead-card form[data-redico-lead] > * {
    grid-column:1 !important; min-width:0 !important; max-width:100% !important;
  }
  html[data-rx-bento] #rxh-form form > .rxhm-label,
  html[data-rx-bento] body:not(.home) .rx-lead-card form[data-redico-lead] > label:not(.rx-common-consent) {
    display:grid !important; gap:6px !important; margin:0 !important;
    font-size:16px !important; line-height:1.5 !important;
  }
  html[data-rx-bento] #rxh-form .rxhm-input:not([aria-hidden="true"]):not([name="rx_hp"]),
  html[data-rx-bento] body:not(.home) .rx-lead-card form[data-redico-lead] :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([aria-hidden="true"]):not([name="rx_hp"]),textarea) {
    min-height:48px !important; width:100% !important; margin-top:0 !important;
    padding:11px 13px !important; font-size:16px !important; line-height:1.5 !important;
  }
  html[data-rx-bento] #rxh-form textarea.rxhm-input,
  html[data-rx-bento] body:not(.home) .rx-lead-card form[data-redico-lead] textarea {
    min-height:96px !important; height:auto !important; resize:vertical !important;
  }
  html[data-rx-bento] #rxh-form .rb-home-form-options,
  html[data-rx-bento] body:not(.home) .rx-lead-card .rb-page-form-options {
    margin:0 !important; padding:0 12px !important; background:var(--rb-soft) !important;
  }
  html[data-rx-bento] #rxh-form .rb-home-form-options > summary,
  html[data-rx-bento] body:not(.home) .rx-lead-card .rb-page-form-options > summary {
    min-height:48px !important; padding:12px 0 !important;
    font-size:16px !important; line-height:1.5 !important;
  }
  html[data-rx-bento] body:not(.home) .rx-lead-card .rb-page-form-options .rb-form-hint {
    display:block !important; margin:0 0 12px !important; font-size:14px !important; line-height:1.5 !important;
  }
  html[data-rx-bento] #rxh-form .rxhm-btn,
  html[data-rx-bento] body:not(.home) .rx-lead-card button[type="submit"] {
    min-height:48px !important; width:100% !important; font-size:16px !important;
    line-height:1.5 !important; padding:12px 16px !important;
  }
  html[data-rx-bento] #rxh-form .rxhm-consent,
  html[data-rx-bento] body:not(.home) .rx-lead-card .rx-common-consent {
    font-size:14px !important; line-height:1.5 !important; margin:0 !important;
  }
  html[data-rx-bento] body:not(.home) .rx-lead-card .rx-common-consent span { font-size:inherit !important; line-height:inherit !important; }
  html[data-rx-bento] #rxh-form .rxhm-field-error:empty,
  html[data-rx-bento] body:not(.home) .rx-lead-card :is(.rxhm-field-error,.rx-field-error):empty { display:none !important; }
  /* Disclosure expansion can increase both cards naturally; mobile cards keep intrinsic heights. */
  @media (max-width:768px) {
    html[data-rx-bento] #rxh-form,
    html[data-rx-bento] body:not(.home) .rx-lead-card { padding:24px 20px !important; }
    html[data-rx-bento] #rxh-form .rxhm-consent,
    html[data-rx-bento] body:not(.home) .rx-lead-card .rx-common-consent,
    html[data-rx-bento] body:not(.home) .rx-lead-card .rb-page-form-options .rb-form-hint { font-size:16px !important; }
  }
}
@layer redicoBento {
 /* Legacy validation decorates fields after DOMContentLoaded; omit redundant helper copy, not error messages. */
 html[data-rx-bento] #rxh-form form > .rxhm-label > .rx-stable-field-hint {display:none!important;}
}
@layer redicoBento {
 html[data-rx-bento] body:not(.home) #rxh.rxh-uni .rxh-uni-side,
 html[data-rx-bento] body:not(.home) :is(.rx-custom-hero-form,.rx-enc-compact-side) {
  display:flex!important;flex-direction:column!important;align-self:stretch!important;min-width:0!important;height:auto!important;
 }
 html[data-rx-bento] body:not(.home) :is(.rxh-uni-side,.rx-custom-hero-form,.rx-enc-compact-side) > .rx-lead-card {
  flex:1 1 auto!important;width:100%!important;min-height:0!important;
 }
}
