/* PCAB public auth pages — exact Figma colors, standard/compact sizing */
:root {
  --pcab-navy: #243E7D;
  --pcab-blue: #0D6EFD;
  --pcab-ipt-border: #C8C8C8;
  --pcab-label: #6B7280;
  --pcab-input: #141414;
  --pcab-charcoal: #323232;
  --pcab-card-border: #F0F0F0;
  --pcab-divider: #E6E6E6;
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  font-family: "Segoe UI", system-ui, Roboto, sans-serif;
  color: #141414;
  font-size: 14px;
  background: var(--pcab-navy);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* skyline pinned to the viewport (not the content box) so it never shifts
   as .pa-main grows/shrinks with page content */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(36, 62, 125, .82), rgba(36, 62, 125, .82)),
    url("/pcab_v2/static/src/img/auth_skyline.jpg") center/cover no-repeat;
}

/* ---- top navbar ---- */
.pa-top {
  position: relative;
  background: var(--pcab-navy);
  color: #fff;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 48px);
}

.pa-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}

.pa-logo-img {
  width: 34px;
  height: 34px;
  background: #fff;
  border-radius: 8px;
  padding: 3px;
  object-fit: contain;
}

.pa-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  font-size: 14px;
}

.pa-nav>a {
  color: #fff;
  text-decoration: none;
}

.pa-nav>a:hover {
  opacity: .85;
}

.pa-navtoggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 0;
  cursor: pointer;
  flex: 0 0 auto;
}

.pa-navtoggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .15s ease, opacity .15s ease;
}

.pa-navtoggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.pa-navtoggle.open span:nth-child(2) {
  opacity: 0;
}

.pa-navtoggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 860px) {
  .pa-navtoggle {
    display: flex;
  }

  .pa-nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--pcab-navy);
    padding: 12px clamp(16px, 4vw, 48px) 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
    z-index: 100;
  }

  .pa-nav.open {
    display: flex;
  }

  .pa-nav>a {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }

  .pa-nav .pa-btn-outline,
  .pa-nav .pa-btn-solid {
    width: 100%;
    margin-top: 8px;
  }
}

.pa-btn-outline {
  border: 1px solid #fff;
  border-radius: 8px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px !important;
}

.pa-btn-solid {
  background: #fff;
  color: var(--pcab-navy) !important;
  border-radius: 8px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px !important;
  font-weight: 600;
}

.pa-btn-outline::after,
.pa-btn-solid::after {
  content: "\2192";
  display: inline-block;
  max-width: 0;
  margin-left: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateX(-4px);
  transition: max-width .18s ease, margin-left .18s ease, opacity .15s ease, transform .15s ease;
}

.pa-btn-outline:hover::after,
.pa-btn-solid:hover::after {
  max-width: 16px;
  margin-left: 6px;
  opacity: 1;
  transform: translateX(0);
}

/* ---- main: navy + skyline ---- */
.pa-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 16px;
}

/* Sign Up: black labels (per Figma) */
.pa-card-signup .pa-form label {
  color: #141414;
}

.pa-req {
  color: #dc2626;
  margin-left: 3px;
  font-weight: 700;
}

/* ---- card ---- */
.pa-card {
  background: #fff;
  border: 1px solid var(--pcab-card-border);
  border-radius: 14px;
  box-shadow: 0 6px 26px rgba(0, 0, 0, .14);
  padding: 28px 32px;
  width: 440px;
  max-width: 94vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pa-card-wide {
  width: 760px;
}

.pa-center {
  text-align: center;
}

.pa-title {
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  color: var(--pcab-navy);
  margin: 0;
  text-align: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--pcab-divider);
}

.pa-title b {
  font-weight: 700;
}

.pa-card-wide .pa-title {
  text-align: left;
  border-bottom: 0;
  padding-bottom: 0;
}

.pa-sub {
  color: var(--pcab-label);
  font-size: 13px;
  margin: -8px 0 0;
}

