/* CertProxyWizard final layout refinements.
   Scoped additions preserve the approved v5 visual language. */
:root { --cpw-directory-panel:#f3f8ff; --cpw-directory-border:#cfe0f7; --cpw-directory-blue:#1769e8; }
.cpw-org-directory-priority {
  display:block;
  margin:0;
  padding:clamp(22px,3vw,36px) 0;
  background:linear-gradient(180deg,#f1f7ff 0%,#fbfdff 100%);
  border-top:1px solid #dce9fb;
  border-bottom:1px solid #dce9fb;
}
.cpw-org-directory-priority > .container {
  box-sizing:border-box;
  width:min(calc(100% - 40px), 1180px);
  margin-inline:auto;
  padding:clamp(20px,2.6vw,34px);
  background:#fff;
  border:1px solid var(--cpw-directory-border);
  border-radius:22px;
  box-shadow:0 14px 36px rgba(22,76,143,.07);
}
.cpw-org-directory-priority .section-heading { margin-bottom:20px; }
.cpw-org-directory-priority .section-heading .eyebrow {
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:7px 12px;
  border:1px solid #c8ddfb;
  border-radius:999px;
  background:#eaf3ff;
  color:#145fc9;
  font-size:11px;
  font-weight:800;
  letter-spacing:.075em;
}
.cpw-org-directory-priority .section-heading h2 {
  margin-top:12px;
  margin-bottom:10px;
  color:#0b214b;
  font-size:clamp(25px,3vw,38px);
  line-height:1.16;
  text-wrap:balance;
}
.cpw-org-directory-priority .section-heading p {
  max-width:860px;
  margin:0 auto;
}
.cpw-org-directory-priority .cpw-provider-search {
  width:min(100%,760px);
  min-height:58px;
  border:1px solid #c9dcf7;
  border-radius:16px;
  box-shadow:0 4px 14px rgba(17,78,150,.045);
}
.cpw-org-directory-priority .cpw-provider-search input {
  min-width:0;
  width:100%;
  min-height:54px;
  font-size:16px;
}
.cpw-org-directory-priority .cpw-provider-status {
  margin:10px 0 18px;
  color:#647a98;
  text-align:center;
  font-size:13px;
}
.cpw-org-directory-priority .cpw-related-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.cpw-org-directory-priority a.cpw-related-cert {
  box-sizing:border-box;
  display:flex;
  min-width:0;
  min-height:76px;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:18px 18px;
  border:1px solid #d4e3f8;
  border-radius:17px;
  background:linear-gradient(135deg,#fff 0%,#f9fcff 100%);
  color:#102a54;
  font-size:14px;
  font-weight:750;
  line-height:1.45;
  text-decoration:none;
  box-shadow:0 5px 16px rgba(19,70,126,.035);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.cpw-org-directory-priority a.cpw-related-cert > span:first-child {
  min-width:0;
  overflow-wrap:anywhere;
}
.cpw-org-directory-priority a.cpw-related-cert > span[aria-hidden="true"] {
  flex:0 0 auto;
  color:#1769e8;
  font-size:19px;
  font-weight:800;
}
.cpw-org-directory-priority a.cpw-related-cert:hover,
.cpw-org-directory-priority a.cpw-related-cert:focus-visible {
  transform:translateY(-2px);
  border-color:#4f95ff;
  background:#f3f8ff;
  box-shadow:0 10px 22px rgba(23,105,232,.12);
  outline:none;
}
.cpw-org-directory-priority a.cpw-related-cert:focus-visible {
  outline:3px solid rgba(23,105,232,.28);
  outline-offset:2px;
}
/* Give 3-step flows exactly three tracks on desktop, not a leftover fourth slot. */
.pmp-page .process-grid.process-grid-3 {
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:stretch;
}
.pmp-page .process-grid.process-grid-3 > .process-card { min-width:0; height:100%; box-sizing:border-box; }
.pmp-page .process-grid:not(.process-grid-3) {
  grid-template-columns:repeat(4,minmax(0,1fr));
  align-items:stretch;
}
.pmp-page .process-grid:not(.process-grid-3) > .process-card { min-width:0; height:100%; box-sizing:border-box; }
body:not(.pmp-page) .steps-grid.steps-grid-3 {
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:stretch;
}
body:not(.pmp-page) .steps-grid.steps-grid-3 > .step-card { min-width:0; height:100%; box-sizing:border-box; }
body:not(.pmp-page) .steps-grid.steps-grid-4 {
  grid-template-columns:repeat(4,minmax(0,1fr));
  align-items:stretch;
}
body:not(.pmp-page) .steps-grid.steps-grid-4 > .step-card { min-width:0; height:100%; box-sizing:border-box; }

/* Address and direct phone/WhatsApp contact in every page footer. */
.cpw-business-contact {
  box-sizing:border-box;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-start;
  gap:10px 26px;
  width:min(calc(100% - 48px),1180px);
  margin:18px auto 16px;
  padding:18px 0 20px;
  border-top:1px solid rgba(255,255,255,.14);
  color:#c9d7ec;
  font-size:13px;
  line-height:1.6;
}
.cpw-business-contact .cpw-contact-item { min-width:0; overflow-wrap:anywhere; }
.cpw-business-contact strong { color:#fff; font-weight:800; margin-right:5px; }
.cpw-business-contact a { color:#e0eaff; text-decoration:underline; text-underline-offset:3px; }
.cpw-business-contact a:hover,.cpw-business-contact a:focus-visible { color:#fff; }
@media (max-width:1050px) {
  .cpw-org-directory-priority .cpw-related-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .pmp-page .process-grid:not(.process-grid-3),
  body:not(.pmp-page) .steps-grid.steps-grid-4 { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:760px) {
  .cpw-org-directory-priority { padding:22px 0; }
  .cpw-org-directory-priority > .container {
    width:calc(100% - 28px);
    padding:20px 15px;
    border-radius:18px;
  }
  .cpw-org-directory-priority .section-heading h2 { font-size:clamp(24px,6vw,32px); }
  .cpw-org-directory-priority .cpw-related-grid { grid-template-columns:minmax(0,1fr); gap:10px; }
  .cpw-org-directory-priority a.cpw-related-cert { min-height:64px; padding:16px; }
  .pmp-page .process-grid.process-grid-3,
  body:not(.pmp-page) .steps-grid.steps-grid-3 { grid-template-columns:minmax(0,1fr); }
  .cpw-business-contact { width:calc(100% - 32px); display:grid; grid-template-columns:minmax(0,1fr); gap:7px; padding:16px 0; }
}
@media (max-width:420px) {
  .cpw-org-directory-priority > .container { width:calc(100% - 22px); padding:18px 12px; }
  .cpw-org-directory-priority a.cpw-related-cert { font-size:13px; }
}
@media (prefers-reduced-motion:reduce) {
  .cpw-org-directory-priority a.cpw-related-cert { transition:none; }
}
