
/* =========================================
   PARTNERS AMC — COLORS
   ========================================= */

:root {
  --pamc-purple: #702477;
  --pamc-deep-purple: #4e205a;
  --pamc-lavender: #b659c5;
  --pamc-offwhite: #f7f6f8;
}


/* =========================================
   HEADER & NAVIGATION
   ========================================= */

.container-header {
  display: block;
  background: var(--pamc-offwhite);
  background-image: none;
  box-shadow: none;
}

/* Centered company logo */
.container-header .grid-child:has(.navbar-brand) {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 15px;
}

.container-header .navbar-brand {
  margin: 0;
  padding: 0;
}

/* Purple gradient navigation */
.container-header .container-nav {
  max-width: none;
  width: 100%;
  background: linear-gradient(
    180deg,
    #782b80 0%,
    #702477 55%,
    #63206c 100%
  );
  padding: 8px 20px;
  justify-content: center;
}

.container-header .container-nav nav {
  margin: 0 auto;
}

/* Menu appearance */
.container-header .mod-menu {
  color: #ffffff;
  justify-content: center;
  gap: 10px;
}

.container-header .mod-menu > li > a {
  color: #ffffff;
  padding: 10px 6px;
  font-weight: 600;
  text-decoration: none;
}

.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li > a:focus {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Dropdown menu links */
.container-header .mod-menu li ul a {
  color: var(--pamc-purple);
}

/* Mobile menu button */
.container-header .navbar-toggler {
  color: #ffffff;
  border-color: #ffffff;
}

/* Flexible desktop navigation */
@media (min-width: 992px) {
  .container-header .container-nav nav {
    width: 100%;
  }

  .container-header .mod-menu {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .container-header .mod-menu > li {
    flex: 0 0 auto;
    width: auto;
    min-width: max-content;
    overflow: visible;
    text-align: center;
  }

  .container-header .mod-menu > li > a {
    display: block;
    padding: 10px 6px;
    white-space: nowrap;
  }
}


/* =========================================
   FOOTER
   ========================================= */

.container-footer {
  background: linear-gradient(
    180deg,
    #572661 0%,
    #4e205a 55%,
    #431c4e 100%
  );
  color: #ffffff;
}

.container-footer .grid-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 15px;
  text-align: center;
}

.container-footer .mod-custom {
  width: 100%;
  text-align: center;
}

.container-footer .mod-custom p {
  margin: 0 0 12px;
  text-align: center;
}

.container-footer a {
  color: #ffffff;
}

/* JTKreative footer signature */
.container-footer .mod-custom img {
  display: block;
  width: 110px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border-radius: 0;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

/* Original purple-pink hover effect */
.container-footer .mod-custom a:hover img,
.container-footer .mod-custom a:focus-visible img {
  filter: brightness(0) saturate(100%)
    invert(23.5%) sepia(75.63%)
    saturate(1791.2%) hue-rotate(269.81deg)
    brightness(135.07%) contrast(60.08%);
  opacity: 1;
}

/* Prevent bright-purple transition flash */
.container-footer .mod-custom a img {
  transition: none !important;
  animation: none !important;
}


/* =========================================
   HOMEPAGE — GENERAL
   ========================================= */

.partners-home {
  max-width: 1160px;
  margin: 0 auto;
}

.partners-home h1,
.partners-home h2,
.partners-home h3 {
  line-height: 1.2;
}

.partners-home .pamc-kicker {
  color: var(--pamc-purple);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}


/* =========================================
   HOMEPAGE — CUSTOMER LOGIN STRIP
   ========================================= */

.partners-home .pamc-portals {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 14px 22px;
  margin: 12px 0 24px;
  background: var(--pamc-offwhite);
  border: 1px solid #e8ddec;
  border-radius: 8px;
}

.partners-home .pamc-portals-label {
  margin: 0;
  color: var(--pamc-deep-purple);
  font-weight: 700;
}

.partners-home .pamc-portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.partners-home .pamc-portal-actions a {
  display: inline-block;
  padding: 9px 16px;
  color: var(--pamc-deep-purple);
  background: #ffffff;
  border: 1px solid var(--pamc-purple);
  border-radius: 5px;
  font-weight: 700;
  text-decoration: none;
}

.partners-home .pamc-portal-actions a:hover,
.partners-home .pamc-portal-actions a:focus-visible {
  color: #ffffff;
  background: var(--pamc-purple);
}


/* =========================================
   HOMEPAGE — HERO
   ========================================= */

.partners-home .pamc-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--pamc-offwhite);
  border-radius: 14px;
  overflow: hidden;
  margin: 0 0 54px;
}