.pa-section {
  font-size: 15px;
  font-weight: 700;
  color: #141414;
  margin: 6px 0 0;
}

/* ---- fields ---- */
.pa-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pa-form label {
  display: block;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  color: var(--pcab-label);
  margin-bottom: 6px;
}

.pa-ipt {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 10px;
  height: 44px;
  cursor: text;
  border: 1px solid var(--pcab-ipt-border);
  border-radius: 10px;
  padding: 0 14px;
  background: #fff;
}

.pa-ipt:focus-within {
  border-color: var(--pcab-blue);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, .15);
}

.pa-ipt .ico {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--pcab-navy);
  align-self: center;
}

.pa-ipt input,
.pa-ipt select {
  flex: 1;
  border: 0;
  outline: none;
  font-size: 14px;
  color: var(--pcab-input);
  background: transparent;
  min-width: 0;
  height: 100%;
}

.pa-ipt .eye {
  cursor: pointer;
  color: #9aa3af;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  align-self: center;
}

.pa-form small {
  display: block;
  color: #9ca3af;
  font-size: 12px;
  margin-top: 4px;
}

.pa-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 20px;
}

.pa-right {
  text-align: right;
}

.pa-right a {
  color: var(--pcab-navy);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
}

/* ---- buttons ---- */
.pa-submit {
  width: 100%;
  background: var(--pcab-blue);
  color: #fff;
  border: 0;
  border-radius: 10px;
  height: 44px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

.pa-submit:hover {
  filter: brightness(.95);
}

.pa-asbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 0 20px;
  text-decoration: none;
}

/* OTP-style cards (verify-email, forgot-password OTP step) */
.pa-card-otp {
  max-width: 560px;
}

.pa-title-plain {
  border: 0;
  padding-bottom: 0;
}

.pa-sub-tight {
  margin: 0 auto 4px;
}

.pa-highlight {
  color: var(--pcab-blue);
}

.pa-success-msg {
  color: #16a34a;
  font-size: 13px;
}

.pa-submit-narrow {
  max-width: 340px;
  margin: 0 auto;
}

.pa-miniform {
  margin: 4px 0 2px;
}

.pa-altline {
  text-align: center;
  font-size: 14px;
  color: var(--pcab-charcoal);
}

.pa-altline a {
  color: var(--pcab-navy);
  font-weight: 600;
  text-decoration: underline;
}

.pa-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
}

.pa-check {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 26px;
  line-height: 48px;
  margin: 0 auto;
}

/* ---- footer ---- */
.pa-foot {
  background: var(--pcab-navy);
  color: rgba(255, 255, 255, .8);
  padding: 32px clamp(16px, 4vw, 48px) 0;
}

.pa-foot-cols {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: 48px;
}

.pa-foot-cols h4 {
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: .03em;
  margin: 0 0 12px;
}

.pa-foot-cols a {
  display: block;
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
  font-size: 13px;
  line-height: 22px;
}

.pa-foot-cols p {
  font-size: 13px;
  line-height: 20px;
  margin: 0 0 10px;
}

.pa-foot-copy {
  text-align: right;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  padding: 16px 0 28px;
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .25);
}

@media (max-width:820px) {

  .pa-grid2,
  .pa-foot-cols {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pa-card,
  .pa-card-wide {
    width: 100%;
    padding: 24px;
  }

  .pa-foot-copy {
    text-align: center;
  }
}

/* ---- homepage / content extras ---- */
.pa-hero {
  text-align: center;
  color: #fff;
  padding: 30px 16px 6px;
}

.pa-hero-logo {
  width: 72px;
  height: 72px;
  background: #fff;
  border-radius: 14px;
  padding: 8px;
  object-fit: contain;
}

.pa-hero h1 {
  font-size: 26px;
  font-weight: 700;
  margin: 14px 0 8px;
}

.pa-hero p {
  font-size: 14px;
  color: rgba(255, 255, 255, .85);
  max-width: 560px;
  margin: 0 auto 18px;
}

.pa-hero-cta {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.pa-asbtn-outline-navy {
  background: #fff;
  color: var(--pcab-navy);
  border: 1px solid var(--pcab-navy);
}

.pa-asbtn-outline-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}

.pa-card-spaced {
  margin: 30px auto;
}

.pa-section-lg {
  font-size: 20px;
}

.pa-ann {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--pcab-divider);
  font-size: 14px;
}

