.pba-cadastro-body {
  background: #f4f4f2;
  color: #151515;
}

.pba-cadastro-page,
.pba-cadastro-page * {
  box-sizing: border-box;
}

.pba-cadastro-page {
  min-height: 70vh;
  font-family: "Montserrat", Arial, sans-serif;
  background:
    radial-gradient(circle at 8% 15%, rgba(242, 111, 31, .10), transparent 24%),
    radial-gradient(circle at 92% 20%, rgba(0, 0, 0, .06), transparent 22%),
    #f4f4f2;
  padding: clamp(42px, 6vw, 86px) 20px 90px;
}

.pba-cadastro-container {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.pba-cadastro-heading {
  max-width: 790px;
  margin-bottom: 34px;
}

.pba-cadastro-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 14px;
  border: 1px solid rgba(242, 111, 31, .28);
  border-radius: 999px;
  color: #f26f1f;
  background: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
}

.pba-cadastro-heading h1 {
  margin: 16px 0 10px;
  color: #111;
  font-size: clamp(34px, 5vw, 58px);
  line-height: .98;
  letter-spacing: -.045em;
}

.pba-cadastro-heading p {
  max-width: 700px;
  margin: 0;
  color: #676767;
  font-size: 16px;
  line-height: 1.7;
}

.pba-tipo-cadastro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.pba-tipo-card {
  display: flex;
  align-items: center;
  gap: 17px;
  min-height: 106px;
  padding: 20px 22px;
  border: 1px solid #deded9;
  border-radius: 20px;
  color: #202020;
  background: rgba(255, 255, 255, .86);
  text-decoration: none;
  box-shadow: 0 14px 44px rgba(20, 20, 20, .05);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.pba-tipo-card:hover,
.pba-tipo-card.is-active {
  border-color: #f26f1f;
  transform: translateY(-2px);
  box-shadow: 0 18px 52px rgba(242, 111, 31, .12);
}

.pba-tipo-icon {
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  color: #fff;
  background: #222;
  font-size: 14px;
  font-weight: 800;
}

.pba-tipo-card.is-active .pba-tipo-icon,
.pba-tipo-card:hover .pba-tipo-icon {
  background: #f26f1f;
}

.pba-tipo-card strong,
.pba-tipo-card small {
  display: block;
}

.pba-tipo-card strong {
  margin-bottom: 5px;
  font-size: 16px;
}

.pba-tipo-card small {
  color: #7b7b7b;
  font-size: 13px;
}

.pba-cadastro-choice-help,
.pba-cadastro-errors,
.pba-cadastro-success {
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(15, 15, 15, .07);
}

.pba-cadastro-choice-help {
  padding: 28px;
  border: 1px dashed #d4d4cf;
}

.pba-cadastro-choice-help strong {
  display: block;
  margin-bottom: 8px;
  color: #222;
}

.pba-cadastro-choice-help p {
  margin: 0;
  color: #777;
}

.pba-cadastro-errors {
  margin-bottom: 24px;
  padding: 20px 24px;
  border: 1px solid #f0c7c7;
  color: #8a2222;
  background: #fff7f7;
}

.pba-cadastro-errors strong {
  color: #671111;
}

.pba-cadastro-errors ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.pba-cadastro-errors li + li {
  margin-top: 4px;
}

.pba-cadastro-form {
  display: grid;
  gap: 18px;
}

.pba-form-section {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid #deded9;
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 20px 60px rgba(15, 15, 15, .055);
}

.pba-form-section-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.pba-form-section-title > span {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #f26f1f;
  background: #fff0e7;
  font-size: 12px;
  font-weight: 800;
}

.pba-form-section-title h2 {
  margin: 0 0 4px;
  color: #181818;
  font-size: 20px;
  letter-spacing: -.02em;
}

.pba-form-section-title p {
  margin: 0;
  color: #808080;
  font-size: 13px;
  line-height: 1.55;
}

.pba-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pba-field {
  display: block;
  min-width: 0;
}

.pba-field-wide {
  grid-column: span 2;
}

.pba-field > span {
  display: block;
  margin-bottom: 8px;
  color: #282828;
  font-size: 12px;
  font-weight: 700;
}

.pba-field input:not([type="hidden"]),
.pba-field select,
.pba-password-wrap {
  width: 100%;
  min-height: 52px;
  border: 1px solid #d8d8d4;
  border-radius: 14px;
  background: #fbfbfa;
}

.pba-field input:not([type="hidden"]) {
  padding: 0 15px;
  outline: 0;
  color: #1d1d1d;
  font: inherit;
  font-size: 14px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.pba-field input:focus {
  border-color: #f26f1f;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(242, 111, 31, .10);
}

.pba-field input::placeholder {
  color: #aaa;
}

.pba-cep-field small {
  display: block;
  min-height: 18px;
  margin-top: 7px;
  color: #858585;
  font-size: 11px;
}

.pba-cep-field small.is-loading {
  color: #9b641e;
}

.pba-cep-field small.is-success {
  color: #22734b;
}

.pba-cep-field small.is-error {
  color: #9b2929;
}

.pba-photo-upload {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px;
  border: 1px dashed #d3d3ce;
  border-radius: 18px;
  background: #fbfbfa;
}

.pba-photo-preview {
  flex: 0 0 92px;
  position: relative;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  overflow: hidden;
  border-radius: 22px;
  color: #fff;
  background: #222;
  font-weight: 800;
}

.pba-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pba-photo-control {
  display: grid;
  gap: 5px;
  cursor: pointer;
}

.pba-photo-control strong {
  color: #f26f1f;
  font-size: 14px;
}

.pba-photo-control span {
  color: #818181;
  font-size: 12px;
}

.pba-photo-control input[type="file"] {
  margin-top: 8px;
  max-width: 100%;
  font: inherit;
  font-size: 12px;
}

.pba-password-wrap {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.pba-password-wrap input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 50px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.pba-password-wrap button {
  flex: 0 0 auto;
  min-height: 34px;
  margin-right: 8px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  color: #f26f1f;
  background: #fff0e7;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.pba-cadastro-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 25px;
  padding-top: 24px;
  border-top: 1px solid #ecece8;
}

.pba-cadastro-submit-row > div {
  max-width: 650px;
}

.pba-cadastro-submit-row strong,
.pba-cadastro-submit-row span {
  display: block;
}

.pba-cadastro-submit-row strong {
  margin-bottom: 4px;
  color: #2a2a2a;
  font-size: 13px;
}

.pba-cadastro-submit-row span {
  color: #878787;
  font-size: 12px;
  line-height: 1.5;
}

.pba-cadastro-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  color: #fff !important;
  background: linear-gradient(135deg, #ff7c2b, #ee6516);
  box-shadow: 0 14px 30px rgba(238, 101, 22, .24);
  text-decoration: none;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.pba-cadastro-primary:disabled {
  opacity: .65;
  cursor: wait;
}

.pba-cadastro-success {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid #d9e8de;
}

.pba-cadastro-success-icon {
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: #fff;
  background: #278153;
  font-size: 24px;
  font-weight: 800;
}

.pba-cadastro-success > div > span {
  color: #278153;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
}

.pba-cadastro-success h2 {
  margin: 8px 0 8px;
  color: #171717;
  font-size: clamp(24px, 4vw, 36px);
}

.pba-cadastro-success p {
  margin: 0 0 22px;
  color: #707070;
  line-height: 1.65;
}

/* intl-tel-input: dropdown global com busca por país/DDI */
.pba-phone-field .iti {
  width: 100%;
}

.pba-phone-field .iti input {
  width: 100%;
}

.iti__dropdown-content {
  z-index: 99999 !important;
  border-radius: 14px !important;
  overflow: hidden;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .16) !important;
}

.iti__search-input {
  min-height: 42px;
  margin: 8px;
  border: 1px solid #deded8 !important;
  border-radius: 10px;
  padding: 0 12px !important;
  font-family: "Montserrat", Arial, sans-serif;
}

.iti__country-list {
  max-height: 260px;
}

@media (max-width: 760px) {
  .pba-cadastro-page {
    padding: 34px 14px 64px;
  }

  .pba-tipo-cadastro,
  .pba-form-grid {
    grid-template-columns: 1fr;
  }

  .pba-field-wide {
    grid-column: auto;
  }

  .pba-tipo-card {
    min-height: 92px;
  }

  .pba-form-section {
    border-radius: 20px;
  }

  .pba-cadastro-submit-row,
  .pba-cadastro-success,
  .pba-photo-upload {
    align-items: stretch;
    flex-direction: column;
  }

  .pba-cadastro-submit-row .pba-cadastro-primary {
    width: 100%;
  }

  .pba-photo-preview {
    width: 82px;
    height: 82px;
  }
}

/* Cadastro v3: confirmação/geração de senha */
.pba-password-generator {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 42px;
}

.pba-password-generate {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #f26f1f;
  border-radius: 10px;
  color: #f26f1f;
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.pba-password-generate:hover {
  background: #fff5ee;
}

.pba-password-generator > span {
  color: #278153;
  font-size: 12px;
  font-weight: 600;
}

/* Bloco obrigatório de Política de Privacidade e uso de Cookies */
.pba-privacy-section {
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid #e4e4e1;
  border-radius: 2px;
  background: #fff;
}

.pba-privacy-title {
  padding: 17px 18px;
  border-bottom: 1px solid #ededeb;
  background: #f1f1ef;
  color: #202020;
  font-size: 16px;
  font-weight: 800;
}

.pba-privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 22px 54px;
  color: #191919;
  font-size: 14px;
  line-height: 1.55;
  cursor: pointer;
}

.pba-privacy-check input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: #0d6efd;
  cursor: pointer;
}

.pba-privacy-check strong {
  color: #3d78bf;
  font-weight: 500;
}

.pba-privacy-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 32px;
  border-top: 1px solid #ededeb;
  background: #f1f1ef;
}

.pba-cadastro-cancel,
.pba-cadastro-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  text-decoration: none;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.pba-cadastro-cancel {
  color: #111 !important;
  background: #eeeeec;
}

.pba-cadastro-save {
  color: #fff;
  background: #2ecc71;
}

.pba-cadastro-save:disabled {
  opacity: .65;
  cursor: wait;
}

@media (max-width: 760px) {
  .pba-password-generator {
    align-items: stretch;
    flex-direction: column;
  }

  .pba-password-generate {
    width: 100%;
  }

  .pba-privacy-check {
    padding: 20px 18px;
  }

  .pba-privacy-actions {
    padding: 14px 16px;
  }
}

/* Modal da Política de Privacidade aberto pelo link "termos de uso" */
.pba-policy-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #3d78bf;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.pba-policy-link:hover,
.pba-policy-link:focus-visible {
  color: #f26f1f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pba-policy-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  place-items: center;
  padding: 28px;
}

.pba-policy-modal.is-open,
.pba-policy-modal:target {
  display: grid;
}

.pba-policy-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, .72);
  backdrop-filter: blur(5px);
}

