@charset "UTF-8";
@CHARSET 'UTF-8';
main {
  padding-top: 2vh;
  padding-bottom: 2vh;
}

h2 {
  font-size: 18px;
  color: #505961;
  font-weight: 700;
  margin-bottom: 30px;
}

.add-icon svg {
  width: 15px;
  height: 15px;
  stroke: #FFFFFF;
}

.delete-icon {
  cursor: pointer;
  display: inline-block;
}

.delete-icon svg {
  width: 13.078px;
  height: 15.082px;
}

.pdf-icon span {
  display: inline-block;
  vertical-align: middle;
}

.pdf-icon svg {
  width: 15px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
}

.block {
  /*min-width: 50vw;*/
  margin: 0 auto;
}

.block-title {
  padding: 30px 15px;
  border-bottom: 2px solid #F4F7F6;
}
.block-title h1 {
  margin-bottom: 0;
}
.block-title h2 {
  margin-bottom: 0;
}
.block-title h3 {
  margin-bottom: 0;
  font-size: 16px;
  font-weight: 400;
}

.hidden-block {
  display: none;
}
.hidden-block.active {
  display: block;
}
.hidden-block.active .block {
  border: 1px solid #38A668;
}

.es-header-text {
  font-size: 16px;
  color: #505961;
  font-weight: 700;
}

.es-contract-continue-btn,
.es-contract-download-btn,
.es-contract-upload-btn {
  background: #0B579E;
  color: #FFFFFF;
  border-radius: 25px;
  border: 1px solid #0B579E;
  padding: 11px 30px;
  line-height: 1;
  display: inline-block;
  margin: 0px auto;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  box-shadow: none;
  outline: 0;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease-out;
  height: 38px;
}

#dvFrmESignatureContractUpload {
  display: none !important;
}

#dvFrmESignatureRequestFileAdd {
  display: none !important;
}

.es-file-block {
  padding: 0 15px;
}
.es-file-block .block-title {
  background: #FAFBFC;
  padding: 18px 15px;
  border-bottom: 1px solid #F4F7F6;
}
.es-file-block .file-item {
  padding: 20px 15px;
  border-bottom: 1px solid #F4F7F6;
}
.es-file-block .file-item > div {
  padding-left: 5px;
  padding-right: 5px;
  /* white-space: nowrap;*/
  /* overflow: hidden;*/
  /* text-overflow: ellipsis;*/
}
.es-file-block .file-item > div.show-all-text {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.es-download {
  font-size: 8pt;
}

.es-contract-cb, .es-contract-rb {
  width: unset !important;
}

.es-signature-content {
  min-height: 165px;
}

.es-signature-preview-box {
  height: 90px;
}

.es-signature-preview {
  font-size: 32px;
  margin-top: 10px;
  width: 315px;
}

/* Style the tab content */
.tabs-container {
  min-height: 100px;
  width: unset !important;
}

.tab_content {
  display: none;
  padding: 10px;
}
.tab_content.increase-height {
  min-height: 320px !important;
}

.tab {
  border-bottom: 2px solid #298BCC;
}
.tab button {
  background-color: #FFFFFF;
  color: #505961;
  float: left;
  border: 0;
  outline: none;
  cursor: pointer;
  padding: 10px 24px;
  font-size: 18px;
  font-weight: 700;
  border-right: 1px solid #F4F7F6;
  transition: background 0.3s ease-out;
}
.tab button:hover {
  background: rgb(229.5, 229.5, 229.5);
}
.tab button.active {
  background-color: #298BCC;
  color: #FFFFFF;
}
.tab button.active:hover {
  background: rgb(32.4653061224, 110.0653061224, 161.5346938776);
}
.tab button .badge {
  position: relative;
  top: -10px;
  left: -4px;
}

@media all and (min-width: 1600px) {
  .block {
    width: 800px;
    min-width: 1px;
  }
  .es-contract, .es-document-upload {
    width: unset !important;
  }
  .es-download {
    /*width: 950px !important;
    margin-left: 80px;*/
    margin-bottom: 1vh;
    font-size: 10pt;
  }
}
@media all and (max-width: 990px) {
  .es-contract, .es-document-upload {
    width: unset !important;
  }
  .es-contract-confirm {
    padding: 0px !important;
    font-size: 10pt;
  }
}
/* Mobile-only contract styles */
.mobile-contract-wrapper {
  display: none;
}

@media (max-width: 767px) {
  .mobile-contract-wrapper {
    display: block;
  }
}
.mobile-contract-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.mobile-contract-content.expanded {
  max-height: 10000px;
  transition: max-height 0.5s ease-in;
}

.mobile-contract-toggle {
  background: #0B579E;
  color: #FFFFFF;
  border-radius: 25px;
  border: 1px solid #0B579E;
  padding: 11px 30px;
  line-height: 1;
  display: inline-block;
  width: 100%;
  margin: 10px 0;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  box-shadow: none;
  outline: 0;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease-out;
  text-align: center;
}

.mobile-contract-toggle.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  margin: 0;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mobile-contract-toggle:hover {
  background: #094a87;
  border: 1px solid #094a87;
}

.mobile-contract-toggle::after {
  /*content: " ▼";*/
  content: " ▼";
  font-size: 12px;
  margin-left: 8px;
}

.mobile-contract-toggle.expanded::after {
  /*content: " ▲";*/
  content: " ▲";
}

.button {
  margin: 0;
}

.button-3 {
  background: #FAFBFC;
  color: #0B579E;
  border: 1px solid #FAFBFC;
  padding: 11px 10px;
}
.button-3:hover, .button-3:focus {
  background: rgb(218.125, 225.5, 232.875);
  border: 1px solid rgb(218.125, 225.5, 232.875);
  color: #0B579E;
}
.button-3.active {
  background: #0B579E;
  color: #FFFFFF;
  border: 1px solid #0B579E;
}
.button-3.active:hover, .button-3.active:focus {
  background: rgb(7.6804733728, 60.7455621302, 110.3195266272);
  border: 1px solid rgb(7.6804733728, 60.7455621302, 110.3195266272);
  color: #FFFFFF;
}
.button-3.delete-icon {
  color: #FF6B66;
}
.button-3.delete-icon:hover, .button-3.delete-icon:focus {
  color: #FF6B66;
}

form {
  max-width: 590px;
}

#returnToLogin {
  display: none;
  margin-left: 0;
}

