/* ================================================================
   Contact Form Dialog — Shared across all tabs
   Slide-in panel with form, chips, thank-you
   ================================================================ */

.contact-dialog {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 480px; max-width: 100vw;
  background: #fff; border: none; border-left: 1px solid #e5e7eb;
  padding: 0; margin: 0; box-shadow: -8px 0 32px rgba(0,0,0,0.12);
  z-index: 2000; overflow: hidden;
}
.contact-dialog::backdrop { background: rgba(0,0,0,0.3); }
.contact-dialog[open] { display: flex; }

.contact-panel { display: flex; flex-direction: column; height: 100%; overflow-y: auto; }

.contact-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 24px 24px 16px; border-bottom: 1px solid #e5e7eb; flex-shrink: 0;
}
.contact-header__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: #111827; margin-bottom: 4px; }
.contact-header__sub { font-size: 0.82rem; color: #6b7280; }
.contact-close {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); font-size: 1.3rem; color: #9ca3af;
  cursor: pointer; background: none; border: none; flex-shrink: 0;
}
.contact-close:hover { background: #f3f4f6; color: #111827; }

.contact-form { flex: 1; padding: 20px 24px; display: flex; flex-direction: column; }
.contact-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }

/* Override form fields for light dialog */
.contact-form .form-input,
.contact-form .form-select,
.contact-form .form-textarea {
  background: #fff; border-color: #d1d5db; color: #111827;
}
.contact-form .form-input:focus,
.contact-form .form-select:focus,
.contact-form .form-textarea:focus {
  border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.contact-form .form-label { color: #6b7280; }

.contact-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.contact-chip {
  padding: 5px 14px; border: 1px solid #d1d5db; border-radius: 99px;
  font-size: 0.82rem; color: #6b7280; cursor: pointer;
  transition: all var(--transition-fast); background: #fff;
}
.contact-chip:hover { border-color: #2563eb; color: #2563eb; }
.contact-chip.selected { background: #eff6ff; border-color: #2563eb; color: #1d4ed8; font-weight: 600; }

.contact-checkbox {
  display: flex; align-items: flex-start; gap: 8px; font-size: 0.82rem;
  color: #6b7280; cursor: pointer; line-height: 1.45;
}
.contact-checkbox input { margin-top: 3px; accent-color: #2563eb; }

.contact-error {
  padding: 8px 12px; background: #fef2f2; color: #dc2626;
  border-radius: var(--radius-xs); font-size: 0.82rem; margin-top: 12px;
}

.contact-footer {
  display: flex; justify-content: flex-end; gap: 12px;
  padding-top: 16px; margin-top: auto;
}
.contact-footer .btn--primary { background: #2563eb; }
.contact-footer .btn--primary:hover { background: #1d4ed8; }

.contact-thankyou { text-align: center; padding: 48px 24px; }
.contact-thankyou__icon {
  width: 64px; height: 64px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  background: #dcfce7; color: #166534; border-radius: 50%;
  font-size: 2rem; font-weight: 700;
}
.contact-thankyou h3 { font-family: var(--font-display); font-size: 1.1rem; color: #111827; margin-bottom: 16px; }
.contact-lead-card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px; background: #f9fafb; border: 1px solid #e5e7eb;
  border-radius: var(--radius); margin-bottom: 16px;
}
.contact-lead-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: #9ca3af; }
.contact-lead-id { font-family: var(--font-mono); font-size: 1.2rem; font-weight: 700; color: #2563eb; }
.contact-thankyou p { font-size: 0.88rem; color: #6b7280; margin-bottom: 20px; }
