:root {
  --blue: #003e7b;
  --blue-dark: #002347;
  --blue-mid: #0d5cab;
  --blue-light: #3d7ab8;
  --blue-soft: #f0f5fb;
  --blue-tint: #e8f0f8;
  --blue-glow: rgba(0, 62, 123, 0.12);
  --yellow: #faaa16;
  --yellow-bright: #ffc233;
  --yellow-dark: #d99008;
  --yellow-soft: #fff8e8;
  --ink: #0c1824;
  --ink-soft: #1e2d3d;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --green: #0d9f5f;
  --green-soft: #ecfdf3;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --white: #ffffff;
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm:
    0 2px 8px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-lg:
    0 20px 50px rgba(15, 23, 42, 0.1), 0 8px 20px rgba(15, 23, 42, 0.06);
  --shadow-card:
    0 0 0 1px rgba(15, 23, 42, 0.04), 0 12px 40px rgba(0, 62, 123, 0.08);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.2s var(--ease);
  --header-h: 76px;
  --trust-h: 46px;
  --header-total: calc(var(--header-h) + var(--trust-h));
  --max-w: 920px;
  --max-w-landing: 1240px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--ink);
  background: #f6f8fc;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background-color: #f0f5fb;
  background-image: url("../images/abstract-bg.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: scroll;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: var(--blue-mid);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--yellow-dark);
}

/* ══════════════ HEADER ══════════════ */
.funnel-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-xs);
}

.funnel-header .bar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 max(32px, env(safe-area-inset-right, 0px)) 0
    max(32px, env(safe-area-inset-left, 0px));
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.funnel-header .brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.funnel-header .brand img {
  height: 48px;
  width: auto;
  transition: opacity var(--transition);
}

.funnel-header .brand:hover img {
  opacity: 0.85;
}
.funnel-header .brand.dragon img {
  height: 52px;
}

.funnel-header .help {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: right;
}

.funnel-header .help-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-soft);
  border: 1px solid var(--blue-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003E7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px;
  font-size: 0;
}

.funnel-header .help-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

.funnel-header .help-text span {
  display: block;
  color: var(--blue);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
  margin-top: 2px;
}

.funnel-header .help-cta {
  text-decoration: none;
  padding: 8px 16px 8px 10px;
  border-radius: 100px;
  border: 1.5px solid var(--line);
  background: var(--white);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.funnel-header .help-cta:hover {
  border-color: var(--blue-tint);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.funnel-header .help-cta:hover .help-text span {
  color: var(--blue-mid);
}

/* ══════════════ TRUST STRIP ══════════════ */
.trust-strip {
  background: #4f9e97;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip .inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 max(32px, env(safe-area-inset-right, 0px)) 0
    max(32px, env(safe-area-inset-left, 0px));
  min-height: var(--trust-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: white;
  padding: 10px 24px;
  position: relative;
}

.trust-strip span + span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 18px;
  background: var(--line);
}

.trust-strip span::after {
  content: "";
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  order: -1;
  filter: invert(3) brightness(8.5);
}

.trust-strip .t-secure::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003E7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}

.trust-strip .t-regulated::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003E7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
}

.trust-strip .t-free::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003E7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E");
}

@media (max-width: 640px) {
  .trust-strip .inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 10px 12px;
    min-height: 0;
    justify-content: stretch;
  }

  .trust-strip span {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    font-size: 9px;
    line-height: 1.25;
    padding: 2px 4px;
    gap: 5px;
    white-space: normal;
    flex: none;
  }

  .trust-strip span + span::before {
    display: none;
  }

  .trust-strip span::after {
    width: 18px;
    height: 18px;
    order: -1;
  }

  .funnel-header .bar {
    padding: 0 16px;
    gap: 12px;
    height: 64px;
  }

  .funnel-header .brand img {
    height: 40px;
  }

  .funnel-header .brand.dragon img {
    height: 42px;
  }

  .funnel-shell,
  main.funnel-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-landing main.funnel-shell {
    padding-top: 20px;
    padding-bottom: 36px;
  }

  .page-step main.funnel-shell {
    padding-top: 16px;
    padding-bottom: 32px;
  }

  /* Mobile step nav — slim progress bar only */
  .page-step .step-shell {
    gap: 12px;
  }

  .page-step .step-sidebar {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 2px 4px;
    border-radius: 0;
  }

  .page-step .step-mobile-header {
    display: block;
  }

  .page-step .step-mobile-progress {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    padding: 0 2px;
  }

  .page-step .step-mobile-progress-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .page-step .step-mobile-progress-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--blue-dark);
  }

  .page-step .step-track,
  .page-step .sidebar-secure {
    display: none;
  }
}

/* ══════════════ SHELL ══════════════ */
.funnel-shell {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px max(24px, env(safe-area-inset-right, 0px)) 56px
    max(24px, env(safe-area-inset-left, 0px));
  width: 100%;
  flex: 1;
  min-width: 0;
}

main.funnel-shell {
  padding-top: 36px;
}

.page-landing main.funnel-shell {
  max-width: var(--max-w-landing);
  padding-top: 40px;
  padding-bottom: 64px;
}

.page-step main.funnel-shell {
  max-width: 1180px;
  padding-top: 32px;
  padding-bottom: 48px;
}

/* ══════════════ STATS ══════════════ */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 32px;
}

.stats .stat {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 18px 20px;
  text-align: center;
  overflow: hidden;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.stats .stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-light) 100%);
}

.stats .stat:nth-child(2)::before {
  background: linear-gradient(90deg, var(--yellow-dark) 0%, var(--yellow) 100%);
}

.stats .stat:nth-child(3)::before {
  background: linear-gradient(90deg, var(--green) 0%, #34d399 100%);
}

.stats .stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--blue-tint);
}

.stats .stat .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.04em;
  line-height: 1;
}

.stats .stat:nth-child(2) .num {
  color: var(--yellow-dark);
}

.stats .stat:nth-child(3) .num {
  color: var(--green);
}

.stats .stat .lbl {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.4;
  font-weight: 500;
}

@media (max-width: 600px) {
  .stats {
    grid-template-columns: 1fr;
  }
  .stats .stat {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 4px 16px;
    text-align: left;
    padding: 18px 20px;
    align-items: center;
  }
  .stats .stat .num {
    font-size: 1.5rem;
  }
  .stats .stat .lbl {
    margin-top: 0;
    grid-column: 2;
  }
}

/* ══════════════ LISTS & NOTICES ══════════════ */
.lead-list {
  margin: 0 0 28px;
  background: var(--blue-soft);
  border-radius: var(--radius);
  padding: 8px 20px;
  border: 1px solid var(--blue-tint);
}

.lead-list li {
  list-style: none;
  position: relative;
  padding: 14px 0 14px 32px;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
  border-bottom: 1px solid rgba(0, 62, 123, 0.08);
}

.lead-list li:last-child {
  border-bottom: none;
}

.lead-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: var(--blue);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 6l2.5 2.5 4.5-4.5' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}

.notice {
  background: var(--yellow-soft);
  border: 1px solid #f5dfa0;
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-size: 13px;
  color: #5c4a12;
  margin: 40px 0 0 0;
  line-height: 1.65;
  position: relative;
  padding-left: 52px;
  text-align: justify;
}

