/* ══════════════════════════════════════════════════
   Notary Agent PMPro Add-On — Frontend Styles
   Scoped to .na-pmpro-* to avoid conflicts with
   PMPro's own styles or any theme.
   ══════════════════════════════════════════════════ */

.na-pmpro-section {
  font-family: 'DM Sans', system-ui, sans-serif;
  margin: 2rem 0;
  padding: 1.75rem 2rem;
  background: #fafaf8;
  border: 1px solid #e0d9ce;
  border-radius: 8px;
}

.na-pmpro-section-title {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: #0d1f3c !important;
  margin: 0 0 .4rem !important;
  padding: 0 !important;
  border: none !important;
}

.na-pmpro-section-desc {
  font-size: .88rem;
  color: #6b7280;
  margin-bottom: 1.25rem;
}

.na-pmpro-subhead {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #0d1f3c !important;
  margin: 1.5rem 0 .75rem !important;
  padding-bottom: .4rem !important;
  border-bottom: 1px solid #e0d9ce !important;
}

.na-req { color: #c8973a; font-weight: 700; }
.na-pmpro-hint { font-size: .82rem; color: #9ca3af; margin-bottom: 1rem; }

/* ── Grid layouts ── */
.na-pmpro-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.na-pmpro-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

/* ── Field wrapper ── */
.na-pmpro-field {
  margin-bottom: 1rem;
}
.na-pmpro-field label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #374151;
  margin-bottom: .35rem;
}
.na-pmpro-field label small {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #9ca3af;
  font-size: .78rem;
}
.na-pmpro-field input[type="text"],
.na-pmpro-field input[type="date"],
.na-pmpro-field select,
.na-pmpro-field textarea {
  width: 100% !important;
  max-width: 100% !important;
  padding: .6rem .85rem !important;
  border: 1.5px solid #d1c9ba !important;
  border-radius: 6px !important;
  background: #fff !important;
  font-family: 'DM Sans', system-ui, sans-serif !important;
  font-size: .95rem !important;
  color: #1a1a2e !important;
  box-sizing: border-box !important;
  transition: border-color .2s, box-shadow .2s !important;
  box-shadow: none !important;
}
.na-pmpro-field input:focus,
.na-pmpro-field select:focus,
.na-pmpro-field textarea:focus {
  outline: none !important;
  border-color: #c8973a !important;
  box-shadow: 0 0 0 3px rgba(200,151,58,.12) !important;
}
.na-pmpro-field textarea { resize: vertical; min-height: 80px; }

/* ── Upload cards ── */
.na-pmpro-uploads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: .75rem;
}
.na-pmpro-upload-card {
  border: 2px dashed #d1c9ba;
  border-radius: 8px;
  padding: 1.1rem 1rem;
  background: #fff;
  text-align: center;
  transition: border-color .2s;
}
.na-pmpro-upload-card:hover { border-color: #c8973a; }
.na-pmpro-upload-card.has-file {
  border-style: solid;
  border-color: #16a34a;
}
.na-upload-icon { font-size: 1.75rem; margin-bottom: .3rem; }
.na-upload-label {
  font-size: .85rem;
  font-weight: 600;
  color: #0d1f3c;
  margin-bottom: .25rem;
}
.na-upload-current {
  font-size: .78rem;
  color: #16a34a;
  margin: .35rem 0 .5rem;
}
.na-upload-current a { color: #c8973a; text-decoration: underline; }
.na-upload-btn {
  display: inline-block;
  background: #0d1f3c;
  color: #c8973a;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .4rem .9rem;
  border-radius: 5px;
  cursor: pointer;
  margin-top: .5rem;
  transition: background .2s;
}
.na-upload-btn:hover { background: #1a3460; }
.na-upload-btn input[type="file"] { display: none; }
.na-upload-preview {
  font-size: .75rem;
  color: #16a34a;
  margin-top: .4rem;
  min-height: 1em;
}
.na-view-link { font-size: .82rem; color: #c8973a; display: inline-block; margin-bottom: .35rem; }

/* ── Admin profile section (inside WP admin form-table) ── */
.na-profile-section h2 {
  font-size: 1.1rem;
  color: #0d1f3c;
  margin-top: 1.5rem;
  border-top: 1px solid #e0d9ce;
  padding-top: 1rem;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .na-pmpro-grid-2,
  .na-pmpro-grid-3,
  .na-pmpro-uploads { grid-template-columns: 1fr; }
  .na-pmpro-section { padding: 1.25rem 1rem; }
}