fieldset:last-of-type {
  margin-bottom: 0;
}

/* ==============================================================
   eSignature Documents Upload — modern redesign (2026-04-27)
   Scoped to .es-doc-page so styles do not leak to other public pages.
   ============================================================== */
.es-doc-page {
  --es-radius: 12px;
  --es-radius-sm: 8px;
  --es-shadow: 0 2px 8px rgba(11, 87, 158, 0.06);
  --es-shadow-hover: 0 6px 18px rgba(11, 87, 158, 0.10);
  --es-transition: all 0.25s ease-out;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 12px 80px;
  /* ---- Banner ---- */
}
.es-doc-page .es-doc-banner {
  background: linear-gradient(135deg, #0B579E 0%, #298BCC 100%);
  color: #FFFFFF;
  border-radius: var(--es-radius);
  padding: 28px 32px;
  margin-bottom: 22px;
  box-shadow: var(--es-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.es-doc-page .es-doc-banner__eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 6px;
  line-height: 1;
}
.es-doc-page .es-doc-banner__title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
  color: #FFFFFF;
}
.es-doc-page .es-doc-banner__subtitle {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.9;
  margin: 4px 0 0;
  color: #FFFFFF;
}
.es-doc-page .es-doc-banner__step {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
}
.es-doc-page {
  /* ---- Instructions accordion ---- */
}
.es-doc-page .es-doc-instructions {
  background: #FFFFFF;
  border-radius: var(--es-radius);
  box-shadow: var(--es-shadow);
  margin-bottom: 22px;
  overflow: hidden;
}
.es-doc-page .es-doc-instructions__summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 22px;
  font-weight: 700;
  color: #0B579E;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  transition: var(--es-transition);
}
.es-doc-page .es-doc-instructions__summary::-webkit-details-marker {
  display: none;
}
.es-doc-page .es-doc-instructions__summary:hover {
  background: #F4F9FC;
}
.es-doc-page .es-doc-instructions__summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid #0B579E;
  border-bottom: 2px solid #0B579E;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-right: 4px;
}
.es-doc-page .es-doc-instructions[open] .es-doc-instructions__summary::after {
  transform: rotate(-135deg);
}
.es-doc-page .es-doc-instructions__body {
  padding: 0 22px 18px;
  color: #505961;
  font-size: 13px;
  line-height: 1.55;
}
.es-doc-page .es-doc-instructions__body strong {
  color: #1e2225;
}
.es-doc-page .es-doc-instructions__body ol,
.es-doc-page .es-doc-instructions__body ul {
  padding-left: 20px;
  margin: 6px 0 12px;
}
.es-doc-page .es-doc-instructions__body li {
  margin-bottom: 4px;
}
.es-doc-page .es-doc-instructions__contact {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #F4F7F6;
  font-size: 13px;
}
.es-doc-page .es-doc-instructions__contact a {
  color: #0B579E;
  font-weight: 500;
  text-decoration: none;
}
.es-doc-page .es-doc-instructions__contact a:hover {
  text-decoration: underline;
}
.es-doc-page {
  /* ---- Payment Info CTA tile ---- */
}
.es-doc-page .es-doc-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, #EAF4FB 0%, #F4F9FC 100%);
  border: 1px solid #D6E6F2;
  border-radius: var(--es-radius);
  padding: 18px 22px;
  margin-bottom: 22px;
}
.es-doc-page .es-doc-cta__icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  background: #0B579E;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}
.es-doc-page .es-doc-cta__icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.es-doc-page .es-doc-cta__body {
  flex: 1 1 auto;
}
.es-doc-page .es-doc-cta__title {
  font-size: 15px;
  font-weight: 700;
  color: #1e2225;
  margin: 0 0 4px;
}
.es-doc-page .es-doc-cta__sub {
  font-size: 13px;
  color: #505961;
  margin: 0;
}
.es-doc-page .es-doc-cta__btn {
  flex: 0 0 auto;
  background: #0B579E;
  color: #FFFFFF;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #0B579E;
  text-decoration: none;
  transition: var(--es-transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.es-doc-page .es-doc-cta__btn:hover,
.es-doc-page .es-doc-cta__btn:focus {
  background: #094a87;
  border-color: #094a87;
  color: #FFFFFF;
  text-decoration: none;
}
.es-doc-page {
  /* ---- Category card ---- */
}
.es-doc-page .es-doc-card {
  background: #FFFFFF;
  border-radius: var(--es-radius);
  box-shadow: var(--es-shadow);
  margin-bottom: 18px;
  transition: var(--es-transition);
  overflow: hidden;
}
.es-doc-page .es-doc-card:hover {
  box-shadow: var(--es-shadow-hover);
}
.es-doc-page .es-doc-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid #F4F7F6;
  flex-wrap: wrap;
}
.es-doc-page .es-doc-card__title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}
.es-doc-page .es-doc-card__title {
  font-size: 16px;
  font-weight: 700;
  color: #1e2225;
  margin: 0;
  line-height: 1.3;
}
.es-doc-page .es-doc-card__body {
  padding: 16px 22px 18px;
}
.es-doc-page {
  /* ---- Status pill ---- */
}
.es-doc-page .es-doc-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 4px 10px;
  border-radius: 999px;
  line-height: 1.4;
  white-space: nowrap;
}
.es-doc-page .es-doc-pill.is-empty {
  background: #f1f1f1;
  color: #757575;
}
.es-doc-page .es-doc-pill.is-partial {
  background: rgba(41, 139, 204, 0.12);
  color: #0B579E;
}
.es-doc-page .es-doc-pill.is-complete {
  background: rgba(56, 166, 104, 0.15);
  color: #38A668;
}
.es-doc-page .es-doc-pill.is-auto {
  background: rgba(112, 127, 126, 0.18);
  color: #707F7E;
}
.es-doc-page {
  /* ---- Add button ---- */
}
.es-doc-page .es-doc-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0B579E;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #0B579E;
  text-decoration: none;
  cursor: pointer;
  transition: var(--es-transition);
  white-space: nowrap;
}
.es-doc-page .es-doc-add:hover, .es-doc-page .es-doc-add:focus {
  background: #094a87;
  border-color: #094a87;
  color: #FFFFFF;
  text-decoration: none;
}
.es-doc-page .es-doc-add svg {
  width: 12px;
  height: 12px;
  stroke: #FFFFFF;
  fill: none;
}
.es-doc-page {
  /* ---- Drop zone ---- */
}
.es-doc-page .es-doc-dropzone {
  border: 2px dashed rgba(11, 87, 158, 0.4);
  border-radius: var(--es-radius-sm);
  padding: 22px 18px;
  text-align: center;
  color: #505961;
  font-size: 13px;
  background: #F4F9FC;
  transition: var(--es-transition);
  margin-bottom: 12px;
  cursor: pointer;
  user-select: none;
}
.es-doc-page .es-doc-dropzone:hover {
  border-color: #0B579E;
  background: rgba(11, 87, 158, 0.04);
}
.es-doc-page .es-doc-dropzone.is-dragover {
  border-color: #0B579E;
  border-style: solid;
  background: rgba(11, 87, 158, 0.08);
}
.es-doc-page .es-doc-dropzone.is-error {
  border-color: #FF6B66;
  background: rgba(255, 107, 102, 0.06);
  color: #FF6B66;
}
.es-doc-page .es-doc-dropzone__icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  color: #0B579E;
  margin-bottom: 4px;
}
.es-doc-page .es-doc-dropzone__icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}
.es-doc-page .es-doc-dropzone__primary {
  font-weight: 700;
  color: #1e2225;
  margin: 0;
  font-size: 14px;
}
.es-doc-page .es-doc-dropzone__hint {
  font-size: 12px;
  color: #505961;
  margin: 2px 0 0;
}
.es-doc-page {
  /* ---- Inline upload progress bar ---- */
}
.es-doc-page .es-doc-progress {
  height: 4px;
  background: #F4F7F6;
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0 4px;
  display: none;
}
.es-doc-page .es-doc-progress.is-active {
  display: block;
}
.es-doc-page .es-doc-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0B579E, #298BCC);
  transition: width 0.2s ease;
}
.es-doc-page {
  /* ---- File row ---- */
}
.es-doc-page .es-doc-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #F4F7F6;
  border-radius: var(--es-radius-sm);
  margin-bottom: 8px;
  background: #FAFBFC;
  transition: var(--es-transition);
}
.es-doc-page .es-doc-file:last-child {
  margin-bottom: 0;
}
.es-doc-page .es-doc-file:hover {
  background: #FFFFFF;
  border-color: rgba(11, 87, 158, 0.25);
  box-shadow: 0 2px 6px rgba(11, 87, 158, 0.05);
}
.es-doc-page .es-doc-file__icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FF6B66;
}
.es-doc-page .es-doc-file__icon svg {
  width: 22px;
  height: 22px;
}
.es-doc-page .es-doc-file__info {
  flex: 1 1 auto;
  min-width: 0;
}
.es-doc-page .es-doc-file__name {
  font-size: 14px;
  font-weight: 500;
  color: #1e2225;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.es-doc-page .es-doc-file__date {
  font-size: 12px;
  color: #505961;
}
.es-doc-page .es-doc-file__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.es-doc-page .es-doc-file__btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid transparent;
  background: transparent;
  color: #0B579E;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--es-transition);
  white-space: nowrap;
}
.es-doc-page .es-doc-file__btn:hover, .es-doc-page .es-doc-file__btn:focus {
  background: rgba(11, 87, 158, 0.08);
  color: #0B579E;
  text-decoration: none;
}
.es-doc-page .es-doc-file__btn.is-danger {
  color: #FF6B66;
}
.es-doc-page .es-doc-file__btn.is-danger:hover, .es-doc-page .es-doc-file__btn.is-danger:focus {
  background: rgba(255, 107, 102, 0.1);
  color: #FF6B66;
}
.es-doc-page .es-doc-file__btn svg {
  width: 14px;
  height: 16px;
  stroke: currentColor;
  flex-shrink: 0;
  overflow: visible;
}
.es-doc-page {
  /* ---- Empty state inside a card ---- */
}
.es-doc-page .es-doc-empty {
  text-align: center;
  color: #757575;
  font-size: 13px;
  padding: 8px 0 4px;
  margin: 0;
}

