/* v0.26.2.15.1: Registration presentation only. No form behaviour changes. */
:where(.pm-agency-registration, .pm-agent-registration) {
  --pm-register-forest: #173b2a;
  --pm-register-ink: #1b2530;
  --pm-register-muted: #526058;
  --pm-register-line: #d9e0db;
  max-width: 880px;
  margin: 0 auto 4rem;
  color: var(--pm-register-ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.55;
}
:where(.pm-agency-registration, .pm-agent-registration) *,
:where(.pm-agency-registration, .pm-agent-registration) *::before,
:where(.pm-agency-registration, .pm-agent-registration) *::after { box-sizing: border-box; }
:where(.pm-agency-registration, .pm-agent-registration) form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 0;
  padding: clamp(24px, 4vw, 48px);
  background: #fff;
  border: 1px solid #e3e7e2;
  border-radius: 16px;
  box-shadow: 0 10px 34px rgba(21, 48, 35, .06);
  font-family: inherit;
}
/* Page title already comes from WordPress; remove the repeated heading inside each form. */
:where(.pm-agency-registration, .pm-agent-registration) form > h2 { display: none; }
:where(.pm-agency-registration, .pm-agent-registration) form > h3 {
  grid-column: 1 / -1;
  margin: 26px 0 16px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--pm-register-line);
  font-family: inherit;
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--pm-register-ink);
}
.pm-agency-registration form > h3:first-of-type { margin-top: 30px; }
:where(.pm-agency-registration, .pm-agent-registration) form > p {
  min-width: 0;
  margin: 0 0 19px;
  padding: 0;
  font-family: inherit;
  color: var(--pm-register-ink);
}
/* Agency name and the agent introduction span the form width. */
.pm-agency-registration form > p:first-of-type,
.pm-agent-registration form > p:first-of-type { grid-column: 1 / -1; }
.pm-agent-registration form > p:first-of-type {
  margin: 0 0 28px;
  color: var(--pm-register-muted);
  font-size: 15px;
}
:where(.pm-agency-registration, .pm-agent-registration) form label {
  display: block;
  margin: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: #35463b;
}
:where(.pm-agency-registration, .pm-agent-registration) form label br { display: none; }
:where(.pm-agency-registration, .pm-agent-registration) form input:not([type="hidden"]) {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 48px;
  margin: 7px 0 0;
  padding: 11px 14px;
  border: 1px solid #cdd8d0;
  border-radius: 8px;
  background: #fff;
  color: var(--pm-register-ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  box-shadow: none;
}
:where(.pm-agency-registration, .pm-agent-registration) form input:not([type="hidden"]):focus {
  border-color: var(--pm-register-forest);
  outline: 2px solid rgba(23, 59, 42, .17);
  outline-offset: 1px;
}
:where(.pm-agency-registration, .pm-agent-registration) form > p:last-of-type {
  grid-column: 1 / -1;
  margin: 12px 0 0;
}
:where(.pm-agency-registration, .pm-agent-registration) form button[type="submit"] {
  width: auto;
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid var(--pm-register-forest);
  border-radius: 9px;
  background: var(--pm-register-forest);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}
:where(.pm-agency-registration, .pm-agent-registration) form button[type="submit"]:hover,
:where(.pm-agency-registration, .pm-agent-registration) form button[type="submit"]:focus-visible {
  background: #285840;
  border-color: #285840;
  color: #fff;
}
:where(.pm-agency-registration, .pm-agent-registration) .pm-registration-errors {
  margin: 0 0 20px;
  padding: 16px 20px;
  border: 1px solid #e7b6b6;
  border-radius: 9px;
  background: #fff6f6;
  color: #822626;
}
@media (max-width: 640px) {
  :where(.pm-agency-registration, .pm-agent-registration) form { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; }
  :where(.pm-agency-registration, .pm-agent-registration) form > p,
  :where(.pm-agency-registration, .pm-agent-registration) form > h3 { grid-column: 1 / -1; }
  :where(.pm-agency-registration, .pm-agent-registration) form button[type="submit"] { width: 100%; }
}

/* v0.26.2.15.1: Presentation-only refinements scoped to registration pages. */
/* Kadence can add a large gap between its entry hero and the shortcode content. */
body:has(.pm-agency-registration, .pm-agent-registration) .entry-hero-container-inner {
  padding-top: clamp(24px, 3vw, 44px) !important;
  padding-bottom: clamp(12px, 2vw, 24px) !important;
  min-height: 0 !important;
}
body:has(.pm-agency-registration, .pm-agent-registration) .entry-hero {
  min-height: 0 !important;
}
body:has(.pm-agency-registration, .pm-agent-registration) .content-area,
body:has(.pm-agency-registration, .pm-agent-registration) .site-main,
body:has(.pm-agency-registration, .pm-agent-registration) .entry-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
body:has(.pm-agency-registration, .pm-agent-registration) .entry-header {
  margin-bottom: 24px !important;
}
/* The independent agent form inherits a monospace font from an older rule. */
.pm-agent-registration, .pm-agent-registration form,
.pm-agent-registration form p, .pm-agent-registration form label,
.pm-agent-registration form input, .pm-agent-registration form button {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
}
/* Keep action buttons clearly separated from preceding inputs. */
.pm-agent-registration form > p:last-of-type,
.pm-agency-registration form > p:last-of-type {
  margin-top: 24px !important;
  margin-bottom: 0 !important;
}
.pm-agent-registration form button[type="submit"],
.pm-agency-registration form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 28px !important;
  line-height: 1.4 !important;
  white-space: normal;
}
@media (max-width: 640px) {
  body:has(.pm-agency-registration, .pm-agent-registration) .entry-header { margin-bottom: 16px !important; }
  .pm-agent-registration form button[type="submit"], .pm-agency-registration form button[type="submit"] { width: 100%; }
}

/* v0.26.2.19: Registration success screen only — checkout link unchanged. */
.pm-registration-success {
  max-width: 880px;
  margin: 0 auto 64px !important;
  padding: 0 20px 24px;
  box-sizing: border-box;
}
.pm-registration-success > p:last-child { margin: 24px 0 0 !important; padding: 0 0 8px; }
.pm-registration-success a.button,
.pm-registration-success a.button:link,
.pm-registration-success a.button:visited {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 52px;
  padding: 14px 26px !important;
  margin: 0 !important;
  border-radius: 9px !important;
  background: #173b2a !important;
  border: 1px solid #173b2a !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  white-space: normal;
  text-align: center;
}
.pm-registration-success a.button:hover,
.pm-registration-success a.button:focus-visible {
  background: #285840 !important;
  border-color: #285840 !important;
  color: #fff !important;
}
@media (max-width: 640px) {
  .pm-registration-success { margin-bottom: 48px !important; padding: 0 16px 20px; }
  .pm-registration-success a.button { max-width: 100%; }
}
