/* LIT-CRM — Pre-Sale Carrier Consultant
   Theme-native: uses the platform CSS variables (var(--primary) ...).
   No hardcoded blue/indigo. The widget root also carries the platform .card class. */

.psc {
  margin: 0 0 18px 0;
  padding: 0;
  overflow: hidden;
}

.psc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  background: var(--primary-soft, rgba(43, 181, 155, .12));
  color: inherit;
  cursor: pointer;
  text-align: left;
  font: inherit;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
}
.psc-header:hover { background: var(--primary-soft, rgba(43, 181, 155, .18)); }

.psc-header-icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--primary, #2bb59b);
  color: #fff;
}
.psc-header-text { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.psc-header-title { font-size: 15px; font-weight: 800; line-height: 1.2; color: #0f172a; }
.psc-header-sub { font-size: 12px; color: #64748b; }
.psc-badge {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  padding: 4px 10px; border-radius: 999px;
  background: var(--primary, #2bb59b); color: #fff;
  white-space: nowrap;
}
.psc-chevron { font-size: 14px; color: #64748b; transition: transform .2s ease; margin-left: 4px; }
.psc.is-collapsed .psc-chevron { transform: rotate(-90deg); }

.psc-body { padding: 18px; }
.psc.is-collapsed .psc-body { display: none; }

.psc-section-label {
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary-dark, #1f9d86);
  margin: 4px 0 10px;
  display: flex; align-items: center; gap: 8px;
}
.psc-section-label::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--primary-soft, rgba(43, 181, 155, .25)), transparent);
}

.psc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.psc-grid-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .psc-grid, .psc-grid-2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .psc-grid, .psc-grid-2 { grid-template-columns: 1fr; } }

.psc-field { display: flex; flex-direction: column; gap: 4px; }
.psc-field label {
  font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  color: #475569;
}
/* Inputs reuse the platform .input class; this only tightens spacing inside the widget. */
.psc-field .input { width: 100%; }

.psc-invalid { border-color: #dc2626 !important; box-shadow: 0 0 0 3px rgba(220, 38, 38, .12) !important; }

.psc-conditions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.psc-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  border: 1.5px solid #d1d5db; background: #fff;
  color: #374151; font-size: 12px; font-weight: 600;
  cursor: pointer; user-select: none; transition: all .15s ease;
}
.psc-pill:hover { border-color: var(--primary, #2bb59b); color: var(--primary-dark, #1f9d86); }
.psc-pill input[type=checkbox] { display: none; }
.psc-pill.is-checked {
  background: var(--primary-soft, rgba(43, 181, 155, .12));
  border-color: var(--primary, #2bb59b);
  color: var(--primary-dark, #1f9d86);
}
.psc-pill.is-checked::before { content: '✓'; font-weight: 800; }

.psc-notes { width: 100%; resize: vertical; min-height: 60px; margin-bottom: 14px; }

.psc-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.psc-consulting { display: inline-flex; align-items: center; }

.psc-results { margin-top: 8px; }
.psc-result-label {
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary-dark, #1f9d86);
  margin: 14px 0 8px;
}
.psc-apply-label { color: var(--accent, #6f63ff); }
.psc-ai-text {
  border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 14px 16px; background: #fff;
  font-size: 13px; line-height: 1.7; color: #1e293b;
  white-space: pre-wrap;
}
.psc-carrier-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.psc-use-carrier {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  border: 1.5px solid var(--primary, #2bb59b);
  background: var(--primary-soft, rgba(43, 181, 155, .12));
  color: var(--primary-dark, #1f9d86);
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: all .15s ease; font-family: inherit;
}
.psc-use-carrier:hover { background: var(--primary, #2bb59b); color: #fff; }
.psc-use-carrier.is-selected { background: var(--primary-dark, #1f9d86); color: #fff; border-color: var(--primary-dark, #1f9d86); }
.psc-use-carrier.is-no-match { background: #fff7ed; border-color: #f59e0b; color: #92400e; cursor: default; }

.psc-error {
  border: 1.5px solid #fca5a5; background: #fef2f2; color: #b91c1c;
  border-radius: 10px; padding: 12px 16px; font-size: 13px; font-weight: 600;
}

.psc-disclaimer { margin-top: 14px; font-style: italic; }

.psc-typing { display: flex; align-items: center; gap: 5px; padding: 14px 4px; }
.psc-typing span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary, #2bb59b);
  animation: pscBounce .9s infinite;
}
.psc-typing span:nth-child(2) { animation-delay: .15s; }
.psc-typing span:nth-child(3) { animation-delay: .30s; }
@keyframes pscBounce { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-6px); opacity: 1; } }
