/* ═══════════════════════════════════════════
   CONTACT SEARCH (new job form)
═══════════════════════════════════════════ */
.contact-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 10;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  max-height: 240px;
  overflow-y: auto;
}
.contact-search-result {
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.1s;
  border-bottom: 1px solid var(--border-lo);
}
.contact-search-result:last-child {
  border-bottom: none;
}
.contact-search-result:hover {
  background: var(--surface-hi);
}

/* ═══════════════════════════════════════════
   CONTACT CARDS (grid)
═══════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  cursor: pointer;
  transition:
    border-color 0.12s,
    box-shadow 0.12s;
  text-decoration: none;
  color: inherit;
  display: block;
  animation: risein 0.3s ease both;
}
.contact-card:nth-child(1) {
  animation-delay: 0.03s;
}
.contact-card:nth-child(2) {
  animation-delay: 0.06s;
}
.contact-card:nth-child(3) {
  animation-delay: 0.09s;
}
.contact-card:nth-child(4) {
  animation-delay: 0.12s;
}
.contact-card:nth-child(5) {
  animation-delay: 0.15s;
}
.contact-card:nth-child(6) {
  animation-delay: 0.18s;
}
.contact-card:nth-child(7) {
  animation-delay: 0.21s;
}
.contact-card:nth-child(8) {
  animation-delay: 0.24s;
}
.contact-card:nth-child(9) {
  animation-delay: 0.27s;
}
.contact-card:nth-child(10) {
  animation-delay: 0.3s;
}
.contact-card:nth-child(11) {
  animation-delay: 0.33s;
}
.contact-card:nth-child(12) {
  animation-delay: 0.36s;
}
.contact-card:hover {
  border-color: var(--brass);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}
.con-top {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
}
.con-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.con-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-1);
}
.con-company {
  font-size: 11.5px;
  color: var(--text-2);
}
.con-type-pill {
  margin-left: auto;
}
.con-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--border-lo);
  padding-top: 10px;
}
.con-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-2);
}
.con-row svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: var(--text-3);
}
.con-source {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-top: 8px;
}

/* ═══════════════════════════════════════════
   CONTACT CARD INTERNALS
═══════════════════════════════════════════ */
.contact-card-top {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
}
.contact-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-1);
}
.contact-company {
  font-size: 11.5px;
  color: var(--text-2);
}
.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--border-lo);
  padding-top: 10px;
  margin-top: 4px;
}
.contact-meta-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-2);
}
.contact-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-lo);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .contact-card {
    padding: 12px 14px;
  }
  .cd-avatar {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }
  .cd-name {
    font-size: 18px;
  }
  .cd-grid {
    gap: 14px;
  }
}