.notice::before {
  content: "i";
  position: absolute;
  left: 18px;
  top: 18px;
  width: 24px;
  height: 24px;
  background: var(--yellow);
  color: var(--blue-dark);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  font-style: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.notice strong {
  color: var(--blue);
  font-weight: 700;
}
.notice--spaced {
  margin-top: 28px;
}

/* ══════════════ FORMS ══════════════ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 24px;
}

.form-grid .full {
  grid-column: 1 / -1;
}
.form-grid--spaced {
  margin-top: 16px;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }

  .agreements-found .ag {
    flex-direction: column;
    align-items: flex-start;
    /* gap: 10px; */
    padding: 16px 18px;
  }

  .agreements-found .ag .amt {
    align-self: flex-start;
  }

  .amount-box {
    padding: 28px 20px;
    margin: 20px 0;
  }

  .fee-table-wrap,
  .step-form-body {
    -webkit-overflow-scrolling: touch;
  }

  .fee-table {
    font-size: 12px;
    min-width: 520px;
  }

  .fee-table th,
  .fee-table td {
    padding: 10px 12px;
  }

  .dropzone {
    padding: 32px 18px;
  }

  .notice {
    padding: 16px 16px 16px 44px;
    font-size: 12px;
    margin: 10px 0 0 0;
  }

  .notice::before {
    left: 14px;
    top: 16px;
    width: 20px;
    height: 20px;
    font-size: 12px;
  }
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.field label .opt {
  color: var(--muted);
  font-weight: 500;
}

.field label .req {
  color: #c0392b;
  font-weight: 700;
}
.fee-table-wrap {
  overflow: auto;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  appearance: none;
  min-height: 51px;
}

.field input::placeholder {
  color: var(--muted-light);
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #cbd5e1;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-glow);
}

.field input[readonly] {
  background: var(--line-soft);
  color: var(--muted);
  cursor: default;
}
.full-width {
  grid-column: 1 / -1;
}
.field select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003E7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  cursor: pointer;
}

.field input.uppercase,
.uppercase {
  text-transform: uppercase;
}

.field .err {
  color: var(--red);
  font-size: 12px;
  margin-top: 4px;
  display: none;
  font-weight: 600;
  width: 100%;
}

.field.full.has-error .err,
.field.has-error .err {
  display: block;
}

.field.has-error .field-input-wrap input,
.field.has-error .field-input input,
.field.has-error .field-input select,
.field.has-error .field-input textarea,
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--red);
  background: var(--red-soft);
}

.field.has-error select {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003E7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"),
    linear-gradient(var(--red-soft), var(--red-soft));
  background-repeat: no-repeat;
  background-position:
    right 12px center,
    0 0;
  background-size:
    18px,
    100% 100%;
}

.section-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--blue);
  margin: 36px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--blue-tint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 16px;
  background: var(--yellow);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-title:first-child {
  margin-top: 0;
}

/* ══════════════ CONSENT ══════════════ */
.consent {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  flex-wrap: wrap;
}

.consent:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-xs);
}

.consent input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--blue);
  cursor: pointer;
}

.consent label {
  cursor: pointer;
  color: var(--ink-soft);
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  text-align: justify;
}

.consent--stacked {
  align-items: flex-start;
}

.consent-save-note {
  flex-basis: 100%;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--green);
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity var(--transition);
}

.consent-save-note.show {
  opacity: 1;
  height: auto;
}

.consent-save-note--box {
  color: #fff;
  background: var(--green);
  border-radius: 10px;
  padding: 0 14px;
  margin-top: 10px;
  text-align: center;
  box-sizing: border-box;
}

.consent-save-note--box.show {
  padding: 10px 14px;
}

.consent-list {
  margin: 10px 0 0;
  padding-left: 1.2em;
  list-style: disc;
  text-align: justify;
}

.consent-list li {
  margin: 0 0 8px;
}

.consent-list li:last-child {
  margin-bottom: 0;
}
.consent.has-error {
  border-color: var(--red);
  background: var(--red-soft);
}

.consent-error {
  display: none;
  flex-basis: 100%;
  color: var(--red);
  font-size: 12px;
  margin-top: 4px;
  font-weight: 600;
  line-height: 1.35;
}

.consent.has-error .consent-error {
  display: block;
}

/* ══════════════ BUTTONS ══════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 36px;
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  color: var(--blue-dark);
  background: linear-gradient(
    180deg,
    var(--yellow-bright) 0%,
    var(--yellow) 100%
  );
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    filter var(--transition);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow:
    0 4px 0 #c8870a,
    0 6px 20px rgba(250, 170, 22, 0.35);
  position: relative;
  top: 0;
}

/* Agreements list styling (individual items + total) */
.agreements-found {
  display: flex;
  flex-direction: column;
  /* gap: 10px; */
  margin-top: 6px;
}
.agreements-found .ag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 7px 18px;
  box-shadow: var(--shadow-xs);
}
.agreements-found .ag .name {
  font-weight: 700;
  color: var(--ink-soft);
}
.agreements-found .ag .reg {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}
.agreements-found .ag .amt {
  background: var(--green-soft);
  color: var(--green);
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 999px;
  min-width: 110px;
  text-align: right;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.agreements-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 12px 16px;
  background: linear-gradient(
    90deg,
    rgba(13, 159, 95, 0.04),
    rgba(13, 159, 95, 0.02)
  );
  border-radius: 12px;
  border: 1px solid rgba(13, 159, 95, 0.08);
}
.agreements-total .total-label {
  color: var(--muted);
  font-weight: 700;
}
.agreements-total .total-amt {
  color: var(--green);
  font-weight: 900;
  font-size: 1.25rem;
}

@media (max-width: 600px) {
  .agreements-found .ag {
    padding: 7px 14px;
  }
  .agreements-found .ag .amt {
    min-width: 88px;
  }
  .agreements-total .total-amt {
    font-size: 1.05rem;
  }
}

/* Agreements list styling (individual items + total) */
.agreements-found {
    display: flex;
    flex-direction: column;
    /* gap: 10px; */
    margin-top: 6px;
}
.agreements-found .ag {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 7px 18px;
    box-shadow: var(--shadow-xs);
}
.agreements-found .ag .name {
    font-weight: 700;
    color: var(--ink-soft);
}
.agreements-found .ag .reg {
    font-size: 13px;
    color: var(--muted);
    margin-top: 6px;
}
.agreements-found .ag .amt {
    background: var(--green-soft);
    color: var(--green);
    font-weight: 800;
    padding: 8px 12px;
    border-radius: 999px;
    min-width: 110px;
    text-align: right;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}
.agreements-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding: 12px 16px;
    background: linear-gradient(90deg, rgba(13,159,95,0.04), rgba(13,159,95,0.02));
    border-radius: 12px;
    border: 1px solid rgba(13,159,95,0.08);
}
.agreements-total .total-label {
    color: var(--muted);
    font-weight: 700;
}
.agreements-total .total-amt {
    color: var(--green);
    font-weight: 900;
    font-size: 1.25rem;
}

@media (max-width: 600px) {
    .agreements-found .ag { padding: 7px 14px; }
    .agreements-found .ag .amt { min-width: 88px; }
    .agreements-total .total-amt { font-size: 1.05rem; }
}

.btn:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow:
    0 6px 0 #c8870a,
    0 10px 28px rgba(250, 170, 22, 0.4);
  color: var(--blue-dark);
}

.btn:active {
  transform: translateY(2px);
  box-shadow:
    0 2px 0 #c8870a,
    0 4px 12px rgba(250, 170, 22, 0.3);
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 4px 0 #c8870a;
}

.btn.block {
  width: 100%;
  padding: 18px 36px;
  font-size: 16px;
}

.btn.ghost {
  background: var(--white);
  color: var(--blue);
  border: 2px solid var(--line);
  box-shadow: none;
  text-transform: none;
  font-weight: 700;
  top: 0;
}

.btn.ghost:hover {
  background: var(--blue-soft);
  border-color: var(--blue);
  transform: none;
  box-shadow: var(--shadow-xs);
  filter: none;
}

.btn-row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  flex-wrap: wrap;
}

.btn-row.end {
  justify-content: flex-end;
}
.btn-row.center {
  justify-content: center;
}