.pa-ann-date {
  color: var(--pcab-label);
  font-size: 12px;
}

/* verify result — elevated white card, matches .pa-card system */
.pa-vresult {
  background: #fff;
  border: 1px solid var(--pcab-card-border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .16);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 620px;
  max-width: 94vw;
  margin: 30px auto;
}

.pa-vstatus {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.pa-vstatus-valid {
  color: #16A34A;
}

.pa-vstatus-suspended {
  color: #EA580C;
}

.pa-vstatus-revoked {
  color: #DC2626;
}

.pa-vbadge-suspended {
  background: rgba(234, 88, 12, .12);
  color: #EA580C;
}

.pa-vbadge-revoked {
  background: rgba(220, 38, 38, .12);
  color: #DC2626;
}

.pa-vreason {
  width: 100%;
  background: #F7F8FA;
  border-radius: 10px;
  padding: 14px 18px;
  text-align: center;
}

.pa-vreason-h {
  font-weight: 600;
  color: var(--pcab-navy);
  font-size: 13px;
  margin: 0 0 6px;
}

.pa-vreason-body {
  color: #4B5563;
  font-size: 14px;
  line-height: 1.5;
}

.pa-vfirm {
  text-align: center;
  color: var(--pcab-navy);
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: .01em;
}

.pa-vbadge {
  width: fit-content;
  background: rgba(36, 62, 125, .12);
  color: var(--pcab-navy);
  border-radius: 10px;
  height: 34px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  margin: 0 auto;
}

.pa-vrows {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.pa-vrow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  font-size: 15px;
  color: #323232;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--pcab-card-border);
}

.pa-vrow:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pa-vrow span {
  font-weight: 500;
  color: var(--pcab-label);
  white-space: nowrap;
}

.pa-vrow b {
  font-weight: 600;
  color: var(--pcab-navy);
  text-align: right;
}

.pa-vresult-error {
  align-items: center;
  text-align: center;
  padding: 40px 32px;
  width: 460px;
  gap: 8px;
}

.pa-vresult-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(220, 38, 38, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.pa-vresult-title {
  color: var(--pcab-navy);
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.pa-vresult-sub {
  color: var(--pcab-label);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  max-width: 340px;
}

.pa-vresult-action {
  margin-top: 12px;
}

.pa-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #C8C8C8;
  border-radius: 10px;
  padding: 11px 14px;
  flex: 1;
  font-size: 14px;
  cursor: pointer;
}

.pa-guidegrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.pa-guide {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--pcab-divider);
  border-radius: 10px;
  text-decoration: none;
  color: #243E7D;
  font-weight: 600;
  font-size: 14px;
}

.pa-guide:hover {
  border-color: var(--pcab-blue);
}

.pa-guide-ico {
  font-size: 26px;
}

.pa-faq {
  border-bottom: 1px solid var(--pcab-divider);
  padding: 4px 0;
}

.pa-faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 10px 0;
  font-size: 14px;
  color: #141414;
}

.pa-faq-a {
  color: #374151;
  padding: 0 0 10px;
  font-size: 13px;
}

.pa-doc p {
  font-size: 14px;
  line-height: 1.7;
  color: #374151;
}

.pa-doc a {
  color: var(--pcab-blue);
}

/* instructional guide cards (admin-managed) */
.pa-gtype {
  display: flex;
  gap: 8px;
  margin: 4px 0 8px;
}

.pa-gchip {
  border: 1px solid var(--pcab-divider);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  color: #374151;
  text-decoration: none;
}

.pa-gchip.active {
  background: var(--pcab-navy);
  color: #fff;
  border-color: var(--pcab-navy);
}

