/* Funding application page */

.app-page { background: var(--bg); }
.app-secure { font-size: 13px; font-weight: 600; color: var(--ink-soft); }

.app-main { padding: 48px 0 90px; }
.app-shell { max-width: 640px; margin: 0 auto; padding: 0 20px; }
.app-head { text-align: center; margin-bottom: 26px; }
.app-head h1 { font-size: clamp(26px, 4vw, 36px); }
.app-head p { color: var(--ink-soft); margin-top: 8px; }

#app-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px 32px 26px; margin-top: 18px;
}
.app-shell .form-progress { max-width: 640px; }

.hp { position: absolute; left: -5000px; opacity: 0; height: 0; }

#app-form textarea {
  width: 100%; padding: 12px 14px; font-size: 16px; font-family: var(--font-body);
  border: 1.5px solid var(--line); border-radius: 10px; color: var(--ink); resize: vertical;
}
#app-form textarea:focus-visible {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .18);
}
.field-row-3 { grid-template-columns: 2fr 1fr 1fr; margin-top: 10px; }
.field-row-3 input { width: 100%; }
.field-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 8px; }
.opt { font-weight: 400; color: var(--ink-soft); }
.step-eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: .12em; color: var(--blue); margin-bottom: 4px;
}

.second-owner-toggle {
  display: flex !important; align-items: center; gap: 10px;
  margin-top: 18px; font-weight: 600; font-size: 14px; color: var(--navy); cursor: pointer;
}
.second-owner-toggle input { width: 18px; height: 18px; accent-color: var(--blue); }

/* Review box */
.review-box {
  background: var(--sky); border-radius: 12px; padding: 14px 18px; margin-bottom: 16px;
}
.review-box .rrow {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 7px 0; font-size: 14px; border-bottom: 1px solid rgba(37, 99, 235, .12);
}
.review-box .rrow:last-child { border-bottom: none; }
.review-box .rrow span { color: var(--ink-soft); }
.review-box .rrow b { color: var(--navy); text-align: right; }

.disclaimer {
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
  font-size: 13.5px; color: var(--ink-soft); margin-bottom: 18px;
}
.disclaimer p + p { margin-top: 10px; }
.disclaimer strong { color: var(--navy); }

/* Signature */
.sig-wrap {
  position: relative; border: 1.5px dashed var(--line); border-radius: 12px;
  background: #FCFCFA; height: 140px; overflow: hidden;
}
.sig-wrap.sig-active { border-color: var(--blue); border-style: solid; }
.sig-wrap.sig-error { border-color: #C0392B; }
#sig-canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.sig-hint {
  position: absolute; left: 0; right: 0; bottom: 10px; text-align: center;
  font-size: 12.5px; color: #A0AABB; pointer-events: none;
}
.sig-clear {
  position: absolute; top: 8px; right: 10px;
  background: none; border: 0; color: var(--blue); font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: underline;
}

/* Thank-you / upload pages */
.ty-shell { text-align: center; padding-top: 26px; }
.ty-shell h1 { font-size: clamp(28px, 4vw, 40px); margin-top: 14px; }
.ty-sub { color: var(--ink-soft); font-size: 17px; max-width: 46ch; margin: 10px auto 0; }
.ty-next {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px 32px; margin-top: 30px;
}
.ty-next-eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: .12em; color: var(--blue); margin-bottom: 6px;
}
.ty-next h2 { font-size: 24px; margin-bottom: 10px; }
.ty-next p { color: var(--ink-soft); font-size: 15.5px; max-width: 52ch; margin: 0 auto; }
.ty-cta { margin-top: 20px; }
.ty-secure { font-size: 12.5px; margin-top: 14px; }
.ty-back { margin-top: 26px; font-size: 14px; }

@media (max-width: 560px) {
  #app-form { padding: 22px 18px; }
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
}
