/* ── Byolife RFQ Widget ── */
#brfq-bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: #2563eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99998;
  box-shadow: 0 4px 16px rgba(37,99,235,0.4);
  transition: transform 0.2s, background 0.2s;
}
#brfq-bubble:hover { transform: scale(1.08); background: #1d4ed8; }
#brfq-bubble svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#brfq-bubble .brfq-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 3px solid rgba(37,99,235,0.4);
  animation: brfq-pulse 2s ease-out infinite;
}
@keyframes brfq-pulse {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
#brfq-bubble .brfq-tooltip {
  position: absolute;
  right: 70px;
  background: #1e293b;
  color: #fff;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
#brfq-bubble:hover .brfq-tooltip { opacity: 1; }

/* ── Overlay ── */
#brfq-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.55);
  z-index: 99999;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 28px 100px;
}
#brfq-overlay.brfq-open { display: flex; }

/* ── Modal ── */
#brfq-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: brfq-slide-up 0.25s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
@keyframes brfq-slide-up {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ── Modal header ── */
.brfq-header {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  padding: 20px 22px 16px;
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brfq-header-icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brfq-header-icon svg { width:20px; height:20px; stroke:#fff; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.brfq-header-text h3 { margin:0; font-size:15px; font-weight:700; color:#fff; }
.brfq-header-text p  { margin:4px 0 0; font-size:12px; color:rgba(255,255,255,0.8); }
.brfq-close {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 0 0 2px;
}
.brfq-close:hover { color: #fff; }

/* ── Steps ── */
.brfq-steps {
  display: flex;
  padding: 14px 22px 0;
  gap: 4px;
}
.brfq-step-dot {
  flex: 1;
  height: 3px;
  background: #e5e7eb;
  border-radius: 2px;
  transition: background 0.3s;
}
.brfq-step-dot.active { background: #2563eb; }

/* ── Body ── */
.brfq-body { padding: 18px 22px 22px; }
.brfq-step { display: none; }
.brfq-step.active { display: block; }
.brfq-step-title { font-size: 14px; font-weight: 700; color: #1e293b; margin: 0 0 14px; }

/* ── Form fields ── */
.brfq-field { margin-bottom: 13px; }
.brfq-field label { display: block; font-size: 12px; font-weight: 600; color: #64748b; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.04em; }
.brfq-field input,
.brfq-field select,
.brfq-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 14px;
  color: #1e293b;
  background: #f8fafc;
  transition: border-color 0.15s;
  font-family: inherit;
}
.brfq-field input:focus,
.brfq-field select:focus,
.brfq-field textarea:focus {
  outline: none;
  border-color: #2563eb;
  background: #fff;
}
.brfq-field textarea { resize: vertical; min-height: 80px; }
.brfq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ── Multi-quote checkbox ── */
.brfq-multiquote {
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.brfq-multiquote input[type="checkbox"] { margin-top: 2px; accent-color: #2563eb; width: 16px; height: 16px; flex-shrink: 0; }
.brfq-multiquote label { font-size: 13px; color: #1e40af; font-weight: 500; line-height: 1.4; cursor: pointer; }

/* ── Buttons ── */
.brfq-btn-row { display: flex; gap: 8px; margin-top: 18px; }
.brfq-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.brfq-btn:active { transform: scale(0.98); }
.brfq-btn-primary { background: #2563eb; color: #fff; }
.brfq-btn-primary:hover { background: #1d4ed8; }
.brfq-btn-secondary { background: #f1f5f9; color: #475569; }
.brfq-btn-secondary:hover { background: #e2e8f0; }
.brfq-btn-wa { background: #25D366; color: #fff; width: 100%; margin-top: 10px; }
.brfq-btn-wa:hover { background: #1ebe5d; }

/* ── Error ── */
.brfq-error { color: #dc2626; font-size: 13px; margin-top: -6px; margin-bottom: 10px; display: none; }

/* ── Spinner ── */
.brfq-spinner { display: none; }
.brfq-btn-primary.loading .brfq-spinner { display: inline-block; }
.brfq-btn-primary.loading .brfq-btn-label { display: none; }
.brfq-spinner::after {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: brfq-spin 0.6s linear infinite;
}
@keyframes brfq-spin { to { transform: rotate(360deg); } }

/* ── Confirmation ── */
#brfq-confirm { text-align: center; padding: 28px 22px; }
#brfq-confirm .brfq-tick { font-size: 48px; margin-bottom: 12px; }
#brfq-confirm h3 { font-size: 17px; font-weight: 700; color: #1e293b; margin: 0 0 8px; }
#brfq-confirm p  { font-size: 14px; color: #64748b; margin: 0 0 20px; line-height: 1.5; }

/* ── Mobile ── */
@media (max-width: 480px) {
  #brfq-overlay { padding: 0 0 90px; justify-content: center; }
  #brfq-modal { border-radius: 16px 16px 0 0; max-height: 92vh; }
  .brfq-row { grid-template-columns: 1fr; }
}
