/* ==========================================================================
   CTW BOS — ECOUNT-STYLE FACEBOOK INSTANT LEAD FORM MODAL (lead-modal.css)
   Pixel-Matched Dark Meta Instant Form UI (#18191a / #242526 / #3e4042)
   ========================================================================== */
.bos-fb-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 14, 0.78);
  backdrop-filter: blur(3px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.bos-fb-modal-backdrop.open {
  display: flex;
}

.bos-fb-modal {
  width: 100%;
  max-width: 500px;
  max-height: 92vh;
  background: #18191a;
  color: #e4e6eb;
  border-radius: 16px;
  border: 1px solid #303235;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.72);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* TOP BAR ("CTW BOS PH" + X Close) */
.bos-fb-header {
  height: 58px;
  background: #242526;
  border-bottom: 1px solid #333537;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: none;
  padding: 0 54px;
}

.bos-fb-header-title {
  font-size: 17.5px;
  font-weight: 800;
  color: #f5f6f7;
  letter-spacing: -0.01em;
  text-align: center;
}

.bos-fb-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #3a3b3c;
  border: none;
  color: #b0b3b8;
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 0.15s ease;
}

.bos-fb-close:hover {
  background: #4e4f50;
  color: #ffffff;
}

.bos-fb-back {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: #3a3b3c;
  border: none;
  color: #e4e6eb;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 11px;
  border-radius: 999px;
  cursor: pointer;
}

/* STEP PROGRESS DOTS */
.bos-fb-progress {
  background: #18191a;
  padding: 12px 22px 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bos-fb-prog-bar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: #3a3b3c;
  overflow: hidden;
}

.bos-fb-prog-bar.active {
  background: #0866ff;
}

/* SCROLLABLE BODY WITH STACKED #242526 QUESTION CARDS */
.bos-fb-body {
  padding: 12px 18px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.bos-fb-intro-card {
  background: linear-gradient(145deg, #1f2937 0%, #242526 100%);
  border: 1px solid #374151;
  border-radius: 14px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 13px;
}

.bos-fb-intro-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #ffffff;
  padding: 4px;
  object-fit: contain;
  flex: none;
}

.bos-fb-intro-card strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.bos-fb-intro-card span {
  display: block;
  font-size: 12px;
  color: #cbd5e1;
  margin-top: 2px;
  line-height: 1.4;
}

/* EXACT ECOUNT-STYLE DARK QUESTION CARD */
.bos-fb-qcard {
  background: #242526;
  border-radius: 16px;
  padding: 20px 20px 22px;
  border: 1px solid #2f3031;
}

.bos-fb-qcard label {
  display: block;
  font-size: 16.5px;
  font-weight: 800;
  color: #f5f6f7;
  line-height: 1.32;
  margin-bottom: 13px;
  letter-spacing: -0.01em;
}

.bos-fb-qcard label small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #9ca3af;
  margin-top: 3px;
}

.bos-fb-select-wrap {
  position: relative;
}

.bos-fb-select,
.bos-fb-input {
  width: 100%;
  height: 52px;
  background: #242526;
  border: 1.5px solid #4b4d50;
  border-radius: 10px;
  padding: 0 16px;
  color: #f5f6f7;
  font-size: 15px;
  font-weight: 500;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}

.bos-fb-select:invalid,
.bos-fb-select.placeholder {
  color: #9ca3af;
}

.bos-fb-select option {
  background: #242526;
  color: #f5f6f7;
  padding: 10px;
}

.bos-fb-select:focus,
.bos-fb-input:focus {
  outline: none;
  border-color: #0866ff;
  box-shadow: 0 0 0 3px rgba(8, 102, 255, 0.22);
}

.bos-fb-select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #e4e6eb;
  font-size: 13px;
}

.bos-fb-privacy {
  font-size: 11.5px;
  color: #9ca3af;
  line-height: 1.45;
  padding: 4px 6px;
}

/* STICKY FOOTER ("Continue" / "Submit") */
.bos-fb-footer {
  padding: 13px 18px;
  background: #242526;
  border-top: 1px solid #333537;
  flex: none;
}

.bos-fb-continue-btn {
  width: 100%;
  height: 46px;
  border-radius: 8px;
  border: none;
  background: #3a3b3c;
  color: #8a8d91;
  font-size: 15px;
  font-weight: 700;
  cursor: not-allowed;
  transition: 0.16s ease;
}

.bos-fb-continue-btn.ready {
  background: #0866ff;
  color: #ffffff;
  cursor: pointer;
}

.bos-fb-continue-btn.ready:hover {
  background: #075ce5;
}

/* COMPLETION / INSTANT LIVE PREVIEW SCREEN */
.bos-fb-success {
  padding: 26px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.bos-fb-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.18);
  border: 2px solid #22c55e;
  color: #4ade80;
  font-size: 30px;
  font-weight: 900;
  display: grid;
  place-items: center;
}

.bos-fb-score-pill {
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  background: rgba(250, 204, 21, 0.18);
  color: #fde047;
  border: 1px solid rgba(250, 204, 21, 0.4);
}

.bos-fb-launch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f5b800, #eab308);
  color: #0b111e;
  font-family: 'Montserrat', sans-serif;
  font-size: 14.5px;
  font-weight: 900;
  text-decoration: none;
  margin-top: 6px;
}

.bos-fb-launch-btn:hover {
  filter: brightness(1.06);
}
