/* One-question-at-a-time assessment request (contact page) */
.qf-body { min-height: 100vh; display: flex; flex-direction: column; color: #dfe7f5; background: linear-gradient(160deg, var(--navy-800), var(--navy-950) 70%); background-attachment: fixed; position: relative; }
.qf-body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(143, 180, 234, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(143, 180, 234, 0.07) 1px, transparent 1px); background-size: 120px 120px; }
.qf-body > * { position: relative; }
.qf-progress { position: fixed; top: 0; left: 0; right: 0; height: 5px; background: rgba(143, 180, 234, 0.18); z-index: 20; }
.qf-progress span { display: block; height: 100%; width: 0; background: #8fb4ea; transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.qf-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--gutter); max-width: var(--wrap); width: 100%; margin: 0 auto; }
.qf-top img { height: 76px; width: auto; margin-left: -14px; }
.qf-exit { color: #dfe7f5; font-weight: 600; font-size: 0.95rem; text-decoration: none; padding: 12px 4px; }
.qf-exit:hover { color: #fff; text-decoration: underline; }
.qf-stage { flex: 1; display: flex; align-items: center; padding: 0 var(--gutter) 110px; }
.qf-form { width: 100%; max-width: 760px; margin: 0 auto; }
.qf-screen { padding: 24px 0; }
.qf-screen.in-up { animation: qf-in-up 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.qf-screen.in-down { animation: qf-in-down 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes qf-in-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes qf-in-down { from { opacity: 0; transform: translateY(-28px); } to { opacity: 1; transform: none; } }
.qf-body .kicker { color: #c7d9f5; }
.qf-body .lead { color: #c7d4ea; }
.qf-body a { color: #fff; }
.qf-title { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); outline: none; max-width: 18ch; }
.qf-set { border: 0; padding: 0; margin: 0; min-width: 0; }
.qf-q { font-family: var(--serif); font-weight: 600; color: #fff; line-height: 1.15; font-size: clamp(1.7rem, 3.8vw, 2.5rem); padding: 0; margin: 0 0 12px; outline: none; }
.qf-num { display: block; font-family: var(--sans); color: #c7d9f5; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.16em; margin-bottom: 14px; }
.qf-hint { color: #c7d4ea; font-size: 1.05rem; margin: 0 0 24px; max-width: 60ch; }
.qf-q + .qf-opts, .qf-q + .qf-field { margin-top: 24px; }
.qf-field { margin-top: 18px; }
.qf-label { display: block; font-size: 0.9rem; font-weight: 600; color: #dfe7f5; margin-bottom: 4px; }
.qf-label span { color: #a9bddb; font-weight: 400; }
.qf-input { width: 100%; font: inherit; font-size: clamp(1.2rem, 2.6vw, 1.6rem); color: #fff; background: transparent; border: 0; border-bottom: 2px solid #8fb4ea; border-radius: 0; padding: 10px 2px; }
.qf-input::placeholder { color: #8ea3c7; }
.qf-input:focus { outline: none; border-bottom-color: #fff; box-shadow: 0 2px 0 #fff; }
.qf-area { resize: vertical; min-height: 3.6em; line-height: 1.4; }
.qf-input[aria-invalid="true"] { border-bottom-color: #ffb4a8; }
.qf-opts { display: grid; gap: 10px; max-width: 560px; }
.qf-opt { position: relative; display: flex; align-items: center; gap: 14px; padding: 13px 18px; min-height: 54px; background: rgba(255, 255, 255, 0.04); border: 1.5px solid rgba(143, 180, 234, 0.45); border-radius: var(--radius-md); cursor: pointer; font-size: 1.08rem; font-weight: 600; color: #fff; transition: background 0.15s, border-color 0.15s; }
.qf-opt:hover { border-color: #8fb4ea; background: rgba(143, 180, 234, 0.1); }
.qf-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.qf-key { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 1.5px solid #8fb4ea; border-radius: var(--radius-sm); font-size: 0.75rem; font-weight: 700; color: #c7d9f5; }
.qf-opt:has(input:checked) { background: var(--blue-600); border-color: #c7d9f5; }
.qf-opt:has(input:checked) .qf-key { background: #fff; border-color: #fff; color: var(--navy-900); }
.qf-opt:has(input:focus-visible) { outline: 3px solid #fff; outline-offset: 3px; }
.qf-other { margin-top: 16px; max-width: 560px; }
.qf-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 32px; }
.qf-actions .btn--primary { background: #fff; color: var(--navy-900); }
.qf-actions .btn--primary:hover { background: var(--blue-100); color: var(--navy-900); }
.qf-enter { font-size: 0.85rem; color: #a9bddb; }
.qf-enter b { font-weight: 700; color: #dfe7f5; }
.qf-screen .err { color: #ffb4a8; font-weight: 600; font-size: 0.95rem; margin: 10px 0 0; }
.qf-consent { font-size: 0.9rem; color: #c7d4ea; max-width: 40em; margin: 20px 0 0; }
.qf-back { position: fixed; left: var(--gutter); bottom: 64px; z-index: 15; background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.55); padding: 10px 18px; font-size: 0.95rem; }
.qf-back:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.qf-back[hidden] { display: none; }
.qf-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 16px var(--gutter); font-size: 0.85rem; color: #a9bddb; border-top: 1px solid rgba(143, 180, 234, 0.18); }
.qf-foot a { color: #dfe7f5; text-decoration: none; }
.qf-foot a:hover { text-decoration: underline; }
@media (hover: none) { .qf-enter { display: none; } .qf-key { display: none; } }
@media (max-width: 640px) {
  .qf-top img { height: 60px; }
  .qf-stage { align-items: flex-start; padding-top: 8px; }
  .qf-back { bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  .qf-screen.in-up, .qf-screen.in-down { animation: none; }
  .qf-progress span { transition: none; }
}