/* nuWudy Contact Form - Scoped cute UI */
/* Force independence from theme */
.nwcf-wrap, .nwcf-wrap * {
  box-sizing: border-box;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif !important;
  color: #0f172a; /* slate-900 */
}
.nwcf-wrap {
  max-width: 720px;
  margin: 24px auto;
  padding: 8px;
}
.nwcf-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(2,6,23,.06);
  position: relative;
  overflow: hidden;
}
.nwcf-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.nwcf-logo { width: 26px; height: 26px; color: #7c3aed; }
.nwcf-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}
.nwcf-badge {
  margin-left: auto;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
}

.nwcf-row { margin-bottom: 12px; }
.nwcf-row label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: #334155;
}
.nwcf-req { color: #ef4444; font-weight: 700; margin-left: 4px; }
.nwcf-optional { color: #64748b; font-weight: 500; }

.nwcf-row input,
.nwcf-row textarea {
  width: 100%;
  background: #fff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px;
  outline: none !important;
  padding: 12px 14px;
  line-height: 1.5;
  font-size: 14px;
  box-shadow: inset 0 0 0 1px transparent;
}
.nwcf-row input:focus,
.nwcf-row textarea:focus {
  border-color: #a78bfa !important;
  box-shadow: 0 0 0 4px rgba(167,139,250,.25);
}
.nwcf-error {
  display: block;
  min-height: 16px;
  padding-top: 4px;
  font-size: 12px;
  color: #dc2626;
}

.nwcf-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
.nwcf-btn {
  appearance: none;
  border: 0;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #fff;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .05s ease, filter .3s ease;
  box-shadow: 0 8px 20px rgba(79,70,229,.25);
}
.nwcf-btn:hover { filter: brightness(1.05); }
.nwcf-btn:active { transform: translateY(1px); }

.nwcf-footnote {
  margin: 12px 0 0;
  font-size: 12px;
  color: #64748b;
}

/* Modal */
.nwcf-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
}
.nwcf-modal.is-open { display: flex; }
.nwcf-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2,6,23,.6);
}
.nwcf-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  width: min(92vw, 420px);
  border: 1px solid #e2e8f0;
  box-shadow: 0 24px 60px rgba(2,6,23,.35);
  text-align: center;
}
.nwcf-check {
  width: 54px; height: 54px;
  border-radius: 999px;
  margin: 0 auto 10px;
  background: #ecfeff;
  color: #06b6d4;
  display: grid; place-items: center;
}
.nwcf-check svg { width: 28px; height: 28px; }
.nwcf-modal h4 {
  margin: 8px 0 4px;
  font-size: 20px; font-weight: 800;
}
.nwcf-modal-text {
  margin: 0 0 12px;
  font-size: 14px;
  color: #334155;
}
.nwcf-close {
  border: 0;
  background: #0ea5e9;
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
}

/* Admin table (front-end) + bell */
.nwcf-admin-wrap {
  max-width: 960px;
  margin: 24px auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(2,6,23,.06);
}
.nwcf-topbar {
  display:flex; align-items:center; gap:12px; margin-bottom:10px;
}
.nwcf-admin-title { margin: 0 0 0 auto; font-size: 18px; font-weight: 800; }
.nwcf-bell {
  position: relative;
  width: 28px; height: 28px;
  color: #475569;
}
.nwcf-bell svg { width: 28px; height: 28px; display: block; }
.nwcf-dot {
  position: absolute;
  right: -6px; top: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #ef4444;
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(239,68,68,.5);
}
.nwcf-markread {
  font-size: 12px;
  background: #22c55e;
  color: #fff;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(34,197,94,.25);
}

.nwcf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.nwcf-table th, .nwcf-table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 10px;
  vertical-align: top;
}
.nwcf-table th { text-align: left; color: #475569; font-weight: 700; }
.nwcf-row-unread td { background: #f8fafc; }
.nwcf-del {
  color: #dc2626; text-decoration: none; font-weight: 700;
}
.nwcf-pagination { margin-top: 12px; display: flex; gap: 6px; }
.nwcf-page {
  display: inline-block; padding: 6px 10px; border:1px solid #e2e8f0; border-radius: 8px; text-decoration: none; color: #1e293b;
}
.nwcf-page.is-active { background: #eef2ff; border-color: #c7d2fe; }
