.pdfb-form {
  font-family: 'Outfit', sans-serif;
}

.pdfb-field {
  display: block;
  margin-bottom: 16px;
}

.pdfb-field span {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 6px;
}

.pdfb-field:has(input:required) span::after {
  content: " *";
  color: #C0392B;
}

.pdfb-field input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid transparent;
  background: #F0F7F9;
  border-radius: 8px;
  padding-inline: 14px;
  font-size: 14px;
  color: #1a1a1a;
  outline: none;
}

.pdfb-field input:focus {
  border-color: #4A3F92;
  background: #fff;
}

.pdfb-row {
  display: flex;
  gap: 16px;
}
.pdfb-row .pdfb-field {
  flex: 1;
}

.pdfb-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; opacity: 0;
}

.pdfb-dropzone {
  position: relative;
  border: 1px solid #636363;
  border-radius: 5px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  padding: 16px;
}

.pdfb-dropzone:has(.pdfb-dropzone-remove[hidden]) {
  border: 1px dashed #B6B1D8;
  background: #F0F7F9;
}

.pdfb-dropzone-empty {
  text-align: center;
}

.pdfb-dropzone-label {
  color: #4A3F92;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
}

.pdfb-dropzone-hint {
  color: #8A8A8A;
  font-size: 12px;
  margin-top: 8px;
  line-height: 1.4;
}

.pdfb-dropzone-thumb {
  max-height: 70px;
  max-width: 100%;
}

.pdfb-dropzone-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 14px;
  height: 13px;
  background: #fff;
  cursor: pointer;
  line-height: 1;
  font-size: 34px;
  color: #636363;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 15 15' fill='none'%3E%3Cline x1='1.12117' y1='0.706956' x2='14.1212' y2='13.707' stroke='%23636363' stroke-width='2'/%3E%3Cline x1='1.12117' y1='0.706956' x2='14.1212' y2='13.707' stroke='%23636363' stroke-width='2'/%3E%3Cline y1='-1' x2='18.3848' y2='-1' transform='matrix(-0.707107 0.707107 0.707107 0.707107 14.4141 1.41406)' stroke='%23636363' stroke-width='2'/%3E%3C/svg%3E");
  background-size: cover;
  border: none;
}

.pdfb-error {
  color: #C0392B;
  font-size: 13px;
  margin: -8px 0 16px;
}

.pdfb-download {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  color: #fff;
  background: #D9D9D9;
  cursor: not-allowed;
  transition: background 0.15s ease;
}

.pdfb-download:not(:disabled) {
  background: #4A3F92;
  cursor: pointer;
}

.pdfb-download:not(:disabled):hover {
  background: #3d3479;
}

.pdfb-download.is-loading {
  opacity: 0.7;
  cursor: wait;
}

/* ---- preview document (this is the page look itself, not outer chrome) ---- */
.pdfb-doc {
  background: #fff;
  overflow: hidden;
  font-size: 12px;
  color: #555555;
  font-family: 'Outfit', sans-serif;
  pointer-events: none;
}

.pdfb-doc-header {
  background: linear-gradient(to right, #343569, #539DB8);
  color: #fff;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.pdfb-doc-header h3 {
  margin: 0 0 6px;
  font-size: 21px;
}

.pdfb-doc-sub {
  font-size: 15px;
  color: #DCDCFF;
}

.pdfb-doc-logo {
  width: 84px;
  height: auto;
}

.pdfb-doc-body {
  padding: 18px 24px 0;
}

.pdfb-doc-intro {
  font-size: 12px;
  line-height: 1.45;
}

.pdfb-doc-intro b {
  font-weight: 700;
}

.pdfb-doc-intro b.lead-in {
  color: #5152A3;
  font-size: 14px;
}

.pdfb-doc h4 {
  color: #5152A3;
  font-size: 14px;
  margin: 12px 0 5px;
}

.pdfb-doc-bold {
  font-weight: 700;
  margin: 0 0 6px;
}

.pdfb-doc-split {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.pdfb-doc-split > div:first-child {
  flex: 1.3;
}

.pdfb-doc-diagram {
  flex: 1;
  text-align: right;
}

.pdfb-doc-diagram-img {
  width: 100%;
  border-radius: 6px;
  display: block;
}

.pdfb-doc-checks {
  display: flex;
  gap: 16px;
}
.pdfb-doc-checks ul {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pdfb-doc-checks li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  line-height: 1.4;
}
.pdfb-doc-checks li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  font-family: system-ui;
  font-weight: 700;
}

.pdfb-doc-practicebox {
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  padding: 16px;
  margin: 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.pdfb-doc-practiceinfo {
  flex: 1;
}

.pdfb-doc-practicebox-heading {
  font-weight: 700;
  font-size: 12px;
  color: #555555;
  margin-bottom: 8px;
}

.pdfb-doc-practiceinfo .line {
  margin-bottom: 4px;
  font-size: 10px;
}
.pdfb-doc-practiceinfo .line.name {
  font-weight: 700;
  font-size: 12px;
  color: #555555;
}

.pdfb-doc-placeholder-line {
  height: 10px;
  background: #EDEDED;
  border-radius: 4px;
  margin-bottom: 8px;
}

.pdfb-doc-practicelogo {
  width: 140px;
  height: 90px;
  background: #EDEDED;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdfb-doc-practicelogo:has(img) {
  background: none;
}
.pdfb-doc-practicelogo img {
  max-width: 100%;
  max-height: 100%;
}

.pdfb-doc-links {
  padding: 12px 24px;
  font-size: 14px;
  color: #5152A3;
}
.pdfb-doc-links b {
  font-weight: 700;
}

.pdfb-doc-footer {
  border-top: 1px solid #eee;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 7px;
  color: #989898;
}
.pdfb-doc-brighturo {
  height: 16px;
  width: auto;
}

.pdfb-doc-bottombar {
  background: #2E2A6B;
  height: 8px;
}

@media (max-width: 820px) {
  .pdfb-doc { max-width: 100%; }
}
