/* ============================================================
   VERITY Tenant Screening checkout + success static mirrors
   Uses tenant-screening.css for fonts, tokens, nav, and footer.
   ============================================================ */

.jaga-flow-page {
  background: #fff;
  width: 100%;
  overflow-x: hidden;
}
.flow-main,
.jaga-flow-page .checkout-main {
  width: min(1180px, 90vw);
  max-width: none;
  margin: 0 auto;
}
.jaga-flow-page .checkout-main { padding: 96px 0 112px; }
.jaga-flow-page .checkout-header {
  max-width: 760px;
  margin: 0 auto 35px;
  text-align: left;
}
.checkout-title {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.1;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -1px;
  overflow-wrap: anywhere;
}
.checkout-sub {
  max-width: 760px;
  color: rgba(90, 101, 84, 1);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.jaga-flow-page .checkout-form {
  width: min(760px, 100%);
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(228, 232, 224, 1);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 22px 54px rgba(15, 23, 42, .08);
}
.jaga-order-requirements {
  border: 1px solid rgba(208, 229, 255, 1);
  border-left: 8px solid rgba(208, 229, 255, 1);
  background: #fff;
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin-bottom: 8px;
  color: rgba(106, 128, 144, 1);
  font-size: 0.9rem;
  line-height: 1.55;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.jaga-order-requirements p + p { margin-top: 4px; }
.jaga-order-requirements strong { color: rgba(106, 128, 144, 1); font-weight: 700; }
.jaga-order-requirements a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.einv-info-box {
  border: 1px solid rgba(208, 229, 255, 1);
  border-left: 8px solid rgba(208, 229, 255, 1);
  background: #fff;
  border-radius: 4px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(106, 128, 144, 1);
  font-weight: 400;
  overflow-wrap: anywhere;
}
.einv-info-title,
.einv-info-box strong { color: rgba(106, 128, 144, 1); font-weight: 700; }
.einv-info-line { margin-top: 4px; }
.einv-info-note { margin-top: 5px; font-style: italic; }
.form-section[hidden],
.form-field[hidden] { display: none; }
.lp-form-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 2rem;
  margin-bottom: 1.2rem;
  padding-top: 1.5rem;
  border-top: 1.5px solid rgba(228, 232, 224, 1);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 800;
}
.form-section.section-first .lp-form-section-title {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.lp-step-num,
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 0.8rem;
  line-height: 1;
  font-weight: 900;
}
.radio-card-group {
  display: grid;
  grid-template-columns: 200px 200px;
  align-items: center;
}
.form-radio { display: inline-flex; align-items: center; cursor: pointer; user-select: none; }
.form-check-input {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin: 0 15px 0 0;
  border: 2px solid #212529;
  border-radius: 50%;
  background: transparent;
  position: relative;
  flex: 0 0 auto;
  cursor: pointer;
}
.form-check-input:checked::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #212529;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.form-check-input:focus-visible { outline: 3px solid rgba(68, 214, 44, .25); outline-offset: 2px; }
.form-check-label,
.sub-question,
.form-label {
  color: rgba(122, 142, 154, 1);
  font-size: 0.72rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.form-check-label {
  font-size: 14px;
  line-height: 1;
}
.sub-question { margin: 1.5rem 0 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.form-field { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.form-field-full { grid-column: 1 / -1; }
.form-label { display: block; margin-bottom: 0; }
.form-asterisk { color: #ef4444; margin-left: 2px; }
.form-field input,
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 46px;
  border: 1.5px solid rgba(228, 232, 224, 1);
  border-radius: 10px;
  background: rgba(247, 250, 246, 1);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  padding: 0.8rem 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field input::placeholder { color: rgba(191, 201, 186, 1); }
.form-field select {
  cursor: pointer;
  padding-right: 38px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%230C1E3C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.form-field select option {
  font-size: 16px !important;
  font-family: var(--font) !important;
  color: var(--ink);
  background: #fff;
  padding: 10px 12px;
  line-height: 1.4;
}
.form-field input:focus,
.form-field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(68, 214, 44, .16); }
.form-field input.error,
.form-field select.error { border-color: #dc3545; box-shadow: 0 0 0 3px rgba(220, 53, 69, .12); }
.field-error { display: block; min-height: 1em; margin-top: 0.25rem; color: #dc3545; font-size: 0.85rem; line-height: 1.3; font-weight: 400; }
.field-error:empty { min-height: 0; margin-top: 0; }
.btn-submit {
  width: 100%;
  margin-top: 2rem;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1;
  font-weight: 800;
  padding: 1.1rem;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.btn-submit:hover:not(:disabled) { background: var(--green-dark); box-shadow: 0 10px 28px rgba(68, 214, 44, .35); transform: translateY(-2px); }
.btn-submit:disabled { background: #a8b1a3; color: #fff; cursor: not-allowed; }
.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.payment-successful-page { background: var(--bg-soft); min-height: calc(100vh - 96px); }
.ps-content {
  width: min(660px, 90vw);
  margin: 0 auto;
  padding: 92px 0 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.success-icon-wrap {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 18px 36px rgba(68, 214, 44, .34);
}
.success-icon-wrap svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.success-title { margin: 0 0 10px; color: var(--navy); font-size: 34px; line-height: 1.15; font-weight: 700; text-align: center; }
.success-subtitle {
  max-width: 470px;
  margin: 0 0 42px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 400;
  text-align: center;
}
.success-email,
.steps-card a {
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.receipt-summary {
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 1.55fr 1fr 1fr;
  gap: 28px;
  background: #fff;
  border: 1px solid rgba(226, 232, 244, 1);
  border-radius: 14px;
  padding: 22px 26px;
  margin: 0 0 18px;
  box-shadow: 0 8px 26px rgba(15, 23, 42, .05);
}
.receipt-summary-item {
  min-width: 0;
}
.receipt-summary-item span {
  display: block;
  margin-bottom: 8px;
  color: rgba(104, 118, 139, 1);
  font-size: 10px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.receipt-summary-item strong {
  display: block;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.steps-card {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(226, 232, 244, 1);
  border-radius: 18px;
  padding: 36px;
  box-shadow: 0 10px 32px rgba(15, 23, 42, .06);
}
.steps-card-title { margin-bottom: 26px; color: var(--navy); font-size: 18px; line-height: 1.2; font-weight: 700; }
.step-row { display: flex; align-items: flex-start; gap: 18px; }
.step-body { flex: 1; min-width: 0; }
.step-heading { margin: 0 0 8px; color: var(--navy); font-size: 16px; line-height: 1.35; font-weight: 700; }
.step-desc,
.doc-box-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  font-weight: 400;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.doc-boxes { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.doc-box {
  min-width: 0;
  background: rgba(250, 251, 255, 1);
  border-left: 3px solid var(--green);
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
}
.doc-box-label { margin-bottom: 4px; color: rgba(98, 116, 142, 1); font-size: 11px; line-height: 1.2; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.doc-link { text-decoration: underline !important; }
.step-divider { border: 0; border-top: 1px solid rgba(226, 232, 244, 1); margin: 26px 0; }
.action-row { display: flex; gap: 14px; margin-top: 32px; }
.btn-action-outline,
.btn-action-filled {
  flex: 1;
  min-height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.btn-action-outline { border: 1px solid rgba(226, 232, 244, 1); background: #fff; color: var(--navy); }
.btn-action-filled { border: 0; background: var(--green); color: #000; }
.btn-action-outline:hover,
.btn-action-filled:hover { transform: translateY(-1px); }
.btn-action-filled:hover { background: var(--green-dark); box-shadow: 0 8px 24px rgba(68, 214, 44, .35); }
.btn-action-outline svg,
.btn-action-filled svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 960px) {
  .jaga-flow-page .checkout-main { padding: 64px 0 88px; }
  .jaga-flow-page .checkout-header { margin-bottom: 48px; }
}
@media (max-width: 680px) {
  .jaga-flow-page .checkout-form,
  .steps-card { padding: 1.75rem; }
  .receipt-summary {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 20px;
  }
  .form-grid,
  .radio-card-group { grid-template-columns: 1fr; }
  .form-grid { gap: 0.85rem; }
  .radio-card-group { row-gap: 0.85rem; }
  .form-field-full { grid-column: 1; }
  .ps-content { padding: 64px 0 72px; }
  .action-row { flex-direction: column; }
}
@media (max-width: 480px) {
  .flow-main,
  .jaga-flow-page .checkout-main,
  .ps-content { width: calc(100vw - 32px); }
  .receipt-summary {
    grid-template-columns: 1fr;
  }
  .jaga-flow-page .checkout-form,
  .steps-card { border-radius: 16px; padding: 24px 18px; }
  .jaga-flow-page .checkout-main { padding: 48px 0 64px; }
  .jaga-flow-page .checkout-header { margin-bottom: 36px; }
  .jaga-flow-page .lp-form-section-title { align-items: flex-start; }
  .success-title { font-size: 29px; }
  .step-row { gap: 12px; }
}
@media print {
  nav,
  footer,
  .action-row { display: none !important; }
  .payment-successful-page { background: #fff !important; }
}