/* Touch devices: show full action buttons by default */
@media (hover: none) {
  .es-doc-page .es-doc-file__btn {
    background: rgba(11, 87, 158, 0.08);
  }
  .es-doc-page .es-doc-file__btn.is-danger {
    background: rgba(255, 107, 102, 0.08);
  }
}
/* ---- Responsive ---- */
@media (max-width: 767.98px) {
  .es-doc-page {
    padding: 0 6px 96px;
  }
  .es-doc-page .es-doc-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 22px;
  }
  .es-doc-page .es-doc-banner__title {
    font-size: 20px;
  }
  .es-doc-page .es-doc-cta {
    flex-wrap: wrap;
    text-align: center;
    padding: 16px 18px;
  }
  .es-doc-page .es-doc-cta__body {
    flex: 1 1 100%;
    text-align: center;
  }
  .es-doc-page .es-doc-cta__icon {
    margin: 0 auto;
  }
  .es-doc-page .es-doc-cta__btn {
    margin: 8px auto 0;
  }
  .es-doc-page .es-doc-card__header {
    padding: 14px 16px;
  }
  .es-doc-page .es-doc-card__body {
    padding: 14px 16px 16px;
  }
  .es-doc-page .es-doc-file {
    flex-wrap: wrap;
  }
  .es-doc-page .es-doc-file__info {
    flex: 1 1 calc(100% - 44px);
  }
  .es-doc-page .es-doc-file__actions {
    flex: 1 1 100%;
    justify-content: flex-end;
    margin-top: 4px;
  }
}
@media (max-width: 374.98px) {
  .es-doc-page .es-doc-banner__title {
    font-size: 18px;
  }
}
/* ==============================================================
   eSignature Contract page — modern redesign (2026-04-27)
   Visually mirrors the Documents Upload page (`_documents.scss`)
   but is independently scoped so the Documents Upload page is
   not affected.

   2026-04-28 — Stripped the `.es-contract-page` ancestor requirement
   from descendant selectors. The redesign rules now apply directly
   to their `.es-contract-*` element classes, regardless of whether
   the wrapper div is in the DOM ancestor chain. Custom properties
   are hoisted to `:root` so they always inherit. The `.es-contract-page`
   rule itself stays but only carries layout (max-width, margin, padding).
   ============================================================== */