/* ══════════════ LENDER REPEATER ══════════════ */
.lender-row {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 14px;
  margin-bottom: 12px;
  padding: 20px;
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

@media (max-width: 600px) {
  .lender-row {
    grid-template-columns: 1fr;
  }
}

.lender-input-wrap {
  position: relative;
      display: flex;
    align-items: center;
    gap: 10px;
}

.lender-input-wrap .choices{
  flex: 1;
}

.lender-input-wrap input,
.lender-input-wrap select {
  padding-right: 46px;
}

.remove-lender {
  width: 24px;
  height: 24px;
  flex: none;
  border: 1.5px solid var(--red);
  background: var(--white);
  border-radius: 999px;
  color: var(--red);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  /* position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%); */
}

.remove-lender:hover {
  background: var(--red-soft);
  border-color: var(--red);
}

.add-lender {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--blue);
  border: 2px dashed var(--blue-light);
  border-radius: var(--radius-sm);
  padding: 13px 22px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 6px;
}

.add-lender:hover {
  background: var(--blue-soft);
  border-style: solid;
  border-color: var(--blue);
}

/* ══════════════ CHOICES.JS ══════════════ */
.choices__inner {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  min-height: 52px;
  padding: 8px 12px;
  font-size: 15px;
  background: var(--white);
}

.choices.is-focused .choices__inner {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-glow);
}

.choices__list--dropdown {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  margin-top: 6px;
  overflow: hidden;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted {
  background: var(--blue-soft);
}

/* ══════════════ RESULTS ══════════════ */
.result-hero {
  text-align: center;
  /* padding: 12px 0 24px; */
}

.result-hero .badge {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  margin-bottom: 20px;
}

.result-hero.pass .badge {
  background: var(--green-soft);
  color: var(--green);
  box-shadow: 0 0 0 6px rgba(13, 159, 95, 0.12);
}

.result-hero.fail .badge {
  background: var(--red-soft);
  color: var(--red);
  font-size: 30px;
  font-weight: 800;
  box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.1);
}

.result-hero h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: var(--blue);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.amount-box {
  background: linear-gradient(
    135deg,
    var(--blue-dark) 0%,
    var(--blue) 60%,
    var(--blue-mid) 100%
  );
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
  margin: 28px 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 62, 123, 0.28);
}

.amount-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 90% 10%,
    rgba(250, 170, 22, 0.2) 0%,
    transparent 45%
  );
}

.amount-box::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--yellow);
}

.amount-box > * {
  position: relative;
  z-index: 1;
}

.amount-box .small {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
}

.amount-box .big {
  font-size: clamp(2.25rem, 7vw, 3.25rem);
  font-weight: 800;
  color: var(--yellow-bright);
  margin: 10px 0;
  letter-spacing: -0.04em;
  line-height: 1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.agreements-found {
  margin: 24px 0;
}

.agreements-found .ag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 7px 22px;
  margin-bottom: 10px;
  background: var(--white);
  transition:
    box-shadow var(--transition),
    border-color var(--transition);
}

.agreements-found .ag:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--blue-tint);
}

.agreements-found .ag .name {
  font-weight: 700;
  color: var(--blue);
  font-size: 15px;
}
.agreements-found .ag .reg {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.agreements-found .ag .amt {
  font-weight: 800;
  color: var(--green);
  font-size: 1.125rem;
  white-space: nowrap;
  background: var(--green-soft);
  padding: 6px 12px;
  border-radius: var(--radius-xs);
}

/* ══════════════ YES/NO TOGGLE ══════════════ */
.yesno-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 14px 0 20px;
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.yesno-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition);
}

.yesno-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.yesno-option:hover {
  color: var(--blue);
}

.yesno-option.is-active {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.yesno-option.is-active:hover {
  color: var(--white);
}

@media (max-width: 480px) {
  .yesno-toggle {
    display: flex;
  }
  .yesno-option {
    flex: 1;
  }
}

.text-center {
  text-align: center;
}
.text-muted {
  color: var(--muted);
}
.text-body {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.65;
  text-align: justify;
}
.text-body--spaced {
  margin-top: 12px;
}
.text-constrained {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.text-constrained--wide {
  max-width: 594px;
  margin: 0 auto 31px;
}

/* ══════════════ FEE AGREEMENT MODAL (centered + dark overlay) ══════════════ */
body.funnel-modal-open {
  overflow: hidden !important;
}

.funnel-modal[hidden] {
  display: none !important;
}

.funnel-modal,
.funnel-modal.funnel-modal--fullscreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 10050 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.funnel-modal__backdrop {
  display: block;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.funnel-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(90vh, 900px);
  max-height: min(90dvh, 900px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.funnel-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex: none;
  padding: 24px 24px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
}

.funnel-modal__header .form-block-head {
  margin: 0;
  max-width: none;
  flex: 1;
}

.funnel-modal__header .form-block-head h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  margin: 0 0 6px;
  color: var(--blue-dark, #0b2d52);
}

.funnel-modal__header .form-block-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.funnel-modal__close {
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color var(--transition),
    background var(--transition),
    color var(--transition);
}

.funnel-modal__close:hover {
  border-color: #cbd5e1;
  background: var(--blue-soft);
  color: var(--blue);
}

.funnel-modal__body {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px 24px 20px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.funnel-modal__body .text-body {
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 18px;
  color: var(--ink);
  text-align: justify;
}

.funnel-modal__body .form-block-head--fee {
  margin: 0 0 12px;
}

.funnel-modal__body .form-block-head--fee h3 {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.35;
  margin: 0;
  color: var(--blue-dark, #0b2d52);
  text-align: justify;
}

.funnel-modal__body .fee-table-wrap {
  margin: 0 0 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
}

.funnel-modal__body .fee-table {
  margin: 0;
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
}

.funnel-modal__body .fee-table thead th {
  background: var(--blue-dark, #0b2d52);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 14px;
  text-align: left;
  white-space: nowrap;
}

.funnel-modal__body .fee-table tbody td {
  padding: 12px 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.funnel-modal__body .fee-table tbody tr:nth-child(even) {
  background: #f7fafc;
}

.funnel-modal__body .muted-note {
  text-align: center;
  margin: 4px 0 0;
  font-size: 13px;
}

.funnel-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex: none;
  padding: 14px 24px 20px;
  border-top: 1px solid var(--line-soft);
  background: #fff;
}

@media (max-width: 768px) {
  .funnel-modal,
  .funnel-modal.funnel-modal--fullscreen {
    align-items: flex-end;
    padding: 0;
  }

  .funnel-modal__dialog {
    width: 100%;
    max-height: 92dvh;
    border-radius: 18px 18px 0 0;
  }

  .funnel-modal__header {
    padding: 16px 14px 12px;
  }

  .funnel-modal__close {
    width: 38px;
    height: 38px;
  }

  .funnel-modal__body {
    padding: 12px 14px 16px;
  }

  .funnel-modal__body .fee-table thead th,
  .funnel-modal__body .fee-table tbody td {
    padding: 10px 8px;
    font-size: 12px;
  }

  .funnel-modal__footer {
    padding: 12px 14px 16px;
  }

  .funnel-modal__footer .btn {
    width: 100%;
  }
}

.link-btn {
  display: inline;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  color: var(--blue-mid);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.link-btn:hover {
  color: var(--blue);
}

/* ══════════════ FEE TABLE ══════════════ */
.fee-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 18px 0;
  font-size: 13.5px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}

.fee-table th,
.fee-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px 18px;
  text-align: left;
}

.fee-table tr:last-child td {
  border-bottom: none;
}

.fee-table th {
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.fee-table tr:nth-child(even) td {
  background: var(--blue-soft);
}

/* ══════════════ SIGNATURE ══════════════ */
.sign-wrap {
  margin: 18px 0;
}

.sign-pad {
  position: relative;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  height: 220px;
  width: 100%;
  overflow: hidden;
  touch-action: none;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.04);
}

.sign-pad:hover,
.sign-pad:focus-within {
  border-color: var(--blue-light);
  box-shadow:
    inset 0 2px 6px rgba(15, 23, 42, 0.04),
    0 0 0 4px var(--blue-glow);
}

.sign-pad.has-error {
  border-color: var(--red);
  background: var(--red-soft);
  box-shadow: none;
}

.sign-pad canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
  border-radius: var(--radius);
  touch-action: none;
}

.sign-pad .hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--muted-light);
  font-size: 14px;
  pointer-events: none;
  font-weight: 500;
}

.sign-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.sign-tools .clear {
  background: none;
  border: none;
  color: var(--red);
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  padding: 4px 0;
}

.sign-error {
  display: none;
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
}

/* ══════════════ UPLOAD ══════════════ */
.dropzone {
  border: 2px dashed var(--blue-light);
  border-radius: var(--radius-lg);
  background: var(--blue-soft);
  padding: 44px 28px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}

.dropzone:hover,
.dropzone.drag {
  background: var(--blue-tint);
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
}

.dropzone .icon {
  font-size: 32px;
  margin-bottom: 8px;
  opacity: 0.7;
}
.dropzone .big {
  font-weight: 800;
  color: var(--blue);
  font-size: 15px;
}
.dropzone .small {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 8px;
}

.file-list {
  margin-top: 18px;
}

.file-list .f {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}

.file-list .f .ok {
  color: var(--green);
  font-weight: 800;
  font-size: 12px;
  background: var(--green-soft);
  padding: 4px 10px;
  border-radius: 100px;
}

.muted-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 18px;
  line-height: 1.6;
  text-align: center;
}

.muted-note a {
  text-decoration: underline;
  color: var(--blue-mid);
}

.text-body a,
.consent label a,
.consent-list a,
.notice a {
  text-decoration: underline;
}

/* ══════════════ FOOTER ══════════════ */
.funnel-footer {
  margin-top: auto;
  background: linear-gradient(
    125deg,
    var(--blue-dark) 0%,
    var(--blue) 50%,
    var(--blue-mid) 100%
  );
  /* border-top: 1px solid var(--line); */
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.04);
}

