.nvevt-form .nvevt-row { display: grid; gap: 12px; margin-bottom: 12px; }
.nvevt-form .nvevt-row.cols-1 { grid-template-columns: 1fr; }
.nvevt-form .nvevt-row.cols-2 { grid-template-columns: 1fr 1fr; }
.nvevt-form .nvevt-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.nvevt-form label span { display: block; font-weight: 600; margin-bottom: 6px; }
.nvevt-form input, .nvevt-form textarea { width: 100%; padding: 8px; }
.nvevt-form .req { color: #d63638; }
.nvevt-form .nvevt-actions { margin-top: 12px; }
.nvevt-form .nvevt-msg { margin-top: 8px; }
/* ===============================
   Novva Events – estilos genéricos
   =============================== */

:root{
  --nv-primary: #2271b1;      /* azul WP */
  --nv-border: #dcdfe4;
  --nv-muted: #6b7280;
  --nv-danger: #d63638;       /* rojo WP */
  --nv-bg: #ffffff;
  --nv-bg-alt: #f8fafc;
  --nv-radius: 8px;
}

.nvevt-form{
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px;
  color: #111827;
  font-size: 16px;
  line-height: 1.45;
}

/* --- Grid de filas/columnas --- */
.nvevt-form .nvevt-row{
  display: grid;
  gap: 22px 24px;
  margin-bottom: 24px;
}
.nvevt-form .nvevt-row.cols-1{ grid-template-columns: 1fr; }
.nvevt-form .nvevt-row.cols-2{ grid-template-columns: repeat(2, minmax(0,1fr)); }
.nvevt-form .nvevt-row.cols-3{ grid-template-columns: repeat(3, minmax(0,1fr)); }

@media (max-width: 1024px){
  .nvevt-form .nvevt-row.cols-3{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 768px){
  .nvevt-form .nvevt-row{ grid-template-columns: 1fr !important; }
}

/* --- Campo --- */
.nvevt-form .nvevt-field{
  display: block;
}
.nvevt-form .nvevt-field label{
  display: block;
  width: 100%;
}

/* Etiqueta */
.nvevt-form .nvevt-field label > span{
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #111827;
}
.nvevt-form .nvevt-field .req{ color: var(--nv-danger); }

/* Inputs base */
.nvevt-form input[type="text"],
.nvevt-form input[type="email"],
.nvevt-form input[type="password"],
.nvevt-form input[type="tel"],
.nvevt-form input[type="url"],
.nvevt-form input[type="date"],
.nvevt-form input[type="number"],
.nvevt-form input[type="file"],
.nvevt-form select,
.nvevt-form textarea{
  display: block;
  width: 100%;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
  background: var(--nv-bg);
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.35;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
  box-sizing: border-box;
}

.nvevt-form textarea{ min-height: 140px; resize: vertical; }

.nvevt-form ::placeholder{
  color: #9ca3af;
  opacity: 1; /* Safari */
}

/* Focus/hover */
.nvevt-form input:focus,
.nvevt-form select:focus,
.nvevt-form textarea:focus{
  outline: none;
  border-color: var(--nv-primary);
  box-shadow: 0 0 0 3px rgba(34,113,177,.15);
}

/* Invalid (HTML5) */
.nvevt-form input:invalid:focus,
.nvevt-form select:invalid:focus,
.nvevt-form textarea:invalid:focus{
  border-color: var(--nv-danger);
  box-shadow: 0 0 0 3px rgba(214,54,56,.15);
}

/* Select – flecha nativa */
.nvevt-form select{
  background-image:
    linear-gradient(45deg, transparent 50%, #6b7280 50%),
    linear-gradient(135deg, #6b7280 50%, transparent 50%),
    linear-gradient(to right, #fff, #fff);
  background-position:
    calc(100% - 18px) calc(1.05em),
    calc(100% - 13px) calc(1.05em),
    100% 0;
  background-size: 5px 5px, 5px 5px, 2.5em 2.5em;
  background-repeat: no-repeat;
  padding-right: 40px;
}

/* Radios/checkbox en línea */
.nvevt-form .nvevt-options{ display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 4px; }
.nvevt-form .nvevt-options .nvevt-opt-lab{
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: #374151;
}
.nvevt-form .nvevt-inline .nvevt-opt-lab{ margin-right: 14px; }

/* Campo HTML personalizado */
.nvevt-form .nvevt-html{
  padding: 12px 0;
  color: #374151;
}

/* --- Botón --- */
.nvevt-form .nvevt-actions{ margin-top: 8px; }
.nvevt-form .nvevt-actions button[type="submit"]{
  appearance: none;
  border: none;
  border-radius: 8px;
  background: var(--nv-primary);
  color: #fff;
  font-weight: 600;
  padding: 12px 18px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .02s ease, filter .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 14px rgba(34,113,177,.18);
}
.nvevt-form .nvevt-actions button[type="submit"]:hover{
  filter: brightness(1.05);
}
.nvevt-form .nvevt-actions button[type="submit"]:active{
  transform: translateY(1px);
}

/* Mensajes */
.nvevt-form .nvevt-msg{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--nv-bg-alt);
  border: 1px solid var(--nv-border);
  color: #374151;
}

/* Ajustes de compatibilidad con temas muy opinados */
.nvevt-form input,
.nvevt-form select,
.nvevt-form textarea{
  max-width: 100%;
}
.nvevt-form .nvevt-field label > span:empty{ display:none; } /* si está oculta la etiqueta, no dejes hueco */

/* El check de privacidad ocupa toda la fila y el texto va en línea */
.nvevt-field--privacy .nvevt-check { display:flex; align-items:center; gap:.5rem; }
.nvevt-field--privacy > label > span { display:inline; margin:0; font-weight:400; }
/* utilidad por si la maquetación usa flex/grid de 2 columnas */
.nvevt-row .nvevt-col-full { flex:0 0 100%; max-width:100%; }