.pba-policy-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(920px, 100%);
  max-height: min(88vh, 900px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .34);
  outline: none;
}

.pba-policy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 30px 22px;
  border-bottom: 1px solid #ecece8;
  background: #1e1e1e;
}

.pba-policy-header span {
  display: block;
  margin-bottom: 5px;
  color: #f26f1f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.pba-policy-header h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(23px, 3vw, 31px);
  line-height: 1.1;
}

.pba-policy-close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  font: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.pba-policy-close:hover,
.pba-policy-close:focus-visible {
  background: #f26f1f;
  border-color: #f26f1f;
}

.pba-policy-content {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 30px 34px 36px;
  color: #4f4f4f;
  font-size: 14px;
  line-height: 1.72;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #bdbdb8 #f2f2ef;
}

.pba-policy-content::-webkit-scrollbar {
  width: 9px;
}

.pba-policy-content::-webkit-scrollbar-track {
  background: #f2f2ef;
}

.pba-policy-content::-webkit-scrollbar-thumb {
  border: 2px solid #f2f2ef;
  border-radius: 12px;
  background: #bdbdb8;
}

.pba-policy-intro {
  margin-bottom: 28px;
  padding: 18px 20px;
  border-left: 4px solid #f26f1f;
  border-radius: 0 10px 10px 0;
  background: #f7f7f4;
}