.pa-gcards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pa-gcard {
  border: 1px solid var(--pcab-divider);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fff;
}

.pa-gcard:hover {
  border-color: var(--pcab-blue);
  box-shadow: 0 4px 14px rgba(13, 110, 253, .1);
}

.pa-gthumb {
  height: 130px;
  background: #dbe3f2 center/cover no-repeat;
  position: relative;
}

.pa-gplay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 30px;
  background: rgba(0, 0, 0, .25);
}

.pa-gbody {
  padding: 14px;
}

.pa-gcat {
  color: var(--pcab-navy);
  font-weight: 700;
  font-size: 15px;
}

.pa-gtitle {
  font-size: 13px;
  color: #374151;
  margin: 4px 0 8px;
}

.pa-gtags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.pa-gtag {
  background: #eaf0fe;
  color: var(--pcab-blue);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
}

.pa-gmeta {
  display: flex;
  justify-content: space-between;
  color: #6b7280;
  font-size: 12px;
  border-top: 1px solid var(--pcab-divider);
  padding-top: 8px;
}

@media (max-width:820px) {
  .pa-gcards {
    grid-template-columns: 1fr 1fr;
  }
}

/* dropdown chevron for public-page selects — matches admin's .o_pcab_input select treatment */
.pa-ipt select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 12px;
  padding-right: 24px;
}

/* searchable combo select (progressive enhancement over a native <select> —
   vanilla-JS equivalent of the admin PcabCombo OWL component, same look/feel) */
.pa-combo {
  position: relative;
}

.pa-combo-hidden {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.pa-combo-input {
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  border: 1px solid var(--pcab-ipt-border);
  border-radius: 10px;
  padding: 0 28px 0 14px;
  font-size: 14px;
  color: var(--pcab-input);
  font-family: inherit;
  background: #fff;
  cursor: pointer;
}

.pa-combo-input::placeholder {
  color: #9aa1ad;
}

.pa-combo-input:focus {
  outline: none;
  border-color: var(--pcab-blue);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, .15);
}

.pa-combo-caret {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa1ad;
  pointer-events: none;
  font-size: 11px;
}

.pa-combo-menu {
  position: absolute;
  z-index: 1000;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--pcab-ipt-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  max-height: 240px;
  overflow-y: auto;
  padding: 4px;
}

.pa-combo-menu.up {
  top: auto;
  bottom: calc(100% + 4px);
}

.pa-combo-opt {
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: var(--pcab-input);
}

.pa-combo-opt:hover {
  background: #f5f6fa;
}

.pa-combo-opt.active {
  background: #eaf0fe;
  color: var(--pcab-blue);
  font-weight: 600;
}

.pa-combo-empty {
  padding: 8px 12px;
  color: #9aa1ad;
  font-size: 13px;
}

/* ---- light animations (public pages) ---- */
@keyframes paPop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes paFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.pa-card,
.pa-card-wide {
  animation: paPop .26s cubic-bezier(.2, .8, .2, 1);
}

.pa-hero {
  animation: paFade .3s ease;
}

.pa-gcard {
  transition: transform .15s ease, box-shadow .15s ease;
}

.pa-gcard:hover {
  transform: translateY(-3px);
}

.pa-submit,
.pa-btn-solid,
.pa-btn-outline,
.pa-gchip,
.pa-ipt {
  transition: all .15s ease;
}

.pa-submit:active {
  transform: scale(.98);
}

@media (prefers-reduced-motion: reduce) {

  .pa-card,
  .pa-card-wide,
  .pa-hero,
  .pa-gcard,
  .pa-submit {
    animation: none !important;
    transition: none !important;
  }
}

/* submit-lock + readonly states */
.pa-form input:read-only,
.pa-form select:read-only {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}

.pa-submit:disabled,
.pa-submit[disabled] {
  opacity: .6;
  cursor: default;
}

/* OTP verification + link button */
.pa-otp {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 6px 0 6px;
}

