/* Plus Jakarta Sans (SIL Open Font License), served from this site instead of Google Fonts. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/feedback-assets/fonts/pjs-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/feedback-assets/fonts/pjs-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Bits the hosted form needs that the design file doesn't have. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { margin: 0; padding: 10px 14px; border-radius: 10px; background: rgba(255, 107, 107, .14); color: #ffd0d0; font-size: 14px; }
/* ══ Success state ══
   Replaces the form in place, so it has to carry the same visual weight the form
   did — the old 28px box left a hole where the card had been. The reveal is one
   orchestrated beat: panel rises, ring draws, tick draws, lines stagger in. */
.form-done {
  padding: 48px 40px; border-radius: 20px; text-align: center;
  background: linear-gradient(165deg, rgba(255,255,255,.09), rgba(255,255,255,.045));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 24px 60px rgba(0,0,0,.34);
  animation: done-in .62s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes done-in { from { opacity: 0; transform: translateY(14px) scale(.975) } to { opacity: 1; transform: none } }

.form-done .done-mark { display: block; margin: 0 auto 22px; width: 68px; height: 68px }
.form-done .done-ring {
  fill: none; stroke: rgba(255,255,255,.26); stroke-width: 4;
  stroke-dasharray: 182; stroke-dashoffset: 182;
  animation: done-draw .72s cubic-bezier(.4,0,.2,1) .12s forwards;
}
.form-done .done-tick {
  fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 44; stroke-dashoffset: 44;
  animation: done-draw .42s cubic-bezier(.4,0,.2,1) .62s forwards;
}
@keyframes done-draw { to { stroke-dashoffset: 0 } }

.form-done h3 {
  margin: 0 0 10px; font-family: var(--font-display); font-size: 27px; line-height: 1.2; color: #fff;
  animation: done-rise .5s cubic-bezier(.2,.7,.2,1) .3s both;
}
.form-done .done-lede {
  margin: 0 auto; max-width: 42ch; font-size: 16px; line-height: 1.6; color: var(--text-muted-on-dark);
  animation: done-rise .5s cubic-bezier(.2,.7,.2,1) .4s both;
}
.form-done .done-lede b { color: #fff; font-weight: 600 }
@keyframes done-rise { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }

.form-done .done-facts {
  margin: 30px auto 0; padding-top: 24px; max-width: 420px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: grid; gap: 14px; text-align: left;
}
.form-done .done-facts div {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14.5px; line-height: 1.5; color: var(--text-muted-on-dark);
  animation: done-rise .5s cubic-bezier(.2,.7,.2,1) both;
}
.form-done .done-facts div:nth-child(1) { animation-delay: .54s }
.form-done .done-facts div:nth-child(2) { animation-delay: .64s }
.form-done .done-facts b { color: #fff; font-weight: 600 }
.form-done .done-facts svg { flex: none; width: 18px; height: 18px; margin-top: 1px; stroke: #fff; opacity: .75 }

@media (max-width: 560px) { .form-done { padding: 38px 22px } .form-done h3 { font-size: 23px } }

/* Someone who asked for less motion still gets the panel, just without the theatre. */
@media (prefers-reduced-motion: reduce) {
  .form-done, .form-done h3, .form-done .done-lede, .form-done .done-facts div { animation: none }
  .form-done .done-ring, .form-done .done-tick { animation: none; stroke-dashoffset: 0 }
}
