.nx-forms-page, .nx-forms-page * {
  box-sizing: border-box;
}
.nx-forms-page {
  margin: 0;
  padding: 0;
  background: #f7f7f4;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #111;
}
.nx-forms-page .records-page {
  width: 100%;
  min-height: 100vh;
  padding: 40px 3vw 70px;
}
.nx-forms-page .records-shell {
  max-width: 1700px;
  margin: auto;
  background: #f7f7f4;
  border-top: 1px solid #111;
  border-bottom: 1px solid #111;
}
.nx-forms-page .records-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 34px;
  padding: 28px 0 22px;
}
.nx-forms-page .records-line {
  height: 1px;
  background: #d8d5cf;
}
.nx-forms-page .records-title {
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 500;
  text-align: center;
}
.nx-forms-page .main-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  border-top: 1px solid #e4e0d9;
  border-bottom: 1px solid #d8d5cf;
}
.nx-forms-page .main-tab {
  position: relative;
  padding: 18px 34px;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 0;
  border-left: 1px solid #e7e4de;
  background: transparent;
  cursor: pointer;
  color: #666;
  transition: .2s ease;
  white-space: nowrap;
}
.nx-forms-page .main-tab:last-child {
  border-right: 1px solid #e7e4de;
}
.nx-forms-page .main-tab:hover {
  color: #111;
}
.nx-forms-page .main-tab.active {
  background: #fff;
  color: #111;
}
.nx-forms-page .main-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #111;
}
.nx-forms-page .region-info {
  text-align: center;
  padding: 25px 20px 0;
  color: #666;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: .3px;
}
.nx-forms-page .region-info a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nx-forms-page .subtabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 30px 30px 20px;
}
.nx-forms-page .subtab {
  padding: 12px 18px;
  border: 1px solid #d8d5cf;
  background: #fff;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #555;
  cursor: pointer;
  transition: .2s ease;
}
.nx-forms-page .subtab:hover {
  border-color: #111;
  color: #111;
}
.nx-forms-page .subtab.active {
  background: #111;
  border-color: #111;
  color: #fff;
}
.nx-forms-page .viewer {
  position: relative;
  min-height: 780px;
  padding: 90px 30px 50px;
  background: radial-gradient(
    circle at center,
    rgba(255,255,255,.92),
    rgba(247,247,244,.82)
  );
}
.nx-forms-page .viewer-top {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  z-index: 10;
}
.nx-forms-page .doc-meta {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #666;
}
.nx-forms-page .viewer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.nx-forms-page .action-btn {
  border: 1px solid #111;
  background: #fff;
  color: #111;
  padding: 11px 18px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: .2s ease;
  text-decoration: none;
  display: inline-block;
}
.nx-forms-page .action-btn:hover {
  background: #111;
  color: #fff;
}
.nx-forms-page .action-btn.primary {
  background: #111;
  color: #fff;
}
.nx-forms-page .action-btn.primary:hover {
  background: #333;
}
.nx-forms-page .pdf-stage {
  width: min(900px, 94vw);
  min-height: 700px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.nx-forms-page .pdf-card {
  width: 100%;
  min-height: 700px;
  background: #fff;
  box-shadow:
    0 35px 70px rgba(0,0,0,.12),
    0 0 0 1px rgba(0,0,0,.05);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  padding: 26px;
}
.nx-forms-page .pdf-card canvas {
  max-width: 100%;
  height: auto;
  display: block;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.nx-forms-page .iframe-container {
  width: 100%;
  height: 700px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  background: #fafafa;
}
.nx-forms-page .iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.nx-forms-page .loading, .nx-forms-page .empty-state {
  width: 100%;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
}
.nx-forms-page .loading-title, .nx-forms-page .empty-state h2 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.nx-forms-page .loading-text, .nx-forms-page .empty-state p {
  max-width: 540px;
  font-size: 13px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 24px;
}
.nx-forms-page .empty-state a {
  color: #111;
  text-decoration: underline;
}
.nx-forms-page .viewer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 18px 0 28px;
  border-top: 1px solid #d8d5cf;
  font-size: 11px;
  color: #666;
}
@media (max-width: 1100px) {.nx-forms-page .viewer {
    padding: 120px 16px 40px;
  }}
@media (max-width: 768px) {.nx-forms-page .records-header {
    grid-template-columns: 1fr;
    text-align: center;
  }
.nx-forms-page .main-tab {
    flex: 1 1 50%;
    padding: 16px 12px;
    font-size: 10px;
    white-space: normal;
  }
.nx-forms-page .viewer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
.nx-forms-page .pdf-card {
    padding: 12px;
  }
.nx-forms-page .iframe-container {
    height: 500px;
  }
.nx-forms-page .viewer-footer {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }}
/* Standalone Forms page heading: existing theme header remains outside this scope. */
.nx-forms-page .forms-page-heading{margin:0;text-align:center;padding:38px 18px 12px;font:400 clamp(42px,5vw,64px)/1.15 Georgia,'Times New Roman',serif;letter-spacing:-.03em;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:6px;color:#111}
.nx-forms-page .records-page{min-height:initial}
.nx-forms-page .pdf-stage{max-width:900px;width:100%}
.nx-forms-page .pdf-card{min-width:0}
.nx-forms-page .viewer-actions a[style*="display: none"],.nx-forms-page .viewer-actions button[style*="display: none"]{display:none}
@media(max-width:768px){.nx-forms-page .records-page{padding:20px 14px 46px}.nx-forms-page .viewer{min-height:600px}.nx-forms-page .pdf-card{min-height:540px}.nx-forms-page .loading,.nx-forms-page .empty-state{min-height:500px}.nx-forms-page .viewer-top{left:12px;right:12px}}