.pa-otp-box {
  width: 52px;
  height: 60px;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  color: #141414;
  border: 1px solid var(--pcab-ipt-border);
  border-radius: 12px;
  outline: none;
}

.pa-otp-box:focus {
  border-color: var(--pcab-blue);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, .15);
}

.pa-linkbtn {
  background: none;
  border: 0;
  color: var(--pcab-blue);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  padding: 6px;
}

.pa-linkbtn:hover {
  text-decoration: underline;
}

@media (max-width:560px) {
  .pa-otp {
    gap: 8px;
  }

  .pa-otp-box {
    width: 42px;
    height: 52px;
    font-size: 22px;
  }
}

/* live inline field validation */
.pa-field-err {
  color: #dc2626;
  font-size: 12px;
  margin-top: 4px;
}

.pa-ipt.pa-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}

/* verify license flow — standard .pa-card, sizes match login/signup */
.pa-vform {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

.pa-vfieldset {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.pa-vlabel {
  font-size: 13px;
  font-weight: 600;
  color: var(--pcab-label);
}

.pa-vresult .pa-vlabel {
  display: block;
  text-align: center;
}

.pa-vfields {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.pa-vfield {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.pa-vfield label {
  font-size: 13px;
  font-weight: 600;
  color: var(--pcab-label);
}

/* standard input size (matches .pa-ipt on the login/signup pages) */
.pa-vipt {
  height: 44px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--pcab-ipt-border);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--pcab-input);
  font-family: inherit;
}

.pa-vipt::placeholder {
  color: #9aa1ad;
}

.pa-vipt:focus {
  outline: none;
  border-color: var(--pcab-blue);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, .15);
}

.pa-vtypes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.pa-voption {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border: 1px solid var(--pcab-ipt-border);
  border-radius: 10px;
  background: #fff;
  color: var(--pcab-input);
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}

.pa-voption input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.pa-voption:hover {
  border-color: var(--pcab-blue);
}

.pa-voption:has(input:checked) {
  background: var(--pcab-navy);
  border-color: var(--pcab-navy);
  color: #fff;
  font-weight: 600;
}

.pa-vbtns {
  display: flex;
  gap: 14px;
}

.pa-vbtns .pa-submit,
.pa-vbtns .pa-btn-secondary {
  flex: 1;
}

/* Proceed (standard .pa-submit) enables once every input in the form
   satisfies its own HTML5 constraints (required radio/checkbox/text) —
   no JS needed. Scoped to .pa-vform so other pages' .pa-submit is unaffected. */
.pa-vform .pa-submit {
  opacity: .5;
  pointer-events: none;
  transition: opacity .15s ease;
}

.pa-vform:not(:has(input:invalid)) .pa-submit {
  opacity: 1;
  pointer-events: auto;
}

.pa-vcheckrow {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
  font-size: 13px;
  color: var(--pcab-charcoal);
}

.pa-vcheckbox {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 7px;
  border: 1px solid #C8C8C8;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  background-repeat: no-repeat;
  background-position: center;
}

.pa-vcheckbox:checked {
  background-color: var(--pcab-blue);
  border-color: var(--pcab-blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8' fill='none'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.pa-vcheckrow a {
  color: var(--pcab-blue);
  font-weight: 600;
  text-decoration: none;
}

.pa-vmore2 {
  width: 100%;
}

.pa-vmorebtn {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 30px;
  color: var(--pcab-blue);
  font-weight: 600;
  font-size: 14px;
}

.pa-vmorebtn::-webkit-details-marker {
  display: none;
}

.pa-vmore2 .lbl-open,
.pa-vmore2[open] .lbl-closed {
  display: none;
}

.pa-vmore2[open] .lbl-open {
  display: inline;
}

.pa-vchev {
  transition: transform .15s ease;
}

.pa-vmore2[open] .pa-vchev {
  transform: rotate(180deg);
}

.pa-vkinds {
  margin-top: 4px;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--pcab-card-border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.pa-vkinds-h {
  text-align: center;
  font-weight: 700;
  color: var(--pcab-navy);
  font-size: 15px;
}

.pa-vkrows {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.pa-vkrow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  font-size: 14px;
  color: #323232;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--pcab-card-border);
}

.pa-vkrow:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pa-vkrow span {
  color: var(--pcab-label);
  font-weight: 500;
}

.pa-vkrow b {
  font-weight: 600;
  color: var(--pcab-navy);
  text-align: right;
}

@media (max-width: 820px) {
  .pa-vkrow {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .pa-vkrow span {
    width: 100%;
  }
}

/* Submit Inquiry / Complaint — standard .pa-card.pa-card-wide, sizes match Sign Up */
.pa-iqform {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.pa-iqblock {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pa-iqrow {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}

.pa-iqrow-tight {
  gap: 10px;
}

@media (max-width: 820px) {
  .pa-iqrow {
    flex-direction: column;
  }
}

.pa-iqhint {
  font-size: 12px;
  line-height: 18px;
  color: #9ca3af;
}

.pa-iqtextarea {
  width: 100%;
  box-sizing: border-box;
  height: 100px;
  border: 1px solid var(--pcab-ipt-border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--pcab-input);
  font-family: inherit;
  resize: vertical;
}

.pa-iqtextarea::placeholder {
  color: #9aa1ad;
}

.pa-iqtextarea:focus {
  outline: none;
  border-color: var(--pcab-blue);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, .15);
}

.pa-radiobox {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  border: 1px solid var(--pcab-ipt-border);
  border-radius: 10px;
  padding: 0 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--pcab-input);
}

.pa-radiobox input {
  width: 16px;
  height: 16px;
  accent-color: var(--pcab-blue);
  margin: 0;
}

/* Submit Form (standard .pa-submit) enables once every required input is
   valid — scoped to .pa-iqform so other pages' .pa-submit is unaffected. */
.pa-iqform .pa-submit {
  opacity: .5;
  pointer-events: none;
  transition: opacity .15s ease;
}

.pa-iqform:not(:has(input:invalid)) .pa-submit {
  opacity: 1;
  pointer-events: auto;
}

.pa-btn-secondary {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border: 1px solid var(--pcab-ipt-border);
  border-radius: 10px;
  background: #fff;
  color: var(--pcab-charcoal);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}

.pa-btn-secondary:hover {
  border-color: var(--pcab-navy);
  color: var(--pcab-navy);
}

.pa-showtoggle {
  cursor: pointer;
  color: var(--pcab-blue);
  font-weight: 600;
  font-size: 13px;
  flex: 0 0 auto;
  align-self: center;
  user-select: none;
}

/* policy / document pages (white full page, centered title+intro, navy headings) */
.pa-main:has(.pa-doc-page) {
  background: #fff;
  padding: 0;
  align-items: stretch;
}

.pa-doc-page {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 44px 24px 64px;
}

.pa-doc-title {
  text-align: center;
  color: var(--pcab-navy);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .02em;
  margin: 6px 0 16px;
}

.pa-doc-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 30px;
  color: #374151;
  font-size: 14px;
  line-height: 1.65;
}

.pa-doc-h {
  color: var(--pcab-navy);
  font-size: 16px;
  font-weight: 700;
  margin: 30px 0 10px;
}

.pa-doc-page p {
  color: #374151;
  font-size: 14px;
  line-height: 1.75;
  margin: 0 0 8px;
}

.pa-doc-page ul {
  margin: 8px 0;
  padding-left: 22px;
  color: #374151;
  font-size: 14px;
  line-height: 1.9;
}

/* admin-maintained doc body (generic tags from WYSIWYG) */
.pa-doc-body h2,
.pa-doc-body h3 {
  color: var(--pcab-navy);
  font-size: 16px;
  font-weight: 700;
  margin: 30px 0 10px;
}

.pa-doc-body p {
  color: #374151;
  font-size: 14px;
  line-height: 1.75;
  margin: 0 0 8px;
}

.pa-doc-body ul,
.pa-doc-body ol {
  margin: 8px 0;
  padding-left: 22px;
  color: #374151;
  font-size: 14px;
  line-height: 1.9;
}

.pa-doc-body>p:first-child {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 26px;
}

/* FAQ page (white, header+search, left topic rail, right accordion) */
.pa-main:has(.pa-faq-page) {
  background: #fff;
  padding: 0;
  align-items: stretch;
}

.pa-faq-page {
  width: 100%;
}

.pa-faq-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(20px, 5vw, 60px);
  border-bottom: 1px solid var(--pcab-divider);
}

.pa-faq-head h1 {
  font-size: 18px;
  font-weight: 700;
  color: #141414;
  margin: 0;
}

.pa-faq-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--pcab-ipt-border);
  border-radius: 10px;
  padding: 8px 14px;
  width: min(420px, 40vw);
  color: #9aa1ad;
}