.partners-home .pamc-hero-copy {
  padding: 44px 38px;
  align-self: center;
}

.partners-home .pamc-hero h1 {
  font-size: clamp(2rem, 3vw, 3.1rem);
  color: #352739;
  margin-bottom: 20px;
}

.partners-home .pamc-hero-copy > p:not(.pamc-kicker) {
  font-size: 1.08rem;
  line-height: 1.75;
}

.partners-home .pamc-learn {
  display: inline-block;
  margin-top: 16px;
  color: var(--pamc-purple);
  font-weight: 700;
  text-decoration: none;
}

.partners-home .pamc-learn:hover {
  text-decoration: underline;
}

.partners-home .pamc-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}


/* =========================================
   HOMEPAGE — WHY PARTNERS
   ========================================= */

.partners-home .pamc-section {
  margin-bottom: 54px;
}

.partners-home .pamc-section h2 {
  font-size: 2rem;
  margin-bottom: 26px;
}

.partners-home .pamc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.partners-home .pamc-card {
  padding: 26px;
  background: #ffffff;
  border: 1px solid #e9e2eb;
  border-top: 3px solid var(--pamc-lavender);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(78, 32, 90, 0.05);
}

.partners-home .pamc-card h3 {
  font-size: 1.2rem;
  color: var(--pamc-deep-purple);
  margin-bottom: 12px;
}

.partners-home .pamc-card p {
  margin: 0;
  line-height: 1.65;
}


/* =========================================
   HOMEPAGE — WHAT IS AN AMC
   ========================================= */

.partners-home .pamc-explainer {
  padding: 36px 42px;
  margin-bottom: 40px;
  background: var(--pamc-offwhite);
  border-left: 4px solid var(--pamc-lavender);
  border-radius: 8px;
}

.partners-home .pamc-explainer h2 {
  margin-bottom: 16px;
}

.partners-home .pamc-explainer > p:last-child {
  line-height: 1.75;
  margin-bottom: 0;
}


/* =========================================
   HOMEPAGE — TABLET
   ========================================= */

@media (max-width: 800px) {
  .partners-home .pamc-hero {
    grid-template-columns: 1fr;
  }

  .partners-home .pamc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partners-home .pamc-hero-copy {
    padding: 30px 24px;
  }

  .partners-home .pamc-hero-image img {
    max-height: 280px;
    min-height: 220px;
  }
}


/* =========================================
   HOMEPAGE — PHONE
   ========================================= */

@media (max-width: 560px) {
  .partners-home .pamc-grid {
    grid-template-columns: 1fr;
  }

  .partners-home .pamc-portals {
    justify-content: center;
    text-align: center;
  }

  .partners-home .pamc-portal-actions {
    justify-content: center;
  }

  .partners-home .pamc-explainer {
    padding: 26px 22px;
  }

  .partners-home .pamc-card {
    padding: 22px;
  }
}

/* Why Partners — subtle card hover */

.partners-home .pamc-card {
  transition: background-color 0.25s ease;
}

@media (hover: hover) {
  .partners-home .pamc-card:hover {
    background-color: #faf4fc;
  }
}

/* =========================================
   MOBILE MENU — PEBBLES PAW
   ========================================= */

.container-header .navbar-toggler .icon-menu {
  display: inline-block;
  width: 44px;
  height: 34px;
  font-size: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("/images/branding/pebbles-menu.svg");
}