.footer-bar {
  max-width: 1140px;
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
}

.footer-brand img {
  height: 44px;
  width: auto;
  flex-shrink: 0;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.footer-brand-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.02em;
}

.footer-brand-ltd {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-mid);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 2px;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex: 1;
}

.footer-nav a {
  color: white;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  transition: color var(--transition);
  white-space: nowrap;
}

.footer-nav a:hover {
  color: var(--yellow);
}

.footer-sep {
  color: #b8c8d9;
  font-size: 14px;
  font-weight: 300;
  user-select: none;
}

.footer-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 2px;
  flex-shrink: 0;
  min-width: 0;
}

.footer-copy span {
  font-size: 12px;
  color: #c7c7c7;
  line-height: 1.45;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .footer-bar {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    padding: 24px 20px;
    gap: 20px;
  }

  .footer-brand {
    width: 100%;
    justify-content: center;
  }

  .footer-nav {
    width: 100%;
    flex: none;
  }

  .footer-copy {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .footer-copy span {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .funnel-footer .footer-bar {
    padding: 20px 16px;
  }

  .footer-brand img {
    height: 38px;
  }

  .footer-brand-name {
    font-size: 14px;
  }

  .footer-nav a {
    font-size: 13px;
  }

  .funnel-footer.dragon-footer .dragon-footer-inner {
    padding: 36px 20px 28px;
    gap: 22px;
  }

  .funnel-footer.dragon-footer .dragon-footer-brand img {
    max-height: 56px;
    max-width: 240px;
  }

  .funnel-footer.dragon-footer .dragon-footer-legal,
  .funnel-footer.dragon-footer .dragon-footer-copy {
    font-size: 12px;
  }

  .funnel-footer.dragon-footer .dragon-footer-contact {
    flex-direction: column;
    gap: 14px;
  }

  .funnel-footer.dragon-footer .dragon-footer-contact-link {
    font-size: 13px;
  }
}

/* Dragon Corporate footer */
.funnel-footer.dragon-footer {
  background: #222b64;
  box-shadow: none;
  color: #ffffff;
}

.funnel-footer.dragon-footer .dragon-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 32px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 26px;
  width: 100%;
  box-sizing: border-box;
}

.funnel-footer.dragon-footer .dragon-footer-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-decoration: none;
}

.funnel-footer.dragon-footer .dragon-footer-brand img {
  display: block;
  width: auto;
  height: auto;
  max-width: 300px;
  max-height: 70px;
  margin: 0 auto;
}

.funnel-footer.dragon-footer .dragon-footer-legal {
  margin: 0;
  max-width: 740px;
  font-size: 13px;
  line-height: 1.75;
  color: #ffffff;
  font-weight: 400;
}

.funnel-footer.dragon-footer .dragon-footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 32px;
  width: 100%;
}

.funnel-footer.dragon-footer .dragon-footer-contact-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-transform: uppercase;
}

.funnel-footer.dragon-footer .dragon-footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}

.funnel-footer.dragon-footer .dragon-footer-contact-link:hover {
  color: #4f9e97;
}

.funnel-footer.dragon-footer .dragon-footer-contact-link img {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.funnel-footer.dragon-footer .dragon-footer-copy {
    margin: 0;
    font-size: 13px;
    color: #ffffff;
    line-height: 1.5;
    text-align: center;
    padding: 14px;
    border-top: 1px solid #f0f5fb24;
}

/* ══════════════ LOADER ══════════════ */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 35, 71, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
  color: var(--white);
}

.loader-overlay.show {
  display: flex;
}

.loader-overlay .spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin-bottom: 22px;
}

.loader-overlay h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

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

/* ══════════════ ALERTS ══════════════ */
.alert {
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.alert.error {
  background: var(--red-soft);
  border: 1px solid #fecaca;
  color: var(--red);
}

.alert.success {
  background: var(--green-soft);
  border: 1px solid #a7f3d0;
  color: var(--green);
}

.alert--spaced {
  margin-top: 20px;
}

/* ══════════════ UTILITIES ══════════════ */
.hint-text {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 18px;
  line-height: 1.55;
}

.hint-text--tight {
  margin-bottom: 8px;
}

/* ══════════════ LANDING PAGE (split layout) ══════════════ */
.landing-page {
  display: grid;
  /* grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr); */
  gap: 38px;
  align-items: start;
  min-width: 0;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  /* padding: 48px 0px 0px; */
  /* background: #eef2f7; */
}

.landing-aside,
.form-card,
.step-main {
  min-width: 0;
}
.main-form-card {
    max-width: 630px;
}
.landing-aside {
  align-self: start;
  position: sticky;
  top: calc(var(--header-total, 90px) + 22px);
}

.landing-aside {
    align-self: start;
    position: sticky;
    top: calc(var(--header-total, 90px) + 22px);
}

/* Step pages — sidebar + form with gap between */
.step-shell {
  display: grid;
  grid-template-columns: 272px 1fr;
  gap: 32px;
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
  align-items: start;
}

.step-mobile-progress {
  display: none;
}

.step-mobile-header {
  display: none;
}

.step-mobile-bar {
  height: 5px;
  background: #e2e8f0;
  border-radius: 100px;
  overflow: hidden;
}

.step-mobile-bar-fill {
  display: block;
  height: 100%;
  width: calc(var(--step-progress, 0.166) * 100%);
  background: linear-gradient(90deg, var(--blue) 0%, var(--green) 100%);
  border-radius: 100px;
  transition: width 0.35s var(--ease);
}

/* Sidebar stepper */
.step-sidebar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.03),
    0 8px 32px rgba(0, 62, 123, 0.08),
    0 2px 8px rgba(15, 23, 42, 0.04);
  padding: 28px 20px 24px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: sticky;
  top: calc(var(--header-total) + 24px);
}