:root {
  --esc-radius: 12px;
  --esc-radius-sm: 8px;
  --esc-shadow: 0 2px 8px rgba(11, 87, 158, 0.06);
  --esc-shadow-hover: 0 6px 18px rgba(11, 87, 158, 0.10);
  --esc-transition: all 0.25s ease-out;
}

.es-contract-page {
  /* Layout was moved to each section below so widths stay consistent
     even if a section ends up outside this wrapper at runtime. */
  padding-bottom: 20px;
}

/* Every Contract page section shares the same outer frame */
#dvContract,
#dvContractForm,
#dvContractUpload,
#dvContractFinal,
#dvFrmConfirmPOCExists {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 12px;
  box-sizing: border-box;
}

.es-contract-error-card {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* Inner form containers self-constrain to match the section's effective content
   width (1100px max-width minus the section's 12px L/R padding = 1076px). This
   keeps cards / confirmation row / footer actions visually consistent with the
   banner and instructions even if the form div ends up outside its parent
   section at runtime (e.g. when malformed dynamic contract HTML closes
   `#dvContractForm` early and ejects `#dvFrmContractSignature` to a sibling). */
#dvFrmContractSignature,
#dvFrmContractUpload,
#dvFrmContractReview {
  max-width: 1076px;
  margin-left: auto;
  margin-right: auto;
}

/* Section C only — tighten the gaps between banner / instructions / form so the
   signature flow feels less airy. Scoped to `#dvContractForm` so Section B's
   bottom action rows and Sections D/E spacing are not affected. */
#dvContractForm > .es-contract-banner {
  margin-bottom: 12px;
}