.container-header .navbar-toggler .icon-menu::before {
  content: none !important;
}

/* =========================================
   PARTNERS AMC — SERVICES PAGE
   ========================================= */

.pamc-services {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 0 20px;
}

.pamc-services h1,
.pamc-services h2,
.pamc-services h3 {
  line-height: 1.2;
}

.pamc-services .pamc-svc-eyebrow {
  color: #702477;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

/* Introduction */

.pamc-svc-intro {
  padding: 42px 46px;
  background: #f7f6f8;
  border-radius: 14px;
  border-bottom: 3px solid #b659c5;
}

.pamc-svc-intro h1 {
  color: #352739;
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  margin-bottom: 18px;
}

.pamc-svc-intro > p:last-child {
  font-size: 1.12rem;
  line-height: 1.75;
  max-width: 780px;
  margin-bottom: 0;
}

/* Appraisal products */

.pamc-svc-products {
  display: grid;
  grid-template-columns: 0.85fr 1.5fr;
  gap: 44px;
  align-items: start;
  padding: 52px 12px;
}

.pamc-svc-heading h2 {
  color: #352739;
  font-size: 2rem;
  margin-bottom: 16px;
}

.pamc-svc-heading > p:last-child {
  line-height: 1.7;
}

.pamc-svc-types {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.pamc-svc-types li {
  padding: 11px 17px;
  background: #f7f6f8;
  color: #4e205a;
  border: 1px solid #e8ddec;
  border-radius: 6px;
  font-weight: 600;
}

/* Online tools */

.pamc-svc-tools {
  background: #f7f6f8;
  border-left: 4px solid #b659c5;
  border-radius: 10px;
  padding: 36px 42px;
  margin-bottom: 42px;
}

.pamc-svc-tools > h2 {
  font-size: 2rem;
  color: #352739;
  margin-bottom: 22px;
}

.pamc-svc-tool {
  display: grid;
  grid-template-columns: 0.85fr 1.5fr;
  gap: 28px;
  padding: 20px 0;
  border-bottom: 1px solid #ded1e2;
}

.pamc-svc-tool h3 {
  font-size: 1.12rem;
  color: #4e205a;
  margin: 0;
}

.pamc-svc-tool p {
  line-height: 1.65;
  margin: 0;
}

.pamc-svc-portal {
  display: inline-block;
  margin-top: 26px;
  color: #702477;
  font-weight: 700;
  text-decoration: none;
}

.pamc-svc-portal:hover,
.pamc-svc-portal:focus-visible {
  color: #4e205a;
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* Customer support */

.pamc-svc-support {
  display: grid;
  grid-template-columns: 1.5fr 0.75fr;
  gap: 30px;
  align-items: center;
  padding: 38px 42px;
  color: #ffffff;
  background: linear-gradient(
    135deg,
    #702477 0%,
    #4e205a 100%
  );
  border-radius: 12px;
}

.pamc-svc-support .pamc-svc-support-label {
  color: #ecc9f0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.pamc-svc-support h2 {
  color: #ffffff;
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.pamc-svc-support p {
  line-height: 1.7;
}

.pamc-svc-support > div:first-child > p:last-child {
  margin-bottom: 0;
}

.pamc-svc-contact {
  text-align: center;
}

.pamc-svc-contact p {
  margin-bottom: 12px;
}

.pamc-svc-contact a {
  display: inline-block;
  padding: 12px 20px;
  color: #4e205a;
  background: #ffffff;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.pamc-svc-contact a:hover,
.pamc-svc-contact a:focus-visible {
  color: #4e205a;
  background: #f0d9f4;
}

/* Tablet and mobile */

@media (max-width: 800px) {
  .pamc-svc-products,
  .pamc-svc-support {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .pamc-svc-tool {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .pamc-svc-contact {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .pamc-svc-intro,
  .pamc-svc-tools,
  .pamc-svc-support {
    padding: 28px 22px;
  }

  .pamc-svc-products {
    padding: 38px 4px;
  }

  .pamc-svc-types li {
    padding: 9px 12px;
  }

  .pamc-svc-heading h2,
  .pamc-svc-tools > h2 {
    font-size: 1.7rem;
  }
}

/* =========================================
   PARTNERS AMC — ABOUT US
   ========================================= */

.pamc-about {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 0 20px;
}

.pamc-about h1,
.pamc-about h2,
.pamc-about h3 {
  line-height: 1.2;
}

.pamc-about .pamc-about-eyebrow {
  color: #702477;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

/* Introduction */

.pamc-about-hero {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 0;
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 58px;
}

.pamc-about-intro {
  padding: 48px 44px;
  background: #f7f6f8;
}

.pamc-about-intro h1 {
  color: #352739;
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 28px;
}

.pamc-about-intro .pamc-about-lead {
  color: #4e205a;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 22px;
}

.pamc-about-intro > p:last-child {
  line-height: 1.8;
  margin-bottom: 0;
}

/* Philosophy panel */

.pamc-about-philosophy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 38px;
  color: #ffffff;
  background: linear-gradient(
    145deg,
    #782b80 0%,
    #4e205a 100%
  );
}

.pamc-about-philosophy .pamc-about-small {
  color: #ebc5ef;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.pamc-about-accent {
  width: 44px;
  height: 3px;
  background: #b659c5;
  margin: 14px 0 24px;
}

.pamc-about-philosophy h2 {
  color: #ffffff;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  margin-bottom: 20px;
}

.pamc-about-philosophy > p:not(.pamc-about-small) {
  line-height: 1.8;
}

.pamc-about-philosophy .pamc-about-tagline {
  color: #eab7f0;
  font-style: italic;
  margin-top: 22px;
  margin-bottom: 0;
}

/* Experience section */

.pamc-about-experience {
  margin-bottom: 56px;
}

.pamc-about-section-heading {
  margin-bottom: 30px;
}

.pamc-about-section-heading h2 {
  color: #352739;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  margin-bottom: 14px;
}

.pamc-about-section-heading > p:last-child {
  line-height: 1.7;
}

.pamc-about-rows {
  border-top: 1px solid #e5dce8;
}

.pamc-about-row {
  display: grid;
  grid-template-columns: 0.95fr 1.3fr;
  gap: 32px;
  align-items: start;
  padding: 28px 12px;
  border-bottom: 1px solid #e5dce8;
}

.pamc-about-row-title {
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.pamc-about-number {
  color: #b659c5;
  font-size: 0.85rem;
  font-weight: 700;
}

.pamc-about-row h3 {
  color: #4e205a;
  font-size: 1.18rem;
  margin: 0;
}

.pamc-about-row > p {
  line-height: 1.75;
  margin: 0;
}

/* Quality commitment */

.pamc-about-commitment {
  background: #f7f6f8;
  border-left: 4px solid #b659c5;
  border-radius: 8px;
  padding: 36px 42px;
  margin-bottom: 42px;
}

.pamc-about-commitment h2 {
  color: #352739;
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.pamc-about-commitment > p:last-child {
  line-height: 1.75;
  margin-bottom: 0;
}

/* Closing invitation */

.pamc-about-closing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 34px 38px;
  color: #ffffff;
  background: linear-gradient(
    135deg,
    #702477,
    #4e205a
  );
  border-radius: 12px;
}

.pamc-about-closing .pamc-about-small {
  color: #ebc5ef;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.pamc-about-closing h2 {
  color: #ffffff;
  font-size: 1.65rem;
  margin-bottom: 12px;
}

.pamc-about-closing div > p:last-child {
  margin-bottom: 0;
}

.pamc-about-contact {
  display: inline-block;
  flex-shrink: 0;
  padding: 12px 20px;
  background: #ffffff;
  color: #4e205a;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
}

.pamc-about-contact:hover,
.pamc-about-contact:focus-visible {
  background: #f0d9f4;
  color: #4e205a;
}

/* Tablet */

@media (max-width: 800px) {
  .pamc-about-hero,
  .pamc-about-row {
    grid-template-columns: 1fr;
  }

  .pamc-about-row {
    gap: 12px;
  }
}

/* Phone */

@media (max-width: 560px) {
  .pamc-about-intro,
  .pamc-about-philosophy {
    padding: 30px 24px;
  }

  .pamc-about-commitment,
  .pamc-about-closing {
    padding: 28px 22px;
  }

  .pamc-about-row {
    padding: 24px 4px;
  }

  .pamc-about-intro .pamc-about-lead {
    font-size: 1.12rem;
  }
}

/* =========================================
   PARTNERS AMC — FLOATING MOBILE MENU
   ========================================= */

@media (max-width: 991px) {

  .container-header .container-nav,
  .container-header .container-nav nav {
    position: relative;
    overflow: visible;
  }

  /* Floating dropdown panel */
  .container-header .container-nav .navbar-collapse {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: min(350px, calc(100vw - 32px));
    padding: 10px 16px;
    background: #f7f6f8;
    border: 1px solid #e4d7e7;
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(49, 23, 54, 0.20);
    z-index: 1000;
  }

  /* Menu layout */
  .container-header .mod-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .container-header .mod-menu > li {
    width: 100%;
    margin: 0;
    text-align: center;
  }

  /* Links */
  .container-header .container-nav .navbar-collapse
  .mod-menu > li > a {
    display: block;
    padding: 13px 10px;
    color: #4e205a;
    line-height: 1.35;
    text-decoration: none;
  }

  /* Lavender dividers */
  .container-header .mod-menu > li + li {
    border-top: 1px solid #e4d7e7;
  }

  /* Subtle hover and keyboard focus */
  .container-header .container-nav .navbar-collapse
  .mod-menu > li > a:hover,
  .container-header .container-nav .navbar-collapse
  .mod-menu > li > a:focus-visible {
    color: #702477;
    background: #f0e6f3;
    border-radius: 6px;
  }

}

/* =========================================
   FLOATING MENU — ALIGNMENT & BACKGROUND BLUR
   ========================================= */

@media (max-width: 991px) {

  /* Properly center menu links */
  .container-header .container-nav
  .navbar-collapse .mod-menu > li {
    display: block;
    text-align: center;
  }

  .container-header .container-nav
  .navbar-collapse .mod-menu > li > a {
    display: block;
    width: 100%;
    text-align: center;
  }

  /* Keep floating menu above page content */
  .container-header {
    position: relative;
    z-index: 20;
  }

 /* Blur immediately when menu button is activated */
body:has(.container-header .navbar-toggler[aria-expanded="true"])
.site-grid,
body:has(.container-header .navbar-toggler[aria-expanded="true"])
.container-footer {
  filter: blur(2px);
}

}

/* =========================================
   PARTNERS AMC — CONTACT US
   ========================================= */

.pamc-contact {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 0 30px;
}

.pamc-contact h1,
.pamc-contact h2,
.pamc-contact h3 {
  line-height: 1.2;
}

.pamc-contact .pamc-contact-eyebrow {
  color: #702477;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

/* Introduction */

.pamc-contact-intro {
  background: #f7f6f8;
  border-radius: 14px;
  border-bottom: 3px solid #b659c5;
  padding: 40px 44px;
  margin-bottom: 36px;
}

.pamc-contact-intro h1 {
  color: #352739;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 18px;
}

.pamc-contact-intro > p:last-child {
  max-width: 760px;
  font-size: 1.12rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Two-column contact layout */

.pamc-contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: stretch;
}

/* Contact details */

.pamc-contact-info {
  padding: 36px;
  background: #f7f6f8;
  border-radius: 12px;
}

.pamc-contact-info h2 {
  color: #352739;
  font-size: 1.9rem;
  margin-bottom: 18px;
}

.pamc-contact-info > p:not(.pamc-contact-eyebrow) {
  line-height: 1.75;
  margin-bottom: 34px;
}

.pamc-contact-detail {
  padding: 22px 0;
  border-top: 1px solid #e4d7e7;
}

.pamc-contact-detail h3 {
  color: #4e205a;
  font-size: 1rem;
  margin-bottom: 10px;
}

.pamc-contact-detail a {
  color: #702477;
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
}

.pamc-contact-detail a:hover {
  text-decoration: underline;
}

.pamc-contact-detail address {
  font-style: normal;
  line-height: 1.75;
}

/* Tagline detail */

.pamc-contact-note {
  padding: 22px;
  margin-top: 24px;
  background: #ffffff;
  border-left: 3px solid #b659c5;
  border-radius: 6px;
}

.pamc-contact-note strong {
  color: #702477;
}

.pamc-contact-note p {
  margin: 8px 0 0;
  line-height: 1.6;
}

/* Contact form panel */

.pamc-contact-form-panel {
  background: #ffffff;
  border: 1px solid #e9e2eb;
  border-radius: 12px;
  padding: 36px;
  box-shadow: 0 5px 20px rgba(78,32,90,0.04);
}

.pamc-contact-form-panel h2 {
  color: #352739;
  font-size: 1.9rem;
  margin-bottom: 12px;
}

.pamc-contact-form-panel > p:not(.pamc-contact-eyebrow) {
  line-height: 1.65;
  margin-bottom: 26px;
}

.pamc-contact-form {
  width: 100%;
}

.pamc-contact-form .convertforms {
  max-width: 100%;
}

/* Tablet and mobile */

@media (max-width: 800px) {
  .pamc-contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .pamc-contact-intro,
  .pamc-contact-info,
  .pamc-contact-form-panel {
    padding: 28px 22px;
  }

  .pamc-contact-layout {
    gap: 20px;
  }

  .pamc-contact-detail a {
    font-size: 1.15rem;
  }
}

/* =========================================
   CONTACT FORM — SUBMIT BUTTON
   ========================================= */

.pamc-contact-form button[type="submit"],
.pamc-contact-form input[type="submit"],
.pamc-contact-form .cf-btn {
  background: #702477 !important;
  border-color: #702477 !important;
  color: #ffffff !important;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

/* Hover and keyboard focus */
.pamc-contact-form button[type="submit"]:hover,
.pamc-contact-form button[type="submit"]:focus-visible,
.pamc-contact-form input[type="submit"]:hover,
.pamc-contact-form input[type="submit"]:focus-visible,
.pamc-contact-form .cf-btn:hover,
.pamc-contact-form .cf-btn:focus-visible {
  background: #b659c5 !important;
  border-color: #b659c5 !important;
  color: #171019 !important;
}

/* Partners AMC — Staff Login */

.pamc-staff-link {
  width: 100%;
  margin: 12px 0 0;
  text-align: center;
}

.pamc-staff-link a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #702477;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pamc-staff-link a:hover,
.pamc-staff-link a:focus-visible {
  color: #b659c5;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Staff Login — centered beneath buttons */

div:has(> .pamc-staff-link) {
  position: relative;
}

.pamc-staff-link a,
.pamc-staff-link a .icon-lock {
  color: #702477 !important;
  text-decoration: none !important;
}

.pamc-staff-link a:hover,
.pamc-staff-link a:focus-visible {
  color: #b659c5 !important;
  text-decoration: underline !important;
}

@media (min-width: 769px) {
  div:has(> .pamc-staff-link) {
    padding-bottom: 44px !important;
  }

  .pamc-staff-link {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: auto !important;
    margin: 0 !important;
    white-space: nowrap;
    text-align: center;
  }
}

/* Partners AMC Staff Login lock icon */

.partners-home .pamc-staff-entry .pamc-lock-icon {
  display: inline-block;
  position: relative;
  flex-shrink: 0;
  width: 14px;
  height: 10px;
  box-sizing: border-box;
  border: 2px solid currentColor;
  border-radius: 2px;
  background: transparent;
  margin-top: 5px;
}

.partners-home .pamc-staff-entry .pamc-lock-icon::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 7px;
  box-sizing: border-box;
  left: 1px;
  top: -8px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}


/* Center customer login buttons on mobile and tablet */
@media (max-width: 991px) {

  .partners-home .pamc-portal-group {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
  }

  .partners-home .pamc-portal-actions {
    display: flex;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

.partners-home .pamc-portals-label {
  width: 100%;
  text-align: center;
}

}

/* Appraiser Registration: space between Previous and Submit */
form.pamc-appraisers-rsform #Submit {
  margin-left: 12px !important;
}

/* =========================================
   PARTNERS AMC STAFF LOGIN
   ========================================= */

body.com_users.view-login .com-users-login {
  max-width: 500px;
  margin: 30px auto 55px;
}

/* Staff instructions */
body.com_users.view-login .login-description {
  text-align: center;
  color: #4e205a;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Login card */
body.com_users.view-login #com-users-login__form {
  background: #f7f6f8;
  border: 1px solid #e8ddec;
  border-top: 4px solid #702477;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(78,32,90,0.06);
}

/* Keep labels above fields */
body.com_users.view-login .control-group {
  display: block;
  margin-bottom: 18px;
}

body.com_users.view-login .control-label,
body.com_users.view-login .controls {
  width: 100%;
  margin-left: 0;
  float: none;
}

body.com_users.view-login .control-label label {
  color: #4e205a;
  font-weight: 600;
  margin-bottom: 7px;
}

/* Username and password */
body.com_users.view-login .form-control {
  min-height: 46px;
  border: 1px solid #d8cedb;
  border-radius: 6px;
}

body.com_users.view-login .form-control:focus {
  border-color: #702477;
  box-shadow: 0 0 0 3px rgba(182,89,197,0.18);
}

/* Main Log In button */
body.com_users.view-login button[type="submit"] {
  display: block;
  width: 100%;
  min-height: 46px;
  background: #702477;
  border: 1px solid #702477;
  border-radius: 6px;
  color: #ffffff;
  font-weight: 700;
}

body.com_users.view-login button[type="submit"]:hover {
  background: #b659c5;
  border-color: #b659c5;
  color: #171019;
}

/* Passkey button */
body.com_users.view-login .plg_system_webauthn_login_button {
  background: #ffffff;
  border: 1px solid #702477;
  color: #702477;
  border-radius: 6px;
  min-height: 46px;
}

/* Password and username recovery links */
body.com_users.view-login .com-users-login__options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 15px;
}

body.com_users.view-login .com-users-login__options a {
  background: transparent;
  border: none;
  color: #702477;
  font-size: 0.9rem;
  padding: 5px;
}

/* Mobile */
@media (max-width: 560px) {
  body.com_users.view-login #com-users-login__form {
    padding: 24px 20px;
  }
}

/* Hide passkey option on Staff Login */
body.com_users.view-login .com-users-login__submit:has(.plg_system_webauthn_login_button) {
  display: none !important;
}

/* =========================================
   PARTNERS AMC STAFF PORTAL LOGOUT
   ========================================= */

/* Remove oversized Joomla module box */
body.itemid-133 .main-top.card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 0 16px;
}

/* Remove unnecessary padding */
body.itemid-133 .main-top .card-body {
  padding: 0 !important;
}

/* Align logout button to the right */

body.itemid-133 .main-top .logout-button {
  display: flex;
  justify-content: flex-end;
  transform: translateY(20px);
}


/* Partners purple logout button */
body.itemid-133 .main-top .logout-button .btn {
  background: #702477 !important;
  border: 1px solid #702477 !important;
  color: #ffffff !important;
  border-radius: 6px;
  padding: 9px 20px;
  font-weight: 600;
}

/* Hover */
body.itemid-133 .main-top .logout-button .btn:hover {
  background: #b659c5 !important;
  border-color: #b659c5 !important;
  color: #171019 !important;
}



