.tf-contract-standalone {
  margin: 0;
  background: #faf7f2;
}

.tf-contract-page {
  --tf-gold: #C88A3D;
  --tf-gold-dark: #9d6c2e;
  --tf-ink: #202327;
  --tf-muted: #676e74;
  --tf-line: #e7e0d6;
  --tf-cream: #faf7f2;
  --tf-panel: #fffdf9;
  --tf-charcoal: #1f2328;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 0%, rgba(200, 138, 61, .12), transparent 32rem),
    linear-gradient(180deg, #fffdf9 0%, var(--tf-cream) 42%, #f4efe7 100%);
  color: var(--tf-ink);
  font-family: var(--e-global-typography-text-font-family, "Poppins", "Inter", system-ui, sans-serif);
  font-size: 16px;
  line-height: 1.62;
}

.tf-contract-page * {
  box-sizing: border-box;
}

.tf-contract-wrap {
  width: min(100% - 40px, 780px);
  margin: 0 auto;
}

.tf-contract-page h1,
.tf-contract-page h2,
.tf-contract-page h3 {
  margin: 0;
  color: var(--tf-ink);
  font-family: var(--e-global-typography-primary-font-family, "Cormorant Garamond", Georgia, serif);
  font-weight: 600;
  letter-spacing: 0;
}

.tf-contract-flag {
  border-bottom: 1px solid #efd9b5;
  background: #fff4e1;
  color: #7b5e25;
  padding: 8px 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
}

.tf-contract-hero {
  border-bottom: 1px solid var(--tf-line);
  padding: 34px 0 30px;
  text-align: center;
}

.tf-contract-logo {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  object-fit: contain;
}

.tf-contract-key,
.tf-contract-field-label {
  color: var(--tf-gold-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.tf-contract-eyebrow {
  color: #6b7177;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.tf-contract-hero h1 {
  max-width: 660px;
  margin: 14px auto 10px;
  font-size: 34px;
  line-height: 1.12;
}

.tf-contract-sub {
  margin: 0;
  color: #26282b;
  font-family: var(--e-global-typography-primary-font-family, "Cormorant Garamond", Georgia, serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.25;
}

.tf-contract-date {
  display: block;
  margin-top: 5px;
  color: #6b7177;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .01em;
}

.tf-contract-summary,
.tf-contract-signbox,
.tf-contract-signed-state {
  border: 1px solid rgba(231, 224, 214, .95);
  border-radius: 16px;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 16px 42px rgba(40, 34, 24, .07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tf-contract-summary {
  margin: clamp(22px, 6vw, 34px) 0 0;
  padding: clamp(18px, 5vw, 26px);
}

.tf-contract-summary h2,
.tf-contract-step h2 {
  font-size: clamp(24px, 6vw, 31px);
  line-height: 1.12;
}

.tf-contract-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
  margin-top: 16px;
}

.tf-contract-value {
  margin-top: 2px;
  color: #2d3135;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.tf-contract-films-list {
  margin: 4px 0 0;
  padding-left: 1.15em;
  list-style: disc outside;
}

.tf-contract-films-list li {
  margin: 2px 0;
  padding-left: 2px;
  list-style: disc outside;
}

.tf-contract-films-list li::marker {
  color: #C88A3D;
  font-size: 1.05em;
}

.tf-contract-step {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: clamp(28px, 7vw, 42px) 0 14px;
}

.tf-contract-num,
.tf-contract-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--tf-gold);
  color: #fff;
  font-weight: 700;
}

.tf-contract-num {
  width: 32px;
  height: 32px;
  font-size: 15px;
}

.tf-contract-doc {
  height: min(58vh, 460px);
  min-height: 340px;
  overflow: auto;
  border: 1px solid var(--tf-line);
  border-radius: 14px;
  background: var(--tf-panel);
  padding: clamp(18px, 5vw, 28px);
  font-size: 14px;
  box-shadow: inset 0 -22px 30px rgba(250, 247, 242, .34);
}

.tf-contract-doc:focus {
  outline: 3px solid rgba(200, 138, 61, .18);
  outline-offset: 3px;
}

.tf-contract-doc h3 {
  margin: 20px 0 7px;
  font-size: 20px;
}

.tf-contract-doc h3:first-child {
  margin-top: 0;
}

.tf-contract-doc p {
  margin: 7px 0;
  color: #3e4449;
}

.tf-contract-list {
  margin: 9px 0 13px 20px;
  padding: 0;
  color: #3e4449;
}

.tf-contract-list li {
  margin: 5px 0;
  padding-left: 2px;
}

.tf-contract-clause {
  color: var(--tf-muted);
  font-size: 13.5px;
}

.tf-contract-bank,
.tf-contract-placeholder {
  border: 1px solid var(--tf-line);
  border-radius: 10px;
  background: var(--tf-cream);
  padding: 14px 86px 14px 14px;
  color: #4e555b;
  font-size: 13.5px;
  position: relative;
}

.tf-contract-bank-row {
  line-height: 1.48;
}

.tf-contract-bank-row + .tf-contract-bank-row {
  margin-top: 5px;
}

.tf-contract-placeholder {
  margin-top: 18px;
  font-style: italic;
}

.tf-contract-scrollhint,
.tf-contract-download,
.tf-contract-sigtools,
.tf-contract-meta,
.tf-contract-error {
  font-size: 13px;
}

.tf-contract-scrollhint {
  margin: 9px 2px 0;
  color: var(--tf-muted);
}

.tf-contract-download,
.tf-contract-bank .tf-contract-bank-copy {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto !important;
  max-width: none !important;
  border: 1px solid rgba(103, 110, 116, .24) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .72) !important;
  background-image: none !important;
  color: #4e555b !important;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  line-height: 1;
  position: static !important;
  transform: none !important;
  text-decoration: none;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease, color .16s ease;
  -webkit-tap-highlight-color: transparent;
}

.tf-contract-download {
  margin-top: 10px;
  min-height: 38px;
  padding: 0 16px;
}

.tf-contract-download-panel[hidden] {
  display: none !important;
}

.tf-contract-bank .tf-contract-bank-copy {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  min-width: 59px !important;
  min-height: 34px !important;
  height: 34px !important;
  padding: 8px 12px !important;
  border-color: rgba(200, 138, 61, .82) !important;
  background: var(--tf-gold) !important;
  background-image: none !important;
  color: #fffdf9 !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  text-transform: none !important;
  box-shadow: none !important;
}

.tf-contract-download:disabled {
  border-color: rgba(103, 110, 116, .16) !important;
  background: rgba(255, 255, 255, .48) !important;
  color: rgba(103, 110, 116, .58) !important;
  cursor: not-allowed;
  box-shadow: none !important;
}

.tf-contract-download:not(:disabled):hover,
.tf-contract-download:not(:disabled):focus,
.tf-contract-download:not(:disabled):focus-visible,
.tf-contract-download:not(:disabled):active,
.tf-contract-bank .tf-contract-bank-copy:hover,
.tf-contract-bank .tf-contract-bank-copy:focus,
.tf-contract-bank .tf-contract-bank-copy:focus-visible,
.tf-contract-bank .tf-contract-bank-copy:active {
  border-color: rgba(157, 108, 46, .9) !important;
  background: var(--tf-gold-dark) !important;
  background-image: none !important;
  color: #fffdf9 !important;
  box-shadow: 0 4px 14px rgba(40, 34, 24, .06) !important;
  outline: none;
  text-decoration: none;
}

.tf-contract-download.is-copied,
.tf-contract-bank .tf-contract-bank-copy.is-copied {
  border-color: rgba(157, 108, 46, .9) !important;
  background: var(--tf-gold-dark) !important;
  background-image: none !important;
  color: #fffdf9 !important;
}

.tf-contract-signbox {
  margin-top: 14px;
  padding: clamp(18px, 5vw, 26px);
}

.tf-contract-field-label {
  display: block;
  margin-bottom: 7px;
  color: var(--tf-muted);
}

.tf-contract-field-label span,
.tf-contract-sigtools,
.tf-contract-meta {
  color: var(--tf-muted);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.tf-contract-signbox input[type="text"] {
  display: block;
  width: 100%;
  border: 1px solid var(--tf-line);
  border-radius: 10px;
  background: #fff;
  color: var(--tf-ink);
  padding: 14px;
  font: inherit;
  font-size: 16px;
}

.tf-contract-signbox input[type="text"]:focus {
  border-color: var(--tf-gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(200, 138, 61, .16);
}

.tf-contract-sigwrap {
  margin-top: 18px;
}

.tf-contract-sigpad {
  display: block;
  width: 100%;
  height: 154px;
  border: 1px solid var(--tf-line);
  border-radius: 10px;
  background: #fff;
  touch-action: none;
}

.tf-contract-sigtools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
}

.tf-contract-secondary {
  border: 0;
  background: transparent;
  color: var(--tf-muted);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}

.tf-contract-clear {
  min-height: 42px;
  border: 1px solid rgba(103, 110, 116, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: #4e555b;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  padding: 0 18px;
  text-decoration: none;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease, color .16s ease;
  -webkit-tap-highlight-color: transparent;
}

.tf-contract-clear:hover,
.tf-contract-clear:focus,
.tf-contract-clear:focus-visible,
.tf-contract-clear:active {
  border-color: rgba(103, 110, 116, .34);
  background: rgba(255, 255, 255, .9);
  color: #3f464c;
  box-shadow: 0 4px 14px rgba(40, 34, 24, .06);
  outline: none;
  text-decoration: none;
}

.tf-contract-clear:disabled {
  border-color: rgba(103, 110, 116, .16);
  background: rgba(255, 255, 255, .48);
  color: rgba(103, 110, 116, .58);
  cursor: not-allowed;
  box-shadow: none;
}

.tf-contract-agree {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 20px;
  color: #3e4449;
  font-size: 14.5px;
}

.tf-contract-agree input {
  width: 19px;
  height: 19px;
  margin-top: 3px;
  accent-color: var(--tf-gold);
  flex: 0 0 auto;
}

.tf-contract-meta {
  margin: 16px 0 0;
}

.tf-contract-error {
  margin: 12px 0 0;
  border-radius: 10px;
  background: #fff0ed;
  color: #8d2d20;
  padding: 10px 12px;
}

.tf-contract-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin-top: 20px;
  border: 0;
  border-radius: 999px;
  background: var(--tf-gold);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  transition: background .16s ease, transform .16s ease;
}

.tf-contract-btn:disabled {
  background: #d8cfc0;
  cursor: not-allowed;
}

.tf-contract-btn:not(:disabled):hover {
  background: var(--tf-gold-dark);
  transform: translateY(-1px);
}

.tf-contract-btn.is-loading {
  cursor: wait;
}

.tf-contract-done {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(40, 34, 24, .58);
  padding: 24px;
}

.tf-contract-done[hidden] {
  display: none;
}

.tf-contract-done-card,
.tf-contract-signed-state {
  max-width: 470px;
  margin: 0 auto;
  border-radius: 18px;
  background: #fff;
  padding: clamp(28px, 7vw, 38px) clamp(22px, 6vw, 32px);
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
}

.tf-contract-signed-state {
  margin-top: 28px;
  box-shadow: 0 16px 42px rgba(40, 34, 24, .07);
}

.tf-contract-tick {
  width: 58px;
  height: 58px;
  margin: 0 auto 15px;
  font-size: 30px;
}

.tf-contract-done-card h2,
.tf-contract-signed-state h2 {
  font-size: clamp(25px, 7vw, 32px);
  line-height: 1.1;
}

.tf-contract-done-card p,
.tf-contract-signed-state p {
  margin: 10px 0 0;
  color: var(--tf-muted);
}

.tf-contract-secondary {
  margin-top: 18px;
  color: var(--tf-gold-dark);
  font-weight: 700;
}

.tf-contract-footer {
  margin-top: clamp(38px, 8vw, 58px);
  background: var(--tf-charcoal);
  color: #d4d6d8;
  padding: 28px 20px;
  text-align: center;
  font-size: 13px;
}

.tf-contract-footer div {
  color: #fff;
  font-family: var(--e-global-typography-primary-font-family, "Cormorant Garamond", Georgia, serif);
  font-size: 22px;
  font-weight: 600;
}

.tf-contract-footer p {
  margin: 4px 0 0;
}

.tf-contract-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .tf-contract-wrap {
    width: calc(100% - 32px);
  }

  .tf-contract-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .tf-contract-summary,
  .tf-contract-signbox,
  .tf-contract-doc {
    border-radius: 12px;
  }

  .tf-contract-doc {
    height: 430px;
    min-height: 430px;
  }

  .tf-contract-sigtools {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .tf-contract-flag {
    font-size: 11.5px;
  }
}

@media (max-width: 380px) {
  .tf-contract-wrap {
    width: calc(100% - 28px);
  }

  .tf-contract-agree {
    font-size: 14px;
  }
}