.pba-policy-intro strong {
  display: block;
  margin-bottom: 4px;
  color: #222;
}

.pba-policy-intro p {
  margin: 0 !important;
}

.pba-policy-content h3 {
  margin: 30px 0 10px;
  color: #202020;
  font-size: 17px;
  line-height: 1.35;
}

.pba-policy-content h3:first-of-type {
  margin-top: 0;
}

.pba-policy-content p {
  margin: 0 0 13px;
}

.pba-policy-content ul,
.pba-policy-content ol {
  margin: 8px 0 17px;
  padding-left: 23px;
}

.pba-policy-content li {
  margin: 5px 0;
}

.pba-policy-content strong {
  color: #292929;
}

.pba-policy-footer {
  display: flex;
  justify-content: flex-end;
  padding: 16px 30px;
  border-top: 1px solid #ecece8;
  background: #f5f5f2;
}

.pba-policy-confirm {
  min-width: 120px;
  min-height: 42px;
  padding: 0 22px;
  border: 0;
  border-radius: 9px;
  background: #f26f1f;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.pba-policy-confirm:hover,
.pba-policy-confirm:focus-visible {
  background: #d95d12;
}

body.pba-policy-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .pba-policy-modal {
    padding: 12px;
  }

  .pba-policy-dialog {
    max-height: 94vh;
    border-radius: 16px;
  }

  .pba-policy-header {
    padding: 20px 18px 17px;
  }

  .pba-policy-close {
    width: 38px;
    height: 38px;
  }

  .pba-policy-content {
    padding: 23px 19px 28px;
    font-size: 13px;
  }

  .pba-policy-footer {
    padding: 13px 18px;
  }

  .pba-policy-confirm {
    width: 100%;
  }
}


/* Cadastro v4: modal e senha independentes do restante do JS */
.pba-policy-close,
.pba-policy-confirm {
  text-decoration: none;
}