.pa-faq-search input {
  border: 0;
  outline: none;
  flex: 1;
  font-size: 14px;
}

.pa-faq-body {
  display: flex;
  align-items: flex-start;
}

.pa-faq-rail {
  width: 280px;
  flex: 0 0 280px;
  border-right: 1px solid var(--pcab-divider);
  padding: 18px 16px;
}

.pa-faq-rail-topic {
  display: block;
  color: var(--pcab-blue);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  padding: 12px 8px 6px;
}

.pa-faq-rail-q {
  display: block;
  color: #374151;
  font-size: 13px;
  text-decoration: none;
  padding: 8px;
  border-bottom: 1px solid #f2f3f6;
  line-height: 1.4;
}

.pa-faq-rail-q:hover {
  color: var(--pcab-blue);
}

.pa-faq-main {
  flex: 1;
  min-width: 0;
  padding: 24px clamp(20px, 4vw, 48px) 48px;
}

.pa-faq-topic {
  font-size: 20px;
  font-weight: 700;
  color: #141414;
  margin: 18px 0 14px;
}

.pa-faq2 {
  border: 1px solid var(--pcab-divider);
  border-radius: 10px;
  margin-bottom: 10px;
  background: #fafbfc;
}

.pa-faq2 summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  font-size: 14px;
  color: #1f2937;
}

