/* MyCabin Leads integration seam for the Ready Houses enquiry form
   (success-state UX patch). Ready Houses is an ordinary Page imported
   from page-packs/ready-houses-clean/, which still owns this form's
   base visual design (pill shape, colors, spacing) in its own
   frontend.css; this file adds only the same invisible/functional
   pieces every other surface's own seam adds — a hidden honeypot, a
   status-message region, and the submit button's own success
   animation. Selectors intentionally match
   page-packs/ready-houses-clean/frontend.css's own rules for this
   form; keep the two in sync by hand if either changes. Full-width
   WHITE pill contracts symmetrically to a centered WHITE circle —
   background/contrast intentionally stay white/ink, never dark. */
.pp-ready-houses .pp-rh-form-submit {
  position: relative;
  transition: background .25s, color .25s, width .35s ease, border-radius .35s ease, padding .35s ease;
}
.pp-ready-houses .pp-rh-form-submit[data-mcl-state="success"] {
  width: 45px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  justify-self: center;
  background: var(--pp-bone) !important;
  color: var(--pp-ink) !important;
  cursor: default;
}
.pp-ready-houses .pp-rh-form-submit .mcl-btn-label,
.pp-ready-houses .pp-rh-form-submit .mcl-btn-check {
  transition: opacity .25s ease;
}
.pp-ready-houses .pp-rh-form-submit .mcl-btn-check {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}
.pp-ready-houses .pp-rh-form-submit[data-mcl-state="success"] .mcl-btn-label { opacity: 0; }
.pp-ready-houses .pp-rh-form-submit[data-mcl-state="success"] .mcl-btn-check { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .pp-ready-houses .pp-rh-form-submit { transition: background .25s, color .25s; }
  .pp-ready-houses .pp-rh-form-submit .mcl-btn-label,
  .pp-ready-houses .pp-rh-form-submit .mcl-btn-check { transition: none; }
}

.pp-ready-houses .mcl-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.pp-ready-houses .mcl-form-message[data-mcl-state="error"] { color: #b3261e; }
.pp-ready-houses .mcl-form-message[data-mcl-state="success"] {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px !important;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
