/* Novel PTG enrollment v3 (2026-11-01, preview): even form grid, autocomplete, matches, Review & Sign. Loaded after enroll-v2.css. */
/* even grid: every box the same height, paired fields equal width, nothing overflows */
.enroll-v2 .stage .grid, .enroll-v2 .prop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.enroll-v2 .prop-grid .span-2 { grid-column: 1 / -1; }
.enroll-v2 .stage input:not([type=checkbox]):not([type=radio]):not([type=file]), .enroll-v2 .stage select { box-sizing: border-box; width: 100%; min-width: 0; height: 48px; }
.enroll-v2 .stage select { padding: 0 14px; background: var(--enr-field); border: 1px solid var(--enr-line); border-radius: 10px; font: inherit; font-size: 1.02rem; color: var(--enr-text); }
.enroll-v2 .stage select:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(196,164,106,.38); }
.enroll-v2 .stage .grid > div, .enroll-v2 .prop-grid > div { min-width: 0; }
.enroll-v2 .v3-csz { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: inherit; column-gap: 18px; grid-column: 1 / -1; }
.enroll-v2 .v3-csz > div { min-width: 0; }
/* labels wrap (never truncated); align-items:end keeps paired boxes level when one label wraps */
/* autocomplete */
.v3-acwrap { position: relative; }
.v3-acl { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px 0; list-style: none; background: #fff; border: 1px solid var(--enr-line, #d9c9a8); border-radius: 10px; box-shadow: 0 10px 24px rgba(0,0,0,.12); max-height: 300px; overflow-y: auto; }
.v3-acl[hidden] { display: none; }
.v3-acl__opt { display: flex; flex-direction: column; gap: 1px; padding: 9px 14px; cursor: pointer; }
.v3-acl__opt[aria-selected="true"], .v3-acl__opt:hover { background: #fbf5e8; }
.v3-acl__main { font-weight: 650; color: var(--green, #1f3d2f); }
.v3-acl__sub { font-size: .86rem; color: #5b6662; }
.v3-acl__none { padding: 9px 14px; font-size: .9rem; color: #5b6662; }
/* matches */
.v3-matches { margin-top: 16px; padding: 14px 16px; background: #fbf6ec; border: 1px solid var(--gold, #c4a46a); border-left-width: 4px; border-radius: 12px; }
.v3-matches[hidden] { display: none; }
.v3-matches h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--enr-ink); }
.v3-matches__lede { margin: 4px 0 10px; font-size: .95rem; }
.v3-matches__list { display: grid; gap: 8px; }
.v3-match { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; background: #fff; border: 1px solid #d9c9a8; border-radius: 8px; cursor: pointer; }
.v3-match:has(input:checked) { border-color: var(--green); background: #eef3ef; }
.enroll-v2 .v3-match input { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--green); }
.v3-match__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.v3-match__addr { font-weight: 700; color: var(--green); }
.v3-match__meta { font-size: .88rem; color: #4a5551; overflow-wrap: anywhere; }
.v3-match__tag { align-self: flex-start; padding: 1px 8px; border-radius: 10px; background: #f2ebdf; font-size: .76rem; font-weight: 700; }
/* review & sign */
.v3-review { margin-top: 6px; border: 1px solid var(--enr-line); border-radius: 12px; background: #fff; overflow: hidden; }
.v3-review__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; background: #f7f1e4; border-bottom: 1px solid var(--enr-line); }
.v3-pdf { flex: none; padding: 7px 14px; border: 1px solid var(--green); border-radius: 8px; background: #fff; color: var(--green); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; }
.agr-doc { max-height: 460px; overflow-y: auto; padding: 14px 18px; font-size: .92rem; line-height: 1.5; }
.agr-doc p { margin: 0 0 10px; }
.agr-title { margin: 0 0 10px; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--enr-ink); }
.agr-sched { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--enr-line); }
.agr-tablewrap { overflow-x: auto; margin-bottom: 10px; }
.agr-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.agr-table th, .agr-table td { padding: 6px 8px; border: 1px solid #ddd2bd; text-align: left; vertical-align: top; }
.agr-table th { background: #f7f1e4; font-weight: 700; }
.agr-fee { color: #6b5a33; font-weight: 700; white-space: nowrap; }
.agr-aoas { font-size: .88rem; font-weight: 600; color: var(--enr-ink); }
.v3-reviewed { margin-top: 14px; }
.v3-sign { margin: 12px 0 0; padding: 12px 16px 14px; border: 1px solid var(--enr-line); border-radius: 12px; min-width: 0; }
.v3-sign[disabled] { opacity: .55; }
.v3-sign legend { padding: 0 6px; font-weight: 700; }
.enroll-v2 .v3-sig { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 1.35rem; }
.v3-sign__note { margin: 10px 0 0; font-size: .84rem; color: #4a5551; }
.enroll-v2 .submit:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 700px) {
  /* phones keep the compact pass's 2-up pairs (compact.css); city takes a full row, state + ZIP pair */
  .enroll-v2 .v3-csz { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 10px; }
  .enroll-v2 .v3-csz > div:first-child { grid-column: 1 / -1; }
  .agr-doc { max-height: 380px; padding: 12px; }
  .v3-review__bar { flex-wrap: wrap; }
}
@media print {
  body.v3-printing * { visibility: hidden !important; }
  body.v3-printing #agrDoc, body.v3-printing #agrDoc * { visibility: visible !important; }
  body.v3-printing #agrDoc { position: absolute; left: 0; top: 0; width: 100%; max-height: none; overflow: visible; }
}
/* BPP value field + tables inside the agreement text (Rendition Fee Schedule) */
.agr-doc > table { width: 100%; margin: 0 0 12px; border-collapse: collapse; font-size: .86rem; }
.agr-doc > table td, .agr-doc > table th { padding: 5px 8px; border: 1px solid #ddd2bd; text-align: left; vertical-align: top; }
.agr-doc > table p { margin: 0; }
.agr-doc > table thead th { background: #f7f1e4; font-weight: 700; }
.agr-doc > table { width: auto; min-width: 60%; }
.agr-doc > table td, .agr-doc > table th { line-height: 1.3; }
/* Rendition Fee Schedule now sits inside Schedule A (2026-11-01) */
.agr-sched > table { width: auto; min-width: 60%; margin: 6px 0 12px; border-collapse: collapse; font-size: .86rem; }
.agr-sched > table td, .agr-sched > table th { padding: 5px 8px; border: 1px solid #ddd2bd; text-align: left; vertical-align: top; line-height: 1.3; }
.agr-doc .agr-sched > table p { margin: 0; line-height: 1.3; }
.agr-sched > table thead th, .agr-sched > table thead td { background: #f7f1e4; font-weight: 700; }
.agr-sched > table tbody td, .agr-sched > table tbody td strong { font-weight: 400; background: none; }
/* Schedule A v2: Amanda's design (2026-11-01) */
.sa2 { --sa-g: #123F35; --sa-gold: #B69349; --sa-gray: #57635E; --sa-grid: #CBD7D0; --sa-stripe: #F7F9F7; border-top: 6px solid var(--sa-g); padding-top: 16px; font-family: Helvetica, Arial, sans-serif; color: var(--sa-gray); }
.sa2 .sa-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1.5px solid var(--sa-gold); }
.sa2 .sa-logo { width: 125px; height: auto; flex: none; }
.agr-doc .sa2 .sa-kicker { margin: 0 0 2px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; color: var(--sa-gold); }
.sa2 .sa-title { margin: 0 0 8px; font-family: "Times New Roman", Times, serif; font-weight: 700; font-size: 1.6rem; line-height: 1.15; color: var(--sa-g); }
.sa2 .sa-title--sm { font-size: 1.15rem; margin: 0 0 2px; }
.agr-doc .sa2 .sa-intro { margin: 0; font-size: .78rem; line-height: 1.35; max-width: 34em; }
.sa2 .sa-table { border: .5px solid var(--sa-grid); border-collapse: separate; border-spacing: 0; border-radius: 4px; overflow: hidden; font-size: .78rem; min-width: 560px; }
.sa2 .sa-table th { background: var(--sa-g); color: #fff; font-size: .62rem; font-weight: 700; letter-spacing: .02em; padding: 10px 7px 12px; border: 0; vertical-align: top; line-height: 1.35; }
.sa2 .sa-table th span { display: block; font-weight: 400; }
.sa2 .sa-table td { border: 0; border-left: .5px solid var(--sa-grid); border-top: .5px solid var(--sa-grid); padding: 8px 7px; min-height: 29px; color: var(--sa-gray); vertical-align: middle; }
.sa2 .sa-table td:first-child { border-left: 0; text-align: center; }
.sa2 .sa-table tbody tr:nth-child(even) td { background: var(--sa-stripe); }
.sa2 .agr-fee { color: var(--sa-g); white-space: normal; }
.agr-doc .sa2 .sa-notes { margin: 8px 0 18px; font-size: .7rem; font-style: italic; line-height: 1.45; }
.agr-doc .sa2 .sa-sub { margin: 0 0 12px; font-size: .68rem; }
.sa2 .sa-tiers { display: grid; grid-auto-flow: column; grid-template-rows: repeat(4, auto); grid-template-columns: 1fr 1fr; column-gap: 14px; row-gap: 1px; margin-bottom: 14px; }
.sa2 .sa-tier { display: flex; justify-content: space-between; gap: 8px; padding: 5px 11px 5px 9px; border-radius: 2px; font-size: .74rem; color: var(--sa-g); }
.sa2 .sa-tier:nth-child(odd) { background: var(--sa-stripe); }
@media (max-width: 560px) {
  .sa2 .sa-logo { width: 84px; }
  .sa2 .sa-title { font-size: 1.3rem; }
  .sa2 .sa-tiers { grid-auto-flow: row; grid-template-columns: 1fr; grid-template-rows: none; }
  .sa2 .sa-tier:nth-child(odd) { background: none; } .sa2 .sa-tier:nth-child(4n+1), .sa2 .sa-tier:nth-child(4n+3) { background: var(--sa-stripe); }
}

/* sign step: name | title side by side, date full width below (no empty cell; the 2-column form grid applies at every width) */
.v3-sign .grid.v3-sign__grid > div:last-child { grid-column: 1 / -1; }
.v3-sign .grid.v3-sign__grid > .v3-sign__other { grid-column: 1 / -1; }
.v3-sign .grid.v3-sign__grid > .v3-sign__other[hidden] { display: none; }
