/* ============================================
   CONTACT ADMIN UI
   ============================================ */

.contact-admin-topbar {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 auto 28px;
  padding: 14px 16px;
  border: 1px dashed rgba(0, 151, 167, 0.45);
  border-radius: 16px;
  background: rgba(0, 151, 167, 0.055);
}

body.admin-mode .contact-admin-topbar {
  display: flex;
}

.contact-admin-main-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  color: #ffffff;
  background: #0097a7;
  box-shadow: 0 8px 20px rgba(0, 151, 167, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-admin-main-btn:hover {
  transform: translateY(-2px);
  background: #007d8a;
  box-shadow: 0 12px 26px rgba(0, 151, 167, 0.28);
}

.contact-admin-main-btn.secondary {
  background: #111827;
}

.contact-admin-main-btn.secondary:hover {
  background: #0f172a;
}

.contact-message-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 24px 28px;
}

.contact-message-card {
  border: 1px solid #e5e7eb;
  border-left: 4px solid #0097a7;
  border-radius: 16px;
  padding: 16px;
  background: #ffffff;
}

.contact-message-card.is-read {
  border-left-color: #9ca3af;
  background: #f9fafb;
}

.contact-message-card h4 {
  margin: 0 0 6px;
  color: #111827;
  font-size: 1rem;
  line-height: 1.4;
}

.contact-message-card p {
  margin: 4px 0;
  color: #4b5563;
  font-size: 0.84rem;
  line-height: 1.55;
}

.contact-message-card .message-body {
  margin-top: 10px;
  padding: 12px 13px;
  border-radius: 12px;
  background: #f3f4f6;
  color: #1f2937;
  white-space: pre-wrap;
}

.contact-message-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 10px;
}

.contact-message-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(0,151,167,0.10);
  color: #007d8a;
}

.contact-message-chip.read {
  background: #e5e7eb;
  color: #4b5563;
}

.contact-message-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.contact-message-actions button,
.contact-message-actions a {
  border: none;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-message-actions .reply {
  background: #0097a7;
}

.contact-message-actions .read {
  background: #111827;
}

.contact-message-actions .delete {
  background: #dc2626;
}

.contact-empty-state {
  text-align: center;
  padding: 42px 24px;
  color: #6b7280;
  font-size: 0.92rem;
  line-height: 1.7;
}

.toast.error {
  background: #7f1d1d;
  color: #fee2e2;
}

.toast.warning {
  background: #92400e;
  color: #fffbeb;
}

.toast.error .toast-icon,
.toast.warning .toast-icon {
  background: #ef4444;
}

.toast.error .toast-progress,
.toast.warning .toast-progress {
  background: #ef4444;
}
/* ============================================
   CUSTOM CONTACT FORM FIELDS
   ============================================ */

#customContactFields {
  width: 100%;
}

.custom-contact-field {
  animation: contactFieldFade 0.25s ease both;
}

@keyframes contactFieldFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-field-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 24px 28px;
}

.contact-field-card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  background: #ffffff;
}

.contact-field-card h4 {
  margin: 0 0 6px;
  color: #111827;
  font-size: 1rem;
}

.contact-field-card p {
  margin: 4px 0;
  color: #4b5563;
  font-size: 0.84rem;
  line-height: 1.5;
}

.contact-field-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.contact-field-actions button {
  border: none;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  color: #ffffff;
}

.contact-field-actions .edit {
  background: #0097a7;
}

.contact-field-actions .delete {
  background: #dc2626;
}