:root {
  --black: #000000;
  --cultured: #F0F0F0;
  --white: #ffffff;
  --true-blue: #3066BE;
  --fire-opal: #EB5E55;
  --tea-green: #C2E3AE;
  --crayola: #963484;
  --ink: #111111;
  --ink-soft: #5c5c5c;
  --line: #d9d9d6;
  --paper: #ffffff;
  --bg: #F0F0F0;
  --danger: #9d2f2f;
  --success: #2f6b48;
  --display: "Gascogne TS", "Bodoni 72", Didot, Georgia, serif;
  --sans: "GT America", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --script: "Snell Roundhand", "Segoe Script", "Brush Script MT", cursive;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); }
a { color: inherit; }
button, input, select { font: inherit; }

.site-header {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 46px;
  background: var(--white);
  border-bottom: 1px solid #e5e5e2;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  color: var(--black);
  line-height: 1;
}
.brand-westchester {
  font-weight: 800;
  font-stretch: condensed;
  letter-spacing: -.055em;
  font-size: 25px;
}
.brand-place {
  margin-left: 2px;
  font-family: var(--script);
  font-size: 35px;
  font-weight: 400;
  transform: rotate(-4deg);
  transform-origin: left center;
}
.site-header-note {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #606060;
}

.shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 58px 24px 88px;
}

.card {
  background: var(--paper);
  border: 1px solid #deded9;
  padding: 48px;
  box-shadow: 0 18px 52px rgba(0,0,0,.07);
}

