/* ====== Estilos públicos del plugin WP Competition Register ====== */

/* Contenedor general */
.wpcr-form-wrapper {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Etiquetas */
.wpcr-public-form label {
  font-weight: 600;
  color: #333;
  display: block;
  margin-bottom: 5px;
}

/* Campos de entrada */
.wpcr-public-form input[type="text"],
.wpcr-public-form input[type="email"],
.wpcr-public-form input[type="date"],
.wpcr-public-form select {
  width: 100%;
  max-width: 420px;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.wpcr-public-form input:focus,
.wpcr-public-form select:focus {
  border-color: #0073aa;
  outline: none;
}

/* Género tipo botón */
.wpcr-gender-select {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}

.wpcr-gender-select label {
  flex: 1;
  text-align: center;
  background: #f5f5f5;
  border: 2px solid #ccc;
  border-radius: 8px;
  padding: 10px 0;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wpcr-gender-select input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wpcr-gender-select input[type="radio"]:checked + span {
  background-color: #0073aa;
  color: #fff;
  border-color: #0073aa;
}

.wpcr-gender-select label:hover {
  background-color: #e9e9e9;
}

.wpcr-gender-select span {
  display: block;
}

/* Botón principal */
.wpcr-public-form .button-primary {
  background-color: #0073aa;
  border-color: #006799;
  font-weight: 600;
  border-radius: 6px;
  padding: 8px 20px;
  transition: background-color 0.2s ease;
}

.wpcr-public-form .button-primary:hover {
  background-color: #005d8b;
}

/* Responsive */
@media (max-width: 480px) {
  .wpcr-gender-select {
    flex-direction: column;
  }
  .wpcr-gender-select label {
    width: 100%;
  }
	/* FORZAR visibilidad de selects en el formulario WPCR */
.wpcr-public-form select,
#provincia_select {
    display: block !important;
}
/* ===========================
   TABLA PÚBLICA WPCR
   =========================== */

.wpcr-public-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 16px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.wpcr-public-table thead tr {
    background: #0069a3;
    color: white;
    text-align: left;
    font-weight: bold;
}

.wpcr-public-table th,
.wpcr-public-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e5e5e5;
}

.wpcr-public-table tbody tr:nth-child(even) {
    background: #f7f9fc;
}

.wpcr-public-table tbody tr:hover {
    background: #e8f3ff;
    transition: 0.2s ease-in-out;
}

.wpcr-public-table th {
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.03em;
}

/* Ajustar celdas para móviles */
@media (max-width: 600px) {
    .wpcr-public-table th,
    .wpcr-public-table td {
        padding: 10px;
        font-size: 14px;
    }
/* ==========================================================
   LISTADO PÚBLICO (wpcr_list)
   ========================================================== */

.wpcr-list-wrapper {
    margin-top: 25px;
    margin-bottom: 30px;
}

.wpcr-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.wpcr-filters select {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.wpcr-public-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 15px;
}

.wpcr-public-table thead {
    background: #f7f7f7;
}

.wpcr-public-table th {
    padding: 10px;
    border-bottom: 2px solid #e3e3e3;
    text-align: left;
    font-weight: 600;
}

.wpcr-public-table td {
    padding: 9px 10px;
    border-bottom: 1px solid #eee;
}

.wpcr-public-table tr:nth-child(even) {
    background: #fafafa;
}

.wpcr-public-table tr:hover {
    background: #f0f7ff;
}
	
}
