/* ============================================================
   BUSINESS QUALIFIER WIDGET — qualifier.css
   Floating round button (bottom-left) + slide-up panel
   ============================================================ */

/* ---- Floating Container ---- */
.qualifier-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9997;
  font-family: "Poppins", sans-serif;
}

/* ---- FAB Wrapper ---- */
.qualifier-fab-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

/* ---- FAB Button ---- */
.qualifier-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.45);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: qualPulse 2.5s infinite;
}
.qualifier-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 22px rgba(102, 126, 234, 0.65);
}
.qualifier-toggle i {
  color: white;
  font-size: 22px;
}
@keyframes qualPulse {
  0%,  100% { box-shadow: 0 4px 15px rgba(102, 126, 234, 0.45); }
  50%        { box-shadow: 0 4px 28px rgba(102, 126, 234, 0.75); }
}

/* FAB micro-label */
.qualifier-fab-tag {
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #667eea, #764ba2);
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.35);
}

/* ---- Panel ---- */
.qualifier-panel {
  position: fixed;
  bottom: 90px;
  left: 20px;
  width: 375px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 130px);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.07);
}
.qualifier-panel.active {
  display: flex;
  animation: qualSlideUp 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes qualSlideUp {
  from { opacity: 0; transform: translateY(22px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* ---- Header ---- */
.qualifier-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.qualifier-header-left {
  display: flex;
  align-items: center;
  gap: 11px;
}
.qualifier-header-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: white;
}
.qualifier-header-text h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}
.qualifier-header-text p {
  margin: 2px 0 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.88);
}
.qualifier-close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
  opacity: 0.85;
}
.qualifier-close-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  opacity: 1;
}

/* ---- Progress Bar ---- */
.qualifier-progress-wrap {
  height: 3px;
  background: #f0f0f0;
  flex-shrink: 0;
}
.qualifier-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.45s ease;
  width: 0%;
}

/* Step info bar */
.qualifier-step-info {
  display: flex;
  justify-content: space-between;
  padding: 7px 18px 3px;
  font-size: 11px;
  color: #999;
  flex-shrink: 0;
}
.qualifier-step-info .step-title-label {
  color: #667eea;
  font-weight: 700;
}

/* ---- Scrollable Body ---- */
.qualifier-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px 18px;
}
.qualifier-body::-webkit-scrollbar { width: 4px; }
.qualifier-body::-webkit-scrollbar-thumb {
  background: #e0e0e0;
  border-radius: 2px;
}

/* ---- Step Wrapper ---- */
.qualifier-step {
  display: none;
}
.qualifier-step.active {
  display: block;
  animation: qualFadeIn 0.28s ease;
}
@keyframes qualFadeIn {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: translateX(0);    }
}
.qualifier-step h4 {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 3px;
  line-height: 1.38;
}
.qualifier-step .qual-sub {
  font-size: 11px;
  color: #999;
  margin: 0 0 14px;
}

/* ---- Option Cards ---- */
.qual-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 2px;
}
.qual-options.three-col {
  grid-template-columns: 1fr 1fr 1fr;
}
.qual-option {
  border: 2px solid #ebebeb;
  border-radius: 11px;
  padding: 11px 8px;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
  background: #fafafa;
  user-select: none;
}
.qual-option:hover {
  border-color: #667eea;
  background: #f5f5ff;
  transform: translateY(-1px);
}
.qual-option.selected {
  border-color: #667eea;
  background: linear-gradient(135deg, #f0eeff, #f5f5ff);
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.22);
}
.qual-opt-icon {
  font-size: 20px;
  margin-bottom: 6px;
  line-height: 1;
  color: #94a3b8;
}
.qual-option.selected .qual-opt-icon {
  color: #667eea;
}
.qual-opt-label {
  font-size: 11px;
  font-weight: 600;
  color: #444;
  line-height: 1.3;
}
.qual-option.selected .qual-opt-label {
  color: #5a67d8;
}

/* ---- Nav Buttons ---- */
.qual-nav {
  display: flex;
  gap: 9px;
  margin-top: 16px;
}
.qual-back-btn {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 2px solid #e8e8e8;
  border-radius: 9px;
  background: white;
  color: #666;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  font-family: "Poppins", sans-serif;
}
.qual-back-btn:hover {
  border-color: #bbb;
  color: #333;
}
.qual-next-btn {
  flex: 1;
  padding: 10px 16px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: "Poppins", sans-serif;
  letter-spacing: 0.2px;
}
.qual-next-btn:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.38);
}
.qual-next-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* ---- Contact Form Step ---- */
.qual-form-group {
  margin-bottom: 11px;
}
.qual-form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #666;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.qual-form-group input {
  width: 100%;
  padding: 9px 12px;
  border: 2px solid #e8e8e8;
  border-radius: 9px;
  font-size: 13px;
  font-family: "Poppins", sans-serif;
  color: #333;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  outline: none;
  background: #fafafa;
}
.qual-form-group input:focus {
  border-color: #667eea;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}
.qual-privacy-note {
  font-size: 10px;
  color: #bbb;
  text-align: center;
  margin: 6px 0 0;
}

/* ---- Submitting State ---- */
.qual-submitting {
  text-align: center;
  padding: 30px 20px;
}
.qual-submitting .qual-spin-icon {
  font-size: 28px;
  color: #667eea;
  margin-bottom: 10px;
  display: block;
  animation: qualSpin 0.9s linear infinite;
}
@keyframes qualSpin {
  from { transform: rotate(0deg);   }
  to   { transform: rotate(360deg); }
}
.qual-submitting p {
  font-size: 13px;
  color: #888;
  margin: 0;
}

/* ---- Result Step ---- */
.qual-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(118,75,162,0.1));
  border: 1px solid rgba(102, 126, 234, 0.3);
  color: #5a67d8;
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.qual-result-badge i {
  font-size: 11px;
}
.qual-result-card {
  background: linear-gradient(135deg, #f5f5ff, #fff);
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 13px;
  padding: 16px;
  text-align: center;
  margin-bottom: 14px;
}
.qual-result-icon {
  font-size: 30px;
  margin-bottom: 9px;
  line-height: 1;
  display: block;
  color: #667eea;
}
.qual-result-title {
  font-size: 15px;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0 0 7px;
  line-height: 1.3;
}
.qual-result-desc {
  font-size: 12px;
  color: #666;
  line-height: 1.55;
  margin: 0 0 11px;
}
.qual-result-tags {
  display: flex;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
}
.qual-score-tag {
  background: rgba(102, 126, 234, 0.1);
  color: #5a67d8;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.qual-result-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.qual-cta-primary {
  padding: 12px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  text-decoration: none;
  display: block;
  text-align: center;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.35);
}
.qual-cta-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.qual-cta-secondary {
  padding: 10px;
  background: white;
  color: #667eea;
  border: 2px solid rgba(102, 126, 234, 0.45);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  text-decoration: none;
  display: block;
  text-align: center;
  transition: all 0.2s;
}
.qual-cta-secondary:hover {
  background: #f5f5ff;
  border-color: #667eea;
}
.qual-result-footer-note {
  font-size: 10px;
  color: #c0c0c0;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 0;
}

/* ---- Mobile ---- */
@media (max-width: 480px) {
  .qualifier-panel {
    left: 8px;
    right: 8px;
    width: auto;
    max-width: calc(100vw - 16px);
    bottom: 90px;
  }
  .qualifier-container {
    left: 12px;
    bottom: 12px;
  }
  .qual-options {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .qualifier-toggle {
    width: 54px;
    height: 54px;
  }
}