.pa-faq2 summary::-webkit-details-marker {
  display: none;
}

.pa-faq2 summary .pa-faq-chev {
  color: #9aa1ad;
  flex: 0 0 16px;
  transition: transform .2s ease;
}

.pa-faq2[open] summary .pa-faq-chev {
  transform: rotate(180deg);
}

.pa-faq2[open] {
  background: #fff;
}

.pa-faq2-a {
  padding: 0 18px 16px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width:820px) {
  .pa-faq-body {
    flex-direction: column;
  }

  .pa-faq-rail {
    width: 100%;
    flex: none;
    border-right: 0;
    border-bottom: 1px solid var(--pcab-divider);
    max-height: none;
  }
}

/* public instructional guides list (white page) */
.pa-main:has(.pa-gpage) {
  background: #fff;
  padding: 0;
  align-items: stretch;
}

.pa-gpage {
  width: 100%;
}

.pa-gpager {
  color: #6b7280;
  font-size: 13px;
}

.pa-gpage-body {
  padding: 24px clamp(20px, 5vw, 60px) 56px;
}

.pa-doc-title {
  text-transform: uppercase;
}

/* guides list filter row */
.pa-gfilter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

/* ---- enhanced file upload (public forms) ---- */
.pa-upload {
  position: relative;
  border: 1px solid #C8C8C8;
  border-radius: 12px;
  background: #fff;
  transition: border-color .15s ease, background .15s ease;
}

.pa-upload.dragover {
  border-color: var(--pcab-blue);
  background: #f5f9ff;
}

.pa-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.pa-upload-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px;
  min-height: 42px;
}

.pa-upload-file {
  display: none;
}

.pa-upload.has-file .pa-upload-empty {
  display: none;
}

.pa-upload.has-file .pa-upload-file {
  display: flex;
}

