/* "Start a new program" on the sign-in page (public/js/programRequestForm.js).
   Uses the card's own colour words (--ink, --line-2, --navy, --msg-err), so it
   matches the sign-in form in both the light and the glass card. Motion: the
   fields rise in a wave like the sign-in fields, the thank-you tick draws
   itself. Reduced motion turns both off. */

.pr-start { margin: 22px 0 0; font-size: 12.5px; color: var(--ink-3); text-align: center; }
.pr-start .btn-link { font-size: 12.5px; font-weight: 600; }

#pr-form textarea,
#pr-form input[inputmode=numeric] {
  width: 100%; padding: 10px 0 9px; background: transparent; border: 0; border-bottom: 1px solid var(--line-2);
  border-radius: 0; font-family: var(--sans); font-size: 14px; color: var(--ink); outline: none; transition: border .15s;
}
#pr-form textarea { resize: vertical; min-height: 44px; line-height: 1.45; }
#pr-form textarea:focus { border-bottom-color: var(--navy); box-shadow: 0 1px 0 var(--navy); }
#pr-form .form-group { margin-bottom: 14px; }
.pr-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pr-opt { color: var(--ink-3); opacity: .8; }
.pr-hint { margin-top: 6px; font-size: 11.5px; color: var(--ink-3); }
.pr-err { margin-top: 6px; font-size: 12.5px; color: var(--msg-err, var(--red)); }
.pr-field.is-bad input, .pr-field.is-bad textarea { border-bottom-color: var(--msg-err, var(--red)); box-shadow: 0 1px 0 var(--msg-err, var(--red)); }
.pr-field.is-bad .pr-hint { display: none; }

/* The bot trap: off screen, never focusable by keyboard. */
.pr-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

#pr-form .pr-field, #pr-form .pr-pair, #pr-form > .btn-primary { animation: pr-rise .45s cubic-bezier(.16, 1, .3, 1) backwards; }
#pr-form > :nth-child(1) { animation-delay: .1s; }
#pr-form > :nth-child(2) { animation-delay: .16s; }
#pr-form > :nth-child(3) { animation-delay: .22s; }
#pr-form > :nth-child(4) { animation-delay: .28s; }
#pr-form > :nth-child(5) { animation-delay: .34s; }
#pr-form > :nth-child(6) { animation-delay: .40s; }
#pr-form > .btn-primary { animation-delay: .46s; }
@keyframes pr-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.pr-thanks { padding-top: 6px; color: var(--ink-2); font-size: 14px; line-height: 1.55; animation: pr-rise .5s cubic-bezier(.16, 1, .3, 1) both; }
.pr-thanks p { margin: 0 0 12px; }
.pr-thanks strong { color: var(--ink); font-weight: 600; }
.pr-thanks-title { font-family: var(--serif); font-size: 30px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); margin: 14px 0 10px; }
.pr-tick { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--ink);
  border: 1.5px solid var(--line-2); animation: pr-pop .5s cubic-bezier(.34, 1.56, .64, 1) .1s both; }
.pr-tick path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: pr-draw .45s ease-out .35s forwards; }
@keyframes pr-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes pr-draw { to { stroke-dashoffset: 0; } }

@media (max-width: 420px) { .pr-pair { grid-template-columns: 1fr; gap: 0; } }
@media (prefers-reduced-motion: reduce) {
  #pr-form .pr-field, #pr-form .pr-pair, #pr-form > .btn-primary, .pr-thanks, .pr-tick { animation: none; }
  .pr-tick path { animation: none; stroke-dashoffset: 0; }
}