.step-track {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  position: relative;
}

.step-track::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  border-left: 2px dashed #cbd5e1;
}

.sstep {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  position: relative;
  z-index: 1;
}

.sstep-marker {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--white);
  border: 2px solid #cbd5e1;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px;
}

.sstep-check {
  font-size: 14px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.sstep.done .sstep-marker {
  background-color: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 4px 12px rgba(0, 62, 123, 0.25);
}

.sstep.active .sstep-marker {
  background-color: #f97316;
  border-color: #f97316;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E");
}

.sstep.upcoming .sstep-marker--start {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='5 3 19 12 5 21 5 3'/%3E%3C/svg%3E");
}

.sstep.upcoming .sstep-marker--details {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.sstep.upcoming .sstep-marker--agreements {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3C/svg%3E");
}

.sstep.upcoming .sstep-marker--results {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='20' x2='18' y2='10'/%3E%3Cline x1='12' y1='20' x2='12' y2='4'/%3E%3Cline x1='6' y1='20' x2='6' y2='14'/%3E%3C/svg%3E");
}

.sstep.upcoming .sstep-marker--authority {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2'/%3E%3Cpath d='M16 7V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2'/%3E%3C/svg%3E");
}

.sstep.upcoming .sstep-marker--done {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E");
}

.sstep-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-top: 2px;
  min-width: 0;
}

.sstep-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted-light);
  letter-spacing: 0.06em;
}

.sstep-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  line-height: 1.2;
}

.sstep-status {
  font-size: 11px;
  font-weight: 700;
  margin-top: 2px;
}

.sstep.done .sstep-status {
  color: var(--green);
}

.sstep.active .sstep-status {
  color: #ea580c;
}

.sstep.active .sstep-label {
  color: var(--blue-dark);
}

.sstep.upcoming .sstep-status {
  color: var(--muted-light);
}

.sidebar-secure {
  margin-top: 20px;
  padding: 14px;
  background: #f1f5f9;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.sidebar-secure-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px;
}

.sidebar-secure-text strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  line-height: 1.4;
  margin-bottom: 4px;
}

.sidebar-secure-text a {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
}

.sidebar-secure-text a:hover {
  text-decoration: underline;
}

/* Step main panel */
.step-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.03),
    0 16px 48px rgba(0, 62, 123, 0.1),
    0 4px 16px rgba(15, 23, 42, 0.05);
  /* `clip` crops the head gradient to the rounded corners exactly like
     `hidden` did, but without creating a scrollport — which is what lets
     `.form-actions--sticky` inside actually stick. `hidden` stays first as
     the fallback for browsers without `overflow: clip` (Safari < 16). */
  overflow: hidden;
  overflow: clip;
}

.step-form-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 32px 36px;
  background: linear-gradient(
    125deg,
    var(--blue-dark) 0%,
    var(--blue) 55%,
    var(--blue-mid) 100%
  );
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.step-form-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 80% at 100% 0%,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 55%
  );
  pointer-events: none;
}

.step-form-head::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 24px;
  background: #f4f7fb;
  border-radius: 24px 24px 0 0;
  z-index: 0;
}

.step-form-head-shield {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 4px 16px rgba(13, 159, 95, 0.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpolyline points='9 12 11 14 15 10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 26px;
  position: relative;
  z-index: 1;
}

.step-form-head-text {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.step-form-head h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.step-form-head p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
  max-width: 54ch;
}

.step-form-head-pattern {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 45%;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.12) 1px,
    transparent 1px
  );
  background-size: 14px 14px;
  opacity: 0.5;
  pointer-events: none;
}

.step-form-body {
  padding: 8px 28px 28px;
  background: #f4f7fb;
}

/* Form blocks */
.form-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
}

.form-block:last-of-type {
  margin-bottom: 24px;
}

.form-block-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.form-block-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--blue-soft);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px;
}

.form-block-head--person .form-block-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003E7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.form-block-head--address .form-block-icon {
  background-color: var(--green-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d9f5f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E");
}

.form-block-head--agreements .form-block-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003E7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3C/svg%3E");
}

.form-block-head--check .form-block-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003E7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpolyline points='9 12 11 14 15 10'/%3E%3C/svg%3E");
}

.form-block-head--results .form-block-icon {
  background-color: var(--green-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d9f5f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='20' x2='18' y2='10'/%3E%3Cline x1='12' y1='20' x2='12' y2='4'/%3E%3Cline x1='6' y1='20' x2='6' y2='14'/%3E%3C/svg%3E");
}

 

.form-block-head--consent .form-block-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003E7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11l3 3L22 4'/%3E%3Cpath d='M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11'/%3E%3C/svg%3E");
}

.form-block-head--sign .form-block-icon {
  background-color: var(--green-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d9f5f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E");
}

.form-block-head--upload .form-block-icon {
  background-color: var(--green-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d9f5f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='17 8 12 3 7 8'/%3E%3Cline x1='12' y1='3' x2='12' y2='15'/%3E%3C/svg%3E");
}

.form-block-head--info .form-block-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003E7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
}

.form-block .hint-text {
  margin-bottom: 16px;
}

.form-block .notice {
  margin: 0 0 16px;
}

.form-block .consent + .consent {
  margin-top: 12px;
}

.form-block .text-body {
  margin-bottom: 16px;
}

.form-block .text-body:last-child,
.form-block .text-body.text-body--spaced:last-child {
  margin-bottom: 0;
}

.form-block .fee-table-wrap {
  margin: 16px 0 12px;
}

.form-block .muted-note {
  margin-bottom: 0;
}

.form-block .amount-box {
  margin: 16px 0 0;
}

.form-block .result-hero {
  padding: 0;
}

.form-block .result-hero .badge {
  margin-bottom: 12px;
}

.form-block .result-hero--compact .badge {
  width: 72px;
  height: 72px;
  font-size: 30px;
  margin-bottom: 16px;
}

.form-block .agreements-found {
  margin: 0;
}

.form-block .dropzone {
  margin-top: 8px;
  margin-bottom: 12px;
}

.form-block .file-list {
  margin-top: 0;
}

.form-block .sign-wrap {
  margin-bottom: 20px;
}

.step-form-body > .alert {
  margin-bottom: 16px;
}

.field-input input[readonly] {
  background: #f1f5f9;
  cursor: default;
  color: var(--muted);
}

.field-input input[readonly]:hover,
.field-input input[readonly]:focus {
  background: #f1f5f9;
  border-color: #dce3ec;
  box-shadow: none;
}

.form-block-head h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 2px;
  letter-spacing: -0.02em;
}

.form-block-head p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* Field inputs with left icons */
.step-form-body .field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 7px;
}

.field-input {
  position: relative;
}

.field-input::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
}

.field-input input,
.field-input select {
  width: 100%;
  padding: 14px 16px 14px 44px;
  font-size: 15px;
  font-family: inherit;
  border: 1.5px solid #dce3ec;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  color: var(--ink);
  min-height: 52px;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
  appearance: none;
}

.field-input select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003E7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}

.field-input--user::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003E7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.field-input--email::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003E7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
}

.field-input--phone::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003E7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.field-input--date::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003E7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}

.field-input--home::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003E7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E");
}

.field-input--building::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003E7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='2' width='16' height='20' rx='2'/%3E%3Cpath d='M9 22v-4h6v4M8 6h.01M16 6h.01M12 6h.01M12 10h.01M16 10h.01M8 10h.01M8 14h.01M12 14h.01M16 14h.01'/%3E%3C/svg%3E");
}

