/*
 * The sign-up form at /signup.
 *
 * Loaded on that page only. Kept small and quiet (owner, 2026-11-14): one
 * white card of questions in compact type, and beside it the top of a quote
 * on the site's black satin stage, filling in with their name as they type.
 *
 * Layout: one column on a phone (questions, then the quote). From 62rem the
 * quote sits beside the questions and stays in view.
 */

.tx2.truxcrm-page-signup {
  --su-line: #e6e6e6;
  --su-field: #fafafa;
  --su-focus: rgba(0, 73, 186, 0.12);
  --su-error: #b42318;
  --su-ok: #12a150;
  --su-input: 0.875rem;
}

/* A phone zooms into any field under 16px when it is tapped. */
@media (pointer: coarse) {
  .tx2.truxcrm-page-signup {
    --su-input: 1rem;
  }
}

/* ------------------------------------------------------------------ head */

.tx2 .tx-su-head {
  padding: clamp(7rem, 9vw, 8rem) 0 clamp(1.75rem, 3vw, 2.25rem);
}

.tx2 .tx-su-head h1 {
  max-width: 18ch;
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
}

.tx2 .tx-su-head .lead {
  margin-top: 0.6rem;
  font-size: 0.92rem;
}

/* After a demo is the time to fill this in; the way back if it is too soon. */
.tx2 p.tx-su-note {
  display: inline-block;
  max-width: 100%;
  margin: 1rem auto 0;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--tx-line);
  border-radius: 999px;
  background: var(--tx-soft);
  color: var(--tx-mute);
  font-size: 0.78rem;
  line-height: 1.5;
}

.tx2 .tx-su-note a {
  color: var(--tx-ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.25);
  text-underline-offset: 2px;
}

@media (max-width: 39.99rem) {
  .tx2 p.tx-su-note {
    border-radius: 12px;
  }
}

/* --------------------------------------------------------------- section */

.tx2 .tx-su-section {
  padding: clamp(1.75rem, 3.5vw, 2.75rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  border-top: 1px solid var(--tx-line);
  background: var(--tx-soft);
}

.tx2 .tx-su-noscript {
  margin: 0 auto 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--su-line);
  border-radius: var(--tx-radius);
  background: #fff;
  font-size: 0.875rem;
  text-align: center;
}

.tx2 .tx-su-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  max-width: 60rem;
  margin: 0 auto;
}

@media (min-width: 62rem) {
  .tx2 .tx-su-form {
    grid-template-columns: minmax(0, 1fr) 20rem;
    grid-template-areas: "fields preview";
    align-items: start;
    column-gap: 1.75rem;
  }

  .tx2 .tx-su-fields,
  .tx2 .tx-su-done {
    grid-area: fields;
  }

  .tx2 .tx-su-preview {
    position: sticky;
    top: 6.5rem;
    grid-area: preview;
  }
}

/* Each of these sets its own display, which would otherwise beat [hidden]. */
.tx2 .tx-su-form [hidden] {
  display: none !important;
}

/* ------------------------------------------------------------------ card */

.tx2 .tx-su-card {
  min-width: 0;
  padding: clamp(1.1rem, 2.6vw, 1.75rem);
  border: 1px solid var(--su-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 20px 40px -32px rgba(0, 0, 0, 0.2);
}

/* ----------------------------------------------------------------- steps */

/* A small number beside each heading; it turns into a blue tick when that
   part is done. The questions sit under the heading. */
.tx2 .tx-su-step {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr);
  align-items: center;
  column-gap: 0.6rem;
  min-width: 0;
}

.tx2 .tx-su-step + .tx-su-step {
  margin-top: 1.1rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f0f0f0;
}

.tx2 .tx-su-step > :not(.tx-su-step-no, .tx-su-step-title) {
  grid-column: 1 / -1;
}

@media (min-width: 40rem) {
  .tx2 .tx-su-step > :not(.tx-su-step-no, .tx-su-step-title) {
    grid-column: 2;
  }
}

