/* Smooth steps on Send PAT (Nov 2, 2026).
   A gold check shows next to each step once it's done. The scrolling lives in index.html (FLOW_STEPS).
   To roll back: set FLOW_STEPS = false in index.html (this file then does nothing). */

/* Step headings: check sits right after the words */
html.flow .flow-done > .qlabel::after,
html.flow fieldset.flow-done > legend::after{
  content:"";display:inline-block;vertical-align:-3px;margin-left:8px;width:20px;height:20px;border-radius:50%;
  background:var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat;
  animation:flow-pop .35s cubic-bezier(.3,1.6,.5,1) both}

/* Text boxes: check sits at the top right of the box's label */
html.flow form > label{position:relative}
html.flow form > label.flow-done::after{
  content:"";position:absolute;top:0;right:0;width:18px;height:18px;border-radius:50%;
  background:var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat;
  animation:flow-pop .35s cubic-bezier(.3,1.6,.5,1) both}
html.flow form > label .ltext{padding-right:26px}

@keyframes flow-pop{from{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}
@media (prefers-reduced-motion: reduce){
  html.flow .flow-done > .qlabel::after, html.flow fieldset.flow-done > legend::after, html.flow form > label.flow-done::after{animation:none}
}
