/* Payment Details page (prefix tr-) */

.tr-head { margin-bottom: 40px; }

/* ==========================================================================
   Fee and payment: two parts with the same structure, "Details" then "Payment options"
   (an h3 with a one-sentence lead-in, then the content)
   ========================================================================== */
.tr-part { scroll-margin-top: 130px; }
.tr-part + .tr-part { margin-top: 80px; }
.tr-part__head { max-width: 680px; margin-bottom: 32px; }
.tr-part__head h3 { font-size: 26px; margin-bottom: 8px; }
.tr-part__head p { color: var(--muted); margin: 0; }

/* Details (decided Nov 22): the Overview's registration ending, flipped. The h3 and sentence on the left;
   the fee and the due date on the right, each with a red side bar and a serif value.
   Divi: one row, 2 equal columns: Text (h3 + sentence) | column with 2 Text modules (class so-tr-dates). */
.tr-facts dd .placeholder-note { margin: 0 0 0 6px; vertical-align: middle; }
#tr-details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
#tr-details .tr-part__head { margin-bottom: 0; }
/* the fee column only as wide as its value, so the deadline date fits on one line */
.tr-facts { max-width: none; grid-template-columns: auto minmax(0, 1fr); column-gap: 40px; border-top: 0; }
.tr-facts > div { padding: 0 0 0 22px; border-bottom: 0; border-left: 3px solid var(--red); }
.tr-facts dt { margin-bottom: 8px; }
.tr-facts dd { font: 600 24px/1.25 var(--font-head); color: var(--ink); }
/* the deadline: the date on one line, "at 11:59 PM" on the next (Divi: a line break in the Text module) */
.tr-facts dd span { display: block; }
.tr-facts dd span + span { display: inline; }
@media (max-width: 1199px) {
  .tr-facts { grid-template-columns: 1fr; row-gap: 24px; }
}
@media (max-width: 980px) {
  #tr-details { grid-template-columns: 1fr; gap: 28px; }
  .tr-facts { grid-template-columns: auto minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .tr-facts { grid-template-columns: 1fr; row-gap: 20px; }
  .tr-facts dd { font-size: 21px; }
}

/* ==========================================================================
   Payment options: Zelle, PayPal, check, styled four ways ("Payment options design")
   grouped (default: Zelle and PayPal share a column) · cols · rows · list
   ========================================================================== */
.tr-opt__num { display: block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.tr-opt__name { font: 600 24px/1.25 var(--font-head); color: var(--ink); margin: 0 0 10px; }
.tr-opt__desc { color: var(--muted); margin: 0 0 22px; }
/* the details: label line + value line (like Key details), under a thin rule */
.tr-opt__details { display: grid; gap: 16px; margin: 0; padding-top: 18px; border-top: 1px solid var(--line); }
.tr-opt__details dt { font: 700 13px/1.2 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.tr-opt__details dd { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }

/* only one of the two option blocks shows */
.tr-opts--grouped,
html[data-tr-options-look="grouped"] .tr-opts:not(.tr-opts--grouped) { display: none; }

/* Columns (3) and Two columns: open columns under a dark rule, thin lines between (Divi: the shared so-paths-cols row) */
html[data-tr-options-look="cols"] .tr-opts:not(.tr-opts--grouped),
html[data-tr-options-look="grouped"] .tr-opts--grouped { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
html[data-tr-options-look="grouped"] .tr-opts--grouped { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html[data-tr-options-look="cols"] .tr-opt,
html[data-tr-options-look="grouped"] .tr-opt { padding: 32px 36px 8px 0; }
html[data-tr-options-look="cols"] .tr-opt + .tr-opt,
html[data-tr-options-look="grouped"] .tr-opt + .tr-opt { padding-left: 36px; border-left: 1px solid var(--line); }
html[data-tr-options-look="grouped"] .tr-opt { padding-right: 56px; }
html[data-tr-options-look="grouped"] .tr-opt + .tr-opt { padding-left: 56px; }

/* Numbered list: a large red numeral on the left, ruled rows (the numeral replaces the small label) */
html[data-tr-options-look="list"] .tr-opts { max-width: 880px; border-top: 2px solid var(--ink); counter-reset: tr-opt; }
html[data-tr-options-look="list"] .tr-opt {
  counter-increment: tr-opt; display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 24px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
html[data-tr-options-look="list"] .tr-opt::before { content: counter(tr-opt); grid-column: 1; grid-row: 1 / span 3; font: 600 44px/1 var(--font-head); color: var(--red); }
html[data-tr-options-look="list"] .tr-opt > * { grid-column: 2; }
html[data-tr-options-look="list"] .tr-opt__num { display: none; }
html[data-tr-options-look="list"] .tr-opt__desc { margin-bottom: 16px; }
html[data-tr-options-look="list"] .tr-opt__details { grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: 48px; padding-top: 0; border-top: 0; }

/* Rows: the label and method on the left, the sentence and details on the right */
html[data-tr-options-look="rows"] .tr-opts { border-top: 2px solid var(--ink); }
html[data-tr-options-look="rows"] .tr-opt {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); grid-template-rows: auto 1fr; grid-template-areas: "num desc" "name details";
  column-gap: 48px; padding: 32px 0; border-bottom: 1px solid var(--line);
}
html[data-tr-options-look="rows"] .tr-opt__num { grid-area: num; margin-bottom: 8px; }
html[data-tr-options-look="rows"] .tr-opt__name { grid-area: name; margin: 0; }
html[data-tr-options-look="rows"] .tr-opt__desc { grid-area: desc; margin-bottom: 14px; }
html[data-tr-options-look="rows"] .tr-opt__details { grid-area: details; grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: 56px; padding-top: 0; border-top: 0; align-content: start; }

/* ---------- W-9 request ---------- */
#tr-w9 { scroll-margin-top: 90px; }
.tr-w9 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 80px; row-gap: 32px; align-items: start; }
.tr-w9__form { grid-column: 2; grid-row: 1 / span 2; }
.tr-w9__todo { grid-column: 1; grid-row: 2; }
.tr-w9__intro { padding-top: 8px; }
.tr-w9__intro > p { color: var(--muted); font-size: 18px; }
.tr-list { margin: 24px 0 0; padding-left: 1.3em; display: grid; gap: 10px; color: var(--muted); }
.tr-list li::marker { color: var(--red); font-weight: 700; }

/* Request form card: mirrors the Contact page form (labels above fields, white card, red Submit) */
.tr-form {
  display: grid; gap: 20px; padding: 34px 34px 30px; background: var(--white);
  border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-card);
}
.tr-field { display: grid; gap: 8px; min-width: 0; }
.tr-field label { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.tr-form input {
  width: 100%; box-sizing: border-box; padding: 12px 14px; font: 400 16px/1.4 var(--font-body); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px; transition: border-color .2s, background-color .2s;
}
.tr-form input:focus { outline: none; background: var(--white); border-color: var(--red); box-shadow: 0 0 0 3px var(--red-tint); }
.tr-form__bottom { padding-top: 4px; }
.tr-submit { font-family: var(--font-body); }
.tr-w9 .todo { margin-top: 0; }

@media (max-width: 980px) {
  .tr-w9 { grid-template-columns: 1fr; gap: 40px; }
  .tr-w9__form, .tr-w9__todo { grid-column: auto; grid-row: auto; }
  html[data-tr-options-look="cols"] .tr-opts:not(.tr-opts--grouped),
  html[data-tr-options-look="grouped"] .tr-opts--grouped { grid-template-columns: 1fr; }
  html[data-tr-options-look="cols"] .tr-opt,
  html[data-tr-options-look="cols"] .tr-opt + .tr-opt,
  html[data-tr-options-look="grouped"] .tr-opt,
  html[data-tr-options-look="grouped"] .tr-opt + .tr-opt { padding: 28px 0 28px; border-left: 0; }
  html[data-tr-options-look="cols"] .tr-opt + .tr-opt,
  html[data-tr-options-look="grouped"] .tr-opt + .tr-opt { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {

  .tr-part + .tr-part { margin-top: 60px; }
  .tr-part__head { margin-bottom: 26px; }
  .tr-part__head h3 { font-size: 23px; }
  .tr-opt__name { font-size: 22px; }
  html[data-tr-options-look] .tr-opt__details { grid-template-columns: 1fr; }
  html[data-tr-options-look="list"] .tr-opt { grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; padding: 24px 0; }
  html[data-tr-options-look="list"] .tr-opt::before { font-size: 34px; }
  html[data-tr-options-look="rows"] .tr-opt { grid-template-columns: 1fr; grid-template-areas: "num" "name" "desc" "details"; grid-template-rows: none; padding: 24px 0; }
  html[data-tr-options-look="rows"] .tr-opt__details { row-gap: 14px; }
  html[data-tr-options-look="rows"] .tr-opt__name { margin-bottom: 10px; }

  .tr-form { padding: 26px 20px 24px; }
  .tr-submit { width: 100%; justify-content: center; }
}

/* Closing band: a slightly wider line so the sentence doesn't leave one word behind; the email is a plain white underlined link */
.tr-cta p { max-width: 740px; }
.tr-cta p a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
