/* Form pages. Builds on /styles.css (the quiz's theme: Poppins, purple #1d0042, yellow #ffbc00) and reuses its
   .progress, .options, .option, .scale and .btn styles so forms and the quiz look like one product. */
.tf { padding: 48px 0 96px; min-height: 70vh; }
.tf .progress { margin-bottom: 40px; }
.tf h1 { font-size: 26px; line-height: 1.35; font-weight: 500; margin: 0 0 16px; }
.tf h1:focus { outline: none; }
.tf .req { color: var(--muted); }
.tf .hint { color: var(--muted); margin: 0 0 20px; font-size: 15px; }
.tf .hint.small { font-size: 13px; margin-top: 8px; }
.tf .options { margin-top: 8px; }
.tf .options.yn { grid-template-columns: repeat(2, minmax(0, 200px)); }
.tf input[type="text"], .tf input[type="email"], .tf input[type="url"], .tf input[type="number"], .tf input[type="tel"], .tf textarea {
  width: 100%; font: inherit; font-size: 20px; color: var(--ink); border: 0; border-bottom: 2px solid var(--line);
  padding: 10px 2px; background: transparent; border-radius: 0; }
.tf textarea { font-size: 18px; resize: vertical; border: 2px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.tf input:focus, .tf textarea:focus { outline: none; border-color: var(--purple); }
.tf .other { display: flex; gap: 12px; align-items: center; border: 2px dashed var(--line); border-radius: 8px; padding: 6px 14px; }
.tf .other span { color: var(--muted); white-space: nowrap; }
.tf .other input { font-size: 16px; border: 0; padding: 8px 0; }
.tf .scale-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin-top: 8px; }
.tf-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; }
.tf-nav .btn { min-width: 140px; margin-left: auto; }
.tf .form-error { color: #b42318; margin: 16px 0 0; }
.tf .ending { text-align: center; padding: 40px 0; }
.tf .ending .rich { margin: 0 auto 24px; max-width: 620px; }
#cf-turnstile { margin-top: 24px; }
.q-enter { animation: q-in 0.25s ease-out; }
@keyframes q-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .q-enter { animation: none; } }
@media (max-width: 640px) {
  .tf { padding: 28px 0 64px; }
  .tf h1 { font-size: 21px; }
  .tf .options.yn { grid-template-columns: 1fr 1fr; }
  .tf-nav .btn { min-width: 0; flex: 1; margin-left: 16px; }
}