.hero {
  min-height: 650px;
  padding: 70px 64px 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "w/";
  position: absolute;
  top: 34px;
  right: 40px;
  z-index: 2;
  font-family: var(--display);
  font-size: 28px;
  font-style: italic;
  color: var(--white);
}
.hero-art {
  position: absolute;
  inset: 0 0 auto auto;
  width: 42%;
  height: 310px;
  overflow: hidden;
  background: var(--true-blue);
}
.shape { position: absolute; display: block; }
.shape-blue { width: 190px; height: 190px; border-radius: 47% 53% 63% 37% / 37% 41% 59% 63%; background: #7ea6df; left: -50px; top: 108px; transform: rotate(25deg); }
.shape-coral { width: 210px; height: 88px; background: var(--fire-opal); right: -26px; bottom: 25px; border-radius: 60% 0 0 58%; transform: rotate(-18deg); }
.shape-green { width: 84px; height: 190px; background: var(--tea-green); right: 72px; top: -30px; border-radius: 0 0 45px 45px; transform: rotate(11deg); }
.shape-purple { width: 80px; height: 80px; background: var(--crayola); left: 70px; top: 32px; transform: rotate(16deg); }

.eyebrow {
  margin: 0 0 17px;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 10px;
  font-weight: 800;
  color: var(--true-blue);
}

h1 {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 0 20px;
  font-family: var(--display);
  font-size: clamp(46px, 7vw, 76px);
  line-height: .98;
  letter-spacing: -.035em;
  font-weight: 400;
  color: var(--black);
}
h2 { color: var(--ink); font-family: var(--display); font-weight: 400; }
.muted, .privacy, .optional { color: var(--ink-soft); }
.hero > .muted { position: relative; z-index: 1; max-width: 530px; font-size: 16px; line-height: 1.65; margin: 0; }

.form-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 66px;
}
.form-card {
  min-height: 220px;
  padding: 27px 28px 26px;
  color: var(--black);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--black);
  background: var(--white);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.form-card::after {
  content: "↗";
  position: absolute;
  right: 24px;
  bottom: 20px;
  font-size: 25px;
  font-weight: 400;
}
.form-card::before {
  content: "";
  width: 82px;
  height: 8px;
  position: absolute;
  right: -10px;
  top: 26px;
  transform: rotate(-25deg);
}
.form-card-blue::before { background: var(--true-blue); }
.form-card-coral::before { background: var(--fire-opal); }
.form-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0,0,0,.10); background: var(--black); color: var(--white); }
.form-card strong { display: block; margin-top: 31px; max-width: 80%; font-family: var(--display); font-size: 27px; line-height: 1.05; font-weight: 400; }
.form-number { font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.form-meta { display: block; margin-top: auto; max-width: 75%; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #707070; }
.form-card:hover .form-meta { color: #cfcfcf; }

.back {
  display: inline-flex;
  margin-bottom: 34px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 10px;
  font-weight: 800;
  color: var(--ink-soft);
}
.back:hover { color: var(--true-blue); }

label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
  color: var(--ink);
}
.field { margin: 22px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

input, select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #bdbdb8;
  border-radius: 0;
  outline: none;
  background: var(--white);
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus {
  border-color: var(--true-blue);
  box-shadow: 0 0 0 3px rgba(48,102,190,.14);
}

.notice {
  margin: 28px 0;
  padding: 17px 20px;
  border-left: 5px solid var(--tea-green);
  background: #f7faf5;
  color: var(--ink-soft);
  line-height: 1.55;
}
.notice strong { color: var(--ink); }

.signature-wrap { margin: 30px 0 24px; }
#signature-pad {
  display: block;
  width: 100%;
  height: 190px;
  border: 1px solid #bdbdb8;
  background-color: #fff;
  background-image: linear-gradient(to bottom, transparent calc(100% - 38px), #c9c9c5 calc(100% - 38px), #c9c9c5 calc(100% - 37px), transparent calc(100% - 37px));
  touch-action: none;
}
.signature-actions { margin-top: 10px; display: flex; justify-content: flex-end; }

.primary, .secondary {
  appearance: none;
  min-height: 48px;
  border-radius: 0;
  border: 1px solid transparent;
  padding: 12px 20px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: 10px;
  font-weight: 800;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.primary {
  width: 100%;
  margin-top: 24px;
  background: var(--true-blue);
  border-color: var(--true-blue);
  color: var(--white);
}
.primary:hover { background: var(--black); border-color: var(--black); transform: translateY(-1px); }
.secondary { background: transparent; border-color: var(--black); color: var(--black); }
.secondary:hover { background: var(--black); color: var(--white); }

.ack {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 26px 0 0;
  font-size: 13px;
  line-height: 1.55;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--ink-soft);
}
.ack input { width: 17px; height: 17px; min-height: 0; margin: 2px 0 0; accent-color: var(--true-blue); }
.privacy { margin: 18px auto 0; max-width: 650px; text-align: center; font-size: 11px; line-height: 1.5; }

.document-review {
  margin: 34px 0 42px;
  border: 1px solid var(--black);
  overflow: hidden;
  background: #d6d6d3;
}
.document-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 20px;
  background: var(--black);
  color: #fff;
}
.document-toolbar strong, .document-toolbar span { display: block; }
.document-toolbar strong { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.document-toolbar span { margin-top: 4px; font-size: 12px; color: rgba(255,255,255,.68); }
.document-toolbar .secondary { color: var(--white); border-color: rgba(255,255,255,.75); }
.document-toolbar .secondary:hover { background: var(--fire-opal); border-color: var(--fire-opal); color: var(--black); }
.document-open { display: inline-block; text-decoration: none; white-space: nowrap; min-height: auto; padding: 9px 13px; }
.pdf-viewer { display: block; width: 100%; height: 74vh; min-height: 700px; border: 0; background: #d9d9d6; }
.pdf-fallback { padding: 10px 16px; background: #f7f7f5; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 11px; text-align: center; }
.pdf-fallback a { color: var(--true-blue); font-weight: 700; }

.signing-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 42px 0 14px;
  color: var(--fire-opal);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .18em;
}
.signing-divider::before, .signing-divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }

.success-icon, .pending-icon {
  margin: 0 0 24px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 700;
  color: var(--black);
  background: var(--tea-green);
}
.pending-icon { background: var(--fire-opal); }
.link-button { display: inline-flex; align-items: center; justify-content: center; width: auto; min-width: 180px; text-decoration: none; }
.success .muted { margin-top: 22px; }

.wide { max-width: 1180px; margin-left: 50%; transform: translateX(-50%); width: min(1180px, calc(100vw - 48px)); }
.table-wrap { overflow: auto; margin-top: 24px; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 14px 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--black); color: #fff; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
td { font-size: 13px; }
.status { font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.status.uploaded { color: var(--success); }
.status.pending_upload { color: #9b642d; }
.error { max-width: 340px; margin-top: 5px; font-size: 11px; color: var(--danger); }

.site-footer {
  margin-top: 36px;
  padding: 30px 24px 34px;
  color: rgba(255,255,255,.64);
  background: var(--black);
  text-align: center;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.footer-mark { display: flex; justify-content: center; align-items: baseline; margin-bottom: 5px; color: var(--white); text-transform: none; line-height: 1; }
.footer-mark span { font-weight: 800; font-size: 16px; letter-spacing: -.05em; }
.footer-mark em { font-family: var(--script); font-size: 24px; font-weight: 400; margin-left: 2px; }

@media (max-width: 760px) {
  .site-header { height: 76px; padding: 0 20px; }
  .site-header-note { display: none; }
  .brand-westchester { font-size: 20px; }
  .brand-place { font-size: 29px; }
  .shell { padding: 28px 14px 52px; }
  .card { padding: 26px 20px; }
  .hero { padding: 40px 24px 30px; min-height: auto; }
  .hero-art { width: 43%; height: 155px; opacity: .94; }
  .hero::before { right: 20px; top: 18px; font-size: 20px; }
  .shape-blue { width: 110px; height: 100px; left: -30px; top: 75px; }
  .shape-coral { width: 105px; height: 45px; bottom: 4px; }
  .shape-green { width: 42px; height: 100px; right: 30px; }
  .shape-purple { width: 40px; height: 40px; left: 35px; top: 16px; }
  h1 { max-width: 70%; font-size: 47px; line-height: 1; }
  .hero > .muted { max-width: 62%; font-size: 14px; }
  .form-grid, .two-col { grid-template-columns: 1fr; }
  .form-grid { margin-top: 46px; }
  .form-card { min-height: 180px; }
  .document-toolbar { align-items: flex-start; flex-direction: column; }
  .document-toolbar span { max-width: 270px; }
  .pdf-viewer { height: 67vh; min-height: 545px; }
  .document-open { width: 100%; text-align: center; }
  .wide { width: calc(100vw - 28px); }
}

@media (max-width: 480px) {
  .hero-art { opacity: .18; width: 60%; }
  h1, .hero > .muted { max-width: 100%; }
}

/* Actual-form signing interface */
.signing-card { max-width: 980px; margin: 0 auto; }
.actual-form { margin-top: 34px; border: 1px solid #d7d7d2; background: #e8e8e4; }
.document-stack { padding: 24px; display: grid; gap: 24px; }
.document-page {
  position: relative;
  width: min(100%, 816px);
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  line-height: 0;
}
.document-page > img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.interactive-page { overflow: hidden; }
.pdf-field {
  position: absolute;
  z-index: 4;
  min-height: 0;
  height: auto;
  padding: 1px 4px 2px;
  border: 0;
  border-bottom: 2px solid rgba(48,102,190,.55);
  background: rgba(255,255,255,.82);
  box-shadow: none;
  border-radius: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(8px, 1.35vw, 13px);
  line-height: 1.2;
}
.pdf-field:focus { border-color: var(--true-blue); box-shadow: 0 0 0 2px rgba(48,102,190,.14); background: #fff; }
.pdf-signature {
  position: absolute;
  z-index: 5;
  background: rgba(255,255,255,.72);
  border: 1.5px dashed rgba(48,102,190,.75);
}
.pdf-signature canvas { display: block; width: 100%; height: 100%; touch-action: none; background: transparent; }

/* Override the legacy #signature-pad 190px height when embedded on the PDF */
.pdf-signature #signature-pad {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: transparent;
  background-image: none;
  touch-action: none;
}
.signature-clear-inline {
  position: absolute;
  right: 0;
  top: -18px;
  border: 0;
  background: var(--true-blue);
  color: #fff;
  padding: 2px 6px;
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
}
.pdf-role { position: absolute; z-index: 6; display: block; margin: 0; }
.pdf-role input { width: 100%; height: 100%; min-height: 0; margin: 0; accent-color: var(--true-blue); cursor: pointer; }

/* Fair Housing page 2 - percentages are tied to the supplied PDF */
.fair-name { left: 9.2%; top: 38.0%; width: 87.0%; height: 3.0%; }
.fair-signature {
  left: 41%;
  width: 30%;
  height: auto;
  aspect-ratio: 5 / 1;
}
.fair-signature-1 { top: 47.7%; }
.fair-signature-2 { top: 52.7%; }
.fair-date { left: 84.8%; width: 12.0%; height: 3.0%; }
.fair-date-1 { top: 47.5%; }
.fair-date-2 { top: 52.5%; }

/* Agency Disclosure page 2 */
.agency-name { left: 8.2%; top: 62.7%; width: 43.4%; height: 3.0%; }
.agency-landlord { left: 11.5%; top: 69.0%; width: 3.2%; height: 3.2%; }
.agency-tenant { left: 26.7%; top: 69.0%; width: 3.2%; height: 3.2%; }
.agency-signature {
  left: 3.5%;
  top: 72.8%;
  width: 35%;
  height: auto;
  aspect-ratio: 5 / 1;
}
.agency-date { left: 6.5%; top: 82.0%; width: 40.0%; height: 3.0%; }

.submission-panel { margin-top: 28px; padding: 26px; border: 1px solid #deded9; background: #f8f8f5; }
.form-help { margin: 0 0 20px; line-height: 1.55; color: var(--ink-soft); }
.compact-email { max-width: 520px; }

@media (max-width: 720px) {
  .document-stack { padding: 8px; gap: 12px; }
  .signing-card { padding: 22px 12px; }
  .document-toolbar { padding: 12px; gap: 10px; }
  .document-toolbar span { display: none; }
  .document-open { padding: 8px 9px; min-height: 36px; }
  .submission-panel { padding: 18px 14px; }
  .signature-clear-inline { top: -20px; font-size: 7px; padding: 3px 5px; }
}

/* Landlord/Tenant second signer */
.agency-signature-2 {
  left: 51.7%;
}

.agency-date-2 {
  left: 56.0%;
}

/* Improve signature-pad visibility and mobile usability */
.pdf-signature {
  border: 2px solid rgba(48, 102, 190, 0.95);
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 0 0 2px rgba(48, 102, 190, 0.10);
}

.pdf-signature::before {
  content: "SIGN HERE";
  position: absolute;
  left: 6px;
  top: 4px;
  z-index: 1;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;
  color: rgba(48, 102, 190, 0.55);
  pointer-events: none;
}

.pdf-signature canvas {
  position: relative;
  z-index: 2;
}

.signature-clear-inline {
  right: 2px;
  top: -16px;
  padding: 2px 5px;
  font-size: 7px;
  line-height: 1;
  border-radius: 3px;
  opacity: .82;
}

.signature-clear-inline:hover,
.signature-clear-inline:focus {
  opacity: 1;
}

@media (max-width: 720px) {
  .pdf-signature {
    border-width: 2px;
    box-shadow: 0 0 0 2px rgba(48, 102, 190, 0.14);
  }

  .pdf-signature::before {
    font-size: 6px;
    left: 4px;
    top: 3px;
  }

  .signature-clear-inline {
    top: -13px;
    right: 1px;
    padding: 1px 4px;
    font-size: 6px;
    min-height: 0;
    min-width: 0;
  }
}



/* === Combined disclosure workflow and line-aligned fields === */

.combined-document-section {
  margin-top: 38px;
}

.combined-document-section:first-of-type {
  margin-top: 28px;
}

.combined-submission-panel {
  margin-top: 42px;
}

.combined-submission-panel h2 {
  margin-top: 0;
}

/*
 * Fully mask the underlying PDF rule inside editable fields.
 * The field's bottom edge becomes the visible writing baseline.
 */
.pdf-field {
  background: #fff;
  padding: 0 3px 1px;
  border-bottom: 1.5px solid rgba(48, 102, 190, .72);
}

/*
 * Signature boxes also mask the printed rule.
 * Their bottom edge is positioned directly on the PDF signature line.
 */
.pdf-signature {
  background: #fff;
}

/* Fair Housing page 2 */
.fair-name {
  left: 9.2%;
  top: 35.7%;
  width: 87%;
  height: 2.4%;
}

.fair-signature {
  left: 34.4%;
  width: 44%;
  height: auto;
  aspect-ratio: 10 / 1;
}

.fair-signature-1 {
  top: 45.3%;
}

.fair-signature-2 {
  top: 51.0%;
}

.fair-date {
  left: 84.8%;
  width: 12%;
  height: 2.4%;
}

.fair-date-1 {
  top: 45.3%;
}

.fair-date-2 {
  top: 51.0%;
}

/* Landlord/Tenant page 2 */
.agency-signature {
  left: 2%;
  top: 71.4%;
  width: 44.5%;
  height: auto;
  aspect-ratio: 10 / 1;
}

.agency-signature-2 {
  left: 51.7%;
}

.agency-date {
  top: 82.3%;
}

.agency-date-2 {
  left: 56%;
}

@media (max-width: 720px) {
  .combined-document-section {
    margin-top: 28px;
  }

  .combined-submission-panel {
    margin-top: 30px;
  }
}

/* === Home page: make the single disclosures card span full width === */
.hero .form-grid {
  display: block;
  margin-top: 36px;
}

.hero .form-card {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 220px;
  box-sizing: border-box;
}

/* === Make print-name fields look interactive like signature boxes === */
.fair-name,
.agency-name {
  border: 2px solid rgba(48, 102, 190, 0.95);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 2px rgba(48, 102, 190, 0.10);
  padding: 2px 6px;
}

.fair-name::placeholder,
.agency-name::placeholder {
  color: rgba(48, 102, 190, 0.70);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

@media (max-width: 720px) {
  .hero .form-card {
    min-height: 180px;
  }

  .fair-name::placeholder,
  .agency-name::placeholder {
    font-size: 8px;
  }
}

/* === Submission success page === */
.success-card {
  width: min(100%, 760px);
  margin: 54px auto;
  padding: 54px 60px;
  min-height: 0;
  box-sizing: border-box;
}

.success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 26px;
  border: 2px solid var(--true-blue);
  border-radius: 50%;
  color: var(--true-blue);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.success-card h1 {
  margin: 10px 0 18px;
}

.success-lead {
  max-width: 620px;
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.success-detail {
  max-width: 620px;
  margin: 0;
  line-height: 1.55;
  color: var(--ink-soft);
}

.success-notice {
  max-width: 620px;
  margin: 18px 0 0;
  padding: 16px 18px;
  border: 1px solid #deded9;
  background: #f8f8f5;
  line-height: 1.5;
}

.success-notice p {
  margin: 6px 0 0;
}

.success-actions {
  margin-top: 32px;
}

.success-actions .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
}

@media (max-width: 720px) {
  .success-card {
    margin: 24px auto;
    padding: 34px 24px;
  }

  .success-lead {
    font-size: 16px;
  }

  .success-actions .secondary {
    width: 100%;
    box-sizing: border-box;
  }
}