.tx2 .tx-su-step-no {
  position: relative;
  display: grid;
  width: 1.4rem;
  height: 1.4rem;
  place-items: center;
  border: 1px solid var(--su-line);
  border-radius: 50%;
  background: #fff;
  color: var(--tx-ink);
  font-family: var(--tx-mono);
  font-size: 0.66rem;
  transition: background-color 250ms ease, border-color 250ms ease, color 250ms ease;
}

.tx2 .tx-su-step.is-done .tx-su-step-no {
  border-color: var(--tx-brand);
  background: var(--tx-brand);
  color: transparent;
}

.tx2 .tx-su-step.is-done .tx-su-step-no::after {
  position: absolute;
  inset: 0;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 0.7rem no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 0.7rem no-repeat;
  content: "";
}

.tx2 h2.tx-su-step-title {
  max-width: none;
  margin: 0;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.005em;
  text-align: left;
}

.tx2 .tx-su-step-title + * {
  margin-top: 0.85rem;
}

/* ---------------------------------------------------------------- fields */

.tx2 .tx-su-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 0.75rem;
}

@media (min-width: 40rem) {
  .tx2 .tx-su-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tx2 .tx-su-field {
  min-width: 0;
  margin-bottom: 0.8rem;
}

.tx2 .tx-su-step > :last-child,
.tx2 .tx-su-step > .tx-su-row:last-child > .tx-su-field {
  margin-bottom: 0;
}

@media (max-width: 39.99rem) {
  .tx2 .tx-su-step > .tx-su-row:last-child > .tx-su-field:not(:last-child) {
    margin-bottom: 0.8rem;
  }
}

.tx2 .tx-su-field label {
  display: block;
  margin: 0 0 0.3rem;
  color: rgba(0, 0, 0, 0.78);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
}

.tx2 .tx-su-label-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.3rem;
}

.tx2 .tx-su-label-row label {
  margin: 0;
}

.tx2 .tx-su-optional {
  color: var(--tx-mute);
  font-weight: 400;
}