.field-input--map::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003E7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.field-input--select::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003E7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='8' y1='6' x2='21' y2='6'/%3E%3Cline x1='8' y1='12' x2='21' y2='12'/%3E%3Cline x1='8' y1='18' x2='21' y2='18'/%3E%3Cline x1='3' y1='6' x2='3.01' y2='6'/%3E%3Cline x1='3' y1='12' x2='3.01' y2='12'/%3E%3Cline x1='3' y1='18' x2='3.01' y2='18'/%3E%3C/svg%3E");
}

.form-block--address .field-input--home::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d9f5f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E");
}

.form-block--address .field-input--building::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d9f5f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='2' width='16' height='20' rx='2'/%3E%3Cpath d='M9 22v-4h6v4M8 6h.01M16 6h.01M12 6h.01M12 10h.01M16 10h.01M8 10h.01M8 14h.01M12 14h.01M16 14h.01'/%3E%3C/svg%3E");
}

.form-block--address .field-input--map::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d9f5f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.field-input input:hover,
.field-input select:hover {
  border-color: #b8c5d6;
  background: var(--white);
}

.field-input input:focus,
.field-input select:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--blue-glow);
}

.field.has-error .field-input input,
.field.has-error .field-input select {
  border-color: var(--red);
  background: var(--red-soft);
}

.step-form-body .field > input,
.step-form-body .field > select,
.step-form-body .field > textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  border: 1.5px solid #dce3ec;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  color: var(--ink);
  min-height: 52px;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.step-form-body .field > input:focus,
.step-form-body .field > select:focus,
.step-form-body .field > textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--blue-glow);
}

.step-form-body .form-section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
}

.step-form-body .form-actions {
  margin-top: 4px;
  justify-content: stretch;
}

.step-form-body .form-actions .btn {
  width: 100%;
  min-width: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.form-secure-note-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003E7B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E")
    center/contain no-repeat;
}

.step-form-body .amount-box {
  margin: 16px 0 20px;
}

.step-form-body .result-hero h2 {
  font-size: 1.35rem;
}

.my-20{
  margin: 20px 0;
}

@media (max-width: 1100px) and (min-width: 1025px) {
  .step-shell {
    grid-template-columns: 248px 1fr;
    gap: 24px;
  }
}

