/* == screen: provider portal (/providers, builder X) ==
   Values copied from Sterling Connect Providers.dc.html. Every class is prefixed
   pv- because every screen stylesheet loads on every page. */

.pv-page { background: #F7F8FA; }

/* ---------- Header ---------- */
.pv-top { height: 72px; background: #FFFFFF; border-bottom: 1px solid #E6EAF0; display: flex; align-items: center; gap: 14px; padding: 0 clamp(20px, 4vw, 64px); }
.pub-page .pv-brand { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.pub-page .pv-brand:hover { text-decoration: none; }
.pv-brand img { height: clamp(30px, 8vw, 40px); width: auto; aspect-ratio: 4.372; display: block; flex: none; }
.pv-brand-rule { width: 1.5px; height: 28px; background: #DFE3EA; flex: none; }
.pv-brand-name { font: 700 18px/22px 'Plus Jakarta Sans'; color: #01204E; white-space: nowrap; }
.pv-top-gap { margin-left: auto; }
.pv-chip { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px 0 4px; border: 1px solid #E6EAF0; border-radius: 999px; min-width: 0; max-width: 320px; flex: none; }
.pv-chip-ini { width: 36px; height: 36px; border-radius: 50%; background: #01204E; color: #31FE01; font: 700 13px/36px 'Plus Jakarta Sans'; text-align: center; flex: none; }
.pv-chip-name { font: 600 14px/18px 'DM Sans'; color: #01204E; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* Narrow screens: the chip keeps its initials; the name stays for screen readers. */
@media (max-width: 719px) {
  .pv-chip { padding: 0 3px; }
  .pv-chip-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* With the chip, the product name wraps onto two lines on phones instead of running under it. */
@media (max-width: 479px) { .pv-top-chip .pv-brand-name { white-space: normal; font-size: 15px; line-height: 18px; max-width: 110px; } }
@media (max-width: 359px) { .pv-brand-name { font-size: 16px; } .pv-top-chip .pv-brand-name { font-size: 14px; } }

/* ---------- Main ---------- */
.pv-main { width: 100%; max-width: 1100px; margin: 0 auto; padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 40px) 80px; display: flex; flex-direction: column; gap: 24px; }
.pv-card { background: #FFFFFF; border: 1px solid #E6EAF0; border-radius: 24px; }
.pv-p { margin: 0; }
.pub-page .pv-p a { color: inherit; }
.pv-eyebrow { display: flex; align-items: center; gap: 10px; font: 600 12px/16px 'DM Sans'; letter-spacing: .12em; text-transform: uppercase; color: #127A00; }
.pv-eyebrow > span { width: 20px; height: 3px; background: #31FE01; flex: none; }

/* Module off */
.pv-closed { padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.pv-closed-h { margin: 0; font: 800 28px/36px 'Plus Jakarta Sans'; color: #01204E; }

/* ---------- Apply ---------- */
.pv-apply { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.pv-apply-copy { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.pv-h1 { margin: 0; font: 800 clamp(30px, 4vw, 42px)/1.15 'Plus Jakarta Sans'; letter-spacing: -.02em; color: #01204E; text-wrap: balance; }
.pv-promises { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pv-promises li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 23px; color: #121826; }
.pv-promises li > span { width: 8px; height: 8px; border-radius: 50%; background: #127A00; margin-top: 8px; flex: none; }
.pv-apply .pv-form { flex: 1 1 440px; min-width: 0; }

/* Shared form card: the design's auto-fit field grid */
.pv-grid { padding: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px 18px; }
.pv-grid[hidden] { display: none; }
.pv-span { grid-column: 1 / -1; }
.pv-form-h { margin: 0; font: 700 20px/28px 'Plus Jakarta Sans'; color: #01204E; }
.pv-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pv-label { font: 600 14px/20px 'DM Sans'; color: #01204E; }
.pv-control { width: 100%; height: 46px; padding: 0 12px; border: 1px solid #C5CBD5; border-radius: 12px; font: 400 15px/20px 'DM Sans'; color: #121826; background: #FFFFFF; outline: none; margin: 0; }
.pv-control::placeholder { color: #6B7485; opacity: 1; }
select.pv-control { padding-right: 8px; }
.pv-control:focus { border-color: #01204E; box-shadow: 0 0 0 3px rgba(1, 32, 78, .12); }
.pv-control[aria-invalid="true"] { border-color: #9E2A21; }
.pv-textarea { height: auto; min-height: 112px; padding: 10px 12px; line-height: 23px; resize: vertical; }
.pv-err { display: block; font-size: 13px; line-height: 18px; color: #9E2A21; }
.pv-agree-text .pv-err { margin-top: 4px; }
.pv-alert { margin: 0; padding: 12px 14px; border-radius: 12px; background: #FDECEA; color: #9E2A21; font: 600 14px/20px 'DM Sans'; }

/* Agree box: a real checkbox under the design's 22px square */
.pv-agree { position: relative; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.pv-agree-input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 1px 0 0; cursor: pointer; }
.pv-agree-box { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid #01204E; background: #FFFFFF; color: #31FE01; font: 700 14px/20px 'DM Sans'; text-align: center; flex: none; margin-top: 1px; }
.pv-agree-input:checked + .pv-agree-box { background: #01204E; }
.pv-agree-input:checked + .pv-agree-box::after { content: '\2713'; }
.pv-agree-input:focus-visible + .pv-agree-box { outline: 3px solid #31FE01; outline-offset: 2px; }
.pv-agree-input[aria-invalid="true"] + .pv-agree-box { border-color: #9E2A21; }
.pv-agree-text { font-size: 14px; line-height: 22px; color: #3A4352; }

/* Submit: navy; with JS it greys until the required fields are filled (design applyBg / postBg) */
.pv-submit { height: 48px; border: none; border-radius: 999px; background: #01204E; color: #FFFFFF; font: 600 16px/20px 'DM Sans'; cursor: pointer; }
.js .pv-submit:not(.is-ready) { background: #DFE3EA; color: #6B7485; }
.pv-submit:focus-visible, .pv-btn-navy:focus-visible, .pv-btn-plain:focus-visible { outline: 3px solid #31FE01; outline-offset: 2px; }
.pv-submit-sm { height: 44px; padding: 0 20px; font-size: 15px; }

/* ---------- Pending / rejected ---------- */
.pv-status { padding: 28px; display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.pv-status-tight { gap: 10px; }
.pv-pill-wait { align-self: flex-start; height: 28px; padding: 0 12px; border-radius: 999px; background: #FFF3DC; color: #7A4600; font: 600 13px/28px 'DM Sans'; }
.pv-status-h { margin: 0; font: 800 26px/34px 'Plus Jakarta Sans'; color: #01204E; overflow-wrap: break-word; }
.pv-status-h-sm { font-size: 24px; line-height: 32px; }
.pv-note { padding: 14px 16px; border-radius: 16px; background: #F2F5FA; font-size: 14px; line-height: 22px; color: #121826; }
.pv-note-wide { padding: 14px 18px; }

/* ---------- Verified ---------- */
.pv-dash { display: flex; flex-direction: column; gap: 20px; }
.pv-dash-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; }
.pv-dash-h { margin: 10px 0 0; font: 800 34px/42px 'Plus Jakarta Sans'; letter-spacing: -.02em; color: #01204E; }
.pub-page .pv-btn-navy { height: 44px; padding: 0 20px; border: none; border-radius: 999px; background: #01204E; color: #FFFFFF; font: 600 15px/20px 'DM Sans'; display: inline-flex; align-items: center; white-space: nowrap; text-decoration: none; cursor: pointer; }
.pub-page .pv-btn-navy:hover { background: #0D2F63; color: #FFFFFF; text-decoration: none; }
.pv-btn-navy[hidden] { display: none; }
.pv-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; }
.pv-kpi { background: #FFFFFF; border: 1px solid #E6EAF0; border-radius: 20px; padding: 16px 18px; }
.pv-kpi-l { font-size: 13px; line-height: 18px; color: #6B7485; }
.pv-kpi-v { font: 800 26px/32px 'Plus Jakarta Sans'; color: #01204E; }
.pv-post { border: 1.5px solid #01204E; }
.pv-form-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.pv-form-note { font-size: 13px; line-height: 20px; color: #6B7485; }
.pv-form-actions { display: flex; gap: 8px; }
.pub-page .pv-btn-plain { height: 44px; padding: 0 16px; border-radius: 999px; background: transparent; color: #01204E; font: 600 15px/20px 'DM Sans'; display: inline-flex; align-items: center; text-decoration: none; }
.pub-page .pv-btn-plain:hover { background: #F2F5FA; color: #01204E; text-decoration: none; }
.pv-posts { overflow: hidden; }
.pv-post-row { padding: 16px 22px; border-bottom: 1px solid #EEF0F4; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.pv-post-main { flex: 1 1 280px; min-width: 0; }
.pv-post-t { font: 600 16px/22px 'DM Sans'; color: #01204E; overflow-wrap: break-word; }
.pv-post-m { font-size: 13px; line-height: 20px; color: #6B7485; }
.pv-pill { height: 26px; padding: 0 10px; border-radius: 999px; font: 600 12px/26px 'DM Sans'; white-space: nowrap; }
.pv-empty { padding: 32px; text-align: center; color: #6B7485; }