.tx2 .tx-su-control {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 2.6rem;
  border: 1px solid var(--su-line);
  border-radius: 8px;
  background: var(--su-field);
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.tx2 .tx-su-control:hover {
  border-color: #d6d6d6;
}

.tx2 .tx-su-control:focus-within {
  border-color: var(--tx-brand);
  background: #fff;
  box-shadow: 0 0 0 3px var(--su-focus);
}

/* Reset the site's own input look; the control around it is the field. */
.tx2 .tx-su-control input,
.tx2 .tx-su-stepper input {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 2.5rem;
  margin: 0;
  padding: 0 0.75rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: var(--tx-ink);
  font: inherit;
  font-size: var(--su-input);
  outline: 0;
}

.tx2 .tx-su-control input:focus,
.tx2 .tx-su-stepper input:focus {
  border: 0;
  outline: 0;
}

.tx2 .tx-su-control input::placeholder,
.tx2 .tx-su-stepper input::placeholder {
  color: rgba(0, 0, 0, 0.3);
}

/* A label inside the field: MC, USDOT. */
.tx2 .tx-su-tag {
  flex: none;
  margin-left: 0.75rem;
  color: rgba(0, 0, 0, 0.45);
  font-family: var(--tx-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}

.tx2 .tx-su-control.has-tag input {
  padding-left: 0.5rem;
  font-variant-numeric: tabular-nums;
}

/* Phone: a flag button with the country code, then the number. The button
   opens a small window of every country with a search box on top. */
.tx2 .tx-su-phone-wrap {
  position: relative;
}

.tx2 .tx-su-cc {
  display: flex;
  flex: none;
  align-self: stretch;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0 0.6rem 0 0.75rem;
  border: 0;
  border-right: 1px solid var(--su-line);
  border-radius: 8px 0 0 8px;
  background: none;
  color: var(--tx-ink);
  font: inherit;
  font-size: var(--su-input);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 140ms ease;
}

.tx2 .tx-su-cc:hover,
.tx2 .tx-su-cc[aria-expanded="true"] {
  background: rgba(0, 0, 0, 0.035);
}

.tx2 .tx-su-cc:focus-visible {
  outline: 2px solid var(--tx-brand);
  outline-offset: -2px;
}

.tx2 .tx-su-cc-flag {
  font-size: 1.05em;
  line-height: 1;
}

.tx2 .tx-su-cc svg {
  color: rgba(0, 0, 0, 0.45);
  transition: transform 180ms var(--tx-ease);
}

.tx2 .tx-su-cc[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.tx2 .tx-su-phone input {
  padding-left: 0.65rem;
}

/* The window: search on top, the list below it. */
.tx2 .tx-su-cc-panel {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  z-index: 20;
  width: max(100%, 17rem);
  max-width: calc(100vw - 2rem);
  overflow: hidden;
  border: 1px solid var(--su-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.28), 0 2px 6px rgba(0, 0, 0, 0.06);
  animation: tx-su-pop 140ms var(--tx-ease);
}

@keyframes tx-su-pop {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.tx2 .tx-su-cc-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.75rem;
  border-bottom: 1px solid #f0f0f0;
  color: rgba(0, 0, 0, 0.4);
}

.tx2 .tx-su-cc-search input,
.tx2 .tx-su-cc-search input:focus {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--tx-ink);
  font: inherit;
  font-size: var(--su-input);
  outline: 0;
}

.tx2 .tx-su-cc-search input::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

.tx2 .tx-su-cc-list {
  max-height: 15rem;
  margin: 0;
  padding: 0.3rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
}

.tx2 .tx-su-cc-list li[role="option"] {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  color: var(--tx-ink);
  font-size: 0.82rem;
  line-height: 1.3;
  cursor: pointer;
}

.tx2 .tx-su-cc-list li.is-active {
  background: #f2f5fa;
}

.tx2 .tx-su-cc-item-flag {
  flex: none;
  font-size: 1rem;
  line-height: 1;
}

.tx2 .tx-su-cc-item-name {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tx2 .tx-su-cc-item-code {
  flex: none;
  color: rgba(0, 0, 0, 0.45);
  font-variant-numeric: tabular-nums;
}

/* The one chosen now: its code in blue and a tick. */
.tx2 .tx-su-cc-list li[aria-selected="true"] {
  font-weight: 500;
}

.tx2 .tx-su-cc-list li[aria-selected="true"] .tx-su-cc-item-code {
  color: var(--tx-brand);
}

.tx2 .tx-su-cc-list li[aria-selected="true"]::after {
  flex: none;
  width: 0.8rem;
  height: 0.8rem;
  background: var(--tx-brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  content: "";
}

.tx2 .tx-su-cc-line {
  height: 1px;
  margin: 0.3rem 0.55rem;
  background: #eee;
}

.tx2 p.tx-su-cc-none {
  margin: 0;
  padding: 0.9rem 0.85rem 1.1rem;
  color: var(--tx-mute);
  font-size: 0.8rem;
  text-align: center;
}

/* Valid: a small green tick at the end of the field. */
.tx2 .tx-su-control::after {
  flex: none;
  width: 0.9rem;
  height: 0.9rem;
  margin-right: 0.7rem;
  border-radius: 50%;
  background: var(--su-ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.6 3.6 7.4-8.2'/%3E%3C/svg%3E") center / 0.6rem no-repeat;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 180ms ease, transform 260ms var(--tx-ease);
  content: "";
}

.tx2 .tx-su-field.is-valid .tx-su-control::after {
  opacity: 1;
  transform: none;
}

.tx2 .tx-su-field.is-invalid :is(.tx-su-control, .tx-su-stepper) {
  border-color: var(--su-error);
  background: #fff;
}

.tx2 .tx-su-field.is-invalid .tx-su-control:focus-within {
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.1);
}

.tx2 .tx-su-hint,
.tx2 .tx-su-error {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.45;
}

.tx2 .tx-su-hint {
  margin-top: 0.3rem;
  color: var(--tx-mute);
}

.tx2 .tx-su-error {
  color: var(--su-error);
}

.tx2 .tx-su-error:not(:empty) {
  margin-top: 0.3rem;
}

.tx2 .tx-su-field.is-invalid .tx-su-hint {
  display: none;
}

/* ------------------------------------------------------ number of agents */

.tx2 .tx-su-stepper {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
  align-items: center;
  min-height: 2.6rem;
  border: 1px solid var(--su-line);
  border-radius: 8px;
  background: var(--su-field);
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.tx2 .tx-su-stepper:focus-within {
  border-color: var(--tx-brand);
  background: #fff;
  box-shadow: 0 0 0 3px var(--su-focus);
}

.tx2 .tx-su-stepper input {
  padding: 0;
  font-variant-numeric: tabular-nums;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

.tx2 .tx-su-stepper input::-webkit-outer-spin-button,
.tx2 .tx-su-stepper input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.tx2 .tx-su-step-btn {
  display: grid;
  width: 1.85rem;
  height: 1.85rem;
  margin: auto;
  place-items: center;
  padding: 0;
  border: 1px solid var(--su-line);
  border-radius: 6px;
  background: #fff;
  color: var(--tx-ink);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.tx2 .tx-su-step-btn:hover {
  border-color: #cfcfcf;
  background: var(--tx-soft-2);
}

.tx2 .tx-su-step-btn:focus-visible {
  outline: 2px solid var(--tx-brand);
  outline-offset: 1px;
}

/* --------------------------------------------------------- order prefix */

/* Reads as the order number itself: the letters typed, then 00001. */
.tx2 .tx-su-prefix {
  cursor: text;
}

.tx2 .tx-su-prefix input {
  flex: none;
  /* As wide as the letters in it (signup.js sets --su-letters), so 00001
     follows straight on: SLT00001, not SLT 00001. */
  width: calc(var(--su-letters, 3) * (1ch + 0.05em) + 0.85rem);
  padding: 0 0.1rem 0 0.75rem;
  font-family: var(--tx-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tx2 .tx-su-prefix-tail {
  flex: 1;
  color: rgba(0, 0, 0, 0.3);
  font-family: var(--tx-mono);
  font-size: var(--su-input);
  letter-spacing: 0.05em;
}

/* ---------------------------------------------------------------- tooltip */

.tx2 .tx-su-tip-wrap {
  position: relative;
  display: inline-flex;
}

.tx2 .tx-su-tip {
  display: grid;
  width: 1.05rem;
  height: 1.05rem;
  place-items: center;
  padding: 0;
  border: 1px solid #d4d4d4;
  border-radius: 50%;
  background: #fff;
  color: rgba(0, 0, 0, 0.55);
  font-family: var(--tx-mono);
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 1;
  cursor: help;
  transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease;
}

/* A bigger target for a thumb than the circle you see. */
.tx2 .tx-su-tip::before {
  position: absolute;
  inset: -0.65rem;
  content: "";
}

.tx2 .tx-su-tip:hover,
.tx2 .tx-su-tip:focus-visible,
.tx2 .tx-su-tip[aria-expanded="true"] {
  border-color: var(--tx-brand);
  background: var(--tx-brand);
  color: #fff;
  outline: 0;
}

.tx2 .tx-su-tip-text {
  position: absolute;
  bottom: calc(100% + 0.55rem);
  left: 50%;
  z-index: 5;
  width: max-content;
  max-width: min(16rem, 78vw);
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  background: var(--tx-black);
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 150ms ease, transform 180ms var(--tx-ease);
  visibility: hidden;
}

.tx2 .tx-su-tip-text::after {
  position: absolute;
  top: 100%;
  left: 50%;
  border: 5px solid transparent;
  border-top-color: var(--tx-black);
  transform: translateX(-50%);
  content: "";
}

.tx2 .tx-su-tip:hover + .tx-su-tip-text,
.tx2 .tx-su-tip:focus-visible + .tx-su-tip-text,
.tx2 .tx-su-tip[aria-expanded="true"] + .tx-su-tip-text {
  opacity: 1;
  transform: translate(-50%, 0);
  visibility: visible;
}

/* On a phone the bubble lines up with the label, so it can never run off
   either edge of the screen, wherever the ? happens to land. */
@media (max-width: 39.99rem) {
  .tx2 .tx-su-label-row {
    position: relative;
  }

  .tx2 .tx-su-tip-wrap {
    position: static;
  }

  .tx2 .tx-su-tip-text {
    left: 0;
    max-width: 100%;
    transform: translateY(4px);
  }

  .tx2 .tx-su-tip:hover + .tx-su-tip-text,
  .tx2 .tx-su-tip:focus-visible + .tx-su-tip-text,
  .tx2 .tx-su-tip[aria-expanded="true"] + .tx-su-tip-text {
    transform: none;
  }

  .tx2 .tx-su-tip-text::after {
    display: none;
  }
}

/* ------------------------------------------------------------- honeypot */

.tx2 .tx-su-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------------------------------------------------------------- submit */

.tx2 .tx-su-submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid #f0f0f0;
}

.tx2 p.tx-su-status {
  flex-basis: 100%;
  margin: 0;
  color: var(--su-error);
  font-size: 0.8rem;
  line-height: 1.5;
}

.tx2 p.tx-su-status:empty {
  display: none;
}

.tx2 .tx-su-send {
  order: 2;
  min-height: 2.6rem;
  padding-inline: 1.4rem;
  font-size: 0.85rem;
}

.tx2 .tx-su-send:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.tx2 .tx-su-send.is-busy {
  cursor: progress;
  opacity: 0.8;
}

.tx2 .tx-su-send.is-busy::before {
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  margin-right: 0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: -0.1rem;
  animation: tx-su-spin 700ms linear infinite;
  content: "";
}

@keyframes tx-su-spin {
  to {
    transform: rotate(360deg);
  }
}

.tx2 p.tx-su-privacy {
  order: 1;
  flex: 1 1 14rem;
  margin: 0;
  color: var(--tx-mute);
  font-size: 0.74rem;
  line-height: 1.5;
}

.tx2 .tx-su-privacy a,
.tx2 .tx-su-done a {
  color: var(--tx-ink);
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.25);
  text-underline-offset: 2px;
}

@media (max-width: 39.99rem) {
  .tx2 .tx-su-send {
    order: 1;
    width: 100%;
  }

  .tx2 p.tx-su-privacy {
    order: 2;
    text-align: center;
  }
}

/* ------------------------------------------------------------- preview */

.tx2 .tx-su-preview {
  min-width: 0;
}

/* The black stage, cut by the blue X, like the integration heroes. */
.tx2 .tx-su-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 1.1rem;
  border-radius: 14px;
  background: var(--tx-satin);
}

.tx2 .tx-su-stage::before {
  position: absolute;
  top: 85%;
  left: 85%;
  z-index: -1;
  width: 130%;
  aspect-ratio: 1070 / 752;
  background: var(--tx-x-blue) center / contain no-repeat;
  opacity: 0.5;
  transform: translate(-50%, -50%);
  content: "";
}

/* The top of a quote: a sheet of paper on the stage. */
.tx2 .tx-su-paper {
  padding: 1rem;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 48px -22px rgba(0, 0, 0, 0.7), 0 2px 5px rgba(0, 0, 0, 0.3);
  color: var(--tx-ink);
}

.tx2 .tx-su-paper-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--tx-ink);
}

.tx2 .tx-su-paper-co {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.15rem;
}

.tx2 .tx-su-paper-name {
  color: var(--tx-ink);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.tx2 .tx-su-paper-addr {
  color: rgba(0, 0, 0, 0.6);
  font-size: 0.68rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.tx2 .tx-su-paper-ids {
  margin-top: 0.15rem;
  color: rgba(0, 0, 0, 0.5);
  font-family: var(--tx-mono);
  font-size: 0.58rem;
}

.tx2 .tx-su-paper-ids b {
  color: var(--tx-ink);
  font-weight: 500;
}

.tx2 .tx-su-paper-ids i {
  margin: 0 0.3rem;
  font-style: normal;
}

.tx2 .tx-su-paper-no {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  text-align: right;
}

.tx2 .tx-su-paper-kind {
  color: rgba(0, 0, 0, 0.45);
  font-family: var(--tx-mono);
  font-size: 0.54rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tx2 .tx-su-paper-id {
  color: var(--tx-ink);
  font-family: var(--tx-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.tx2 .tx-su-paper-id b {
  color: var(--tx-brand);
  font-weight: 600;
}

.tx2 .tx-su-paper-date {
  color: rgba(0, 0, 0, 0.45);
  font-size: 0.6rem;
}

.tx2 p.tx-su-paper-foot {
  margin: 0.75rem 0 0;
  color: rgba(0, 0, 0, 0.6);
  font-size: 0.66rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.tx2 .tx-su-paper-foot b {
  color: var(--tx-ink);
  font-weight: 500;
}

.tx2 p.tx-su-stage-note {
  margin: 0.8rem 0.15rem 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.72rem;
  line-height: 1.45;
}

/* The rotating X under the quote. Desktop only; on a phone the questions use
   the whole width and there is no space beside them to fill. */
.tx2 .tx-su-x {
  display: none;
}

@media (min-width: 62rem) {
  .tx2 .tx-su-x {
    display: block;
    height: 15.5rem;
    margin-top: 0.5rem;
  }
}

/* Not filled in yet. */
.tx2 .tx-su-preview .is-empty {
  color: rgba(0, 0, 0, 0.28) !important;
}

.tx2 .tx-su-paper-id b.is-empty {
  color: rgba(0, 73, 186, 0.4) !important;
}

/* What just changed lights up for a moment. */
.tx2 .tx-su-preview .is-flash {
  border-radius: 3px;
  animation: tx-su-flash 900ms ease-out;
}

@keyframes tx-su-flash {
  from {
    background-color: rgba(0, 73, 186, 0.16);
  }

  to {
    background-color: transparent;
  }
}

/* ------------------------------------------------------------------ done */

.tx2 .tx-su-done {
  /* On a phone the thank-you comes first, above the quote; beside it on a
     desktop, where the grid places it. Scrolled to below the fixed header. */
  order: -1;
  display: flex;
  flex-direction: column;
  padding-block: clamp(1.75rem, 4vw, 2.5rem);
  scroll-margin-top: 6.5rem;
  outline: 0;
}

.tx2 .tx-su-done-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

/* The turning X: under the words on a phone, beside them on a wider screen. */
.tx2 .tx-su-done-x {
  align-self: center;
  width: min(100%, 15rem);
  height: 10.5rem;
  margin-top: 1.25rem;
}

@media (min-width: 48rem) {
  .tx2 .tx-su-done {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }

  .tx2 .tx-su-done-copy {
    flex: 1 1 auto;
  }

  .tx2 .tx-su-done-x {
    flex: 0 0 13rem;
    height: 12rem;
    margin-top: 0;
  }
}

.tx2 .tx-su-done-mark {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 50%;
  background: #e8f6ee;
  color: var(--su-ok);
}

.tx2 .tx-su-done-mark svg {
  width: 2rem;
  height: 2rem;
}

.tx2 .tx-su-done-mark circle {
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: tx-su-draw 700ms var(--tx-ease) forwards;
}

.tx2 .tx-su-done-mark path {
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: tx-su-draw 450ms 450ms var(--tx-ease) forwards;
}

@keyframes tx-su-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.tx2 .tx-su-done h2 {
  max-width: 24ch;
  margin: 0 0 0.5rem;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  text-align: left;
}

.tx2 .tx-su-done p {
  max-width: 34rem;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: left;
}

.tx2 .tx-su-done strong {
  overflow-wrap: anywhere;
}

.tx2 p.tx-su-done-help {
  margin-top: 0.9rem;
  color: var(--tx-mute);
  font-size: 0.8rem;
}

/* ---------------------------------------------------------------- motion */

@media (prefers-reduced-motion: reduce) {
  .tx2 .tx-su-preview .is-flash,
  .tx2 .tx-su-done-mark circle,
  .tx2 .tx-su-done-mark path {
    animation: none;
    stroke-dashoffset: 0;
  }

  .tx2 .tx-su-control::after,
  .tx2 .tx-su-tip-text {
    transition: none;
  }
}