#dvContractForm > .es-contract-instructions {
  margin-bottom: 12px;
}

/* ---- Banner ---- */
.es-contract-banner {
  background: linear-gradient(135deg, #0B579E 0%, #298BCC 100%);
  color: #FFFFFF;
  border-radius: var(--esc-radius);
  padding: 28px 32px;
  margin-bottom: 22px;
  box-shadow: var(--esc-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.es-contract-banner__eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 6px;
  line-height: 1;
}

.es-contract-banner__title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
  color: #FFFFFF;
}

.es-contract-banner__subtitle {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.9;
  margin: 4px 0 0;
  color: #FFFFFF;
}

/* ---- Instructions accordion ---- */
.es-contract-instructions {
  background: #FFFFFF;
  border-radius: var(--esc-radius);
  box-shadow: var(--esc-shadow);
  margin-bottom: 22px;
  overflow: hidden;
}

.es-contract-instructions__summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 22px;
  font-weight: 700;
  color: #0B579E;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  transition: var(--esc-transition);
}

.es-contract-instructions__summary::-webkit-details-marker {
  display: none;
}

.es-contract-instructions__summary:hover {
  background: #F4F9FC;
}

.es-contract-instructions__summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid #0B579E;
  border-bottom: 2px solid #0B579E;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-right: 4px;
}

.es-contract-instructions[open] .es-contract-instructions__summary::after {
  transform: rotate(-135deg);
}

.es-contract-instructions__body {
  padding: 0 22px 18px;
  color: #505961;
  font-size: 13px;
  line-height: 1.55;
}

.es-contract-instructions__body strong {
  color: #1e2225;
}

.es-contract-instructions__body ol,
.es-contract-instructions__body ul {
  padding-left: 20px;
  margin: 6px 0 12px;
}

.es-contract-instructions__body li {
  margin-bottom: 4px;
}

.es-contract-instructions__contact {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #F4F7F6;
  font-size: 13px;
}

