/* ==========================================================================
   Conflow - contact page: multi-step wizard + voice note
   Layered on top of styles.css; scoped to the qualification form.
   ========================================================================== */

/* honeypot (spam trap): hidden from people and AT, still submitted */
.qf-honey {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* wizard: hide the non-active step (contact.js toggles this) */
.qf-step--off { display: none !important; }

/* styles.css gives .btn and .qf-thanks an explicit display, which beats the
   [hidden] attribute; force [hidden] to win for everything inside the form so
   the thank-you panel, Back, and "Get my plan" stay hidden until JS reveals them */
.qf [hidden] { display: none !important; }

/* progress: a clean, centered white card so it reads on any background */
.qf-progress {
  max-width: 520px;
  margin: 0 auto 30px;
  padding: 16px 24px;
  background: #fff;
  border: 1px solid #E6EAF2;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(20, 30, 60, .06);
  text-align: center;
}
.qf-progress__bar {
  height: 6px;
  max-width: 380px;
  margin: 0 auto;
  border-radius: 999px;
  background: #E8ECF3;
  overflow: hidden;
}
.qf-progress__fill {
  display: block;
  height: 100%;
  width: 16.6%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563EB, #4D7DF4);
  transition: width .35s cubic-bezier(.4, 0, .2, 1);
}
.qf-progress__label {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  color: #1B2540;
}
.qf-progress__label #qfStepNow,
.qf-progress__label #qfStepTotal { color: #2563EB; }
.qf-progress__label #qfStepName { color: #1B2540; }

/* wizard nav row: chunky buttons matching the primary .qf-submit__btn (15px 40px), centered */
.qf-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 8px; }
.qf-nav__spacer { display: none; }
.qf-nav__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 34px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #D7DEEA;
  color: #1B2540;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.qf-nav__back:hover { border-color: #2563EB; color: #2563EB; }
.qf-nav__next { padding: 15px 40px; font-size: 16px; }

/* voice note */
.qf-voice__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.qf-voice__btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border: 1px solid #D7DEEA;
  border-radius: 999px;
  background: #fff;
  color: #1B2540;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.qf-voice__btn:hover { border-color: #2563EB; color: #2563EB; }
.qf-voice__ico { width: 10px; height: 10px; border-radius: 50%; background: #2563EB; flex: 0 0 auto; }
.qf-voice__btn.is-recording { border-color: #E5484D; color: #E5484D; background: #FEF2F2; }
.qf-voice__btn.is-recording .qf-voice__ico { background: #E5484D; animation: qfPulse 1s ease-in-out infinite; }
.qf-voice__btn[disabled] { opacity: .6; cursor: not-allowed; }
@keyframes qfPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.72); } }
.qf-voice__time { font-variant-numeric: tabular-nums; font-size: 14px; color: #6B7688; min-width: 38px; }
.qf-voice__player { height: 36px; max-width: 230px; }
.qf-voice__clear {
  border: 0;
  background: none;
  color: #6B7688;
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  padding: 2px 4px;
}
.qf-voice__clear:hover { color: #1B2540; }
.qf-voice__hint { font-size: 13px; color: #6B7688; margin: 12px 0 6px; }
.qf-voice__file { font-size: 13px; color: #6B7688; }
