.jfq-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Progress bar */
.jfq-progress {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}
.jfq-pb-seg {
  height: 3px;
  flex: 1;
  background: #e0e0e0;
  transition: background 0.3s;
}
.jfq-pb-seg.jfq-done { background: #1a3a6b; }
.jfq-pb-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #e0e0e0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #aaa;
  flex-shrink: 0;
  transition: all 0.3s;
  z-index: 1;
}
.jfq-pb-dot.jfq-done { background: #1a3a6b; border-color: #1a3a6b; color: #fff; }
.jfq-pb-dot.jfq-active { border-color: #1a3a6b; color: #1a3a6b; }

/* Steps */
.jfq-step { display: none; }
.jfq-step.jfq-active { display: block; }

.jfq-title {
  font-size: 22px;
  font-weight: 600;
  color: #111;
  text-align: center;
  margin: 0 0 6px;
}
.jfq-sub {
  font-size: 14px;
  color: #666;
  text-align: center;
  margin: 0 0 1.75rem;
}

/* Selection cards */
.jfq-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 1.75rem;
}
.jfq-cols4 { grid-template-columns: repeat(4, 1fr); }
.jfq-cols2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 580px) {
  .jfq-cols4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 380px) {
  .jfq-cols4 { grid-template-columns: 1fr 1fr; }
}

.jfq-sc {
  border: 1.5px solid #e0e0e0;
  border-radius: 14px;
  padding: 18px 12px 14px;
  cursor: pointer;
  background: #fff;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
}
.jfq-sc:hover { border-color: #1a3a6b; }
.jfq-sc.jfq-selected { border-color: #1a3a6b; background: #eef2f9; }

.jfq-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #ccc;
  background: #fff;
  display: block;
  transition: all 0.2s;
}
.jfq-sc.jfq-selected .jfq-check {
  background: #1a3a6b;
  border-color: #1a3a6b;
}
.jfq-sc.jfq-selected .jfq-check::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 2px;
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.jfq-sc-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 12px;
  background: #f5f6f8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jfq-sc.jfq-selected .jfq-sc-icon { background: #d6e2f5; }
.jfq-sc-label { font-size: 13px; font-weight: 600; color: #111; line-height: 1.3; }
.jfq-sc-sub { font-size: 11px; color: #888; margin-top: 3px; }

/* Checkbox list */
.jfq-cb-grid { display: grid; gap: 8px; margin-bottom: 1.75rem; }
.jfq-cb {
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  padding: 13px 16px;
  cursor: pointer;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.15s, background 0.15s;
}
.jfq-cb:hover { border-color: #1a3a6b; }
.jfq-cb.jfq-selected { border-color: #1a3a6b; background: #eef2f9; }
.jfq-cb-box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid #ccc;
  flex-shrink: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  position: relative;
}
.jfq-cb.jfq-selected .jfq-cb-box { background: #1a3a6b; border-color: #1a3a6b; }
.jfq-cb.jfq-selected .jfq-cb-box::after {
  content: '';
  display: block;
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}
.jfq-cb-text { font-size: 14px; font-weight: 500; color: #111; flex: 1; }
.jfq-cb-badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 100px;
  background: #eef2f9;
  color: #1a3a6b;
  font-weight: 600;
  white-space: nowrap;
}

/* Contact form */
.jfq-form-group { margin-bottom: 1rem; }
.jfq-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 1rem; }
@media (max-width: 480px) { .jfq-form-row { grid-template-columns: 1fr; } }
.jfq-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.jfq-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  color: #111;
  background: #fff;
  transition: border-color 0.15s;
  outline: none;
}
.jfq-input:focus { border-color: #1a3a6b; }

/* Trust row */
.jfq-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 12px 0 16px;
}
.jfq-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #888;
}
.jfq-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1a3a6b;
}

/* Error */
.jfq-error {
  color: #c0392b;
  font-size: 13px;
  text-align: center;
  margin-bottom: 10px;
  padding: 8px;
  background: #fef0f0;
  border-radius: 8px;
}

/* Nav buttons */
.jfq-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 0;
}
.jfq-btn-back {
  padding: 11px 20px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: #666;
  transition: all 0.15s;
}
.jfq-btn-back:hover { border-color: #aaa; color: #111; }
.jfq-btn-next {
  flex: 1;
  padding: 13px;
  background: #1a3a6b;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.jfq-btn-next:hover { opacity: 0.88; }
.jfq-btn-next:disabled { opacity: 0.4; cursor: default; }

/* Summary box */
.jfq-summary {
  background: #f5f6f8;
  border-radius: 12px;
  padding: 1.25rem;
  max-width: 380px;
  margin: 0 auto;
  text-align: left;
}
.jfq-sum-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid #e8e8e8;
}
.jfq-sum-row:last-child { border-bottom: none; }
.jfq-sum-lbl { font-size: 13px; color: #888; }
.jfq-sum-val { font-size: 13px; font-weight: 600; color: #111; text-align: right; max-width: 60%; }

/* Success */
.jfq-success { text-align: center; padding: 2rem 1rem; }
.jfq-success-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #eef2f9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