.es-contract-instructions__contact a {
  color: #0B579E;
  font-weight: 500;
  text-decoration: none;
}

.es-contract-instructions__contact a:hover {
  text-decoration: underline;
}

.es-contract-instructions--spaced {
  margin-top: 40px;
}

/* ---- Card ---- */
.es-contract-card {
  background: #FFFFFF;
  border-radius: var(--esc-radius);
  box-shadow: var(--esc-shadow);
  margin-bottom: 18px;
  transition: var(--esc-transition);
  overflow: hidden;
}

.es-contract-card:hover {
  box-shadow: var(--esc-shadow-hover);
}

.es-contract-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid #F4F7F6;
  flex-wrap: wrap;
}

.es-contract-card__title {
  font-size: 16px;
  font-weight: 700;
  color: #0B579E;
  margin: 0;
  line-height: 1.3;
}

.es-contract-card__body {
  padding: 18px 22px 20px;
}

.es-contract-card__body--scroll {
  padding: 18px 22px 20px;
}

/* ---- Claim summary (key/value list) ---- */
.es-contract-summary {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.es-contract-summary p {
  margin: 0;
  padding: 10px 14px;
  background: #FAFBFC;
  border: 1px solid #F4F7F6;
  border-radius: var(--esc-radius-sm);
  font-size: 14px;
  color: #505961;
}

.es-contract-summary p strong {
  display: inline-block;
  color: #1e2225;
  margin-right: 6px;
  font-weight: 500;
}

/* ---- Action row ---- */
.es-contract-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 0 auto 18px;
  max-width: 1076px; /* matches the inner content width of #dvContract et al. (1100px - 24px section padding) */
}

.es-contract-actions__copy {
  flex: 1 1 320px;
  color: #505961;
  font-size: 14px;
  line-height: 1.5;
}

.es-contract-actions__copy a {
  color: #0B579E;
  font-weight: 500;
  text-decoration: none;
}

.es-contract-actions__copy a:hover {
  text-decoration: underline;
}

.es-contract-actions__btn-wrap {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- Buttons ---- */
.es-contract-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #0B579E;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid #0B579E;
  text-decoration: none;
  cursor: pointer;
  transition: var(--esc-transition);
  white-space: nowrap;
  min-width: 120px;
  line-height: 1.2;
}

.es-contract-btn:hover, .es-contract-btn:focus {
  background: #094a87;
  border-color: #094a87;
  color: #FFFFFF;
  text-decoration: none;
}

.es-contract-btn[disabled],
.es-contract-btn:disabled {
  background: #BFC4C3;
  border-color: #BFC4C3;
  cursor: not-allowed;
}

.es-contract-btn--secondary {
  background: #FFFFFF;
  color: #0B579E;
  border: 1px solid rgba(11, 87, 158, 0.4);
}

.es-contract-btn--secondary:hover, .es-contract-btn--secondary:focus {
  background: rgba(11, 87, 158, 0.06);
  border-color: #0B579E;
  color: #0B579E;
}

.es-contract-btn--success {
  background: #38A668;
  border-color: #38A668;
  color: #FFFFFF;
}

.es-contract-btn--success:hover, .es-contract-btn--success:focus {
  background: #2e8a56;
  border-color: #2e8a56;
  color: #FFFFFF;
}

.es-contract-btn--clear {
  padding: 6px 14px;
  min-width: 0;
  font-size: 12px;
  background: #FFFFFF;
  color: #505961;
  border: 1px solid #F4F7F6;
}

.es-contract-btn--clear:hover, .es-contract-btn--clear:focus {
  background: #F4F9FC;
  color: #0B579E;
  border-color: rgba(11, 87, 158, 0.3);
}

/* ---- Mobile contract toggle ---- */
.es-contract-mobile-toggle {
  display: none; /* shown only on small screens */
  width: 100%;
  background: #0B579E;
  color: #FFFFFF;
  border: 1px solid #0B579E;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 12px;
  transition: var(--esc-transition);
}

.es-contract-mobile-toggle:hover, .es-contract-mobile-toggle:focus {
  background: #094a87;
  border-color: #094a87;
  color: #FFFFFF;
}

.es-contract-mobile-toggle.sticky {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  width: auto;
  z-index: 950;
  box-shadow: 0 6px 18px rgba(11, 87, 158, 0.32);
}

.es-contract-mobile-content {
  display: none;
  margin-bottom: 16px;
  background: #FFFFFF;
  border-radius: var(--esc-radius);
  border: 1px solid #F4F7F6;
  box-shadow: var(--esc-shadow);
  padding: 18px 22px;
  max-height: 60vh;
  overflow-y: auto;
}

