/* ESTILOS FORMULARIO */

.asterisco {
    color: var(--c-primario);
}

#wpcf7-f5-p16-o1 p {
    margin-bottom: 0px !important;
}

#wpcf7-f5-p16-o1 .form-group {
    margin-bottom: 20px;
}
#wpcf7-f5-p16-o1 input.form-control,
#wpcf7-f5-p16-o1 textarea.form-control {
  background: transparent;
  border: none;
  border-bottom: 1px solid #E0E0E0;
  padding: 30px 0px 6px;
  font-family: var(--f-sans);
  font-size: 16px;
  color: #2D2D2D;
  line-height: 1.5;
  width: 100%;
  box-sizing: border-box;
}

#wpcf7-f5-p16-o1 .form-group {
  position: relative;
}

#wpcf7-f5-p16-o1 .form-group label {
  position: absolute;
  top: 26px;
  left: 0px;
  font-size: 12px;
  color: #747474;
  transition: all 0.2s ease;
  pointer-events: none;
}

#wpcf7-f5-p16-o1 .form-group:has(.form-control:focus),
#wpcf7-f5-p16-o1 .form-group:has(.form-control:not(:placeholder-shown)) {
  --label-top: 0px;
  --label-size: 10px;
  --label-color: #333;
}

#wpcf7-f5-p16-o1 .form-group label {
  top: var(--label-top, 26px);
  font-size: var(--label-size, 12px);
  color: var(--label-color, #747474);
}


.wpcf7-not-valid-tip {
    margin-left: 0px;
    margin-top: 10px;
}

#wpcf7-f5-p16-o1 textarea#textarea {
    min-height: 150px;
    resize: vertical;
}

.wpcf7-list-item {
    margin: 0 0 0 0em !important;
}

/* BOTÓN DE ENVIAR */

#wpcf7-f5-p16-o1 input.wpcf7-submit.btn.btn-primary {
  max-width: 160px;
  background-color: #E0E0E0;
  padding: 10px 20px;
  height: 40px;
  border: 0;
  margin-bottom: 0;
  text-align: center;
  transition: all 0.25s ease-in;
  text-transform: none;
  border-radius: 0;
  font-family: var(--f-sans);
  font-size: 12px;
  color: #2D2D2D;
  line-height: 1.5;
  box-shadow: none;
  cursor: pointer;
  margin-top: 20px;
}

#wpcf7-f5-p16-o1 input.wpcf7-submit.btn.btn-primary:hover:enabled {
  background-color: #2D2D2D;
  color: white;
}

/* CHECK BOX */

/* Estilo específico del checkbox del campo de aceptación */
#wpcf7-f5-p16-o1 .form-acceptance .form-check-input {
  width: 16px;
  height: 16px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid #D1D1D1;
  background-color: white;
  border-radius: 0; /* sin esquinas redondeadas */
  margin-right: 8px;
  cursor: pointer;
  position: relative;
}

/* Estilo cuando está marcado */
#wpcf7-f5-p16-o1 .form-acceptance .form-check-input:checked {
  background-color: #2D2D2D;
  border: 1px solid #2D2D2D;
}

/* Checkmark (✓) al estar marcado */
#wpcf7-f5-p16-o1 .form-acceptance .form-check-input:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

#wpcf7-f5-p16-o1 .form-acceptance p > span {
  display: inline-block;
  transform: translateY(2px);
  margin-right: 6px;
}

.wpcf7-not-valid-tip {
    color: var(--c-primario) !important;
    font-size: 16px !important;
}
