/* ================================================================
   styles-contact-detail.css — Contact Detail page
   ================================================================ */

.cd-banner {
  margin-top: 12px; padding: 10px 14px; border-radius: 8px;
  background: var(--teal-dim); color: var(--teal);
  font-size: 12px; line-height: 1.5;
}

.cd-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .cd-layout { grid-template-columns: 1fr; }
}

.cd-col-left, .cd-col-right { display: flex; flex-direction: column; gap: 16px; }

.cd-card {
  background: var(--form-card-bg);
  border: 1px solid var(--form-card-border);
  box-shadow: var(--form-card-shadow);
  border-radius: 12px;
  padding: 18px;
}

.cd-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 13px; font-weight: 700;
  color: var(--page-title-color);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}

.cd-count-badge {
  font-size: 10.5px; font-weight: 700;
  background: var(--teal-dim); color: var(--teal);
  border-radius: 999px; padding: 1px 8px;
}

/* ── Profile card ── */
.cd-profile-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.cd-avatar-lg {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 700;
  color: #fff; background: var(--teal);
  margin-bottom: 6px;
}
.cd-profile-name { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; color: var(--page-title-color); }
.cd-profile-sub { font-size: 12px; color: var(--muted); }

/* ── Field rows ── */
.cd-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cd-card .field { margin-bottom: 14px; }
.cd-card .field:last-child { margin-bottom: 0; }

.cd-phone-row { display: flex; align-items: center; gap: 8px; }
.cd-phone-row input { flex: 1; }
.cd-icon-btn {
  width: 34px; height: 34px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--border);
  color: var(--muted); text-decoration: none;
}
.cd-icon-btn svg { width: 16px; height: 16px; }
.cd-icon-btn.cd-wa { color: #25D366; border-color: rgba(37,211,102,0.3); }
.cd-icon-btn:hover { border-color: var(--teal-border); color: var(--teal); }

/* ── Projects list ── */
.cd-project-row {
  padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border);
  margin-bottom: 8px; font-size: 12.5px;
}
.cd-project-row:last-child { margin-bottom: 0; }
.cd-project-row-title { color: var(--page-title-color); font-weight: 600; }
.cd-project-row-sub { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.cd-empty-note { color: var(--muted); font-size: 12px; }

/* ── Tabs ── */
.cd-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.cd-tab {
  background: none; border: none; cursor: pointer;
  padding: 8px 14px; font-size: 12.5px; font-weight: 600;
  color: var(--muted); font-family: 'DM Sans', sans-serif;
  border-bottom: 2px solid transparent;
}
.cd-tab.active { color: var(--teal); border-bottom-color: var(--teal); }
.cd-notes-area {
  width: 100%; min-height: 120px; resize: vertical;
  padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--field-input-border);
  background: var(--field-input-bg); color: var(--field-input-color);
  font-family: 'DM Sans', sans-serif; font-size: 12.5px; outline: none;
}
.cd-notes-area:focus { border-color: var(--teal-border); }
.cd-empty-tab { color: var(--muted); font-size: 12.5px; padding: 20px 0; text-align: center; }

/* ── Timeline ── */
.cd-timeline { position: relative; padding-left: 22px; }
.cd-timeline::before {
  content: ''; position: absolute; left: 6px; top: 4px; bottom: 4px;
  width: 2px; background: var(--border);
}
.cd-timeline-item { position: relative; padding-bottom: 16px; }
.cd-timeline-item:last-child { padding-bottom: 0; }
.cd-timeline-dot {
  position: absolute; left: -22px; top: 2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--teal); border: 2px solid var(--form-card-bg);
}
.cd-timeline-title { font-size: 12.5px; font-weight: 600; color: var(--page-title-color); }
.cd-timeline-sub { font-size: 11px; color: var(--muted); margin-top: 1px; }
