/* ==========================================================================
   RealtorCircle V5.0 — site-wide fixes and shared components
   ========================================================================== */

/* --- Mobile: no sideways scrolling ---------------------------------------
   Cause: Bootstrap .row.g-5 (footer, home "Share" section) uses a 3rem gutter,
   so the row's negative margin (-1.5rem) is wider than the container padding
   (.75rem) and pokes 12px past the screen edge on phones and tablets. */
@media (max-width: 1199.98px) {
  .row.g-5,
  .row.gx-5 { --bs-gutter-x: 1.5rem; }
}

/* Safety net: anything still wider than the screen is clipped instead of
   making the whole page scroll sideways. `clip` (not `hidden`) keeps
   position: sticky working. */
html,
body { overflow-x: clip; max-width: 100%; }

/* Long words, URLs and email addresses wrap instead of widening the page. */
.rc-legal-editor,
.rc-contact-card,
.rc-footer-column,
.rc-faq-answer,
.rc-thankyou-note,
.gform_wrapper .gfield_description { overflow-wrap: anywhere; }

img,
svg,
video,
iframe { max-width: 100%; }

/* --- Billing card (Support page, [rc_billing_link]) ---------------------- */
.rc-billing-card { max-width: 560px; margin: 18px auto 0; padding: 16px 18px; border: 1px solid rgba(17, 24, 39, .1); border-radius: 14px; background: #fff; text-align: left; }
.rc-billing-card strong { display: block; font-size: 1rem; color: #111827; }
.rc-billing-card p { margin: 6px 0 12px; font-size: .92rem; line-height: 1.5; color: #4b5563; }
.rc-billing-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: #111827; color: #fff !important; font-weight: 600; text-decoration: none; }
.rc-billing-btn:hover,
.rc-billing-btn:focus-visible { background: #000; }
.rc-billing-card small { display: block; margin-top: 10px; font-size: .8rem; color: #6b7280; }

/* --- Gravity Forms file-upload rules: visually hidden without overflowing - */
.gform_wrapper .gform_fileupload_rules.screen-reader-text,
.rc-gf-support_wrapper .gform_fileupload_rules { position: absolute !important; width: 1px !important; height: 1px !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