.es-contract-mobile-content.expanded {
  display: block;
}

/* ---- Form (inside cards) ---- */
.es-contract-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}

.es-contract-form-grid > .full {
  grid-column: 1/-1;
}

.es-contract-form-intro {
  color: #505961;
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 18px;
  grid-column: 1/-1;
}

/* ---- Boxed form fields inside cards ----
   Overrides the shared _form.scss bottom-border-only inputs and the
   absolute-positioned floating labels with a clean stacked label + boxed
   input pattern that fits the card layout. */
.es-contract-card__body fieldset {
  display: flex;
  flex-direction: column-reverse; /* DOM has input then label; visually label appears above */
  margin: 0 0 18px;
  position: static;
}

.es-contract-card__body fieldset:last-of-type {
  margin-bottom: 0;
}

.es-contract-card__body fieldset > label {
  position: static;
  display: block;
  top: auto;
  left: auto;
  font-size: 12px;
  font-weight: 500;
  color: #505961;
  margin: 0 0 6px;
}

.es-contract-card__body fieldset > input {
  width: 100%;
  background: #FAFBFC;
  border: 1px solid #F4F7F6;
  border-radius: var(--esc-radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.4;
  color: #1e2225;
  font-weight: 500;
  height: auto;
  transition: var(--esc-transition);
}

.es-contract-card__body fieldset > input:focus {
  outline: none;
  border-color: #0B579E;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(11, 87, 158, 0.12);
}

.es-contract-card__body fieldset > input::placeholder {
  color: #757575;
  opacity: 1;
}

/* ---- Signature tabs (segmented control) ---- */
.es-contract-sigtabs {
  display: inline-flex;
  align-items: stretch;
  background: #F4F9FC;
  border: 1px solid #F4F7F6;
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  margin: 0 0 14px;
}

.es-contract-sigtabs button {
  appearance: none;
  background: transparent;
  border: none;
  padding: 8px 18px;
  border-radius: 999px;
  color: #505961;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--esc-transition);
  min-width: 86px;
}

.es-contract-sigtabs button.active {
  background: #0B579E;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(11, 87, 158, 0.25);
}

.es-contract-sigtabs button:not(.active):hover {
  color: #0B579E;
  background: rgba(11, 87, 158, 0.08);
}

/* ---- Signature canvas wrapper ---- */
.es-contract-sigpad {
  background: #FFFFFF;
  border: 1px solid #F4F7F6;
  border-radius: var(--esc-radius-sm);
  padding: 12px;
  display: inline-block;
  max-width: 100%;
}

.es-contract-sigpad canvas {
  display: block;
  background: #FAFBFC;
  border-radius: var(--esc-radius-sm);
  border: 1px dashed rgba(11, 87, 158, 0.25);
  max-width: 100%;
  height: auto;
}

.es-contract-sigpad__actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}

/* ---- Typed signature ---- */
.es-contract-typed-input {
  width: 100%;
  border: 1px solid #0B579E;
  border-radius: var(--esc-radius-sm);
  padding: 10px 14px;
  background: #FFFFFF;
  color: #1e2225;
  font-size: 14px;
  margin-bottom: 10px;
  transition: var(--esc-transition);
}

.es-contract-typed-input:focus {
  outline: none;
  border-color: #0B579E;
  box-shadow: 0 0 0 3px rgba(11, 87, 158, 0.12);
}

.es-contract-typed-preview {
  background: #FAFBFC;
  border: 1px dashed rgba(11, 87, 158, 0.25);
  border-radius: var(--esc-radius-sm);
  padding: 18px 16px;
  text-align: center;
  color: #1e2225;
  font-size: 28px;
  line-height: 1.2;
  min-height: 64px;
  margin-bottom: 10px;
  word-break: break-word;
}

/* ---- Drop zone (Section D) ---- */
.es-contract-dropzone {
  border: 2px dashed rgba(11, 87, 158, 0.4);
  border-radius: var(--esc-radius-sm);
  padding: 26px 18px;
  text-align: center;
  color: #505961;
  font-size: 13px;
  background: #F4F9FC;
  transition: var(--esc-transition);
  margin: 0 0 12px;
  cursor: pointer;
  user-select: none;
}

.es-contract-dropzone:hover {
  border-color: #0B579E;
  background: rgba(11, 87, 158, 0.04);
}

.es-contract-dropzone.is-dragover {
  border-color: #0B579E;
  border-style: solid;
  background: rgba(11, 87, 158, 0.08);
}