.pa-upload-btn {
  border: 1px solid var(--pcab-blue);
  color: var(--pcab-blue);
  background: #fff;
  border-radius: 8px;
  padding: 6px 14px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all .15s ease;
}

.pa-upload-btn:hover {
  background: var(--pcab-blue);
  color: #fff;
}

.pa-upload-hint {
  color: #9ca3af;
  font-size: 13px;
}

.pa-upload-file {
  align-items: center;
  gap: 12px;
  padding: 6px 10px;
  min-height: 42px;
}

.pa-upload-ico {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: var(--pcab-blue);
  border-radius: 4px;
  padding: 3px 5px;
  letter-spacing: .3px;
  flex: 0 0 auto;
}

.pa-upload-name {
  color: var(--pcab-blue);
  font-weight: 600;
  text-decoration: underline;
  font-size: 14px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pa-upload-actions {
  display: flex;
  gap: 14px;
  color: #6b7280;
  flex: 0 0 auto;
}

.pa-upload-actions svg {
  width: 18px;
  height: 18px;
  cursor: pointer;
  transition: color .12s ease;
}

.pa-upload-actions svg:hover {
  color: var(--pcab-navy);
}

.pa-upload-rm:hover {
  color: var(--pcab-blue) !important;
}

/* textarea focus = blue (match inputs) */
.pa-form textarea:focus {
  outline: none;
  border-color: var(--pcab-blue) !important;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, .15);
}

/* dropdown option contrast */
.pa-ipt select,
.pa-ipt select option {
  color: #141414 !important;
}

.o_pcab_stage.current.declined {
  background: #f87171;
  /* red-400 */
  border-color: #f87171;
  color: #fff;
}

/* Ensure non-active stages stay grey */
.o_pcab_stage:not(.active):not(.current) {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #6b7280;
}

/* ── Header bar rows ── */
.o_pcab_lic_bar_top,
.o_pcab_lic_bar_bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  gap: 12px;
}

.o_pcab_lic_bar_top {
  border-bottom: 1px solid var(--pcab-divider);
  min-height: 48px;
}

.o_pcab_lic_bar_bottom {
  border-bottom: 1px solid var(--pcab-divider);
  min-height: 48px;
}

/* ── Breadcrumb ── */
.o_pcab_crumb {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: #0D6EFD;
}

.o_pcab_back {
  color: #0D6EFD;
  cursor: pointer;
  font-weight: 600;
}

.o_pcab_back:hover {
  text-decoration: underline;
}

.o_pcab_crumb_sep {
  color: #9ca3af;
}

.o_pcab_crumb strong {
  color: #141414;
  font-weight: 600;
}

/* ── Tab buttons (Financial Info, Amo, STEs, Affidavit, Payment) ── */
.o_pcab_tabs {
  display: flex;
  gap: 8px;
  align-items: center;
}

.o_pcab_tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
  white-space: nowrap;
}

.o_pcab_tab:hover {
  border-color: #243E7D;
  color: #243E7D;
}

.o_pcab_tab.active {
  border-color: #243E7D;
  color: #243E7D;
  font-weight: 600;
}

/* ── Discard / Save action buttons ── */
.o_pcab_actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.o_pcab_btn.secondary {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  border-radius: 8px;
  height: 34px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.o_pcab_btn.secondary:hover {
  border-color: #9ca3af;
}

/* ── Stage pipeline ── */
.o_pcab_stages {
  display: flex;
  align-items: center;
  gap: 0;
}

.o_pcab_stage {
  position: relative;
  padding: 7px 25px;
  font-size: 13px;
  font-weight: 500;
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #d1d5db;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%);
  margin-left: -1px;
  cursor: default;
  white-space: nowrap;
}

.o_pcab_stage:first-child {
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
}

.o_pcab_stage.active {
  background: #dbe3f2;
  color: #243E7D;
  border-color: #243E7D;
}

.o_pcab_stage.current {
  background: #243E7D;
  color: #fff;
  border-color: #243E7D;
  font-weight: 600;
}