@media (max-width: 1024px) {
  .page-step main.funnel-shell {
    padding-top: 24px;
    padding-bottom: 40px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .step-shell {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 100%;
  }

  .step-sidebar {
    position: static;
    top: auto;
    padding: 14px 12px 12px;
    overflow: hidden;
    border-radius: var(--radius-lg);
  }

  .step-track {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 8px 12px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .step-track::-webkit-scrollbar {
    display: none;
  }

  .step-track::before {
    display: none;
  }

  .sstep {
    flex: 0 0 auto;
    min-width: 80px;
    max-width: 92px;
    grid-template-columns: 1fr;
    text-align: center;
    padding: 6px 4px;
    scroll-snap-align: center;
  }

  .sstep-marker {
    margin: 0 auto 6px;
    width: 36px;
    height: 36px;
    background-size: 16px;
  }

  .sstep-check {
    font-size: 12px;
  }

  .sstep-body {
    align-items: center;
    gap: 0;
  }

  .sstep-num {
    font-size: 9px;
  }

  .sstep-label {
    font-size: 10.5px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .sstep-status {
    display: none;
    font-size: 9px;
    margin-top: 2px;
  }

  .sstep.active .sstep-status {
    display: block;
  }

  .sidebar-secure {
    display: flex;
    margin-top: 10px;
    padding: 10px 12px;
    gap: 8px;
    border-radius: var(--radius-sm);
  }

  .sidebar-secure-icon {
    width: 28px;
    height: 28px;
    background-size: 14px;
  }

  .sidebar-secure-text strong {
    font-size: 11px;
    margin-bottom: 2px;
  }

  .sidebar-secure-text a {
    font-size: 11px;
  }

  .step-main {
    border-radius: var(--radius-lg);
    /* Any clipping value here (`hidden`, or `clip` where unsupported and so
       treated as `hidden`) makes this a clip/scroll context and stops the
       sticky action bar working. Nothing needs clipping once the head and
       body round their own outer corners, below. */
    overflow: visible;
  }

  .step-form-head {
    padding: 20px 18px 28px;
    gap: 12px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .step-form-head::after {
    background: #f4f7fb;
  }

  .step-form-head h2 {
    font-size: 1.3rem;
  }

  .step-form-body {
    padding: 6px 18px 22px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
}

@media (max-width: 600px) {
  .step-track {
    gap: 8px;
    padding: 4px 6px 10px;
  }

  .sstep {
    min-width: 72px;
    max-width: 80px;
  }

  .sstep-marker {
    width: 32px;
    height: 32px;
    background-size: 14px;
  }

  .sstep-label {
    font-size: 10px;
  }

  .step-form-head {
    flex-wrap: wrap;
    padding: 16px 14px 40px;
  }

  .step-form-head-shield {
    width: 40px;
    height: 40px;
    background-size: 20px;
  }

  .step-form-head h2 {
    font-size: 1.15rem;
  }

  .step-form-head p {
    font-size: 13px;
    line-height: 1.45;
  }

  .step-form-head-pattern {
    width: 55%;
    opacity: 0.35;
  }

  .step-form-body {
    padding: 4px 14px 20px;
  }

  .form-block {
    margin-bottom: 16px;
    padding: 18px 16px 16px;
    border-radius: var(--radius-sm);
  }

  .form-block-head {
    gap: 10px;
    margin-bottom: 16px;
  }

  .form-block-icon {
    width: 38px;
    height: 38px;
    background-size: 18px;
    border-radius: 10px;
  }

  .form-block-head h3 {
    font-size: 1rem;
  }

  .form-block-head p {
    font-size: 12px;
  }

  .step-form-body .form-grid,
  .step-form-body .form-section .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .field-input input,
  .field-input select,
  .step-form-body .field > input,
  .step-form-body .field > select,
  .step-form-body .field > textarea {
    font-size: 16px;
    min-height: 48px;
    padding-top: 13px;
    padding-bottom: 13px;
  }

  .field-input input,
  .field-input select {
    padding-left: 42px;
  }

  .step-form-body .form-section {
    padding: 16px 14px;
  }

  .step-form-body .amount-box {
    padding: 22px 16px;
    margin: 12px 0 16px;
  }

  .step-form-body .amount-box .big {
    font-size: 1.85rem;
  }

  .step-form-body .agreements-found .ag {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 16px;
  }

  .step-form-body .sign-pad {
    height: 160px;
  }

  .step-form-body .dropzone {
    padding: 28px 16px;
  }

  .step-form-body .fee-table-wrap {
    margin: 0 -4px;
  }

  .form-secure-note {
    font-size: 11px;
    padding: 0 4px;
  }

  .step-sidebar,
  .step-main {
    border-radius: var(--radius-lg);
  }
}

@media (max-width: 380px) {
  .sstep {
    min-width: 60px;
    max-width: 68px;
  }

  .sstep-marker {
    width: 28px;
    height: 28px;
  }
}

.landing-hero {
  padding-top: 8px;
  min-width: 0;
  margin: 0 auto;
}

.hero-intro {
  margin-bottom: 30px;
  text-align: center;
}

.hero-lead {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-copy {
  margin: 0 0 18px;
  color: var(--ink);
  line-height: 1.82;
  max-width: 58ch;
  font-size: 1rem;
}

.hero-section-title {
  margin: 0 0 16px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-dark);
}

 

.hero-intro {
    margin-bottom: 30px;
}

.hero-lead {
    font-size: 17px;
    color: var(--muted);
    line-height: 1.65;
    max-width: 46ch;
    margin-bottom: 32px;
}

.hero-copy {
    margin: 0 0 18px;
    color: var(--ink);
    line-height: 1.82;
    max-width: 58ch;
    font-size: 1rem;
}

.hero-section-title {
    margin: 0 0 16px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blue-dark);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: #edf5ff;
  border: 1px solid #dce9ff;
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 22px;
  box-shadow: 0 10px 20px rgba(13, 75, 158, 0.07);
}

.hero-badge::before {
  content: "";
  width: 18px;
  height: 18px;
  background: var(--blue-soft);
  border-radius: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003E7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 17h14v-5H5v5zM5 9l2-4h10l2 4'/%3E%3Ccircle cx='7.5' cy='17' r='1.5'/%3E%3Ccircle cx='16.5' cy='17' r='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

.landing-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--blue-dark);
  margin-bottom: 40px;
}

.landing-hero h1 em {
  font-style: normal;
  color: var(--blue);
  position: relative;
  /* display: block; */
}

/* .landing-hero h1 em::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 10px;
    background: var(--yellow-soft);
    z-index: -1;
    border-radius: 2px;
} */

.hero-lead {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-lead strong {
  color: var(--blue);
  font-weight: 800;
}

.landing-hero .stats {
  margin-bottom: 28px;
}

.landing-hero .stats .stat {
  padding-top: 28px;
}

.landing-hero .stats .stat .num::before {
  content: "";
  display: block;
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  border-radius: 10px;
  background-color: var(--blue-soft);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px;
}

.landing-hero .stats .stat:nth-child(1) .num::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003E7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.landing-hero .stats .stat:nth-child(2) .num::before {
  background-color: var(--yellow-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d99008' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='1' x2='12' y2='23'/%3E%3Cpath d='M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6'/%3E%3C/svg%3E");
}

.landing-hero .stats .stat:nth-child(3) .num::before {
  background-color: var(--green-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d9f5f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E");
}

.landing-hero .lead-list {
  margin-bottom: 24px;
  background: var(--white);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--line);
}

.landing-hero .notice {
  margin: 0;
  background: #fff9ed;
  border: 1px solid #f0e4c8;
  border-radius: var(--radius-sm);
  padding: 16px 18px 16px 48px;
  font-size: 12.5px;
  color: #5c4a12;
  line-height: 1.65;
  margin-bottom: 20px;
  text-align: justify;
}

.landing-hero .notice::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 16px;
  width: 22px;
  height: 22px;
  background: var(--yellow);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002347' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

.landing-aside {
  position: sticky;
  top: calc(var(--header-total) + 24px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
}

/* Yellow Dragon notice sits directly under the Start Check card */
.landing-yellow-notice {
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

.form-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border-radius: 30px;
  padding: 0;
  width: 100%;
  min-width: 0;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.04),
    0 20px 44px rgba(15, 23, 42, 0.08),
    0 4px 14px rgba(15, 23, 42, 0.05);
}

.form-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px 45px;
  margin: 0;
  background: linear-gradient(
    125deg,
    var(--blue-dark) 0%,
    var(--blue) 50%,
    var(--blue-mid) 100%
  );
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.form-card-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 80% at 100% 0%,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 55%
  );
  pointer-events: none;
}

.form-card-head::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 24px;
  background: var(--white);
  border-radius: 24px 24px 0 0;
}

.form-card-head-text {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}

.form-card-body-text{
  max-width: 570px;
  margin-bottom: 30px;
  text-align: justify;
}

.form-card-head h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.form-card-head p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
  /* max-width: 22ch; */
}

.form-card-head-shield {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 4px 16px rgba(13, 159, 95, 0.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpolyline points='9 12 11 14 15 10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 26px;
}

.form-card-body {
  padding: 8px 28px 28px;
}

.form-card .btn.block {
  font-size: 24px;
  padding: 19px 36px;
  letter-spacing: 0.06em;
}

.btn-green,
.form-card .btn-green {
  background: linear-gradient(180deg, #12b86a 0%, var(--green) 100%);
  color: var(--white);
  box-shadow:
    0 4px 0 #0a7a45,
    0 8px 24px rgba(13, 159, 95, 0.35);
  text-transform: uppercase;
}

.btn-green:hover,
.form-card .btn-green:hover {
  filter: brightness(1.06);
  color: var(--white);
  box-shadow:
    0 6px 0 #0a7a45,
    0 10px 28px rgba(13, 159, 95, 0.4);
}

.btn-green:active,
.form-card .btn-green:active {
  box-shadow: 0 2px 0 #0a7a45;
}

.field-input-wrap {
  position: relative;
}

.field-input-wrap input {
  padding-right: 48px !important;
}

.field-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  pointer-events: none;
  opacity: 0.45;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.field-icon--user {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003E7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.field-icon--phone {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003E7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.form-perks {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 6px 14px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.form-perks li {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-perks li::before {
  content: "";
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d9f5f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center/contain no-repeat;
  flex-shrink: 0;
}

.form-card .field input {
  padding: 15px 16px;
  font-size: 16px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1.5px solid var(--line);
}

.form-card .field input:focus {
  background: var(--white);
  border-color: var(--blue);
}

.form-card .field.has-error input {
  border-color: var(--red);
  background: var(--red-soft);
}

.form-section .field.has-error input,
.form-section .field.has-error select,
.form-section .field.has-error textarea {
  border-color: var(--red);
  background: var(--red-soft);
}

@media (max-width: 1024px) {
  .landing-page {
    grid-template-columns: 1fr minmax(300px, 360px);
    gap: 32px;
  }
}

@media (max-width: 960px) {
  .landing-page {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .landing-hero {
    display: contents;
  }

  .hero-intro {
    order: 1;
    min-width: 0;
  }
    /* background: linear-gradient(
            135deg,
            rgba(232, 240, 248, 0.95) 0%,
            rgba(248, 250, 252, 0.6) 55%,
            transparent 100%
        );
        border-radius: var(--radius-lg);
        border: 1px solid rgba(0, 62, 123, 0.06);
        padding: 22px 20px 12px; */
  }

  .landing-aside {
    position: static;
    top: auto;
    order: 2;
    min-width: 0;
    width: 100%;
    gap: 14px;
  }

  .landing-yellow-notice {
    font-size: 13px;
    line-height: 1.45;
  }

  .hero-extra {
    order: 3;
    min-width: 0;
  }

  .landing-hero h1 {
    font-size: clamp(1.75rem, 7vw, 2rem);
  }

  .hero-lead {
    max-width: none;
  }
  .form-card {
    margin-bottom: 0;
  }

  .add-lender {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .page-landing main.funnel-shell,
  .page-step main.funnel-shell {
    padding-top: 18px;
    padding-bottom: 32px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .trust-strip {
    display: none;
  }

  .landing-page {
    gap: 18px;
  }

  /* .hero-intro {
        padding: 18px 16px 10px;
        border-radius: var(--radius);
    } */

  .landing-hero h1 {
    font-size: 1.65rem;
    margin-bottom: 10px;
  }

  .hero-lead {
    font-size: 15px;
    margin-bottom: 18px;
  }

  .hero-badge {
    font-size: 10px;
    padding: 6px 12px 6px 10px;
    margin-bottom: 12px;
  }

  .landing-hero .stats {
    margin-bottom: 18px;
  }

  .landing-hero .stats .stat {
    padding-top: 16px;
  }

  .landing-hero .stats .stat .num::before {
    width: 28px;
    height: 28px;
    margin: 0;
    background-size: 14px;
  }

  .lead-list {
    padding: 4px 14px;
    margin-bottom: 0;
  }

  .lead-list li {
    font-size: 13.5px;
    padding: 11px 0 11px 28px;
  }

  .landing-hero .notice {
    padding: 14px 14px 14px 42px;
    font-size: 12px;
  }

  .form-card {
    border-radius: var(--radius-lg);
  }

  .form-card-head {
    padding: 15px 16px 35px;
    gap: 12px;
  }
  .form-card-body-text, p{
    font-size: 14px;
  }

  .form-card-body {
    padding: 4px 16px 16px;
  }

  .form-card-head h2 {
    font-size: 1.15rem;
  }

  .form-card-head p {
    font-size: 13px;
    max-width: none;
  }

  .form-card-head-shield {
    width: 42px;
    height: 42px;
    background-size: 20px;
  }

  .form-card .field input {
    font-size: 16px;
    min-height: 48px;
  }

  .form-card .btn.block {
    font-size: 16px;
    padding: 16px 18px;
  }

  .form-perks {
    gap: 6px 8px;
  }

  .form-perks li {
    font-size: 10px;
  }

  .footer-bar {
    padding: 18px 14px;
    gap: 14px;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .footer-nav a {
    font-size: 12px;
  }

  .footer-copy span {
    font-size: 11px;
  }
}

/* Step pages — form card content */
.form-section {
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 24px 20px;
  margin-bottom: 20px;
}

.form-section .section-title {
  margin: 0 0 18px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
  border-color: transparent;
  border-bottom-color: var(--line);
  font-size: 15px;
  font-weight: 800;
  color: var(--blue-dark);
  text-transform: none;
  letter-spacing: -0.02em;
}

.form-section .section-title::before {
  display: none;
}

.form-section .field input,
.form-section .field select,
.form-section .field textarea {
  background: var(--white);
  border-color: var(--line);
}

.form-section .field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003E7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 42px;
}

.form-section .field input:focus,
.form-section .field select:focus,
.form-section .field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

.form-section .field.has-error input,
.form-section .field.has-error select,
.form-section .field.has-error textarea {
  border-color: var(--red);
  background: var(--red-soft);
}

.form-section .field.has-error select {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003E7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"),
    linear-gradient(var(--red-soft), var(--red-soft));
  background-repeat: no-repeat;
  background-position:
    right 12px center,
    0 0;
  background-size:
    18px,
    100% 100%;
}

.form-section .hint-text {
  margin-bottom: 16px;
}

.form-section .lender-row {
  background: var(--white);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
  padding-top: 4px;
}

.form-actions.form-actions--nav {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* Beat `.step-form-body .form-actions .btn { width:100% }` so Back stays
   compact and Confirm/Next can use the remaining row. */
.step-form-body .form-actions.form-actions--nav .btn {
  width: auto;
  min-width: 0;
}

.step-form-body .form-actions.form-actions--nav .btn.ghost,
.form-actions.form-actions--nav .btn.ghost {
  flex: 0 0 auto;
  min-width: 7.5rem;
  text-decoration: none;
}

.step-form-body .form-actions.form-actions--nav .btn:not(.ghost),
.form-actions.form-actions--nav .btn:not(.ghost) {
  flex: 1 1 auto;
  min-width: 10.5rem;
}

.form-actions .btn {
  min-width: 168px;
  padding: 15px 32px;
}

.form-actions.center {
  justify-content: center;
}

/* Sticky action bar — long confirm-details style steps where the user only
   needs to check pre-filled values, so the button must stay reachable
   without scrolling to the end.

   Doubled class keeps specificity at (0,2,0) so it beats the earlier
   `.step-form-body .form-actions` rule rather than losing to it. */
.form-actions.form-actions--sticky {
  position: sticky;
  bottom: 0;
  z-index: 20;
  margin-top: 8px;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
  /* Opaque, matching .step-form-body, so fields scroll out of sight under it. */
  background: #f4f7fb;
  box-shadow: 0 -8px 18px -8px rgba(15, 23, 42, 0.14);
}

@media (max-width: 1024px) {
  .form-actions.form-actions--sticky {
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 20px -6px rgba(15, 23, 42, 0.18);
  }
}

@media (max-width: 600px) {
  .consent {
    padding: 14px 14px;
    font-size: 12.5px;
  }

  .form-actions {
    justify-content: stretch;
  }

  .form-actions.form-actions--nav {
    flex-direction: column-reverse;
  }

  .step-form-body .form-actions.form-actions--nav .btn,
  .form-actions.form-actions--nav .btn {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
  }

  .form-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

/* ══════════════ RESPONSIVE UTILITIES ══════════════ */
@media (max-width: 768px) {
  .funnel-header .help-text {
    display: none;
  }

  .funnel-header .help-cta {
    padding: 8px;
    border-radius: 50%;
  }

  .funnel-header .help-icon {
    width: 38px;
    height: 38px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stats .stat {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 4px 16px;
    text-align: left;
    padding: 18px 20px;
    align-items: center;
  }

  .stats .stat .num {
    font-size: 1.5rem;
  }

  .stats .stat .lbl {
    margin-top: 0;
    grid-column: 2;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .lender-row {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .consent {
    gap: 10px;
  }

  .result-hero .badge {
    width: 72px;
    height: 72px;
    font-size: 30px;
  }

  .btn {
    min-height: 48px;
  }

  .step-form-head p {
    max-width: none;
  }

  .amount-box {
    padding: 28px 20px;
  }

  .amount-box .big {
    font-size: clamp(1.85rem, 8vw, 2.5rem);
  }

  .fee-table-wrap {
    margin: 0 -4px;
    padding-bottom: 4px;
  }

  .fee-table {
    min-width: 520px;
  }

  .lender-row .choices {
    width: 100%;
    min-width: 0;
  }

  .sign-wrap {
    min-width: 0;
  }

  .sign-pad {
    touch-action: none;
  }

  .dropzone {
    padding: 32px 16px;
  }

  .form-secure-note {
    gap: 0;
    padding: 0 8px;
    align-items: start;
  }
}

@media (max-width: 480px) {
  :root {
    --header-h: 60px;
    --trust-h: 56px;
    --header-total: calc(60px + 56px);
  }

  .funnel-header .bar {
    height: 60px;
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }

  .funnel-header .brand img {
    height: 36px;
  }

  .funnel-header .brand.dragon img {
    height: 38px;
  }

  .page-landing main.funnel-shell,
  .page-step main.funnel-shell {
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
    padding-top: 12px;
    padding-bottom: 24px;
  }

  .trust-strip .inner {
    padding: 8px 10px;
    gap: 2px;
  }

  .trust-strip span {
    font-size: 8.5px;
    padding: 2px;
  }

  .trust-strip span::after {
    width: 16px;
    height: 16px;
  }

  .page-step .step-mobile-progress-name {
    font-size: 13px;
  }

  .step-form-body {
    padding: 4px 12px 18px;
  }

  .form-block {
    padding: 16px 14px 14px;
  }

  .stats .stat {
    grid-template-columns: 72px 1fr;
    padding: 14px 16px;
  }

  .stats .stat .num {
    font-size: 1.35rem;
  }

  .muted-note {
    font-size: 11px;
  }

  .footer-bar {
    padding-left: max(14px, env(safe-area-inset-left, 0px));
    padding-right: max(14px, env(safe-area-inset-right, 0px));
  }

  .consent {
    padding: 12px;
    font-size: 12px;
  }

  .add-lender {
    width: 100%;
    justify-content: center;
  }
}

.result-hero img {
  max-width: 88px;
  margin: 0 auto;
}


.result-hero img {
    max-width: 88px;
    margin: 0 auto;
}

.postcode-lookup {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.postcode-lookup .field-input {
  flex: 1;
}

.btn-lookup {
  flex: 0 0 auto;
  white-space: nowrap;
  background: #1b3a6b;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-lookup:hover {
  filter: brightness(1.08);
  color: #fff;
}

.btn-lookup:disabled {
  opacity: 0.65;
  cursor: wait;
}

#full_address[readonly] {
  background: #f4f7fb;
  cursor: default;
}

@media (max-width: 640px) {
  .postcode-lookup {
    flex-direction: column;
  }

  .btn-lookup {
    height: 48px;
  }
}