
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    :root {
      --navy: #12244a;
      --navy-card: #0d1f3c;
      --navy-input: #0f2645;
      --navy-border: rgba(255,255,255,0.12);
      --gold: #7bc9ff;
      --gold-dark: #54baff;
      --white: #ffffff;
      --gray-light: rgba(255,255,255,0.6);
      --gray-dim: rgba(255,255,255,0.35);
      --green: #22c55e;
      --red: #ef4444;
    }
    body {
      font-family: 'Inter', sans-serif;
      background: var(--navy);
      color: var(--white);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    /* ── HEADER ── */
    .app-header {
      background: rgba(10,22,40,0.97);
      border-bottom: 1px solid var(--navy-border);
      padding: 14px 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: sticky;
      top: 0;
      z-index: 100;
    }
    .app-header .brand-small {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.12em;
      color: var(--gray-light);
      text-transform: uppercase;
    }
    .app-header .brand-title {
      font-size: 18px;
      font-weight: 700;
      color: var(--white);
      margin-top: 2px;
    }
    .secure-badge {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
      color: var(--green);
      font-weight: 600;
    }
    .secure-badge::before {
      content: '';
      width: 8px;
      height: 8px;
      background: var(--green);
      border-radius: 50%;
      display: inline-block;
    }

    /* ── MAIN CONTAINER ── */
    .main-wrap {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 32px 16px 60px;
    }

    /* ── PROGRESS BAR ── */
    .progress-bar {
      width: 100%;
      max-width: 680px;
      margin-bottom: 28px;
    }
    .progress-steps {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0;
    }
    .step-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      flex: 1;
      position: relative;
    }
    .step-item:not(:last-child)::after {
      content: '';
      position: absolute;
      top: 18px;
      left: 50%;
      width: 100%;
      height: 2px;
      background: rgba(255,255,255,0.15);
      z-index: 0;
    }
    .step-item.done:not(:last-child)::after,
    .step-item.active:not(:last-child)::after {
      background: var(--gold);
    }
    .step-icon {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      border: 2px solid rgba(255,255,255,0.2);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      color: var(--gray-dim);
      background: var(--navy);
      z-index: 1;
      position: relative;
      transition: all 0.3s;
    }
    .step-item.active .step-icon {
      border-color: var(--gold);
      color: var(--gold);
      background: rgba(240,180,41,0.12);
    }
    .step-item.done .step-icon {
      border-color: var(--gold);
      background: var(--gold);
      color: var(--navy);
    }
    .step-label {
      font-size: 10px;
      font-weight: 600;
      color: var(--gray-dim);
      margin-top: 6px;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      white-space: nowrap;
    }
    .step-item.active .step-label { color: var(--gold); }
    .step-item.done .step-label { color: rgba(255,255,255,0.7); }

    /* ── CARD ── */
    .form-card {
      width: 100%;
      max-width: 680px;
      background: var(--navy-card);
      border: 1px solid var(--navy-border);
      border-radius: 16px;
      padding: 36px 40px;
    }
    @media (max-width: 600px) {
      .form-card { padding: 24px 20px; }
    }
    .card-title {
      font-size: 22px;
      font-weight: 700;
      color: var(--white);
      margin-bottom: 6px;
    }
    .card-subtitle {
      font-size: 14px;
      color: var(--gray-light);
      margin-bottom: 28px;
    }

    /* ── FORM FIELDS ── */
    .field-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 18px;
    }
    .field-grid.single { grid-template-columns: 1fr; }
    @media (max-width: 520px) {
      .field-grid { grid-template-columns: 1fr; }
    }
    .field-full { grid-column: 1 / -1; }
    .field-group { display: flex; flex-direction: column; gap: 6px; }
    .field-label {
      font-size: 13px;
      font-weight: 600;
      color: rgba(255,255,255,0.85);
    }
    .field-label .req { color: var(--gold); margin-left: 2px; }
    .field-label .opt { color: var(--gray-dim); font-weight: 400; font-size: 11px; margin-left: 4px; }
    .field-input, .field-select, .field-textarea {
      background: var(--navy-input);
      border: 1.5px solid var(--navy-border);
      border-radius: 8px;
      color: var(--white);
      font-family: 'Inter', sans-serif;
      font-size: 14px;
      padding: 11px 14px;
      width: 100%;
      transition: border-color 0.2s;
      outline: none;
    }
    .field-input::placeholder, .field-textarea::placeholder {
      color: var(--gray-dim);
    }
    .field-input:focus, .field-select:focus, .field-textarea:focus {
      border-color: var(--gold);
    }
    .field-input.error, .field-select.error, .field-textarea.error {
      border-color: var(--red);
    }
    .field-select option { background: #0d1f3c; color: #fff; }
    .field-textarea { resize: vertical; min-height: 90px; }
    .field-error {
      font-size: 11px;
      color: var(--red);
      margin-top: 2px;
      display: none;
    }
    .field-error.show { display: block; }

    /* ── TOGGLE BUTTONS (Yes/No) ── */
    .toggle-group {
      display: flex;
      gap: 10px;
    }
    .toggle-btn {
      flex: 1;
      padding: 10px;
      border-radius: 8px;
      border: 1.5px solid var(--navy-border);
      background: var(--navy-input);
      color: var(--gray-light);
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
      font-family: 'Inter', sans-serif;
    }
    .toggle-btn.active {
      border-color: var(--gold);
      background: rgba(240,180,41,0.12);
      color: var(--gold);
    }

    /* ── POSITION ROWS ── */
    .positions-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
    .position-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: center; }
    .remove-btn {
      background: none;
      border: none;
      color: var(--red);
      font-size: 18px;
      cursor: pointer;
      padding: 4px 8px;
      border-radius: 6px;
      transition: background 0.2s;
    }
    .remove-btn:hover { background: rgba(239,68,68,0.12); }
    .add-position-btn {
      background: none;
      border: 1.5px dashed rgba(240,180,41,0.4);
      color: var(--gold);
      font-size: 13px;
      font-weight: 600;
      padding: 8px 16px;
      border-radius: 8px;
      cursor: pointer;
      margin-top: 8px;
      font-family: 'Inter', sans-serif;
      transition: all 0.2s;
    }
    .add-position-btn:hover { background: rgba(240,180,41,0.08); border-color: var(--gold); }

    /* ── FUNDING GRID ── */
    .funding-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
    }
    @media (max-width: 480px) { .funding-grid { grid-template-columns: repeat(2, 1fr); } }
    .funding-btn {
      padding: 16px 10px;
      border-radius: 10px;
      border: 1.5px solid var(--navy-border);
      background: var(--navy-input);
      color: var(--white);
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      text-align: center;
      transition: all 0.2s;
      font-family: 'Inter', sans-serif;
    }
    .funding-btn:hover { border-color: rgba(240,180,41,0.5); }
    .funding-btn.active {
      border-color: var(--gold);
      background: rgba(240,180,41,0.12);
      color: var(--gold);
    }

    /* ── FILE UPLOAD ── */
    .upload-zone {
      border: 2px dashed rgba(240,180,41,0.35);
      border-radius: 12px;
      padding: 36px 24px;
      text-align: center;
      cursor: pointer;
      transition: all 0.2s;
      background: rgba(240,180,41,0.04);
    }
    .upload-zone:hover, .upload-zone.dragover {
      border-color: var(--gold);
      background: rgba(240,180,41,0.08);
    }
    .upload-icon { font-size: 32px; margin-bottom: 10px; }
    .upload-label { font-size: 15px; font-weight: 600; color: var(--white); }
    .upload-hint { font-size: 12px; color: var(--gray-dim); margin-top: 4px; }
    .upload-note {
      margin-top: 12px;
      font-size: 12px;
      color: rgba(255,255,255,0.5);
      font-style: italic;
    }
    .file-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
    .file-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: rgba(255,255,255,0.06);
      border-radius: 8px;
      padding: 8px 14px;
      font-size: 13px;
    }
    .file-item-name { color: var(--white); font-weight: 500; }
    .file-item-size { color: var(--gray-dim); font-size: 11px; }
    .file-remove { background: none; border: none; color: var(--red); cursor: pointer; font-size: 16px; padding: 0 4px; }

    /* ── SIGNATURE ── */
    .sig-tabs { display: flex; gap: 0; margin-bottom: 16px; border-radius: 8px; overflow: hidden; border: 1.5px solid var(--navy-border); }
    .sig-tab {
      flex: 1;
      padding: 10px;
      background: var(--navy-input);
      color: var(--gray-light);
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      text-align: center;
      transition: all 0.2s;
      border: none;
      font-family: 'Inter', sans-serif;
    }
    .sig-tab.active { background: var(--gold); color: var(--navy); }
    .sig-canvas-wrap {
      border: 1.5px solid var(--navy-border);
      border-radius: 10px;
      background: rgba(255,255,255,0.04);
      position: relative;
      overflow: hidden;
    }
    #sigCanvas {
      display: block;
      width: 100%;
      height: 160px;
      cursor: crosshair;
      touch-action: none;
    }
    .sig-placeholder {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      color: var(--gray-dim);
      font-size: 13px;
      pointer-events: none;
    }
    .sig-clear {
      background: none;
      border: 1px solid rgba(255,255,255,0.15);
      color: var(--gray-light);
      font-size: 12px;
      padding: 5px 14px;
      border-radius: 6px;
      cursor: pointer;
      margin-top: 8px;
      font-family: 'Inter', sans-serif;
      transition: all 0.2s;
    }
    .sig-clear:hover { border-color: var(--red); color: var(--red); }
    .sig-type-input {
      background: var(--navy-input);
      border: 1.5px solid var(--navy-border);
      border-radius: 8px;
      color: var(--white);
      font-family: 'Dancing Script', cursive, 'Inter', sans-serif;
      font-size: 28px;
      padding: 14px 18px;
      width: 100%;
      outline: none;
      transition: border-color 0.2s;
    }
    .sig-type-input:focus { border-color: var(--gold); }
    .sig-type-input::placeholder { color: var(--gray-dim); font-size: 16px; font-family: 'Inter', sans-serif; }
    .consent-box {
      background: rgba(10,22,40,0.8);
      border: 1px solid var(--navy-border);
      border-radius: 10px;
      padding: 18px 20px;
      margin-bottom: 20px;
    }
    .consent-title {
      font-size: 12px;
      font-weight: 700;
      color: var(--gold);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: 10px;
    }
    .consent-text { font-size: 12px; color: var(--gray-light); line-height: 1.6; }
    .esign-note {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      margin-top: 14px;
      font-size: 11px;
      color: rgba(255,255,255,0.45);
      line-height: 1.5;
    }
    .esign-note::before { content: '🔒'; flex-shrink: 0; }

    /* ── ELIGIBILITY SCREEN ── */
    .eligibility-wrap {
      width: 100%;
      max-width: 680px;
    }
    .elig-card {
      background: var(--navy-card);
      border: 1px solid var(--navy-border);
      border-radius: 16px;
      padding: 36px 40px;
    }
    @media (max-width: 600px) { .elig-card { padding: 24px 20px; } }
    .elig-question {
      font-size: 18px;
      font-weight: 700;
      color: var(--white);
      margin-bottom: 20px;
      line-height: 1.4;
    }
    .elig-step-count {
      font-size: 12px;
      color: var(--gray-dim);
      margin-bottom: 10px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }
    .elig-options {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }
    @media (max-width: 480px) { .elig-options { grid-template-columns: 1fr; } }
    .elig-btn {
      padding: 16px 14px;
      border-radius: 10px;
      border: 1.5px solid var(--navy-border);
      background: var(--navy-input);
      color: var(--white);
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      text-align: left;
      transition: all 0.2s;
      font-family: 'Inter', sans-serif;
    }
    .elig-btn:hover { border-color: rgba(240,180,41,0.5); background: rgba(240,180,41,0.06); }
    .elig-btn.selected { border-color: var(--gold); background: rgba(240,180,41,0.12); color: var(--gold); }

    /* ── QUALIFIED SCREEN ── */
    .qualified-screen {
      text-align: center;
      padding: 20px 0;
    }
    .qualified-icon { font-size: 56px; margin-bottom: 16px; }
    .qualified-title { font-size: 26px; font-weight: 800; color: var(--gold); margin-bottom: 8px; }
    .qualified-sub { font-size: 15px; color: var(--gray-light); margin-bottom: 28px; line-height: 1.5; }
    .qualified-amount {
      display: inline-block;
      background: rgba(240,180,41,0.12);
      border: 1px solid rgba(240,180,41,0.3);
      border-radius: 10px;
      padding: 12px 24px;
      font-size: 18px;
      font-weight: 700;
      color: var(--gold);
      margin-bottom: 28px;
    }

    /* ── BUTTONS ── */
    .btn-row {
      display: flex;
      gap: 12px;
      margin-top: 28px;
    }
    .btn-back {
      flex: 0 0 auto;
      padding: 13px 22px;
      border-radius: 10px;
      border: 1.5px solid var(--navy-border);
      background: transparent;
      color: var(--gray-light);
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      font-family: 'Inter', sans-serif;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .btn-back:hover { border-color: rgba(255,255,255,0.3); color: var(--white); }
    .btn-continue {
      flex: 1;
      padding: 14px;
      border-radius: 10px;
      border: none;
      background: var(--gold);
      color: var(--navy);
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      font-family: 'Inter', sans-serif;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }
    .btn-continue:hover { background: var(--gold-dark); }
    .btn-continue:active { transform: scale(0.98); }
    .btn-continue:disabled { opacity: 0.5; cursor: not-allowed; }

    /* ── TRUST BADGES ── */
    .trust-badges {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 24px;
      margin-top: 24px;
      flex-wrap: wrap;
    }
    .trust-badge {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
      color: rgba(255,255,255,0.45);
      font-weight: 500;
    }

    /* ── SUCCESS SCREEN ── */
    .success-screen {
      text-align: center;
      padding: 20px 0;
    }
    .success-icon { font-size: 64px; margin-bottom: 16px; }
    .success-title { font-size: 26px; font-weight: 800; color: var(--green); margin-bottom: 10px; }
    .success-sub { font-size: 15px; color: var(--gray-light); line-height: 1.6; max-width: 420px; margin: 0 auto; }

    /* ── SPINNER ── */
    .spinner {
      width: 20px; height: 20px;
      border: 2px solid rgba(10,22,40,0.3);
      border-top-color: var(--navy);
      border-radius: 50%;
      animation: spin 0.7s linear infinite;
      display: none;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* ── HIDDEN ── */
    .hidden { display: none !important; }
  
.application-preview-notice{max-width:850px;margin:24px auto 0;padding:18px 22px;border:1px solid #7bc9ff55;background:#173a68;border-radius:10px;font-size:13px;line-height:1.8;color:#dceaff}.application-home{color:#9ad7ff;font-size:13px;text-decoration:none}.app-header .brand-title{font-size:18px;letter-spacing:0;line-height:1.4;margin:2px 0 0}.app-header .brand-small{color:#9ad7ff}.application-footer{text-align:center;font-size:12px;line-height:1.9;color:#b5c6df;padding:20px}.application-footer a{color:#9ad7ff}.form-card{box-shadow:0 20px 60px #0002}.trust-badge{color:#b5c6df}.sig-canvas-wrap{background:#f7fbff}.sig-placeholder{color:#5c7597}.field-error.show{display:block}.application-consent{display:flex;gap:12px;font-size:12px;line-height:1.8;color:#c3d3ec;margin:24px 0;align-items:flex-start}.application-consent input{flex-shrink:0;width:18px;height:18px;margin-top:3px;accent-color:#7bc9ff}.application-honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}.funding-btn:focus-visible,.btn-continue:focus-visible,.sig-tab:focus-visible,.toggle-btn:focus-visible,.upload-zone:focus-visible{outline:3px solid #7bc9ff;outline-offset:4px}.field-input:focus,.field-select:focus,.field-textarea:focus{outline:2px solid #7bc9ff;outline-offset:2px}@media(max-width:600px){.application-preview-notice{margin:18px 16px 0;padding:16px;font-size:12px}.step-label{font-size:8px}.app-header{padding:14px 16px}.application-home{font-size:11px}.app-header .brand-title{font-size:15px}}

/* BizDeck application — light fintech theme overrides (loaded after application.css) */
:root {
  color-scheme: light;
  --application-ink: #12244a;
  --application-muted: #5d6b83;
  --application-subtle: #5d6b83;
  --application-blue: #2563eb;
  --application-blue-dark: #1546c6;
  --application-blue-pale: #edf4ff;
  --application-surface: #ffffff;
  --application-canvas: #f3f7ff;
  --application-line: #dbe6f5;
  --application-success: #187d58;
  --application-danger: #bd263a;

  /* The source names are legacy dark-theme semantics; component rules below remain explicit. */
  --navy: #12244a;
  --navy-card: #ffffff;
  --navy-input: #ffffff;
  --navy-border: #dbe6f5;
  --gold: #2563eb;
  --gold-dark: #1546c6;
  --white: #12244a;
  --gray-light: #5d6b83;
  --gray-dim: #5d6b83;
  --green: #187d58;
  --red: #bd263a;
}

html { background: var(--application-canvas); }

body {
  background: radial-gradient(circle at 50% -18%, #ffffff 0, #f5f9ff 42%, #edf4ff 100%);
  color: var(--application-ink);
}

/* Header, status, and page framing */
.app-header {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--application-line);
  box-shadow: 0 2px 12px rgba(18, 36, 74, 0.05);
}

.app-header .brand-small { color: var(--application-blue); }
.app-header .brand-title { color: var(--application-ink); }
.application-home { color: var(--application-blue); font-weight: 600; }
.application-home:hover { color: var(--application-blue-dark); text-decoration: underline; text-underline-offset: 3px; }
.secure-badge { color: var(--application-success); }
.secure-badge::before { background: var(--application-success); }

.application-preview-notice {
  background: #eef5ff;
  border-color: #bed7ff;
  box-shadow: 0 8px 24px rgba(18, 36, 74, 0.05);
  color: #435b7c;
}
.application-preview-notice strong { color: var(--application-ink); }

.main-wrap { background: transparent; }

/* Six-step progress */
.step-item:not(:last-child)::after { background: #cad9ee; }
.step-item.done:not(:last-child)::after,
.step-item.active:not(:last-child)::after { background: var(--application-blue); }

.step-icon {
  background: #f8fbff;
  border-color: #c5d5ec;
  color: #5d6b83;
}
.step-item.active .step-icon {
  background: #eaf2ff;
  border-color: var(--application-blue);
  color: var(--application-blue);
}
.step-item.done .step-icon {
  background: var(--application-blue);
  border-color: var(--application-blue);
  color: #ffffff;
}
.step-label { color: #5d6b83; }
.step-item.active .step-label { color: var(--application-blue); }
.step-item.done .step-label { color: #36557f; }

/* Cards and headings */
.form-card,
.elig-card {
  background: var(--application-surface);
  border-color: var(--application-line);
  box-shadow: 0 18px 42px rgba(18, 36, 74, 0.08);
}
.card-title,
.elig-question { color: var(--application-ink); }
.card-subtitle,
.qualified-sub,
.success-sub { color: var(--application-muted); }
.elig-step-count { color: var(--application-subtle); }

/* Inputs and validation */
.field-label { color: #243b60; }
.field-label .req { color: var(--application-blue); }
.field-label .opt { color: var(--application-subtle); }

.field-input,
.field-select,
.field-textarea,
.sig-type-input {
  background: #ffffff;
  border-color: #c8d7ec;
  color: var(--application-ink);
  caret-color: var(--application-blue);
}
.field-input::placeholder,
.field-textarea::placeholder,
.sig-type-input::placeholder { color: #5d6b83; }
.field-select option { background: #ffffff; color: var(--application-ink); }

.field-input:focus,
.field-select:focus,
.field-textarea:focus,
.sig-type-input:focus {
  border-color: var(--application-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
.field-input.error,
.field-select.error,
.field-textarea.error {
  background: #fffafb;
  border-color: var(--application-danger);
}
.field-error { color: var(--application-danger); font-weight: 500; }
.field-error.show { display: block; }

.field-input:-webkit-autofill,
.field-select:-webkit-autofill,
.field-textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--application-ink);
  box-shadow: 0 0 0 1000px #ffffff inset;
}

/* Position choice and dynamic position rows */
.toggle-btn {
  background: #ffffff;
  border-color: #c8d7ec;
  color: #48617f;
}
.toggle-btn:hover { background: #f6f9fe; border-color: #8fb6f5; }
.toggle-btn.active {
  background: #edf4ff;
  border-color: var(--application-blue);
  color: var(--application-blue-dark);
}
.remove-btn { color: var(--application-danger); }
.remove-btn:hover { background: #fff0f2; }
.add-position-btn {
  background: #f8fbff;
  border-color: #8fb6f5;
  color: var(--application-blue);
}
.add-position-btn:hover {
  background: #edf4ff;
  border-color: var(--application-blue);
  color: var(--application-blue-dark);
}

/* Funding choices */
.funding-btn,
.elig-btn {
  background: #ffffff;
  border-color: #c8d7ec;
  color: var(--application-ink);
}
.funding-btn:hover,
.elig-btn:hover {
  background: #f7faff;
  border-color: #8fb6f5;
}
.funding-btn.active,
.elig-btn.selected {
  background: #edf4ff;
  border-color: var(--application-blue);
  color: var(--application-blue-dark);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

/* File selection, drag-over, and selected-file states */
.upload-zone {
  background: #f8fbff;
  border-color: #9bbcf1;
}
.upload-zone:hover,
.upload-zone.dragover {
  background: #edf4ff;
  border-color: var(--application-blue);
}
.upload-label { color: var(--application-ink); }
.upload-hint { color: var(--application-muted); }
.upload-note { color: #5d6b83; }
.file-item {
  background: #f7faff;
  border: 1px solid #dce7f5;
  color: var(--application-ink);
}
.file-item:hover { border-color: #b8d0f5; }
.file-item-name { color: var(--application-ink); }
.file-item-size { color: var(--application-subtle); }
.file-remove { color: var(--application-danger); border-radius: 4px; }
.file-remove:hover { background: #fff0f2; }

/* Authorization, draw/type signature, and consent */
.consent-box {
  background: #f4f8fe;
  border-color: #d5e3f7;
}
.consent-title { color: var(--application-blue); }
.consent-text { color: #425a7a; }
.esign-note { color: #5d6b83; }
.sig-tabs { border-color: #c8d7ec; }
.sig-tab {
  background: #ffffff;
  color: #526987;
}
.sig-tab:hover { background: #f4f8fe; color: var(--application-blue); }
.sig-tab.active {
  background: var(--application-blue);
  color: #ffffff;
}
.sig-canvas-wrap {
  background: #f8fbff;
  border-color: #c8d7ec;
}
.sig-placeholder { color: #657996; }
.sig-clear {
  background: #ffffff;
  border-color: #c8d7ec;
  color: #47617f;
}
.sig-clear:hover { background: #fff7f8; border-color: var(--application-danger); color: var(--application-danger); }
.sig-type-input { background: #f8fbff; }

.application-consent { color: #425a7a; }
.application-consent input {
  accent-color: var(--application-blue);
  border-color: #8da9ce;
}

/* Shared navigation, CTA, and disabled/send states */
.btn-back {
  background: #ffffff;
  border-color: #c8d7ec;
  color: #36557f;
}
.btn-back:hover {
  background: #f4f8fe;
  border-color: #8fb6f5;
  color: var(--application-blue-dark);
}
.btn-continue {
  background: var(--application-blue);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.16);
}
.btn-continue:hover {
  background: var(--application-blue-dark);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.24);
}
.btn-continue:disabled,
.btn-continue[aria-disabled="true"] {
  background: #9aaec7;
  color: #ffffff;
  box-shadow: none;
  opacity: 1;
}
.spinner { border-color: rgba(255, 255, 255, 0.46); border-top-color: #ffffff; }

/* Legacy eligibility/receipt components remain light if rendered by a variant. */
.qualified-title { color: var(--application-blue); }
.qualified-amount {
  background: #edf4ff;
  border-color: #bdd5fb;
  color: var(--application-blue-dark);
}
.success-title { color: var(--application-success); }
.success-screen { color: var(--application-ink); }

/* Trust, status, privacy, and footer */
.trust-badge { color: #5d6b83; }
.application-footer { color: #5d6b83; }
.application-footer a { color: var(--application-blue); }
.application-footer a:hover { color: var(--application-blue-dark); text-decoration: underline; text-underline-offset: 3px; }

/* Clear, consistent keyboard focus across the interactive application controls. */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--application-blue);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .field-input,
  .field-select,
  .field-textarea { font-size: 16px; }
}

@media (max-width: 600px) { .step-label { font-size: 9px; letter-spacing: 0.02em; } }