.es-contract-dropzone.is-error {
  border-color: #FF6B66;
  background: rgba(255, 107, 102, 0.06);
  color: #FF6B66;
}

.es-contract-dropzone__icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  color: #0B579E;
  margin-bottom: 4px;
}

.es-contract-dropzone__icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}

.es-contract-dropzone__primary {
  font-weight: 700;
  color: #1e2225;
  margin: 0;
  font-size: 14px;
}

.es-contract-dropzone__hint {
  font-size: 12px;
  color: #505961;
  margin: 2px 0 0;
}

/* ---- Inline progress bar ---- */
.es-contract-progress {
  height: 4px;
  background: #F4F7F6;
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0 4px;
  display: none;
}

.es-contract-progress.is-active {
  display: block;
}

.es-contract-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0B579E, #298BCC);
  transition: width 0.2s ease;
}

/* ---- Confirmation row (checkbox + label) ---- */
.es-contract-confirm {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #FAFBFC;
  border: 1px solid #F4F7F6;
  border-radius: var(--esc-radius-sm);
  margin: 18px 0;
  color: #505961;
  font-size: 13px;
  line-height: 1.55;
}

.es-contract-confirm input[type=checkbox] {
  margin-top: 2px;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.es-contract-confirm label {
  /* Defeats the global `label { position: absolute; left: 0; top: 0; color: #757575; }`
     rule from `shared/styles.css` (used elsewhere for floating labels). Without
     this override, the confirmation label would be absolutely positioned at the
     top-left of its containing block — and pulled to `top: -18px` by the
     `input:not([value=""]) ~ label` rule once Razor renders the checkbox with
     `value="true"` — making the text invisible. */
  position: static;
  top: auto;
  left: auto;
  flex: 1 1 auto;
  margin: 0;
  cursor: pointer;
  font-size: inherit;
  color: inherit;
}

/* ---- Footer action row ---- */
.es-contract-footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 20px auto 0;
  max-width: 1076px; /* matches .es-contract-actions so bottom & middle rows line up edge-to-edge */
}

/* ---- Confirmation card (Section A) ---- */
.es-contract-confirm-card {
  background: #FFFFFF;
  border-radius: var(--esc-radius);
  box-shadow: var(--esc-shadow);
  padding: 32px;
  text-align: center;
}

.es-contract-confirm-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(56, 166, 104, 0.12);
  color: #38A668;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.es-contract-confirm-card__icon svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}

.es-contract-confirm-card__lead {
  font-size: 15px;
  color: #505961;
  line-height: 1.55;
  margin: 6px auto 18px;
  max-width: 520px;
}

/* ---- Error card (Section F) ---- */
.es-contract-error-card {
  background: #FFFFFF;
  border-radius: var(--esc-radius);
  box-shadow: var(--esc-shadow);
  padding: 32px;
  border-top: 4px solid #FF6B66;
}

.es-contract-error-card h1 {
  font-size: 20px;
  font-weight: 700;
  color: #1e2225;
  margin: 0 0 12px;
}

.es-contract-error-card p {
  color: #505961;
  line-height: 1.55;
}

/* ---- Touch-friendly button states ---- */
@media (hover: none) {
  .es-contract-btn--secondary {
    background: rgba(11, 87, 158, 0.06);
  }
}
/* ---- Responsive ---- */
@media (max-width: 767.98px) {
  .es-contract-page {
    padding-bottom: 20px;
  }
  #dvContract,
  #dvContractForm,
  #dvContractUpload,
  #dvContractFinal,
  #dvFrmConfirmPOCExists {
    padding-left: 6px;
    padding-right: 6px;
  }
  .es-contract-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 22px;
  }
  .es-contract-banner__title {
    font-size: 20px;
  }
  .es-contract-card__header {
    padding: 14px 16px;
  }
  .es-contract-card__body,
  .es-contract-card__body--scroll {
    padding: 14px 16px 16px;
  }
  .es-contract-actions {
    align-items: stretch;
  }
  .es-contract-actions__btn-wrap {
    width: 100%;
  }
  .es-contract-actions__btn-wrap > .es-contract-btn {
    flex: 1 1 auto;
  }
  .es-contract-form-grid {
    grid-template-columns: 1fr;
  }
  .es-contract-mobile-toggle {
    display: block;
  }
  .es-contract-footer-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .es-contract-footer-actions > .es-contract-btn {
    width: 100%;
  }
}
@media (max-width: 374.98px) {
  .es-contract-banner__title {
    font-size: 18px;
  }
  .es-contract-typed-preview {
    font-size: 22px;
  }
}
