/* BackNine Quote & Apply panel (life / LTC / related) */
.backnine-quote {
  margin: 0 0 1.25rem;
  border-radius: 18px;
  border: 1.5px solid rgba(15, 46, 28, 0.12);
  background: linear-gradient(180deg, rgba(0, 200, 83, 0.08) 0%, #fff 42%);
  box-shadow: 0 14px 40px rgba(15, 46, 28, 0.08);
  overflow: hidden;
}

.backnine-quote[hidden] {
  display: none !important;
}

.backnine-quote__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(15, 46, 28, 0.1);
}

.backnine-quote__eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #00a844;
}

.backnine-quote__head h2,
.backnine-quote__head [data-backnine-title] {
  margin: 0 0 6px;
  font-family: var(--font-serif, Georgia, serif);
  font-size: 1.35rem;
  color: #0f2e1c;
  line-height: 1.25;
}

.backnine-quote__lead {
  margin: 0;
  max-width: 48rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #4b5563;
}

.backnine-quote__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.backnine-quote__body {
  padding: 12px 12px 16px;
  min-height: 120px;
}

.backnine-quote__widget-wrap,
.backnine-quote__frame-wrap {
  width: 100%;
  min-width: min(100%, 980px);
  border-radius: 12px;
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(15, 46, 28, 0.08);
}

.backnine-quote__widget-mount {
  min-height: 640px;
  width: 100%;
}

.backnine-quote__frame {
  display: block;
  width: 100%;
  min-height: 720px;
  height: 78vh;
  border: 0;
  background: #fff;
}

.backnine-quote__open-tab {
  margin: 10px 4px 0;
  font-size: 0.82rem;
}

.backnine-quote__open-tab a {
  color: #00a844;
  font-weight: 700;
  text-decoration: none;
}

.backnine-quote__open-tab a:hover {
  text-decoration: underline;
}

.backnine-quote__setup {
  padding: 12px 8px 4px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #374151;
}

.backnine-quote__setup p {
  margin: 0 0 10px;
}

.backnine-quote__setup code {
  font-size: 0.85em;
  background: rgba(15, 46, 28, 0.06);
  padding: 1px 6px;
  border-radius: 6px;
}

.backnine-quote__setup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px !important;
}

/* When BackNine is active on quote page, give the panel breathing room */
body.backnine-quote-active .quote-chatbot__tagline {
  /* unchanged — chat remains available for intake */
}

@media (max-width: 720px) {
  .backnine-quote__head {
    padding: 14px 14px 10px;
  }

  .backnine-quote__head h2,
  .backnine-quote__head [data-backnine-title] {
    font-size: 1.15rem;
  }

  .backnine-quote__widget-mount {
    min-height: 520px;
  }

  .backnine-quote__frame {
    min-height: 560px;
    height: 70vh;
  }
}
